/* QUIZ CAMPEÃO — tema. Troque SÓ as variáveis de :root pra mudar a cara do funil. */
:root {
  /* V3: identidade Concepção B (Branding Book v2.3) nas variáveis da skill */
  --bg: #F4EFE7;
  --surface: #FFFFFF;
  --ink: #17252B;
  --muted: #3C4A4F;
  --line: #C9C2B6;
  --brand: #0E4552;        /* petróleo */
  --brand-ink: #ffffff;
  --brand-soft: #D7E6E7;   /* bruma */
  --bad: #9E2F1B;
  --mid: #8A5A12;
  --good: #1E5E3A;
  --radius: 16px;
  --font: "Atkinson Hyperlegible", Arial, sans-serif;
  --display: var(--font);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.45; }
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
img { max-width: 100%; display: block; }
b { font-weight: 700; }

/* header + progresso */
.qhead { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 10px 12px 6px; }
.back { font-size: 30px; line-height: 1; color: var(--muted); width: 44px; height: 44px; }
.brand { text-align: center; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; }
.brand img { height: 26px; margin: 0 auto; }
.brand.big { font-size: 18px; margin: 8px 0 14px; }
.brand.big img { height: 34px; }
.track { height: 5px; background: var(--line); margin: 0 16px; border-radius: 99px; overflow: hidden; }
.fill { height: 100%; background: var(--brand); border-radius: 99px; transition: width .35s ease; }

/* tela */
.screen { flex: 1; padding: 20px 16px 120px; display: flex; flex-direction: column; gap: 14px; animation: in .22s ease; }
@keyframes in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
h1 { font-family: var(--display); font-size: 25px; line-height: 1.2; font-weight: 800; text-align: center; letter-spacing: -.01em; }
h2 { font-family: var(--display); font-size: 21px; line-height: 1.25; font-weight: 800; text-align: center; margin-top: 18px; }
h3 { font-size: 18px; font-weight: 800; text-align: center; }
.kicker { text-align: center; color: var(--brand); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.sub, .hint { text-align: center; color: var(--muted); }
.hint { font-size: 14px; margin-top: -6px; }
.body { text-align: center; color: var(--ink); }
.micro { text-align: center; font-size: 13px; color: var(--muted); }
.source { font-size: 12px; color: var(--muted); text-align: center; }
.legal { font-size: 11px; color: var(--muted); line-height: 1.4; }
.center { text-align: center; }
.hero-img { width: 100%; max-height: 300px; object-fit: contain; border-radius: var(--radius); margin: 0 auto; }

/* opções */
.opts { display: flex; flex-direction: column; gap: 10px; }
.opts.grid { display: grid; grid-template-columns: 1fr 1fr; }
.opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 14px 16px; background: var(--surface);
  border: 2px solid transparent; border-radius: var(--radius); text-align: left; font-weight: 600; transition: border-color .15s, background .15s, transform .08s; }
.opt:active { transform: scale(.985); }
.opt small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.opt.sel { border-color: var(--brand); background: var(--brand-soft); }
.opt.has-img { flex-direction: column; text-align: center; padding: 10px; }
.opt.has-img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.opts:not(.grid) .opt.has-img { flex-direction: row; text-align: left; }
.opts:not(.grid) .opt.has-img img { width: 56px; height: 56px; }
.opt.check { padding-right: 48px; }
.box { position: absolute; right: 16px; width: 22px; height: 22px; border: 2px solid var(--line); border-radius: 6px; background: var(--bg); }
.opt.sel .box { background: var(--brand); border-color: var(--brand); }
.opt.sel .box::after { content: "✓"; color: var(--brand-ink); font-size: 14px; font-style: normal; position: absolute; inset: 0; display: grid; place-items: center; }

/* statement */
.quote { font-size: 21px; font-weight: 700; line-height: 1.3; text-align: center; padding: 22px 18px; background: var(--surface); border-radius: var(--radius); }
.scale { display: grid; gap: 8px; }
.scale .opt { justify-content: center; text-align: center; min-height: 52px; }

/* inputs */
.field { position: relative; }
.field input[type=number], .field input[type=text], .field input[type=email] { width: 100%; font: inherit; font-size: 22px; font-weight: 700; text-align: center; padding: 18px 16px; border: 2px solid var(--line); border-radius: var(--radius); outline: none; background: var(--bg); color: var(--ink); }
.field input:focus { border-color: var(--brand); }
.unit { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.why { background: var(--surface); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--muted); }
.err { color: var(--bad); font-size: 14px; text-align: center; }
.consent { display: flex; gap: 10px; font-size: 13px; color: var(--muted); align-items: flex-start; }
.consent input { margin-top: 3px; accent-color: var(--brand); }

/* CTA fixo */
.cta-wrap { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); }
.cta-wrap .btn { max-width: 448px; margin: 0 auto; display: block; }
.cta-wrap.static { position: static; background: none; padding: 6px 0; }
.btn { width: 100%; min-height: 56px; padding: 16px; border-radius: 99px; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 17px; box-shadow: 0 8px 22px -8px var(--brand); }
.btn:disabled { opacity: .4; box-shadow: none; cursor: default; }
.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }

/* info / social / summary */
.stat { text-align: center; }
.stat b { display: block; font-size: 46px; line-height: 1; color: var(--brand); font-weight: 900; }
.stat span { color: var(--muted); }
.ticks { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--good); color: #fff; font-size: 12px; display: grid; place-items: center; font-weight: 900; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats div { background: var(--surface); border-radius: 12px; padding: 12px 6px; text-align: center; }
.stats b { display: block; font-size: 20px; font-weight: 900; color: var(--brand); }
.stats span { font-size: 12px; color: var(--muted); }
.review { display: flex; gap: 12px; background: var(--surface); border-radius: var(--radius); padding: 14px; font-size: 14px; }
.review img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.stars { color: #f5b301; letter-spacing: 2px; }
.who { color: var(--muted); font-size: 12px; margin-top: 4px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.card { background: var(--surface); border-radius: 12px; padding: 12px; }
.card span { display: block; font-size: 12px; color: var(--muted); }
.card b { font-size: 15px; }
.gauge { background: var(--surface); border-radius: var(--radius); padding: 16px; }
.gauge-bar { position: relative; height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--good), var(--mid), var(--bad)); margin: 10px 0 8px; }
.gauge-bar i { position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 5px solid var(--ink); transform: translate(-50%, -50%); }
.gauge-l { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.note { margin-top: 10px; font-size: 14px; }

/* projeção */
.chart { position: relative; background: var(--surface); border-radius: var(--radius); padding: 18px 12px 34px; }
.chart svg { width: 100%; height: 170px; overflow: visible; }
.draw { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.6s .2s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.tag { position: absolute; font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: var(--ink); color: var(--bg); }
.t1 { left: 14px; top: 8px; } .t2 { right: 12px; bottom: 44px; background: var(--good); color: #fff; }
.axis { position: absolute; left: 14px; right: 14px; bottom: 10px; display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 700; }

/* loading */
.ring { position: relative; width: 150px; height: 150px; margin: 10px auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .bg { stroke: var(--line); } .ring .fg { stroke: var(--brand); stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; font-weight: 900; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; gap: 10px; align-items: center; color: var(--muted); transition: color .2s; }
.steps li i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.steps li.done { color: var(--ink); font-weight: 600; }
.steps li.done i { background: var(--good); border-color: var(--good); }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: grid; align-items: end; z-index: 10; }
.modal[hidden] { display: none; }
.sheet { background: var(--bg); border-radius: 22px 22px 0 0; padding: 22px 16px 28px; max-width: 480px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }

/* paywall */
.sticky { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 13px; }
.sticky .btn { width: auto; min-height: 40px; padding: 8px 16px; font-size: 14px; animation: none; box-shadow: none; }
.timer { color: var(--bad); font-variant-numeric: tabular-nums; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ba > div { background: var(--surface); border-radius: var(--radius); padding: 12px; }
.ba-h { font-weight: 800; text-align: center; margin-bottom: 8px; }
.ba-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; margin-bottom: 8px; }
.ba-r { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; margin-top: 6px; }
.ba-r b { font-size: 14px; } .bad { color: var(--bad); } .good { color: var(--good); }
.goals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.goals div { background: var(--surface); border-radius: 12px; padding: 10px 12px; }
.goals span { display: block; font-size: 12px; color: var(--muted); }
.promo { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--brand-soft); border: 2px dashed var(--brand); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.code { font-weight: 900; background: var(--bg); padding: 4px 10px; border-radius: 8px; }
.plans { display: flex; flex-direction: column; gap: 10px; }
.plan { position: relative; display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 16px 14px; border: 2px solid var(--line); border-radius: var(--radius); text-align: left; background: var(--bg); }
.plan.sel { border-color: var(--brand); background: var(--brand-soft); }
.plan .badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 99px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); }
.plan.sel .radio { border: 7px solid var(--brand); }
.pl-name small { display: block; color: var(--muted); font-size: 13px; }
.perday { text-align: right; display: flex; flex-direction: column; }
.perday s { color: var(--muted); font-size: 12px; }
.perday b { font-size: 20px; font-weight: 900; }
.perday small { font-size: 11px; color: var(--muted); }
.trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.trust span::before { content: "🔒 "; }
.press { text-align: center; color: var(--muted); font-size: 13px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.guarantee { background: var(--surface); border-radius: var(--radius); padding: 18px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.seal { width: 84px; }
.s-paywall { padding-bottom: 40px; }
.s-cover { justify-content: center; padding-bottom: 40px; }
.s-cover h1 { font-size: 28px; }
.timer-inline { font-weight: 900; color: var(--bad); font-variant-numeric: tabular-nums; }
.bump { display: flex; gap: 12px; align-items: flex-start; border: 2px dashed var(--good); border-radius: 12px; padding: 12px 14px; font-size: 14px; background: var(--surface); }
.bump input { width: 22px; height: 22px; accent-color: var(--good); margin-top: 1px; flex: none; }
.bump small { display: block; color: var(--muted); }
.renewal { margin-top: -4px; }
.how { list-style: none; counter-reset: h; display: flex; flex-direction: column; gap: 12px; }
.how li { counter-increment: h; position: relative; padding-left: 44px; display: flex; flex-direction: column; }
.how li::before { content: counter(h); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 900; display: grid; place-items: center; }
.how li span { color: var(--muted); font-size: 14px; }
.repeat { border-top: 1px solid var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 14px; }
.cards .card span { display: block; margin-top: 4px; }
/* seções nomeadas da barra */
.sections { display: flex; align-items: center; gap: 4px; margin: 0 16px 6px; }
.sections i { flex: 1; height: 4px; border-radius: 99px; background: var(--line); }
.sections i.done, .sections i.on { background: var(--brand); }
.sections span { display: none; }
.sections:has(i) + .track { display: none; }
.sections { flex-wrap: wrap; }
.sections span { display: block; width: 100%; order: -1; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
/* date */
.dsel { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 8px; }
.dsel select { font: inherit; font-size: 17px; font-weight: 700; padding: 16px 10px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); appearance: none; text-align: center; }
.dsel select:focus { border-color: var(--brand); outline: none; }
/* upload */
.drop { display: grid; place-items: center; width: 190px; height: 190px; margin: 4px auto; border-radius: 50%; border: 2px dashed var(--line); overflow: hidden; cursor: pointer; }
.drop .cam { font-size: 44px; }
.drop .prev { width: 100%; height: 100%; object-fit: cover; }
.skip { color: var(--muted); font-size: 14px; text-align: center; padding: 8px; position: relative; z-index: 2; margin-bottom: 70px; }
/* cardpick */
.cards-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.tcard { display: flex; flex-direction: column; gap: 6px; align-items: center; transition: transform .5s, opacity .4s; }
.tcard img { width: 100%; aspect-ratio: 2/3.3; object-fit: cover; border-radius: 10px; box-shadow: 0 8px 24px -10px var(--brand); }
.tcard span { font-size: 12px; color: var(--muted); }
.tcard.flip { transform: translateY(-6px) scale(1.04); }
.tcard.flip img { animation: flip .6s ease; box-shadow: 0 0 30px -4px var(--gold, #f5b301); }
.tcard.dim { opacity: .35; }
@keyframes flip { 0% { transform: rotateY(90deg); } 100% { transform: rotateY(0); } }
.reveal { text-align: center; display: flex; flex-direction: column; gap: 8px; animation: in .4s ease; }
.reveal .big { font-size: 54px; font-weight: 900; line-height: 1; color: var(--gold, #f5b301); }

/* auxílio de e-mail */
.sugg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -4px; }
.chip { padding: 9px 12px; border-radius: 99px; background: var(--surface); border: 1.5px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); }
.chip span { color: var(--muted); font-weight: 400; }
.chip:active { border-color: var(--brand); }
.typo { background: var(--brand-soft); border: 1.5px solid var(--brand); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; text-align: center; }
.typo div { display: flex; gap: 8px; justify-content: center; }
.typo .yes { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
