:root {
  --bg: #02090d;
  --surface: #061118;
  --surface-2: #0a1820;
  --surface-3: #10232d;
  --text: #eaf3f7;
  --muted: #8ba7b6;
  --line: #253f4b;
  --line-strong: #3d5d6c;
  --gold: #f3b400;
  --gold-dark: #3f2e00;
  --green: #00ef82;
  --red: #ff4059;
  --cyan: #00d4ef;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
}
a { color: var(--cyan); }
img { max-width: 100%; display: block; }
/* Trava scroll horizontal no celular (ver nota em .hero-banner abaixo sobre
   o motivo real das imagens estourando a tela). */
html, body { overflow-x: hidden; width: 100%; }

.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header img { height: 34px; }
.btn {
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  padding: 11px 20px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-primary { background: var(--gold); border-color: var(--gold); color: #1a1300; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-large { padding: 15px 28px; font-size: 16px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.hero {
  padding: 64px 5vw 40px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.hero h1 { font-size: clamp(28px, 4vw, 46px); margin: 0 0 14px; }
.hero p.lead { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto 28px; }

/* Banner principal (mascote + texto) -- vira coluna única no celular */
.hero-banner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 5vw 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
/* min-width:0 é o pulo do gato: por padrão um item de grid/flex não encolhe
   além do tamanho "natural" do conteúdo (a imagem em resolução cheia), o
   que empurrava a página inteira pra largura da imagem no celular mesmo
   com max-width:100% na img. Isso zera esse mínimo e deixa a coluna
   encolher de verdade. */
.hero-banner-text, .hero-banner-visual { min-width: 0; }
.hero-banner-text h1 { font-size: clamp(28px, 4vw, 46px); margin: 0 0 14px; }
.hero-banner-text .lead { color: var(--muted); font-size: 18px; margin: 0 0 24px; }
.hero-banner-visual { display: flex; justify-content: center; }
.hero-banner-visual img {
  width: auto;
  max-width: 100%;
  max-height: 360px;
  filter: drop-shadow(0 20px 60px rgba(0, 239, 130, 0.18));
}
@media (max-width: 780px) {
  .hero-banner { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero-banner-text { order: 2; }
  .hero-banner-visual { order: 1; }
  .hero-banner-visual img { max-height: 260px; }
}

/* Seção "veja o robô em ação" -- screenshot/preview do painel */
.product-preview {
  max-width: 1100px;
  margin: 20px auto 50px;
  padding: 0 5vw;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: center;
}
.product-preview-text, .product-preview-img { min-width: 0; }
.product-preview-text h2 { margin: 0 0 12px; font-size: clamp(22px, 3vw, 30px); }
.product-preview-text p { color: var(--muted); font-size: 15px; }
.product-preview-img {
  width: 100%;
  max-width: 560px;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
@media (max-width: 780px) {
  .product-preview { grid-template-columns: 1fr; text-align: center; }
  .product-preview-img { margin: 0 auto; }
}

.plan-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  text-align: center;
}
.plan-card .plan-name { text-transform: uppercase; letter-spacing: .08em; color: var(--gold); font-weight: 800; font-size: 13px; }
.plan-card .plan-price { font-size: 46px; font-weight: 900; margin: 10px 0 0; }
.plan-card .plan-price span { font-size: 16px; color: var(--muted); font-weight: 600; }
.plan-card ul { list-style: none; padding: 0; margin: 24px 0; text-align: left; }
.plan-card li { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.plan-card li::before { content: "✓ "; color: var(--green); font-weight: 900; }

.features {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 5vw;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}
.feature-card h3 { margin: 0 0 8px; color: var(--gold); font-size: 15px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }

.checkout-section {
  max-width: 640px;
  margin: 40px auto 80px;
  padding: 0 5vw;
}
.checkout-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}
.checkout-card h2 { margin-top: 0; }
.checkout-card input[type="email"] {
  width: 100%;
  padding: 12px;
  margin-top: 16px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  font-size: 15px;
}
.checkout-card button[data-checkout-submit] { margin-top: 14px; }
.checkout-msg { margin-top: 14px; padding: 12px 14px; border-radius: 8px; font-size: 14px; display: none; }
.checkout-msg.show { display: block; }
.checkout-msg.ok { background: color-mix(in srgb, var(--green) 16%, var(--surface)); color: var(--green); border: 1px solid var(--green); }
.checkout-msg.error { background: color-mix(in srgb, var(--red) 16%, var(--surface)); color: var(--red); border: 1px solid var(--red); }
.checkout-msg.info { background: color-mix(in srgb, var(--cyan) 16%, var(--surface)); color: var(--cyan); border: 1px solid var(--cyan); }

.site-footer {
  padding: 30px 5vw;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
}

/* Login e painel */
.center-page {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
}
.auth-card h1 { font-size: 20px; margin: 0 0 20px; text-align: center; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; }
.field input {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  font-size: 15px;
}
.form-msg { min-height: 20px; font-size: 13px; margin: 8px 0; color: var(--red); }

.panel-card {
  max-width: 560px;
  margin: 40px auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
}
.panel-card dl { display: grid; grid-template-columns: 140px 1fr; gap: 10px; margin: 20px 0; }
.panel-card dt { color: var(--muted); font-size: 13px; }
.panel-card dd { margin: 0; font-weight: 700; }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.status-pill.active { background: color-mix(in srgb, var(--green) 20%, transparent); color: var(--green); }
.status-pill.expired { background: color-mix(in srgb, var(--red) 20%, transparent); color: var(--red); }

/* Popup de promoção (banner configurado no admin) */
.promo-banner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 9, 13, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.promo-banner-box {
  position: relative;
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 28px 24px 24px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.promo-banner-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
.promo-banner-close:hover { color: var(--text); }
.promo-banner-img {
  width: 100%;
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 14px;
}
.promo-banner-title { margin: 0 0 8px; font-size: 20px; }
.promo-banner-msg { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.promo-banner-cta { display: inline-block; width: 100%; }
@media (max-width: 480px) {
  .promo-banner-box { padding: 22px 16px 18px; }
}
