/* ============================================================
   STYLES — mobile-first (~380px). Verde primário, cards grandes.
   ============================================================ */
:root {
  --primary: #3DB5A0;
  --primary-dark: #2e9888;
  --bg: #ffffff;
  --text: #1d2b2a;
  --muted: #6b7c7a;
  --card: #f3f7f6;
  --card-border: #e2eae8;
  --danger: #e2574c;
  --danger-bg: #fdecea;
  --good: #3DB5A0;
  --alert-bg: #eaf3fb;
  --alert-border: #b9d6ef;
  --warn-bg: #fff4e0;
  --warn-border: #f5c97a;
  --shadow: 0 2px 10px rgba(0,0,0,.06);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0;
  background: #eef2f1;
  color: var(--text);
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.45;
}

#app {
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ---------- Topo: barra de progresso + header ---------- */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--bg); padding-bottom: 4px; }
.progress { height: 6px; background: #e2eae8; }
.progress-bar { height: 100%; width: 0; background: var(--primary); transition: width .35s ease; }

.header { display: flex; align-items: center; padding: 10px 14px; position: relative; }
.back-btn {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  border: none; background: none; font-size: 22px; cursor: pointer; color: var(--text); padding: 6px;
}
.logo { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; font-weight: 800; font-size: 15px; letter-spacing: .3px; }
.logo-img { width: 34px; height: 34px; object-fit: contain; flex: 0 0 auto; }

/* ---------- Área da tela ---------- */
.screen {
  flex: 1; padding: 14px 18px 20px; display: flex; flex-direction: column;
  justify-content: center;   /* conteúdo centralizado verticalmente (estilo do modelo) */
  animation: fadeIn .28s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

h1.q-title { font-size: 22px; line-height: 1.3; margin: 4px 0 6px; }
p.q-sub { color: var(--muted); font-size: 15px; margin: 0 0 18px; }

/* ---------- Opções (cards brancos, estilo modelo) ---------- */
.options { display: flex; flex-direction: column; gap: 14px; }
.options.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.option {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--card-border); color: var(--text);
  text-align: left; padding: 16px 14px; border-radius: 16px; font-size: 16px;
  cursor: pointer; box-shadow: var(--shadow); width: 100%;
  transition: border-color .15s, box-shadow .15s, transform .05s;
}
.option:hover { border-color: var(--primary); }
.option:active { transform: scale(.99); }
.option.selected { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.option .emoji { font-size: 24px; flex: none; }
.option .opt-label { flex: 1; }

/* miniatura (foto) à direita + seta — como no modelo */
.option .opt-thumb { width: 60px; height: 60px; border-radius: 10px; overflow: hidden; flex: none; }
.option .opt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.option .opt-arrow {
  flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--card-border);
  display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--muted);
}

/* cards grandes de gênero (foto em cima, nome + seta embaixo) */
.option.card-tall { flex-direction: column; align-items: stretch; padding: 0; gap: 0; overflow: hidden; }
.option.card-tall .opt-photo { height: 150px; display: flex; align-items: center; justify-content: center; }
.option.card-tall .opt-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.option.card-tall .opt-bottom { display: flex; align-items: center; justify-content: space-between; padding: 14px; }
.option.card-tall .opt-label { font-weight: 600; }
.option.card-tall .emoji { font-size: 56px; }

/* placeholder pontilhado para fotos que ainda não existem */
.opt-thumb.ph, .opt-photo.ph {
  background: repeating-linear-gradient(45deg,#f0f4f3,#f0f4f3 8px,#e7eeec 8px,#e7eeec 16px);
  color: var(--muted); font-size: 11px; text-align: center;
}

/* checkbox visual para multi */
.option .check {
  margin-left: auto; width: 22px; height: 22px; border-radius: 6px; flex: none;
  border: 2px solid var(--card-border); display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff;
}
.option.selected .check { background: var(--primary); border-color: var(--primary); }

/* ---------- Interstitial / espelhos ---------- */
.interstitial-text {
  background: var(--card); border-radius: 16px; padding: 20px; font-size: 17px; line-height: 1.55;
}
.chart-title { font-size: 16px; font-weight: 700; text-align: center; margin: 16px 0 0; }
.chart-legend { display: flex; justify-content: center; gap: 18px; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--text); }
.chart-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.lg-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.lg-red { background: var(--danger); }
.lg-blue { background: #5b8def; }
.headline-big { font-size: 19px; line-height: 1.28; margin: 2px 0 8px; text-align: center; }
.headline-big b { color: inherit; }
.hl-green { color: var(--primary-dark); }
.hl-red { color: var(--danger); }
.hl-blue { color: #5b8def; font-weight: 700; }
.subhead { text-align: center; }
.subhead { color: var(--muted); font-size: 15px; margin-bottom: 10px; }

.placeholder-img {
  background: repeating-linear-gradient(45deg, #f0f4f3, #f0f4f3 10px, #e7eeec 10px, #e7eeec 20px);
  border: 1px dashed #c3d2cf; border-radius: 14px; color: var(--muted);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 13px; padding: 28px 14px; margin: 6px 0 18px; min-height: 120px;
}
.opening-img, .social-img, .avatar-img {
  display: block; width: 100%; height: auto; border-radius: 14px; margin: 6px 0 14px;
}
.opening-img {
  border: 1px solid var(--card-border);
  flex: 1 1 auto; min-height: 0; width: 100%; height: auto;
  object-fit: contain; object-position: center; margin: 4px 0 8px;
}
.rosto-img { display: block; width: 100%; height: auto; border-radius: 14px; margin: 10px 0 4px; }

/* prova social / avatares */
.social-number { text-align: center; }
.social-number .big { font-size: 40px; font-weight: 800; color: var(--primary-dark); }

/* ---------- Timeline da jornada (espelho da fase) ---------- */
.timeline { display: flex; align-items: flex-start; justify-content: center; margin: 4px 0 20px; }
.tl-step { display: flex; flex-direction: column; align-items: center; flex: none; width: 58px; text-align: center; }
.tl-dot {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: var(--card); border: 2px solid var(--card-border); transition: all .2s;
}
.tl-step.done .tl-dot { background: #e4f4f0; border-color: var(--primary); opacity: .85; }
.tl-step.active .tl-dot { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 4px rgba(61,181,160,.2); transform: scale(1.1); }
.tl-label { font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.2; }
.tl-step.active .tl-label { color: var(--primary-dark); font-weight: 700; }
.tl-here { font-size: 10px; font-weight: 700; color: var(--primary-dark); margin-top: 2px; }
.tl-line { flex: 1; height: 2px; background: var(--card-border); margin-top: 22px; min-width: 6px; }
.tl-line.done { background: var(--primary); }

/* ---------- Selo "We Got You" (espelho dos sintomas) ---------- */
.wgy { display: flex; flex-direction: column; align-items: center; margin: 4px 0 18px; }
.wgy-icon {
  position: relative; width: 84px; height: 84px; border-radius: 50%;
  background: #e4f4f0; border: 2px solid var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 38px;
}
.wgy-check {
  position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); color: #fff; border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800;
}
.wgy-label { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--primary-dark); text-align: center; max-width: 280px; }

/* ---------- Boxes de alerta ---------- */
.box { border-radius: 12px; padding: 14px; font-size: 14px; margin-top: 16px; line-height: 1.5; }
.box-alert { background: var(--alert-bg); border: 1px solid var(--alert-border); }
.box-warn  { background: var(--warn-bg);  border: 1px solid var(--warn-border); }
.box-absolve { background: #e4f4f0; border: 1px solid #bfe5dc; font-size: 16px; }
.disclaimer { color: var(--muted); font-size: 12px; margin-top: 12px; line-height: 1.4; }

/* ---------- Slider ---------- */
.slider-wrap { text-align: center; margin: 20px 0; }
.slider-value { font-size: 44px; font-weight: 800; color: var(--primary-dark); }
.slider-hint { color: var(--muted); font-size: 13px; margin-top: 4px; }
input[type=range] { width: 100%; margin: 18px 0; accent-color: var(--primary); height: 28px; }
.unit-toggle { display: inline-flex; border: 1px solid var(--card-border); border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.unit-toggle button { border: none; background: var(--card); padding: 8px 18px; cursor: pointer; font-size: 14px; }
.unit-toggle button.active { background: var(--primary); color: #fff; }

/* consentimento / opt-in */
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 13px; color: var(--muted); }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--primary); }

/* ---------- Inputs de texto ---------- */
.field { width: 100%; padding: 16px; font-size: 16px; border: 2px solid var(--card-border); border-radius: 12px; margin-bottom: 12px; }
.field:focus { outline: none; border-color: var(--primary); }

/* ---------- Régua de risco (diagnóstico) ---------- */
.risk-ruler { height: 14px; border-radius: 99px; background: linear-gradient(90deg, #3DB5A0, #f5c542, #e2574c); position: relative; margin: 24px 0 8px; }
.risk-marker { position: absolute; top: -8px; width: 4px; height: 30px; background: #1d2b2a; border-radius: 2px; transform: translateX(-50%); }
.risk-line { text-align: center; font-weight: 700; color: var(--danger); margin-bottom: 4px; }

/* ---------- Barra de IMC (diagnóstico) ---------- */
.imc-value { text-align: center; margin: 6px 0 14px; }
.imc-value .imc-num { font-size: 34px; font-weight: 800; color: var(--text); }
.imc-cat { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 99px; color: #fff; vertical-align: middle; margin-left: 6px; }
.imc-cat-abaixo { background: #5b8def; }
.imc-cat-normal { background: var(--good); }
.imc-cat-sobrepeso { background: #f5c542; color: #6b5500; }
.imc-cat-obesidade { background: var(--danger); }
.imc-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; position: relative; margin: 30px 0 6px; }
.imc-seg { height: 100%; display: block; }
.imc-abaixo { background: #5b8def; }
.imc-normal { background: var(--good); }
.imc-sobrepeso { background: #f5c542; }
.imc-obeso { background: var(--danger); }
.imc-marker { position: absolute; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; }
.imc-marker-dot { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--text); box-sizing: border-box; }
.imc-marker-tag { position: absolute; bottom: 22px; background: var(--text); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.imc-marker-tag::after { content: ""; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); border: 4px solid transparent; border-top-color: var(--text); }
.imc-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.imc-msg { font-size: 14px; line-height: 1.5; color: var(--text); background: var(--card); border-radius: 12px; padding: 12px 14px; }

/* ---------- Barras comparativas (avatar) ---------- */
.bars { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.bar-row .bar-name { font-size: 14px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.bar-row .bar-name .emoji { font-size: 18px; }
.meter { margin-bottom: 8px; }
.meter-cap { font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.meter-now { color: var(--danger); }
.meter-goal { color: var(--good); }
.meter-track { height: 10px; border-radius: 6px; background: #f0f4f3; overflow: hidden; }
.meter-fill { display: block; height: 100%; border-radius: 6px; }
.meter-fill-now { background: var(--danger); }
.meter-fill-goal { background: var(--good); }

/* ---------- Antes / Depois (avatar) ---------- */
.ba-compare { display: flex; align-items: stretch; gap: 8px; margin: 6px 0 4px; }
.ba-col { flex: 1; border-radius: 14px; overflow: hidden; border: 2px solid var(--card-border); }
.ba-now { border-color: var(--danger); }
.ba-goal { border-color: var(--good); }
.ba-head { font-size: 13px; font-weight: 700; color: #fff; text-align: center; padding: 7px 4px; }
.ba-now .ba-head { background: var(--danger); }
.ba-goal .ba-head { background: var(--good); }
.ba-photo { min-height: 150px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; color: var(--muted); background: repeating-linear-gradient(45deg, #f0f4f3, #f0f4f3 10px, #e7eeec 10px, #e7eeec 20px); }
.ba-arrow { align-self: center; color: var(--muted); font-size: 22px; flex: none; }

/* ---------- Lista de bônus ---------- */
.bonus-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.bonus-item { display: flex; gap: 12px; background: var(--card); border-radius: 12px; padding: 12px; }
.bonus-item .emoji { font-size: 26px; }
.bonus-item .b-title { font-weight: 700; font-size: 14px; }
.bonus-item .b-desc { font-size: 13px; color: var(--muted); }
.intro-green { background: #e4f4f0; border-radius: 12px; padding: 14px; font-size: 15px; margin-bottom: 14px; }
.info-green { background: #e4f4f0; border-radius: 14px; padding: 18px; margin-top: 22px; text-align: center; }
.info-green-title { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.info-green-text { font-size: 14px; line-height: 1.55; color: var(--text); }

/* ---------- Faces (interstitial do rosto) ---------- */
.faces { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 10px 0 4px; }
.face { flex: 1; max-width: 105px; background: var(--card); border: 2px solid var(--card-border); border-radius: 14px; padding: 12px 6px; text-align: center; }
.face.good { border-color: var(--primary); background: #e4f4f0; }
.face.bad { border-color: var(--danger); background: #fdeceb; }
.face-emoji { font-size: 34px; line-height: 1; }
.face-label { font-size: 12px; font-weight: 700; margin-top: 8px; }
.face-note { font-size: 11px; color: var(--muted); margin-top: 2px; }
.face-arrow { color: var(--muted); font-size: 18px; flex: none; }

/* ---------- Gráficos SVG ---------- */
.chart { width: 100%; margin-top: 14px; display: block; }

/* ---------- Selo de ícone (telas só-texto) ---------- */
.icon-badge { width: 72px; height: 72px; border-radius: 50%; background: #e4f4f0; border: 2px solid var(--primary); display: flex; align-items: center; justify-content: center; font-size: 34px; margin: 4px auto 18px; }

/* ---------- Processamento ---------- */
.proc-bar { height: 12px; background: #e2eae8; border-radius: 99px; overflow: hidden; margin: 18px 0 8px; }
.proc-fill { height: 100%; width: 0; background: var(--primary); transition: width .2s linear; }
.proc-status { text-align: center; color: var(--muted); font-size: 14px; }
.review { background: var(--card); border-radius: 12px; padding: 12px; margin-top: 10px; }
.review .r-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review .r-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.review .r-avatar-ph { display: flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-weight: 700; font-size: 17px; }
.review .r-meta { display: flex; flex-direction: column; gap: 2px; }
.review .stars { color: #f5b301; font-size: 13px; line-height: 1; }
.review .r-name { font-weight: 700; font-size: 13px; }
.review .r-city { font-size: 11px; color: var(--muted); }
.review .r-text { font-size: 13px; color: var(--muted); line-height: 1.45; }

/* ---------- Paywall ---------- */
.price-card { border: 1px solid var(--primary); border-radius: 14px; overflow: hidden; margin-top: 6px; }
.price-head { background: var(--primary); color: #fff; text-align: center; font-weight: 700; font-size: 14px; padding: 9px; }
.price-old { text-decoration: line-through; text-decoration-color: #ffd2cd; text-decoration-thickness: 2px; opacity: .85; }
.price-body { display: flex; align-items: center; gap: 10px; padding: 16px; }
.price-name { flex: 1; font-size: 19px; font-weight: 800; color: var(--text); line-height: 1.2; }
.price-installment { background: #f0f4f3; border-radius: 12px; padding: 10px 14px; text-align: center; flex: none; }
.price-installment .pi-x { display: block; font-size: 13px; color: var(--muted); }
.price-installment .pi-value { display: block; font-size: 30px; font-weight: 800; color: var(--text); line-height: 1.1; }
.price-installment .pi-cur { font-size: 15px; font-weight: 700; vertical-align: top; }
.price-installment .pi-cash { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.price-sub { text-align: center; color: var(--muted); font-size: 14px; margin: 8px 0; }
.timer { text-align: center; background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: 12px; padding: 10px; margin: 14px 0; font-weight: 700; }
.timer .clock { font-size: 22px; color: var(--danger); }
.seals { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; font-size: 12px; color: var(--muted); margin-top: 12px; }

/* ---------- Garantia ---------- */
.guarantee { border: 2px solid var(--good); border-radius: 14px; padding: 16px; margin-top: 18px; text-align: center; background: #f3fbf9; }
.guarantee-badge { font-size: 34px; line-height: 1; }
.guarantee-title { font-weight: 700; font-size: 15px; margin-top: 6px; color: var(--text); }
.guarantee-text { font-size: 13px; color: var(--muted); margin-top: 6px; }
.guarantee-contact { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.guarantee-contact a { color: var(--primary-dark); font-weight: 700; text-decoration: none; }

/* ---------- Depoimentos ---------- */
.depo-title, .faq-title { font-size: 17px; font-weight: 700; text-align: center; margin: 22px 0 4px; }
.depo-list { display: flex; flex-direction: column; gap: 10px; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.faq-item { background: var(--card); border: 1px solid var(--card-border); border-radius: 12px; padding: 12px 14px; }
.faq-item summary { font-weight: 700; font-size: 14px; cursor: pointer; list-style: none; position: relative; padding-right: 22px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 20px; color: var(--primary); font-weight: 700; }
.faq-item[open] summary::after { content: "−"; }
.faq-a { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.5; }

/* ---------- Navegação / CTA ---------- */
.nav { padding: 0 18px 16px; }
button.cta {
  width: 100%; background: var(--primary); color: #fff; border: none; padding: 17px;
  border-radius: 14px; font-size: 17px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow);
  animation: ctaPulse 1.6s ease-in-out infinite;
}
button.cta:hover { background: var(--primary-dark); }
button.cta:disabled { background: #b9cfca; cursor: not-allowed; animation: none; }
button.cta-inline { margin: 16px 0 4px; }

/* Pulsação sutil do CTA — chama atenção sem incomodar */
@keyframes ctaPulse {
  0%, 100% { transform: scale(1); box-shadow: var(--shadow); }
  50% { transform: scale(1.04); box-shadow: 0 8px 26px rgba(61, 181, 160, 0.6); }
}
@media (prefers-reduced-motion: reduce) {
  button.cta { animation: none; }
}

.legal { color: var(--muted); font-size: 11px; text-align: center; margin-top: 10px; line-height: 1.45; }
.legal a { color: var(--muted); }
