/* ============ Paleta (mesma da página antiga) ============ */
:root {
  --bg: hsl(30 60% 97%);
  --cover-bg: #FFF5EB;
  --fg: hsl(25 40% 18%);
  --card: #fff;
  --primary: hsl(25 100% 50%);       /* coral/laranja */
  --primary-10: hsl(25 100% 50% / .10);
  --primary-30: hsl(25 100% 50% / .30);
  --pessego: hsl(37 100% 85%);
  --accent: hsl(45 100% 65%);
  --muted: hsl(35 50% 93%);
  --muted-fg: hsl(25 25% 45%);
  --border: hsl(30 40% 88%);
  --green: hsl(145 63% 42%);
  --green-dark: hsl(145 63% 36%);
  --green-10: hsl(145 63% 42% / .10);
  --green-soft: #dcfce7;
  --green-line: #86efac;
  --red: hsl(0 84% 60%);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: Poppins, system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
b, strong { font-weight: 700; }

.shell { height: 100dvh; max-width: 512px; margin: 0 auto; display: flex; flex-direction: column; overflow: hidden; background: var(--bg); position: relative; }
.scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
#screen { min-height: 100%; display: flex; flex-direction: column; }

/* ============ Topo / progresso ============ */
.topbar { flex-shrink: 0; padding: 12px 16px 8px; background: var(--bg); }
.topbar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.back { padding: 4px; margin-left: -4px; color: var(--muted-fg); }
.topbar-logo { height: 44px; object-fit: contain; }
.step-count { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted-fg); }
.track { height: 8px; width: 100%; border-radius: 99px; background: var(--border); overflow: hidden; }
.fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .5s cubic-bezier(0,0,.2,1); }

/* ============ Layout das telas ============ */
.page { padding: 28px 20px 32px; display: flex; flex-direction: column; gap: 16px; animation: fadeUp .35s ease-out both; }
.page.center { align-items: center; text-align: center; }
.page.tight { padding-top: 20px; }
.h2 { font-size: 24px; line-height: 1.25; font-weight: 800; text-align: center; }
.h2.sm { font-size: 20px; }
.sub { font-size: 14px; color: var(--muted-fg); text-align: center; margin-top: -6px; line-height: 1.45; }
.hl { color: var(--primary); font-weight: 800; }
.hl-green { color: var(--green); font-weight: 800; }
.muted { color: var(--muted-fg); }
.big-emoji { font-size: 48px; line-height: 1; }

/* ============ Botões ============ */
.btn {
  width: 100%; border-radius: 16px; padding: 16px 24px; font-size: 18px; line-height: 1.5; font-weight: 700;
  background: var(--primary); color: #fff; transition: transform .3s, box-shadow .3s, opacity .2s; text-align: center; display: block; text-decoration: none;
}
.btn:hover { transform: scale(1.02); box-shadow: 0 6px 20px var(--primary-30); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-green { background: var(--green); box-shadow: 0 4px 15px hsl(145 63% 42% / .4); animation: pulseScale 2s ease-in-out infinite; }
.btn-green:hover { background: var(--green-dark); }
.btn small { display: block; font-size: 12px; font-weight: 500; opacity: .9; }

/* ============ Opções ============ */
.opts { display: flex; flex-direction: column; gap: 12px; }
.opt {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 16px; border-radius: 12px;
  border: 2px solid var(--border); background: var(--card); transition: all .2s; position: relative;
}
@media (hover: hover) { .opt:hover { border-color: var(--primary); background: hsl(37 100% 85% / .3); } }
.opt.selected { border-color: var(--primary); background: hsl(37 100% 85% / .6); box-shadow: 0 0 0 3px var(--primary-30); }
.opt:active { transform: scale(.98); }
.opt-emoji { font-size: 24px; line-height: 1; flex-shrink: 0; }
.opt-text { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.opt-text b { font-weight: 700; }
.opt-text small { font-size: 13px; color: var(--muted-fg); font-weight: 400; line-height: 1.35; }
.opt .check { margin-left: auto; width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--border); flex-shrink: 0; display: grid; place-items: center; transition: all .2s; }
.opt.selected .check { background: var(--primary); border-color: var(--primary); }
.opt.selected .check::after { content: "✓"; color: #fff; font-size: 13px; font-weight: 800; }
.opts.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opts.grid2 .opt { flex-direction: column; padding: 12px 8px; gap: 8px; text-align: center; }
.opts.grid2 .opt img { width: 112px; height: 112px; object-fit: cover; border-radius: 8px; }
.opts.grid2 .opt-text { font-size: 14px; }
.opts.compact .opt { padding: 9px 12px; gap: 8px; font-size: 14px; }
.opts.compact .opt-emoji { font-size: 18px; }

.areas { display: flex; gap: 12px; align-items: stretch; }
.areas > img { width: 42%; flex-shrink: 0; border-radius: 10px; object-fit: cover; }
.areas .opts { flex: 1; gap: 8px; }

/* ============ Capa ============ */
.cover { background: var(--cover-bg); display: flex; flex-direction: column; flex: 1; padding: 12px 16px 14px; gap: 9px; }
.cover-logo { height: 40px; object-fit: contain; margin: 0 auto; }
.badge-alert { align-self: center; background: #fff; border: 1px solid var(--border); border-radius: 99px; padding: 4px 12px; font-size: 11px; font-weight: 700; color: var(--primary); box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.cover-h1 { text-align: center; font-size: 21px; line-height: 1.12; font-weight: 900; }
.cover-sub { text-align: center; font-size: 13px; color: var(--muted-fg); line-height: 1.35; padding: 0 6px; }
.cover-hero { position: relative; flex: 1; min-height: 240px; }
.cover-hero .glow { display: none; /* desligado: a foto atual tem fundo creme opaco e o brilho criava um "quadro" em volta */ position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 85%; height: 80%; border-radius: 50%; background: radial-gradient(circle, rgba(255,170,60,.28) 0%, rgba(255,170,60,0) 68%); }
.cover-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  /* foto com fundo creme: bordas laterais e de cima esmaecem para fundir com a capa */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 6%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 6%);
  mask-composite: intersect; }
.chip-doc { position: absolute; left: 4px; top: 4px; z-index: 2; background: rgba(255,255,255,.92); backdrop-filter: blur(4px); border-radius: 99px; padding: 4px 12px 4px 6px; display: flex; align-items: center; gap: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.chip-doc b { display: block; font-size: 11px; font-weight: 900; line-height: 1; }
.chip-doc small { display: block; font-size: 8px; font-weight: 600; color: var(--muted-fg); letter-spacing: .05em; }
.chip-price { position: absolute; right: 8px; top: 52%; z-index: 2; background: var(--primary); color: #fff; font-size: 11px; font-weight: 900; padding: 4px 10px; border-radius: 99px; box-shadow: 0 0 0 2px var(--cover-bg), 0 4px 12px rgba(0,0,0,.18); white-space: nowrap; }
.proof { text-align: center; font-size: 11.5px; color: var(--muted-fg); line-height: 1.35; }
.proof b { color: var(--green); }
.trust { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: 10.5px; color: var(--muted-fg); }
.trust span::before { content: "✓ "; color: var(--green); font-weight: 800; }

/* ============ Cards genéricos ============ */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: 0 2px 10px rgba(80,40,10,.05); width: 100%; }
.card-green { background: var(--green-soft); border: 1px solid var(--green-line); border-radius: 16px; padding: 20px; width: 100%; }
.stat { font-size: 52px; font-weight: 900; color: var(--primary); line-height: 1; }
.icon-circle { width: 64px; height: 64px; border-radius: 50%; background: var(--pessego); display: grid; place-items: center; font-size: 30px; margin: 0 auto; }
.note { font-size: 14px; line-height: 1.5; color: var(--muted-fg); }

.check-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--green-line); background: #f0fdf4; border-radius: 12px; padding: 14px 16px; font-size: 14px; font-weight: 600; }
.check-row::before { content: "✓"; color: #16a34a; font-weight: 800; font-size: 18px; }

.howto { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.howto .card { position: relative; padding: 18px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.howto .num { position: absolute; top: -12px; right: -8px; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; box-shadow: 0 4px 10px var(--primary-30); }
.howto img { width: 44px; height: 44px; object-fit: contain; }
.howto .ico { font-size: 30px; line-height: 44px; }
.howto b { font-size: 14px; line-height: 1.2; }
.howto small { font-size: 12px; color: var(--muted-fg); line-height: 1.4; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.compare > div { border-radius: 14px; padding: 14px 10px; text-align: center; }
.compare .bad { background: #fff1f1; border: 1px solid #fecaca; }
.compare .good { background: var(--green-soft); border: 2px solid var(--green); }
.compare .lbl { font-size: 12px; font-weight: 700; color: var(--muted-fg); }
.compare .val { font-size: 22px; font-weight: 900; margin: 4px 0; }
.compare .bad .val { color: var(--red); text-decoration: line-through; }
.compare .good .val { color: var(--green); }
.compare small { font-size: 11px; color: var(--muted-fg); display: block; line-height: 1.3; }

/* ============ Números (peso/altura) ============ */
.big-num { font-size: 60px; font-weight: 900; color: var(--primary); text-align: center; line-height: 1; }
.big-num small { font-size: 24px; font-weight: 700; margin-left: 4px; }
.steppers { display: flex; gap: 12px; justify-content: center; }
.step-btn { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--border); font-weight: 700; font-size: 18px; background: var(--card); transition: background .15s; }
.step-btn:active { background: var(--muted); }
.range { width: 100%; accent-color: var(--primary); height: 28px; }
.pill-green { background: var(--green-10); color: var(--green); font-weight: 700; padding: 8px 16px; border-radius: 99px; font-size: 14px; align-self: center; }
.input-name { width: 100%; text-align: center; font-size: 20px; font-weight: 700; padding: 16px; border: 2px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--fg); font-family: inherit; outline: none; }
.input-name:focus { border-color: var(--primary); }

/* ============ Gráfico de previsão ============ */
.goal-box { display: flex; justify-content: center; align-items: center; gap: 16px; }
.goal-box b { font-size: 30px; font-weight: 900; display: block; line-height: 1.1; }
.goal-box small { font-size: 12px; color: var(--muted-fg); }
.chart { position: relative; height: 180px; width: 100%; }
.chart svg { width: 100%; height: 100%; }
.chart .area { clip-path: inset(0 100% 0 0); transition: clip-path 1.5s ease-out; }
.chart .line { stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset 1.5s ease-out; }
.chart .dash { opacity: 0; transition: opacity .5s ease-out 1s; }
.chart .tag { position: absolute; display: flex; align-items: center; gap: 6px; opacity: 0; transition: opacity .5s ease-out; font-weight: 900; font-size: 17px; }
.chart.go .area { clip-path: inset(0 0 0 0); }
.chart.go .line { stroke-dashoffset: 0; }
.chart.go .dash { opacity: .5; }
.chart.go .tag { opacity: 1; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.season { background: linear-gradient(90deg, #fff7ed, #fef3c7); border: 1px dashed var(--primary); border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 600; text-align: center; }

/* ============ Imagens/depoimentos ============ */
.img-card { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--card); box-shadow: 0 2px 10px rgba(80,40,10,.06); width: 100%; }
.img-card .body { padding: 14px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stars { font-size: 15px; letter-spacing: 1px; }
.result-tag { font-size: 18px; font-weight: 900; color: var(--primary); }
.verified { font-size: 11px; color: var(--green); font-weight: 600; }

.commit-img { position: relative; display: flex; justify-content: center; width: 100%; }
.commit-img img { width: 100%; max-width: 320px; border-radius: 16px; }
.arrow-bubble { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.arrow-bubble span { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.2); animation: bounceX 1s ease-in-out infinite; }
.ribbon { background: var(--primary); color: #fff; border-radius: 99px; padding: 6px 16px; font-size: 11px; font-weight: 700; letter-spacing: .03em; align-self: center; }

/* ============ Loaders ============ */
.loader-item { border-radius: 12px; border: 1px solid var(--border); padding: 14px 16px; display: flex; align-items: center; gap: 12px; transition: all .5s; background: var(--card); }
.loader-item.todo { opacity: .5; background: var(--muted); }
.loader-item.active { border-color: hsl(25 100% 50% / .6); background: var(--primary-10); box-shadow: 0 4px 12px var(--primary-10); }
.loader-item.done { border-color: hsl(25 100% 50% / .4); background: hsl(25 100% 50% / .05); }
.loader-item .ic { font-size: 20px; width: 26px; text-align: center; }
.loader-item.active .ic { animation: bounce 1s infinite; }
.loader-item .lb { font-size: 14px; font-weight: 600; }
.loader-item.done .lb { color: var(--primary); }
.mini-track { margin-top: 8px; height: 6px; border-radius: 99px; background: var(--muted); overflow: hidden; }
.mini-fill { height: 100%; background: linear-gradient(90deg, var(--primary), hsl(25 100% 50% / .7)); border-radius: 99px; }

.modal { position: fixed; inset: 0; z-index: 50; background: rgba(40,20,5,.45); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.modal-box { background: var(--bg); width: 100%; max-width: 512px; border-radius: 22px 22px 0 0; padding: 22px 20px 28px; display: flex; flex-direction: column; gap: 14px; animation: slideUp .3s ease-out; }
.modal-tag { align-self: center; font-size: 11px; font-weight: 700; color: var(--primary); background: var(--primary-10); padding: 4px 12px; border-radius: 99px; }

.plan-box { background: var(--primary); color: #fff; border-radius: 16px; padding: 24px; width: 100%; }
.plan-list { display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: left; }
.plan-list div { font-size: 14px; font-weight: 600; transition: opacity .3s; }

/* ============ Resultado ============ */
.gauge { width: 100%; margin-top: 4px; }
.gauge-bar { position: relative; height: 12px; border-radius: 99px; background: linear-gradient(90deg, #60a5fa 0%, #22c55e 22%, #facc15 48%, #f97316 70%, #ef4444 100%); }
.gauge-pin { position: absolute; top: -7px; width: 4px; height: 26px; background: var(--fg); border-radius: 4px; transform: translateX(-50%); left: 0; transition: left 1.2s cubic-bezier(.2,.8,.2,1); }
.gauge-pin::after { content: "Você"; position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 800; background: var(--fg); color: #fff; padding: 1px 6px; border-radius: 6px; }
.gauge-lbl { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted-fg); margin-top: 6px; }
.alert-list { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.alert-list div { display: flex; gap: 8px; font-size: 14px; align-items: flex-start; }
.diag { background: var(--green-10); color: var(--green-dark); border-radius: 12px; padding: 14px 16px; font-size: 14px; font-weight: 600; text-align: center; line-height: 1.45; }
.benefit { display: flex; align-items: center; gap: 12px; background: hsl(37 100% 85% / .5); border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 500; }

/* ============ Oferta ============ */
.offer-top { position: sticky; top: 0; z-index: 10; background: var(--primary); color: #fff; text-align: center; padding: 8px 10px; font-size: 13px; font-weight: 700; }
.offer-top .n { font-size: 16px; }
.timer-row { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; background: #fff7ed; border: 1px solid #fed7aa; padding: 8px 12px; border-radius: 12px; }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--red); font-size: 15px; }
.box { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--card); box-shadow: 0 1px 6px rgba(80,40,10,.05); }
.box-head { background: var(--primary); color: #fff; text-align: center; padding: 14px; }
.box-head small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.box-head b { display: block; font-size: 18px; margin-top: 2px; }
.box-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.tl { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.tl .ic { font-size: 24px; }
.tl .d { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--primary); }
.tl .t { font-size: 14px; font-weight: 700; }
.tl .meta { margin-left: auto; background: var(--green); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
.bonus { border-radius: 12px; border: 1px solid var(--border); background: hsl(37 100% 85% / .4); padding: 14px; display: flex; gap: 12px; }
.bonus .gift { font-size: 24px; }
.bonus b { font-size: 14px; display: block; }
.bonus small { font-size: 12px; color: var(--muted-fg); display: block; margin-top: 2px; }
.bonus .val { font-size: 12px; margin-top: 4px; }
.bonus .val s { color: var(--muted-fg); }
.bonus .val b { display: inline; color: var(--green); font-size: 12px; }
.include { display: flex; gap: 8px; font-size: 14px; align-items: flex-start; }
.price-box { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 16px; text-align: center; }
.price-old { color: var(--red); font-weight: 700; font-size: 17px; text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.price { font-size: 52px; font-weight: 900; color: var(--green); line-height: 1; margin-top: 4px; }
.per-day { display: inline-block; margin-top: 10px; background: #fef2f2; color: var(--red); border: 2px solid var(--red); font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 99px; animation: pulseScale 1.6s ease-in-out infinite; }
.per-day b { font-weight: 900; font-size: 16px; }
.cta-note { text-align: center; font-size: 13px; font-weight: 600; color: var(--muted-fg); margin-top: 8px; }
.btn.flash { animation: flash .9s ease-out 2; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 hsl(145 63% 42% / .7); transform: scale(1); } 50% { transform: scale(1.05); } 100% { box-shadow: 0 0 0 18px hsl(145 63% 42% / 0); transform: scale(1); } }
.guarantee { border: 2px solid var(--primary); background: var(--pessego); border-radius: 16px; padding: 20px; text-align: center; }
.seal { width: 84px; height: 84px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 900; font-size: 12px; line-height: 1.15; display: inline-grid; place-items: center; margin-bottom: 10px; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--primary); }
.faq details { border-bottom: 1px solid var(--border); padding: 14px 2px; }
.faq summary { font-weight: 700; font-size: 14px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 20px; line-height: 1; font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq p { font-size: 14px; color: var(--muted-fg); margin-top: 8px; line-height: 1.5; }
.secure { text-align: center; font-size: 12px; color: var(--muted-fg); padding: 4px 0 12px; }
.sticky-cta { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(255,250,245,0), var(--bg) 35%); transform: translateY(110%); transition: transform .3s ease; z-index: 20; }
.sticky-cta.show { transform: none; }
.sticky-cta .btn { animation: none; padding: 13px 20px; font-size: 16px; }

/* ============ Animações ============ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes slideUp { from { transform: translateY(100%); } }
@keyframes pulseScale { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes bounceX { 0%,100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@keyframes bounceY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes bounce { 0%,100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(.8,0,1,1); } 50% { transform: none; animation-timing-function: cubic-bezier(0,0,.2,1); } }
@keyframes pulse { 50% { opacity: .5; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.a-bounce-y { animation: bounceY 1s ease-in-out infinite; }
.a-pulse { animation: pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
.a-pop { animation: pop .45s ease-out both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
