/* funil.css — Funil Estela. Design system = lofi.css do app (tema Constelação, noite).
   Mobile-first. Sem dependência externa: fontes self-hosted, zero script de terceiros. */

/* ── Fontes (mesmos woff2 do app) ─────────────────────────────────────────── */
@font-face {
  font-family: 'Space Grotesk'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url('../fonts/space-grotesk-latin-var.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/atkinson-latin-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/atkinson-latin-700.woff2') format('woff2');
}

/* ── Tokens — Constelação NOITE (referência da identidade) ────────────────── */
:root {
  --bg:          oklch(0.21 0.025 275);
  --surface:     oklch(0.25 0.027 275);
  --surface-2:   oklch(0.29 0.030 275);
  --ink:         oklch(0.94 0.010 270);
  --soft:        oklch(0.72 0.020 270);
  --faint:       oklch(0.62 0.020 270);
  --line:        oklch(1 0 0 / 0.09);
  --rail:        oklch(0.78 0.11 85 / 0.30);
  --accent:      oklch(0.78 0.11 85);
  --accent-deep: oklch(0.72 0.12 82);
  --accent-ink:  oklch(0.22 0.05 80);
  --accent-soft: oklch(0.78 0.11 85 / 0.14);
  --accent-glow: oklch(0.78 0.11 85 / 0.32);
  --warn:        oklch(0.68 0.16 30);
  --sage-bg:     oklch(0.42 0.05 190);
  --sage-ink:    oklch(0.87 0.06 185);
  --shadow:      0 2px 6px oklch(0 0 0 / 0.25), 0 14px 40px oklch(0 0 0 / 0.30);
  --r-pill: 999px;  --r-card: 18px;  --r-ctrl: 12px;
  --font-display: "Space Grotesk", sans-serif;
  --font-body:    "Atkinson Hyperlegible", sans-serif;
  --font-mono:    "JetBrains Mono", monospace;
  --maxw: 560px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body), system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  overflow-x: hidden;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Céu de fundo (sky.js) — atrás de tudo */
.sky-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* ── Shell ────────────────────────────────────────────────────────────────── */
.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 18px calc(28px + env(safe-area-inset-bottom));
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.shell.wide { max-width: 720px; }

/* ── Topo: marca + progresso em estrelas ─────────────────────────────────── */
.topbar { display: flex; align-items: center; gap: 12px; padding: 6px 0 14px; }
.brand {
  font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.3px;
  display: inline-flex; align-items: center; gap: 7px; color: var(--ink);
}
.brand .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
.topbar-spacer { flex: 1; }
.sound {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--soft);
  font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px;
  cursor: pointer; transition: border-color .16s, color .16s, opacity .3s;
}
.sound.on { border-color: var(--accent); color: var(--accent); }
/* Som já ligado: o chip encolhe pro ícone — deixa de ser convite e vira só o mudo. */
.sound.compacto { padding: 7px; }
.sound.compacto span { display: none; }
.sound[hidden] { display: none; }

/* Trilha de estrelas: 1 estrela por fase */
.stars { display: flex; align-items: center; gap: 6px; padding: 0 0 16px; }
.st {
  flex: 1; height: 3px; border-radius: 999px; background: var(--line); position: relative;
  transition: background .5s var(--ease);
}
.st.done { background: var(--rail); }
.st.now { background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.st.now::after {
  content: ''; position: absolute; right: -2px; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ── Conteúdo / transição entre telas ────────────────────────────────────── */
/* #app precisa esticar: é ele que dá altura ao .screen — sem isso os .spacer
   colapsam e as telas de texto ficam grudadas no topo. */
#app { flex: 1; display: flex; flex-direction: column; }
.screen { flex: 1; display: flex; flex-direction: column; animation: enter .34s var(--ease) both; }
/* Emenda vídeo→vídeo: a tela NÃO entra animada (senão o corte "pisca" e denuncia
   a troca). Só as opções aparecem, na cauda idle. */
.screen.emenda { animation: none; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.screen.leaving { animation: leave .18s ease-in both; }
@keyframes leave { to { opacity: 0; transform: translateY(-10px); } }

.kicker {
  font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.4px;
  color: var(--faint); margin-bottom: 10px;
}
h1 {
  font-family: var(--font-display); font-weight: 700; font-size: 25px; line-height: 1.18;
  letter-spacing: -.6px; text-wrap: pretty; margin: 0 0 8px;
}
h2 { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.3px; margin: 0 0 8px; }
.lead { color: var(--soft); margin: 0 0 20px; text-wrap: pretty; }
.lead strong { color: var(--ink); }
@media (min-width: 720px) { h1 { font-size: 29px; } }

/* ── Vídeo da Estela ─────────────────────────────────────────────────────── */
/* Largura derivada da ALTURA do viewport: o vídeo (4:5) e as opções precisam caber
   na mesma dobra — sem isso, no desktop as respostas ficam abaixo da linha d'água. */
.vwrap {
  position: relative;
  width: min(100%, calc(52dvh * 0.8));
  aspect-ratio: 4 / 5;
  margin: 0 auto 18px;
  border-radius: var(--r-card);
  overflow: hidden; background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), 0 0 60px -22px var(--accent-glow);
  cursor: pointer;
}
/* Telas baixas (paisagem, laptop pequeno): encolhe mais o vídeo antes de rolar. */
@media (max-height: 700px) { .vwrap { width: min(100%, calc(46dvh * 0.8)); } }
.vwrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* halo dourado sutil enquanto ela fala */
.vwrap::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / .05);
}
/* Estado de carregando: fundo TRANSPARENTE (o poster/rosto aparece atrás) + spinner. */
.vwrap .vload {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: transparent; transition: opacity .3s; pointer-events: none;
}
.vwrap.ready .vload { opacity: 0; }
.vspin {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid oklch(1 0 0 / .18); border-top-color: var(--accent);
  animation: spin .9s linear infinite;
  box-shadow: 0 2px 10px oklch(0 0 0 / .3);
}

/* Máscara "toque para ativar o som" — só no 1º vídeo, até a pessoa tocar. */
.vmask {
  position: absolute; inset: 0; z-index: 3; cursor: pointer; border: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: oklch(0.15 0.02 275 / .55); backdrop-filter: blur(2px);
  color: var(--ink); animation: fadeIn .3s ease;
}
.vmask[hidden] { display: none; }
.vmask-ic {
  width: 58px; height: 58px; border-radius: 999px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 8px 24px var(--accent-glow); animation: pulse 1.8s ease-in-out infinite;
}
.vmask-ic svg { width: 28px; height: 28px; }
.vmask-txt {
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .2px;
  background: oklch(0.21 0.025 275 / .72); padding: 8px 16px; border-radius: 999px;
}

/* ── Opções ──────────────────────────────────────────────────────────────── */
.opts { display: flex; flex-direction: column; gap: 10px; }
.opts.hold { opacity: 0; transform: translateY(8px); pointer-events: none; }
.opts.show { animation: optsIn .42s var(--ease) both; }
@keyframes optsIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.opt {
  width: 100%; text-align: left; padding: 15px 17px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--surface);
  color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 15.5px;
  cursor: pointer; position: relative;
  transition: border-color .16s, background .16s, transform .12s var(--ease), box-shadow .16s;
}
.opt:hover { border-color: var(--accent); background: var(--accent-soft); }
.opt:active { transform: scale(.985); }
.opt.picked {
  border-color: var(--accent); background: var(--accent-soft);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 8px 22px -12px var(--accent-glow);
}
.opt.ghost { color: var(--soft); font-weight: 500; background: transparent; }
.opt.ghost:hover { color: var(--ink); }

/* botão primário (CTA) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 17px; border-radius: 16px; border: none;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 6px 16px var(--accent-glow);
  transition: transform .12s var(--ease), box-shadow .16s, background .16s, opacity .2s;
}
.btn:hover { background: var(--accent-deep); }
.btn:active { transform: scale(.975); }
.btn:disabled { opacity: .45; cursor: default; box-shadow: none; }
.btn.neutral { background: transparent; color: var(--soft); border: 1.5px solid var(--line); box-shadow: none; }
.btn.neutral:hover { color: var(--ink); border-color: var(--accent); background: transparent; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 22px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 12px; }
.card.glow { box-shadow: var(--shadow), 0 0 70px -30px var(--accent-glow); border-color: var(--rail); }
.mono-label {
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--faint);
}

/* linhas de resumo (nível, meta, rotina…) */
.rows { display: flex; flex-direction: column; gap: 0; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 11px 0; }
.row + .row { border-top: 1px solid var(--line); }
.row dt { color: var(--soft); font-size: 14px; margin: 0; }
.row dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 15px; text-align: right; }
.row dd.hi { color: var(--accent); }

/* lista de features com estrela */
.feats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.feats li { display: flex; gap: 12px; align-items: flex-start; }
.feats .fstar {
  flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; color: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent-glow));
}
.feats .ftxt { flex: 1; }
.feats .ftitle { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; display: block; }
.feats .fsub { color: var(--soft); font-size: 14.5px; }

/* chips (interesses, dias) */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; }
.chip {
  padding: 10px 15px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  cursor: pointer; transition: border-color .16s, background .16s, transform .12s, color .16s;
}
.chip:hover { border-color: var(--accent); }
.chip:active { transform: scale(.96); }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chips.days { justify-content: space-between; gap: 6px; }
.chips.days .chip { flex: 1; min-width: 0; padding: 14px 0; text-align: center; font-family: var(--font-mono); font-size: 13px; }

/* ── Input ───────────────────────────────────────────────────────────────── */
.field { margin-bottom: 8px; }
.field input {
  width: 100%; padding: 16px; border-radius: var(--r-ctrl);
  background: var(--surface-2); border: 1.5px solid var(--line); color: var(--ink);
  font-family: var(--font-body); font-size: 17px;
  transition: border-color .16s, box-shadow .16s;
}
.field input::placeholder { color: var(--faint); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input.err { border-color: var(--warn); }
.err-msg { color: var(--warn); font-size: 13.5px; min-height: 1.2em; margin: 6px 0 0; }
.micro { color: var(--faint); font-size: 13px; margin: 14px 0 0; text-align: center; }

/* ── Loading (constelação) ───────────────────────────────────────────────── */
.loading { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; padding-bottom: 40px; }
.loading canvas { width: 260px; height: 260px; max-width: 72vw; max-height: 72vw; }
.loading .lbl { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1.6px; color: var(--soft); min-height: 1.4em; transition: opacity .3s; }
.loading .lbl.swap { opacity: 0; }
.loading .title { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
/* variante com barras (E86) */
.bars { width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 14px; }
.bar-item .bar-top { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 1.1px; color: var(--faint); margin-bottom: 6px; }
.bar-track { height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 999px; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); transition: width .12s linear; }
.bar-item.done .bar-top { color: var(--accent); }

/* ── Estimativa: curva-constelação ───────────────────────────────────────── */
.chart { width: 100%; height: auto; display: block; margin: 6px 0 4px; overflow: visible; }
.chart .curve {
  fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round;
  filter: drop-shadow(0 0 6px var(--accent-glow));
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
  animation: draw 1.6s var(--ease) .15s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart .gnode { opacity: 0; animation: nodeIn .5s var(--ease) forwards; }
@keyframes nodeIn { to { opacity: 1; } }
.chart .node { fill: var(--accent); filter: drop-shadow(0 0 5px var(--accent-glow)); }
.chart .node.dim { fill: var(--surface-2); stroke: var(--rail); stroke-width: 1.5; filter: none; }
.chart .nlabel { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .6px; fill: var(--faint); text-transform: uppercase; }
.chart .nlabel.hi { fill: var(--accent); }
.chart .axis { stroke: var(--line); stroke-width: 1; }
.big-date { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--accent); letter-spacing: -.5px; line-height: 1.1; }

/* ── Prova social ────────────────────────────────────────────────────────── */
.bignum { font-family: var(--font-display); font-weight: 700; font-size: 44px; color: var(--accent); line-height: 1; letter-spacing: -1px; }
.rating { display: inline-flex; gap: 3px; color: var(--accent); margin-top: 6px; }
.rating svg { width: 17px; height: 17px; }
.quote { position: relative; padding-left: 20px; }
.quote::before {
  content: '“'; position: absolute; left: -2px; top: -12px;
  font-family: var(--font-display); font-size: 46px; color: var(--accent); opacity: .55; line-height: 1;
}
.quote p { margin: 0 0 12px; font-size: 16.5px; line-height: 1.55; }
.quote .who { color: var(--faint); font-size: 13.5px; }

/* ── Carrossel de telas do app ───────────────────────────────────────────── */
.carousel { display: flex; flex-direction: column; align-items: center; gap: 16px; flex: 1; justify-content: center; }
.carousel .slides { position: relative; width: 240px; height: 480px; }
.carousel .slide { position: absolute; inset: 0; opacity: 0; transform: scale(.96); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.carousel .slide.on { opacity: 1; transform: none; }
.carousel .cap { font-family: var(--font-display); font-weight: 700; font-size: 16px; text-align: center; min-height: 2.6em; transition: opacity .3s; }
.carousel .cap.swap { opacity: 0; }
.dots { display: flex; gap: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .3s, width .3s; }
.dots i.on { background: var(--accent); width: 18px; border-radius: 999px; }

/* ── Mockup de celular (telas do app) ────────────────────────────────────── */
.phone {
  width: 100%; height: 100%; border-radius: 26px; border: 1px solid var(--line);
  background: var(--bg); box-shadow: var(--shadow), 0 0 70px -30px var(--accent-glow);
  padding: 14px 12px; overflow: hidden; display: flex; flex-direction: column; gap: 10px;
  font-size: 11px; line-height: 1.45; text-align: left;
}
.phone .p-kicker { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 1px; color: var(--faint); text-transform: uppercase; }
.phone .p-h { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -.3px; }
.phone .p-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.phone .p-star-row { display: flex; gap: 5px; align-items: center; }
.phone .p-star { width: 13px; height: 13px; color: var(--rail); }
.phone .p-star.on { color: var(--accent); filter: drop-shadow(0 0 4px var(--accent-glow)); }
.phone .p-muted { color: var(--faint); font-size: 9.5px; }
.phone .p-text { color: var(--soft); font-size: 10.5px; line-height: 1.7; }
.phone .p-text mark { background: oklch(0.50 0.09 85); color: oklch(0.96 0.02 90); border-radius: 3px; padding: 0 3px; }
.phone .p-btn { background: var(--accent); color: var(--accent-ink); border-radius: 10px; padding: 9px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 11px; }
.phone .p-bubble { border-radius: 12px; padding: 8px 10px; max-width: 82%; font-size: 10.5px; }
.phone .p-bubble.them { background: var(--surface); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.phone .p-bubble.me { background: var(--accent-soft); border: 1px solid var(--rail); align-self: flex-end; border-bottom-right-radius: 4px; color: var(--ink); }
.phone .p-score { display: flex; align-items: center; gap: 8px; }
.phone .p-ring { width: 42px; height: 42px; flex: 0 0 auto; }
.phone .p-sounds { display: flex; gap: 4px; flex-wrap: wrap; }
.phone .p-snd { font-family: var(--font-mono); font-size: 9px; padding: 3px 6px; border-radius: 6px; background: var(--surface-2); color: var(--soft); }
.phone .p-snd.bad { background: oklch(0.42 0.07 80); color: oklch(0.90 0.08 85); }
.phone .p-snd.good { background: var(--sage-bg); color: var(--sage-ink); }
.phone .p-sky { display: flex; flex-direction: column; gap: 7px; }
.phone .p-skyrow { display: flex; align-items: center; gap: 7px; }
.phone .p-dot { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--rail); flex: 0 0 auto; }
.phone .p-dot.on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 6px var(--accent-glow); }
.phone .p-tabs { margin-top: auto; display: flex; justify-content: space-around; border-top: 1px solid var(--line); padding-top: 8px; }
.phone .p-tab { font-family: var(--font-display); font-size: 8.5px; color: var(--faint); }
.phone .p-tab.on { color: var(--accent); font-weight: 700; }

/* ── Selo de garantia ────────────────────────────────────────────────────── */
.seal { width: 132px; height: 132px; margin: 0 auto 18px; position: relative; display: grid; place-items: center; }
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.seal .seal-txt { fill: var(--accent); font-family: var(--font-mono); font-size: 8.2px; letter-spacing: 2.6px; text-transform: uppercase; }
.seal .seal-core { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--accent); line-height: 1; text-align: center; }
.seal .seal-core small { display: block; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 1.4px; color: var(--soft); margin-top: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Página de oferta ────────────────────────────────────────────────────── */
.offer { padding-bottom: 120px; }
.offer section { margin-top: 34px; }
.offer .sec-kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.offer h2 { font-size: 22px; margin-bottom: 14px; }
.hero-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
/* width:100% é obrigatório: <button> resolve width auto como fit-content mesmo
   com display:flex — sem isso cada card fica do tamanho do próprio texto.
   color TAMBÉM é obrigatório: <button> não herda a cor do body (default preto). */
.plan {
  width: 100%; text-align: left;
  color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--r-card); padding: 18px; background: var(--surface);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer;
  transition: border-color .16s, background .16s, transform .12s;
}
.plan:active { transform: scale(.985); }
.plan + .plan { margin-top: 10px; }
.plan:hover { border-color: var(--accent); }
.plan.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
.plan > span { display: flex; flex-direction: column; gap: 3px; text-align: left; min-width: 0; }
.plan .pname { display: block; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.plan .pdet { display: block; color: var(--faint); font-size: 13px; }
.plan .pprice { flex: 0 0 auto; font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--accent); text-align: right; white-space: nowrap; }
.plan .pper { display: block; font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--faint); }
/* O selo é IRMÃO do .plan (não filho) — o seletor precisa partir do wrapper. */
.plan-wrap { position: relative; }
.plan-wrap + .plan-wrap { margin-top: 10px; }
.plan-wrap:has(.selo) { margin-top: 22px; }
.plan-wrap .selo {
  position: absolute; top: -9px; left: 14px; z-index: 2;
  font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 1px;
  background: var(--accent); color: var(--accent-ink); padding: 3px 9px; border-radius: 999px;
  box-shadow: 0 4px 12px var(--accent-glow);
}
.trust { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 9px; }
.trust li { display: flex; gap: 9px; align-items: flex-start; color: var(--soft); font-size: 14.5px; }
.trust li span { flex: 1; }
.trust li strong { color: var(--ink); }
.trust .tick { width: 16px; height: 16px; margin-top: 4px; color: var(--accent); flex: 0 0 auto; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--r-ctrl); padding: 14px 16px; background: var(--surface);
  transition: border-color .16s;
}
.faq details + details { margin-top: 8px; }
.faq details[open] { border-color: var(--rail); }
.faq summary {
  cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 15px;
  list-style: none; display: flex; justify-content: space-between; gap: 10px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--soft); margin: 10px 0 0; font-size: 15px; }
.appshots { display: grid; gap: 18px; }
.appshot { display: flex; gap: 16px; align-items: center; }
.appshot .mini { width: 108px; height: 216px; flex: 0 0 auto; }
.appshot .mini .phone { padding: 9px 8px; font-size: 8px; border-radius: 18px; gap: 6px; }
.appshot .mini .phone .p-h { font-size: 10px; }
.appshot .mini .phone .p-text { font-size: 7.5px; line-height: 1.6; }
.appshot .mini .phone .p-kicker { font-size: 6px; }
.appshot .mini .phone .p-muted, .appshot .mini .phone .p-snd, .appshot .mini .phone .p-tab { font-size: 6.5px; }
.appshot .mini .phone .p-bubble { font-size: 7.5px; }
.appshot .mini .phone .p-btn { font-size: 8px; padding: 6px; }
.appshot .desc .h { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.appshot .desc p { color: var(--soft); font-size: 14.5px; margin: 0; }

/* CTA fixo (clearance medido no JS, como a .aula-foot do app) */
.cta-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 62%, transparent);
  display: flex; justify-content: center;
}
.cta-dock .inner { width: 100%; max-width: 720px; }
.cta-dock .sub { text-align: center; color: var(--faint); font-size: 12.5px; margin-top: 7px; }

/* ── Instalar o app (atalho de 1 clique) ─────────────────────────────────── */
#inst-card { text-align: center; }
#inst-card .btn[hidden] { display: none; }
#inst-msg { margin-top: 12px; font-size: 13.5px; line-height: 1.5; }
#inst-msg strong { color: var(--ink); }

/* ── Assinatura (tela de obrigado) ───────────────────────────────────────── */
.assinatura { margin-top: 18px; font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.5; }
.assinatura .mono-label { font-weight: 400; }

/* ── Descarte ────────────────────────────────────────────────────────────── */
.exit-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; }
.exit-star { width: 54px; height: 54px; color: var(--accent); animation: pulse 3s ease-in-out infinite; filter: drop-shadow(0 0 12px var(--accent-glow)); margin-bottom: 10px; }

/* ── Overlays (saída EX1 · retomar sessão) — fundo borrado ───────────────── */
.overlay {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px;
  background: oklch(0.15 0.02 275 / .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: fadeIn .25s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.overlay .card { max-width: 420px; width: 100%; animation: enter .3s var(--ease) both; }
.overlay[hidden] { display: none; }

/* ── Modal de retomar sessão ─────────────────────────────────────────────── */
.resume-card { padding: 30px 24px; }
.resume-card .resume-ic {
  width: 50px; height: 50px; margin: 0 auto 16px; color: var(--accent);
  filter: drop-shadow(0 0 14px var(--accent-glow));
}
.resume-card .resume-ic svg { width: 100%; height: 100%; display: block; animation: pulse 2.6s ease-in-out infinite; }
.resume-card h2 { font-size: 22px; margin: 0 0 8px; }
.resume-card .lead { margin: 0 0 22px; }
.resume-card .btn { width: 100%; }

.center { text-align: center; }
.mt { margin-top: 16px; }
.mt-lg { margin-top: 26px; }
.spacer { flex: 1; min-height: 12px; }

/* ── Reduced motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .chart .curve { stroke-dashoffset: 0; }
  .chart .gnode { opacity: 1; }
}
