/* ============================================================
   base.css · tokens, reset e componentes compartilhados
   O quiz (index.html) e a oferta (oferta.html) carregam este
   arquivo primeiro. Cores e fontes ficam só aqui.
   ============================================================ */
:root {
  --bg: #0b0b0f;
  --sur: #15151b;
  --sur2: #1d1d26;
  --bd: #2a2a35;
  --tx: #f5f5f7;
  --mu: #a4a4ae;
  --ac: #e3262b;   /* vermelho principal */
  --ac2: #ff3d42;  /* vermelho claro (destaques) */
  --ye: #ffc838;   /* amarelo (números, eyebrow) */
  --gr: #22c55e;   /* verde (ok, check) */
  --r: 14px;
  --display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); color: var(--tx); font-family: var(--body); line-height: 1.5; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
body { min-height: 100dvh; }
button, input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.hide { display: none !important; }

/* Tipografia de destaque */
.display { font-family: var(--display); font-weight: 400; line-height: .98; letter-spacing: .01em; }
.display em { font-style: normal; color: var(--ac2); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ye); margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 0 4px rgba(227, 38, 43, .25); }

/* Botão principal */
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; width: 100%; min-height: 58px; padding: 10px 16px; border: 0; border-radius: 14px; background: var(--ac); color: #fff; font-family: var(--display); font-size: 24px; line-height: 1.05; letter-spacing: .06em; cursor: pointer; text-decoration: none; box-shadow: 0 10px 30px rgba(227, 38, 43, .35); transition: transform .08s, background .15s; }
.btn:hover { background: var(--ac2); }
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .4; box-shadow: none; cursor: not-allowed; }
.btn.ghost { background: transparent; border: 1.5px solid var(--bd); box-shadow: none; color: var(--tx); }
/* Botão de compra pulsando: anel que se expande + leve respiro de escala */
.btn.pulse { animation: pulse 1.8s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 10px 30px rgba(227, 38, 43, .35), 0 0 0 0 rgba(227, 38, 43, .65); transform: scale(1); }
  60% { box-shadow: 0 10px 30px rgba(227, 38, 43, .35), 0 0 0 16px rgba(227, 38, 43, 0); transform: scale(1.025); }
  100% { box-shadow: 0 10px 30px rgba(227, 38, 43, .35), 0 0 0 0 rgba(227, 38, 43, 0); transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { .btn.pulse { animation: none; } }

/* Etiquetas */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { border: 1px solid var(--bd); background: rgba(255, 255, 255, .04); border-radius: 999px; padding: 6px 11px; font-size: 12px; font-weight: 600; }
.tag.y { border-color: rgba(255, 200, 56, .5); color: var(--ye); }

/* Prova social */
.stars { color: var(--ye); letter-spacing: 2px; font-size: 14px; margin-bottom: 8px; }
.who { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--mu); }
.who b { color: var(--tx); }

/* Gráficos */
.chart { background: var(--sur); border: 1px solid var(--bd); border-radius: var(--r); padding: 14px; margin: 14px 0; }
.chart svg { width: 100%; height: auto; display: block; }
.chart-title { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
/* Gráfico de projeção: começa vazio e "desce" quando entra na tela (classe .on vem do projReveal em proj.js) */
svg.cp .cp-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
svg.cp .cp-area, svg.cp .cp-dot, svg.cp .cp-end { opacity: 0; }
svg.cp.on .cp-line { animation: cpDraw 1.6s cubic-bezier(.4, 0, .2, 1) forwards; }
svg.cp.on .cp-dot { animation: cpFade .3s ease forwards; }
svg.cp.on .cp-area { animation: cpFade .7s ease 1.1s forwards; }
svg.cp.on .cp-end { animation: cpFade .5s ease .9s forwards; }
@keyframes cpDraw { to { stroke-dashoffset: 0; } }
@keyframes cpFade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { svg.cp .cp-line { stroke-dashoffset: 0; } svg.cp .cp-area, svg.cp .cp-dot, svg.cp .cp-end { opacity: 1; } svg.cp.on * { animation: none !important; } }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--mu); margin-top: 8px; }
.legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }

/* Cronômetro */
.timer { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(255, 200, 56, .08); border: 1px solid rgba(255, 200, 56, .4); border-radius: 12px; padding: 10px 14px; font-size: 13px; margin-top: 14px; }
.timer b { font-family: var(--display); font-size: 26px; color: var(--ye); letter-spacing: .05em; }

/* Banner de urgência (vermelho, topo) */
.urgency { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--ac); color: #fff; padding: 9px 14px; font-size: 13px; font-weight: 700; text-align: center; line-height: 1.2; }
.urgency b { font-family: var(--display); font-size: 24px; letter-spacing: .06em; line-height: 1; background: rgba(0, 0, 0, .25); padding: 3px 10px; border-radius: 8px; font-variant-numeric: tabular-nums; }

/* Bandeiras de pagamento */
.pay { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.pay span { background: #fff; border-radius: 8px; height: 34px; min-width: 54px; padding: 0 10px; display: grid; place-items: center; }
.pay img { height: 18px; width: auto; max-width: 52px; display: block; }
.pay .elo { font-weight: 900; font-style: italic; color: #000; font-size: 16px; letter-spacing: -.5px; }

/* Selo de garantia */
.seal { width: 110px; height: 110px; flex: none; }

/* Números: estatísticas (3 colunas) e KPIs (2 colunas), no quiz e na oferta */
.stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stat div { background: var(--sur); border: 1px solid var(--bd); border-radius: 12px; padding: 12px 8px; text-align: center; }
.stat b { display: block; font-family: var(--display); font-size: 28px; color: var(--ye); line-height: 1; }
.stat span { font-size: 11px; color: var(--mu); }
.kpi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.kpi div { background: var(--sur); border: 1px solid var(--bd); border-radius: 12px; padding: 12px; }
.kpi small { display: block; font-size: 11px; color: var(--mu); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.kpi b { font-family: var(--display); font-size: 30px; font-weight: 400; line-height: 1.1; }
.kpi b.g { color: var(--gr); }

/* Miúdos */
.note { font-size: 12px; color: var(--mu); margin-top: 12px; line-height: 1.5; }
.micro { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; font-size: 12px; color: var(--mu); margin-top: 12px; font-weight: 600; }
.micro > span::before { content: "✓ "; color: var(--gr); }
