/* Tokens da marca (assets/marca/tokens.json, tema claro). Texto em Inter, conforme o briefing. */
:root {
  --surface: #ffffff;
  --surface-raised: #f3f5fa;
  --ink: #0f1b3d;
  --ink-muted: #4a5578;
  --line: #c9d1e6;
  --line-strong: #6b77a0;
  --brand-deep: #0f1b3d;
  --brand-deep-2: #182753;
  --brand-yellow: #ffc93c;
  --on-yellow: #0f1b3d;
  --blue: #1f66c4;
  --chart-blue: #2a78d6;
  --blue-tint: #e3eefc;
  --yellow-tint: #fff1c2;
  --on-yellow-tint: #3d2e00;

  --display: "Baloo 2", system-ui, sans-serif;
  --text: "Inter", system-ui, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sticker: 0 3px 0 rgba(15, 27, 61, 0.18);
  --shadow-sticker-dark: 0 4px 0 rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

/* overflow-x também no html: se só o body tiver, o navegador repassa o valor para a janela
   em vez de cortar o body, e no celular a página fica mais larga que a tela (a barra fixa estica junto) */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
/* sem o retângulo azul que o celular desenha ao tocar em links e botões */
a, button, summary { -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/26px var(--text);
  padding-bottom: 76px; /* espaço para a barra fixa no celular */
  /* as animações que entram pela lateral não podem criar rolagem horizontal */
  overflow-x: hidden;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

/* Barra de rolagem da página na identidade da marca.
   Chrome, Edge e Safari usam ::-webkit-scrollbar; o Firefox usa scrollbar-color.
   O Chrome ignora o estilo webkit quando scrollbar-color existe, por isso o @supports. */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--surface-raised); }
::-webkit-scrollbar-thumb {
  background: var(--brand-deep);
  border: 3px solid var(--surface-raised);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover { background: var(--blue); }
::-webkit-scrollbar-thumb:active { background: var(--brand-yellow); }
::-webkit-scrollbar-button { display: none; }
::-webkit-scrollbar-corner { background: var(--surface-raised); }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: var(--brand-deep) var(--surface-raised); }
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h2 { font-size: 30px; line-height: 34px; }
h3 { font-size: 22px; line-height: 28px; font-weight: 700; }
p { margin: 0 0 var(--space-4); }

a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--space-4); }
.wrap.estreito { max-width: 720px; }

.secao { padding: var(--space-7) 0; }
.secao-raised { background: var(--surface-raised); }

.legenda {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-top: var(--space-4);
}

/* Botão: amarelo com sombra seca de adesivo */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--brand-yellow);
  color: var(--on-yellow);
  font: 800 19px/1.2 var(--display);
  text-decoration: none;
  text-align: center;
  text-wrap: balance;
  box-shadow: var(--shadow-sticker-dark);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 rgba(0, 0, 0, 0.35); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.btn:focus-visible { outline-color: #fff; }
.btn-grande { width: 100%; min-height: 64px; font-size: 21px; }
.btn-pequeno { min-height: 48px; padding: var(--space-2) var(--space-4); font-size: 17px; box-shadow: var(--shadow-sticker); }

/* ---------- Primeira tela ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--brand-deep);
  color: #fff;
  padding: var(--space-6) 0 0;
}
.hero-espiral {
  position: absolute;
  width: 520px;
  right: -180px;
  top: 40px;
  fill: none;
  stroke: var(--brand-yellow);
  stroke-width: 0.12;
  stroke-linecap: round;
  opacity: 0.18;
}
.hero-raio {
  position: absolute;
  width: 260px;
  left: -90px;
  bottom: 60px;
  fill: #fff;
  opacity: 0.05;
}
.hero-grid { position: relative; display: grid; gap: var(--space-5); }
.hero-texto { text-align: center; max-width: 720px; margin: 0 auto; }

.selo {
  display: inline-block;
  margin: 0 0 var(--space-4);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--brand-yellow);
  color: var(--on-yellow);
  font: 700 14px/22px var(--display);
  box-shadow: var(--shadow-sticker-dark);
}
@media (min-width: 420px) { .selo { font-size: 15px; line-height: 24px; } }
.selo strong { font-weight: 800; font-size: 16px; }

.hero h1 {
  font-size: 40px;
  line-height: 42px;
  letter-spacing: -0.5px;
  color: #fff;
}
.h1-destaque { display: block; color: var(--brand-yellow); }
.h1-dias { color: var(--brand-yellow); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lead { color: #d3e0f7; font-size: 18px; line-height: 28px; margin: 0 auto var(--space-5); max-width: 520px; text-wrap: balance; }

.hero .btn { width: 100%; }

.garantias-mini {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-5);
  font-size: 14px;
  color: #b9c3e0;
}
.garantias-mini li { display: flex; align-items: center; gap: var(--space-2); }
.garantias-mini li::before {
  content: "";
  width: 16px; height: 16px; flex: none;
  border-radius: 50%;
  background: var(--brand-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230F1B3D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 330px;
  margin: var(--space-2) auto 0;
}
.hero-capa {
  position: absolute;
  left: 4%;
  bottom: -24px;
  width: 58%;
  max-width: 300px;
  border-radius: 6px;
  transform: rotate(-4deg);
  /* capa e fundo são azul-marinho: borda clara bem sutil + brilho amarelo separam sem contorno */
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 18px 40px rgba(0, 0, 0, 0.5),
    0 0 70px rgba(255, 201, 60, 0.22);
}
.hero-fibo {
  position: absolute;
  right: 2%;
  bottom: -10px;
  height: 340px;
  width: auto;
}

/* ---------- Para quem é ---------- */
.lista-check { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.lista-check li {
  position: relative;
  padding: var(--space-3) var(--space-4) var(--space-3) 52px;
  background: var(--surface-raised);
  border-radius: var(--radius-md);
  font-weight: 600;
}
.lista-check li::before {
  content: "";
  position: absolute;
  left: var(--space-4);
  top: 50%;
  translate: 0 -50%;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--brand-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230F1B3D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* ---------- Prioridade ---------- */
.destaque {
  margin-top: var(--space-5);
  padding: var(--space-5);
  background: var(--brand-deep);
  color: #fff;
  border-radius: var(--radius-lg);
}
.destaque-numero {
  margin: 0 0 var(--space-2);
  font: 800 72px/1 var(--display);
  color: var(--brand-yellow);
  font-variant-numeric: tabular-nums;
}
.destaque-texto { margin: 0; font-weight: 600; font-size: 17px; line-height: 25px; color: #e3eefc; max-width: 460px; }
.destaque-barra {
  margin-top: var(--space-5);
  height: 18px;
  border-radius: var(--radius-pill);
  background: var(--brand-deep-2);
  border: 1px solid #33447a;
  overflow: hidden;
}
.destaque-barra span {
  display: block;
  height: 100%;
  width: calc(var(--pct) * 1%);
  border-radius: inherit;
  background: var(--brand-yellow);
  transform-origin: left;
}

/* ---------- O que tem dentro ---------- */
.numeros {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin: var(--space-5) 0 var(--space-7);
}
.numeros div {
  display: flex;
  flex-direction: column-reverse;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
}
.numeros dd { margin: 0; font: 800 40px/1 var(--display); color: var(--ink); }
.numeros dt { color: var(--ink-muted); font-size: 14px; line-height: 20px; }

.mapa-titulo { margin-bottom: var(--space-2); }
.mapa-intro { color: var(--ink-muted); max-width: 640px; }

.mapa { list-style: none; margin: var(--space-5) 0 0; padding: 0; }
.mapa li {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  grid-template-areas: "cap nome valor" ". barra barra";
  column-gap: var(--space-3);
  row-gap: var(--space-1);
  align-items: baseline;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
}
.mapa .cap {
  grid-area: cap;
  font: 800 18px/1 var(--display);
  color: var(--ink-muted);
}
.mapa .nome { grid-area: nome; font-weight: 600; line-height: 22px; }
.mapa .nome small { display: block; font-weight: 400; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.mapa .valor { grid-area: valor; font: 800 18px/1 var(--display); font-variant-numeric: tabular-nums; }
.mapa .barra {
  grid-area: barra;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
  overflow: hidden;
}
.mapa .barra::after {
  content: "";
  display: block;
  height: 100%;
  width: calc(var(--peso) / 14.8 * 100%);
  border-radius: inherit;
  background: var(--line-strong);
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.mapa li.topo .barra::after { background: var(--chart-blue); }
.mapa li.topo .cap { color: var(--chart-blue); }
.mapa li.simulado .valor { font-size: 15px; color: var(--ink-muted); }

/* Animação única da página: as barras crescem quando o mapa entra na tela */
.js .mapa:not(.visivel) .barra::after { transform: scaleX(0); }
.mapa li:nth-child(n) .barra::after { transition-delay: calc(var(--i, 0) * 60ms); }
@media (prefers-reduced-motion: reduce) {
  .mapa .barra::after { transition: none; }
  .js .mapa:not(.visivel) .barra::after { transform: none; }
}

/* ---------- Como funciona cada capítulo ---------- */
.passos { list-style: none; counter-reset: passo; margin: var(--space-5) 0 0; padding: 0; }
.passos li {
  counter-increment: passo;
  position: relative;
  padding: 0 0 var(--space-4) 52px;
  min-height: 36px;
  font-weight: 600;
  line-height: 24px;
  padding-top: 6px;
}
.passos li::before {
  content: counter(passo);
  position: absolute;
  left: 0; top: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-yellow);
  color: var(--on-yellow);
  font: 800 18px/1 var(--display);
  box-shadow: var(--shadow-sticker);
}
.passos li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px; top: 40px; bottom: 4px;
  width: 2px;
  background: var(--line);
}

/* ---------- Amostra ---------- */
.dica { color: var(--ink-muted); font-size: 14px; }
.carrossel {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  /* folga em cima para o hover levantar a página sem criar rolagem vertical */
  padding: var(--space-4) var(--space-4) var(--space-5);
  scroll-padding: 0 var(--space-4);
  max-width: 1080px;
  margin: 0 auto;
}
/* Barra de rolagem na identidade da marca. O Chrome ignora o estilo ::-webkit-scrollbar
   quando scrollbar-color está definido, então o padrão só vale onde não há a versão webkit. */
@supports not selector(::-webkit-scrollbar) {
  .carrossel { scrollbar-width: thin; scrollbar-color: var(--brand-deep) var(--blue-tint); }
}
.carrossel::-webkit-scrollbar { height: 10px; }
.carrossel::-webkit-scrollbar-button { display: none; }
.carrossel::-webkit-scrollbar-track {
  background: var(--blue-tint);
  border-radius: var(--radius-pill);
  margin: 0 var(--space-4);
}
.carrossel::-webkit-scrollbar-thumb {
  background: var(--brand-deep);
  border-radius: var(--radius-pill);
  border: 2px solid var(--blue-tint);
}
.carrossel::-webkit-scrollbar-thumb:hover { background: var(--blue); }
.pagina {
  flex: 0 0 68%;
  max-width: 300px;
  scroll-snap-align: start;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
  box-shadow: 0 8px 20px rgba(15, 27, 61, 0.12);
}

/* Página ampliada */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(94vw, 720px);
  max-height: 100vh;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(15, 27, 61, 0.92); }
/* Com a página ampliada aberta, o fundo não rola. A classe vem do script.js;
   :has() cobre o caso de o dialog abrir por outro caminho. */
html.sem-rolagem, html:has(.lightbox[open]) { overflow: hidden; }
html { scrollbar-gutter: stable; } /* evita o conteúdo pular quando a barra some */
.lightbox { overscroll-behavior: contain; }
.lightbox img {
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  width: auto;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  touch-action: pan-y pinch-zoom;
}
.lightbox-btn {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--brand-yellow);
  color: var(--on-yellow);
  box-shadow: var(--shadow-sticker-dark);
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease;
}
.lightbox-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-btn:disabled { opacity: 0.3; cursor: default; box-shadow: none; }
.lightbox-btn:focus-visible { outline-color: #fff; }
.lightbox-fechar { position: fixed; top: var(--space-3); right: var(--space-3); }
.lightbox-nav {
  position: fixed;
  left: 50%;
  bottom: max(var(--space-4), env(safe-area-inset-bottom));
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-2);
  background: var(--brand-deep-2);
  border: 1px solid #33447a;
  border-radius: var(--radius-pill);
}
.lightbox-contador {
  margin: 0;
  min-width: 64px;
  text-align: center;
  font: 700 17px/1 var(--display);
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.lightbox-contador [data-pos] { color: var(--brand-yellow); }

/* ---------- Mini-simulado ---------- */
#simulado { padding-top: 0; }
.simulado-grid { display: grid; gap: var(--space-6); max-width: 1000px; }
.simulado-passos { clear: both; }

/* cartão de respostas ilustrativo */
.cartao {
  width: 100%;
  max-width: 400px;
  justify-self: center;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 0 rgba(15, 27, 61, 0.08), 0 18px 40px rgba(15, 27, 61, 0.12);
  overflow: hidden;
  rotate: 1.5deg;
}
.cartao-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--brand-deep);
  color: #fff;
  font: 800 18px/1.2 var(--display);
}
.cartao-selo {
  padding: 2px var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--brand-yellow);
  color: var(--on-yellow);
  font-size: 14px;
}
.cartao-linhas {
  list-style: none;
  margin: 0;
  padding: var(--space-4);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: column;
  grid-template-rows: repeat(6, auto);
  gap: var(--space-2) var(--space-4);
}
.cartao-linhas li { display: flex; align-items: center; gap: 4px; }
.cartao-linhas b {
  width: 20px;
  font: 700 13px/1 var(--display);
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.cartao-linhas i {
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  font: 700 11px/1 var(--display);
  font-style: normal;
  color: var(--ink-muted);
}
.cartao-linhas i.marcada { background: var(--brand-yellow); border-color: var(--brand-yellow); color: var(--on-yellow); }

/* ---------- Ritmo Fibonacci ---------- */
.secao-amarela { background: var(--yellow-tint); }
.secao-amarela .legenda { color: var(--on-yellow-tint); }
.ritmo-grid { display: grid; grid-template-columns: 1fr auto; gap: var(--space-4); align-items: end; }
.ritmo-fibo { height: 260px; width: auto; margin-bottom: calc(-1 * var(--space-7)); }
.ritmo {
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
}
.ritmo li {
  flex: 1 1 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: calc(22px + var(--n) * 10px);
  padding-bottom: var(--space-1);
  border-radius: var(--radius-sm) var(--radius-sm) 4px 4px;
  background: var(--brand-deep);
  color: #fff;
  font: 700 14px/1.1 var(--display);
  text-align: center;
}

/* ---------- Oferta ---------- */
.oferta {
  position: relative;
  overflow: hidden;
  padding: var(--space-6) var(--space-5);
  background: var(--brand-deep);
  color: #fff;
  border-radius: var(--radius-lg);
}
.oferta-espiral {
  position: absolute;
  width: 300px;
  right: -90px; top: -40px;
  fill: none;
  stroke: var(--brand-yellow);
  stroke-width: 0.12;
  stroke-linecap: round;
  opacity: 0.2;
}
.oferta h2 { position: relative; color: #fff; }
.oferta-dias { display: block; color: var(--brand-yellow); }
.oferta h2 { font-size: 32px; line-height: 36px; margin-bottom: var(--space-5); }
.oferta-lista { position: relative; list-style: none; margin: 0 0 var(--space-2); padding: 0; display: grid; gap: var(--space-3); }
.oferta-lista li { display: flex; gap: var(--space-3); color: #d3e0f7; line-height: 24px; }
.oferta-lista strong { color: #fff; }
/* as duas primeiras vantagens se destacam só pela cor, sem caixa, para o card ficar mais curto */
.oferta-lista li.oferta-destaque strong { color: var(--brand-yellow); }
.oferta-fonte { position: relative; margin: var(--space-4) 0 var(--space-5); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.04em; color: #b9c3e0; }
.oferta-lista li::before {
  content: "";
  flex: none;
  width: 20px; height: 20px; margin-top: 3px;
  border-radius: 50%;
  background: var(--brand-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230F1B3D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.preco {
  position: relative;
  margin: 0 0 var(--space-4);
  font: 800 76px/1 var(--display);
  color: var(--brand-yellow);
}
.preco-moeda { font-size: 30px; vertical-align: 0.9em; margin-right: var(--space-1); }
.preco-centavos { font-size: 40px; vertical-align: 0.55em; }
/* sem JavaScript, o link #comprar ainda deixa um respiro acima do preço */
.oferta-compra { position: relative; scroll-margin-top: 25vh; }
.oferta-nota { margin: var(--space-3) 0 0; font-size: 14px; color: #b9c3e0; text-align: center; }
.bump {
  margin-top: var(--space-5);
  padding: var(--space-4);
  border: 2px dashed rgba(255, 201, 60, 0.6);
  border-radius: var(--radius-md);
  color: #e3eefc;
  font-size: 15px;
  line-height: 23px;
}
.bump p { margin: 0; }
.bump strong { color: #fff; }
.bump-lista { margin: var(--space-2) 0 0; padding-left: var(--space-5); }
.bump-lista li { margin-bottom: var(--space-2); }
.bump-lista li:last-child { margin-bottom: 0; }
.bump-lista li::marker { color: var(--brand-yellow); }
.bump-rotulo {
  font: 800 13px/16px var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-yellow);
  margin-bottom: var(--space-1) !important;
}

/* ---------- Garantia ---------- */
#garantia { padding-top: 0; }
.garantia { display: flex; gap: var(--space-5); align-items: center; }
.garantia-selo { flex: none; width: 104px; height: 104px; filter: drop-shadow(0 3px 0 rgba(15, 27, 61, 0.18)); }
.garantia h2 { margin-bottom: var(--space-2); }
.garantia p { margin: 0; }

/* ---------- FAQ ---------- */
.faq { margin-top: var(--space-5); display: grid; gap: var(--space-2); }
.faq details {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: var(--space-4) 56px var(--space-4) var(--space-4);
  font: 700 18px/24px var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: var(--space-4); top: 50%;
  translate: 0 -50%;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--ink);
  font: 800 20px/1 var(--display);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 var(--space-4) var(--space-4); margin: 0; color: var(--ink-muted); }

/* ---------- Chamada final ---------- */
.final {
  position: relative;
  overflow: hidden;
  background: var(--brand-deep);
  color: #fff;
  padding: var(--space-7) 0 0;
}
.final-raio {
  position: absolute;
  width: 320px;
  right: -60px; top: -30px;
  fill: var(--brand-yellow);
  opacity: 0.08;
}
.final h2 { color: #fff; font-size: 28px; line-height: 32px; }
.final-grid { position: relative; display: grid; gap: var(--space-4); }
.final-texto { font-size: 18px; color: #d3e0f7; }
.relogio { display: flex; gap: var(--space-3); margin: var(--space-2) 0 var(--space-5); }
.relogio div {
  flex: 1 1 0;
  min-width: 0;
  max-width: 96px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--brand-deep-2);
  border: 1px solid #33447a;
  text-align: center;
}
.relogio span { display: block; font: 800 40px/1.1 var(--display); color: var(--brand-yellow); font-variant-numeric: tabular-nums; }
.relogio small { font-size: 13px; color: #b9c3e0; }
.final-fibo { height: 300px; width: auto; justify-self: center; margin-top: var(--space-4); }

/* ---------- Rodapé ---------- */
.rodape {
  background: #0a1430;
  color: #b9c3e0;
  font-size: 13px;
  line-height: 20px;
  padding: var(--space-6) 0;
}
.rodape p { margin: 0 0 var(--space-2); }
.rodape strong { color: #fff; font-family: var(--display); font-size: 16px; }
.rodape a { color: #b9c3e0; }

/* ---------- Barra fixa (celular) ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  padding-bottom: max(var(--space-3), env(safe-area-inset-bottom));
  background: var(--brand-deep);
  color: #fff;
  box-shadow: 0 -6px 20px rgba(15, 27, 61, 0.25);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.sticky-cta.visivel { transform: none; }
.sticky-cta p { margin: 0; font: 700 16px/1.2 var(--display); }
.sticky-cta strong { color: var(--brand-yellow); font-size: 20px; }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* ---------- Fibo ao lado do texto ---------- */
.flow { display: flow-root; }
.fibo-lado {
  float: right;
  height: 180px;
  width: auto;
  margin: 0 0 var(--space-3) var(--space-3);
  shape-outside: margin-box;
}

/* ---------- Chamadas no meio da página (levam à oferta) ---------- */
.cta-fibo {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-3) var(--space-4);
  align-items: center;
  margin-top: var(--space-6);
  padding: var(--space-4);
  background: var(--blue-tint);
  border-radius: var(--radius-md);
}
.cta-fibo img { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--brand-yellow); }
.cta-fibo p { margin: 0; font-weight: 700; line-height: 22px; color: #12366b; }
.cta-fibo .btn { grid-column: 1 / -1; width: 100%; min-height: 52px; font-size: 18px; box-shadow: var(--shadow-sticker); }
.estreito-cta { max-width: 688px; }

/* ---------- Telas maiores ---------- */

@media (min-width: 760px) {
  h2 { font-size: 36px; line-height: 40px; }
  .secao { padding: 72px 0; }
  .wrap { padding: 0 var(--space-6); }

  .hero { padding-top: var(--space-7); }
  .hero h1 { font-size: 60px; line-height: 60px; letter-spacing: -1px; }
  .lead { font-size: 20px; line-height: 30px; }
  .hero .btn { width: auto; min-width: 340px; min-height: 64px; font-size: 21px; }
  .hero-visual { max-width: 520px; height: 440px; }
  .hero-fibo { height: 440px; }

  .numeros { grid-template-columns: repeat(4, 1fr); }
  .destaque { padding: var(--space-6); clear: both; }
  .destaque-numero { font-size: 96px; }
  .numeros dd { font-size: 52px; }

  .mapa li {
    grid-template-columns: 40px minmax(220px, 300px) 1fr 100px;
    grid-template-areas: "cap nome barra valor";
    align-items: center;
  }
  .mapa .barra { height: 14px; }
  .mapa .valor { text-align: right; }

  .carrossel { padding-left: var(--space-6); padding-right: var(--space-6); scroll-padding: 0 var(--space-6); }
  .pagina { flex-basis: 260px; }

  .ritmo-fibo { height: 340px; }
  .ritmo li { font-size: 16px; height: calc(30px + var(--n) * 12px); }
  .ritmo { max-width: 520px; }

  .oferta { padding: var(--space-7); }
  .oferta h2 { font-size: 40px; line-height: 44px; }
  .btn-grande { width: auto; min-width: 360px; }
  .oferta .btn-grande { width: 100%; }

  .final { padding-top: 72px; }
  .final-grid { grid-template-columns: 1fr auto; align-items: end; }
  .final-grid > div { padding-bottom: 72px; }
  .final h2 { font-size: 44px; line-height: 48px; }
  .final-fibo { height: 420px; margin-top: 0; }

  .fibo-lado { height: 300px; margin-left: var(--space-5); }
  .simulado-grid { grid-template-columns: minmax(0, 1fr) 380px; align-items: center; gap: var(--space-7); }
  .cartao-linhas { gap: var(--space-2) var(--space-5); }
  .cartao-linhas li { gap: 5px; }
  .cartao-linhas i { width: 24px; height: 24px; }
  #simulado .fibo-lado { height: 210px; }
  .cta-fibo { grid-template-columns: 64px 1fr; padding: var(--space-5); }
  .cta-fibo img { width: 64px; height: 64px; grid-row: span 2; align-self: start; }
  .cta-fibo p { font-size: 18px; line-height: 26px; }
  .cta-fibo .btn { grid-column: 2; width: auto; justify-self: start; }

  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
}

/* Desktop: texto centralizado, capa à esquerda e Fibo à direita apontando para o título */
@media (min-width: 1000px) {
  .hero-grid { display: block; }
  .hero-texto { max-width: 720px; padding: var(--space-4) 0 112px; }
  .hero h1 { font-size: 62px; line-height: 62px; }
  .hero-visual { position: absolute; inset: 0; max-width: none; height: auto; margin: 0; pointer-events: none; }
  .hero-capa { left: 0; bottom: -70px; width: 230px; }
  .hero-fibo { right: 0; bottom: -6px; height: 470px; }
}
@media (min-width: 1000px) and (max-width: 1199px) {
  .hero-capa { width: 170px; bottom: -50px; }
  .hero-fibo { height: 360px; }
}

/* ============================================================
   Animações. Tudo é desligado em prefers-reduced-motion.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {

  /* ---------- Botões ---------- */
  .btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.18s cubic-bezier(0.3, 1.6, 0.5, 1), box-shadow 0.18s ease, background-color 0.18s ease;
  }
  /* brilho que atravessa o botão */
  .btn::after {
    content: "";
    position: absolute;
    inset: -2px auto -2px 0;
    width: 45%;
    z-index: -1;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent);
    transform: translateX(-140%) skewX(-18deg);
    pointer-events: none;
  }
  .btn:hover {
    background-color: #ffd45e;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 7px 0 rgba(0, 0, 0, 0.3), 0 12px 24px rgba(255, 201, 60, 0.35);
  }
  .btn:hover::after { animation: brilho 0.7s ease forwards; }
  .btn:active {
    transform: translateY(3px) scale(0.98);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.3);
    transition-duration: 0.06s;
  }
  .cta-fibo .btn:hover, .btn-pequeno:hover { box-shadow: 0 6px 0 rgba(15, 27, 61, 0.25), 0 10px 20px rgba(255, 201, 60, 0.4); }

  /* pulso amarelo nos botões principais, a cada poucos segundos */
  /* o anel usa outline para não brigar com a sombra e o transform do hover */
  [data-pulso], .sticky-cta .btn { animation: pulso 2.8s ease-out 2s infinite; }
  [data-pulso]::after, .sticky-cta .btn::after { animation: brilho-pausa 2.8s ease 2.3s infinite; }
  [data-pulso]:focus-visible, .sticky-cta .btn:focus-visible { animation: none; }

  @keyframes brilho {
    from { transform: translateX(-140%) skewX(-18deg); }
    to   { transform: translateX(330%) skewX(-18deg); }
  }
  @keyframes brilho-pausa {
    0%        { transform: translateX(-140%) skewX(-18deg); }
    30%, 100% { transform: translateX(330%) skewX(-18deg); }
  }
  @keyframes pulso {
    0%   { outline: 3px solid rgba(255, 201, 60, 0.7); outline-offset: 0; }
    60%  { outline: 3px solid rgba(255, 201, 60, 0); outline-offset: 14px; }
    100% { outline: 3px solid rgba(255, 201, 60, 0); outline-offset: 14px; }
  }

  /* ---------- Entrada da primeira tela ---------- */
  .hero-texto > * { animation: sobe 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .hero-texto > :nth-child(1) { animation-name: cai; animation-delay: 0.05s; }
  .hero-texto > :nth-child(2) { animation-delay: 0.15s; }
  .hero-texto > :nth-child(3) { animation-delay: 0.3s; }
  .hero-texto > :nth-child(4) { animation: estoura 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) 0.5s backwards, pulso 2.8s ease-out 2s infinite; }
  .hero-texto > :nth-child(5) { animation-delay: 0.65s; }
  .hero-texto > [data-pulso]:focus-visible { animation: none; }

  .hero-capa { animation: capa-entra 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s both; }
  .hero-fibo { animation: fibo-entra 0.8s cubic-bezier(0.3, 1.4, 0.5, 1) 0.6s both, flutua 4s ease-in-out 1.4s infinite; }

  .hero-espiral, .oferta-espiral {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: desenha 2.4s ease-out 0.4s forwards;
  }
  .oferta-espiral { animation-play-state: paused; }
  .oferta.revelado .oferta-espiral { animation-play-state: running; }

  @keyframes sobe { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes cai { from { opacity: 0; transform: translateY(-14px) scale(0.9); } to { opacity: 1; transform: none; } }
  @keyframes estoura { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: none; } }
  @keyframes capa-entra { from { opacity: 0; transform: translate(-30px, 30px) rotate(-12deg); } to { opacity: 1; transform: rotate(-4deg); } }
  @keyframes fibo-entra { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
  @keyframes flutua { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
  @keyframes desenha { to { stroke-dashoffset: 0; } }

  /* ---------- Aparecer ao rolar (classes aplicadas pelo script.js) ---------- */
  .js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: calc(var(--d, 0) * 80ms);
  }
  .js .reveal.revelado { opacity: 1; transform: none; }

  .js .reveal-lado { transform: translateX(50px) rotate(4deg); }
  .js .reveal-lado.revelado { transform: none; }

  .js .reveal-pop { transform: scale(0.6) rotate(-20deg); transition-timing-function: ease, cubic-bezier(0.3, 1.6, 0.5, 1); }
  .js .reveal-pop.revelado { transform: none; }

  /* barras do ritmo crescem de baixo para cima */
  .js .ritmo li { transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s cubic-bezier(0.3, 1.4, 0.5, 1); }
  .js .ritmo li:nth-child(2) { transition-delay: 0.1s; }
  .js .ritmo li:nth-child(3) { transition-delay: 0.2s; }
  .js .ritmo li:nth-child(4) { transition-delay: 0.3s; }
  .js .ritmo li:nth-child(5) { transition-delay: 0.4s; }
  .js .ritmo.revelado li { transform: none; }

  /* a barra do destaque enche junto com a contagem do número */
  .js .destaque .destaque-barra span { transform: scaleX(0); transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s; }
  .js .destaque.revelado .destaque-barra span { transform: none; }

  /* as respostas do cartão vão sendo marcadas uma a uma */
  .js .cartao .cartao-linhas i.marcada { background: transparent; border-color: var(--line-strong); color: var(--ink-muted); transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; transition-delay: calc(var(--n, 0) * 140ms + 400ms); }
  .js .cartao.revelado .cartao-linhas i.marcada { background: var(--brand-yellow); border-color: var(--brand-yellow); color: var(--on-yellow); animation: acende 0.3s ease backwards; animation-delay: calc(var(--n, 0) * 140ms + 400ms); }
  @keyframes acende { from { transform: scale(0.4); } to { transform: none; } }

  /* ao chegar pela âncora, o botão do checkout dá um pulo para chamar atenção */
  .btn.chamando { animation: chama 0.9s cubic-bezier(0.3, 1.6, 0.5, 1); }
  @keyframes chama {
    0%, 100% { transform: none; }
    25% { transform: scale(1.08) translateY(-4px); }
    50% { transform: scale(0.97); }
    75% { transform: scale(1.04) translateY(-2px); }
  }

  /* o Fibo das chamadas acena quando aparece */
  .cta-fibo.revelado img { animation: acena 0.9s ease 0.4s; transform-origin: 50% 90%; }
  @keyframes acena {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(-14deg); }
    40% { transform: rotate(10deg); }
    60% { transform: rotate(-6deg); }
    80% { transform: rotate(3deg); }
  }

  /* FAQ: resposta desliza ao abrir */
  .faq details[open] p { animation: sobe 0.35s ease both; }
  .faq summary::after { transition: transform 0.25s ease; }
  .faq details[open] summary::after { transform: rotate(180deg); }
  .faq details { transition: border-color 0.2s ease, box-shadow 0.2s ease; }
  .faq details:hover { border-color: var(--line-strong); }

  /* amostras levantam ao passar o mouse */
  .pagina { transition: transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1), box-shadow 0.25s ease; }
  .pagina:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 16px 30px rgba(15, 27, 61, 0.2); }

  /* página ampliada: botões reagem e a troca de página desliza para o lado */
  .lightbox-btn:not(:disabled):hover { transform: scale(1.1); }
  .lightbox-btn:not(:disabled):active { transform: scale(0.94); }
  .lightbox[open] img { animation: estoura 0.3s ease both; }
  .lightbox img.vai-prox { animation: entra-direita 0.3s ease both; }
  .lightbox img.vai-ant { animation: entra-esquerda 0.3s ease both; }
  @keyframes entra-direita { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
  @keyframes entra-esquerda { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
}
