/* ===== Réplica do quiz — Método de Protección Metabólica GLP-1 =====
   Paleta e tipografia extraídas do Inlead original (quiz.amandameirelles.com)
   via computed styles em 2026-08-15. Ver spec goofy-006. */
:root {
  --bg: #F2ECD5;
  --card-bg: #F2ECD5;
  --border-muted: #C6C1AE;
  --accent: #AB6400;
  --accent-hover: #B3741A;
  --accent-dark: #834B00;
  --accent-soft: rgba(171, 100, 0, .1);
  --text: #000000;
  --text-soft: #6B7280;
  --on-accent: #FFFFFF;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 16px rgba(0,0,0,.08);
  --radius: 6px;
  --maxw: 704px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Montserrat, "sans serif", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
#app { max-width: var(--maxw); margin: 0 auto; min-height: 100vh; position: relative; background: var(--bg); }
button { font-family: inherit; }

.screen {
  min-height: 100vh; display: flex; flex-direction: column;
  padding: calc(56px + var(--safe-top)) 12px calc(24px + var(--safe-bottom));
}
.fade-in { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ===== Barra de progresso ===== */
.progress-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9;
  max-width: var(--maxw); margin: 0 auto;
  padding: calc(10px + var(--safe-top)) 54px 0 54px;
}
.progress-track {
  position: relative; height: 8px; border-radius: 999px; overflow: hidden;
  background: var(--accent-soft);
}
.progress-fill {
  position: absolute; top: 0; left: 0; height: 100%; background: var(--accent);
  border-radius: 999px; transition: width .5s ease;
}

.back-btn {
  position: fixed; top: calc(10px + var(--safe-top)); left: 12px; z-index: 10;
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--border-muted);
  background: var(--card-bg); color: var(--accent); font-size: 17px; cursor: pointer;
  display: grid; place-items: center;
}
.back-btn[hidden] { display: none; }

/* ===== Intro (passo 1) ===== */
.intro-eyebrow {
  font-size: 15px; font-weight: 700; color: var(--accent);
  text-align: center; margin: 0 0 16px; line-height: 1.3;
}
.q-heading { font-size: 18.72px; font-weight: 700; color: var(--accent); text-align: center; margin: 0 0 20px; line-height: 1.3; }
.q-sub { font-size: 14px; color: var(--text-soft); text-align: center; margin: -10px 0 18px; }

.intro-footer {
  margin-top: auto; padding-top: 24px; text-align: center;
  font-size: 13px; color: var(--text-soft);
}
.intro-time {
  display: inline-block; margin-top: 12px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); padding: 6px 14px; border-radius: 999px;
}

/* ===== Opções — lista vertical de linhas (igual ao original: sem grid de fotos) ===== */
.options { display: flex; flex-direction: column; gap: 8px; }
.opt-btn, .opt-btn-img {
  background: var(--card-bg); border: 1px solid var(--border-muted); border-radius: var(--radius);
  cursor: pointer; text-align: left; display: flex; align-items: center; gap: 0;
  box-shadow: var(--shadow); transition: border-color .12s ease, background .12s ease, color .12s ease;
  padding: 0; overflow: hidden; min-height: 56px;
}
.opt-btn:hover, .opt-btn-img:hover { border-color: var(--accent); }
.opt-btn.selected, .opt-btn-img.selected { background: var(--accent); border-color: var(--accent); }
.opt-btn.selected .opt-label-text, .opt-btn-img.selected .opt-label-text { color: var(--on-accent); }

.opt-thumb { flex: 0 0 60px; width: 60px; aspect-ratio: 1/1; overflow: hidden; }
.opt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.opt-indicator {
  flex: 0 0 34px; width: 34px; height: 34px; margin: 0 4px 0 12px;
  border: 1px solid var(--border-muted); display: grid; place-items: center;
  color: var(--accent); transition: border-color .12s ease;
}
.opt-indicator.shape-check { border-radius: var(--radius); }
.opt-indicator.shape-chevron { border-radius: 999px; }
.opt-btn.selected .opt-indicator, .opt-btn-img.selected .opt-indicator { border-color: var(--on-accent); color: var(--on-accent); }
.opt-indicator svg { width: 18px; height: 18px; }
.opt-indicator.shape-check svg { opacity: 0; }
.opt-btn.selected .opt-indicator.shape-check svg, .opt-btn-img.selected .opt-indicator.shape-check svg { opacity: 1; }

.opt-label-wrap { flex: 1; padding: 10px 14px 10px 2px; min-width: 0; }
.opt-label-text { font-size: 15px; line-height: 1.3; color: var(--text); font-weight: 500; }
.opt-sub { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-soft); margin-top: 2px; }
.opt-btn.selected .opt-sub, .opt-btn-img.selected .opt-sub { color: var(--on-accent); opacity: .9; }

.continue-bar { margin-top: 20px; }
.btn {
  background: var(--accent); color: var(--on-accent); border: none; border-radius: var(--radius);
  padding: 15px 18px; font-size: 15.5px; font-weight: 700; cursor: pointer; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { background: var(--accent-dark); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ===== Loading ===== */
.loading-screen { align-items: center; justify-content: center; text-align: center; gap: 18px; }
.loading-ring { width: 84px; height: 84px; border-radius: 50%; position: relative; display: grid; place-items: center; }
.loading-ring svg { width: 84px; height: 84px; transform: rotate(-90deg); }
.loading-ring circle { fill: none; stroke-width: 7; }
.loading-ring .track { stroke: var(--accent-soft); }
.loading-ring .fill { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.loading-pct { position: absolute; font-size: 19px; font-weight: 800; color: var(--accent); }
.loading-title { font-size: 17px; font-weight: 700; margin: 4px 0 0; color: var(--accent); }
.loading-sub { color: var(--text-soft); font-size: 14px; }

/* ===== Info / diagnóstico / revelação ===== */
.info-screen { padding-top: calc(56px + var(--safe-top)); }
.info-heading { font-size: 19px; font-weight: 700; color: var(--accent); text-align: center; margin: 0 0 10px; }
.info-subheading { font-size: 16px; font-weight: 700; text-align: center; color: var(--text); margin: 0 0 14px; }
.info-body { font-size: 14.5px; color: var(--text-soft); text-align: center; margin: 0 0 18px; }

.chart-card {
  background: var(--card-bg); border: 1px solid var(--border-muted); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; margin-bottom: 18px;
}
.chart-title { font-size: 13px; font-weight: 700; color: var(--text-soft); margin: 0 0 14px; text-align: center; }
.bar-chart { display: flex; align-items: flex-end; gap: 24px; justify-content: center; height: 140px; }
.bar-col { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 70px; }
.bar-col .bar { width: 100%; border-radius: 6px 6px 0 0; background: var(--accent-soft); display: flex; align-items: flex-start; justify-content: center; padding-top: 6px; font-weight: 800; font-size: 13px; color: var(--accent); }
.bar-col.tu .bar { background: var(--accent); color: #fff; }
.bar-col .bar-label { font-size: 12px; color: var(--text-soft); font-weight: 600; }

.line-chart { width: 100%; height: auto; }
.line-legend { display: flex; gap: 16px; justify-content: center; margin-top: 10px; font-size: 12px; font-weight: 600; }
.line-legend span { display: inline-flex; align-items: center; gap: 6px; }
.line-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

.phase-block { margin-bottom: 12px; }
.phase-title { font-size: 13px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: .3px; margin: 0 0 6px; }
.phase-block ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--text); }
.phase-block li { margin-bottom: 3px; }

.findings { background: var(--accent-soft); border-radius: var(--radius); padding: 14px 16px; margin: 14px 0; }
.findings p { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.findings p:last-child { margin-bottom: 0; }

.info-cta { font-size: 15.5px; font-weight: 700; text-align: center; margin: 6px 0 16px; color: var(--text); }

/* ===== Slider (peso / estatura) ===== */
.slider-screen { align-items: stretch; }
.unit-toggle { display: flex; gap: 8px; justify-content: center; margin: 0 0 20px; }
.unit-btn {
  border: 1px solid var(--border-muted); background: var(--card-bg); color: var(--text-soft);
  border-radius: 999px; padding: 6px 18px; font-weight: 700; font-size: 13.5px; cursor: pointer;
  font-family: inherit;
}
.unit-btn.active { border-color: var(--accent); color: var(--on-accent); background: var(--accent); }
.slider-value { text-align: center; font-size: 40px; font-weight: 800; margin: 10px 0 22px; color: var(--accent); }
.slider-track-wrap { padding: 0 6px; }
input[type="range"].slider {
  width: 100%; -webkit-appearance: none; appearance: none; height: 8px;
  border-radius: 999px; background: var(--accent-soft); outline: none;
}
input[type="range"].slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); border: 4px solid var(--card-bg); box-shadow: var(--shadow); cursor: grab;
}
input[type="range"].slider::-moz-range-thumb {
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent);
  border: 4px solid var(--card-bg); box-shadow: var(--shadow); cursor: grab;
}
.slider-hint { text-align: center; color: var(--text-soft); font-size: 12.5px; margin-top: 10px; }

/* ===== Página final (VSL + oferta) ===== */
.final-screen { padding: calc(20px + var(--safe-top)) 0 40px; }
.final-heading { font-size: 19px; font-weight: 700; color: var(--accent); text-align: center; margin: 0 18px 14px; }
.vsl-wrap { position: relative; width: 100%; padding-top: 177.78%; background: #000; margin: 0 auto 18px; }
.vsl-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; display: block; }

.final-body { padding: 0 18px; }
.final-body[hidden] { display: none; }
.price-card {
  background: var(--card-bg); border: 1px solid var(--border-muted); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; text-align: center; margin: 0 0 16px;
}
.price-from { color: var(--text-soft); text-decoration: line-through; font-size: 14px; }
.price-off { display: inline-block; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; margin: 6px 0; }
.price-now { font-size: 30px; font-weight: 800; color: var(--accent); }

.cta-link { display: block; text-decoration: none; margin: 0 0 16px; }

.guarantee-card {
  background: var(--accent-soft); border-radius: var(--radius); padding: 18px; margin: 0 0 20px; text-align: center;
}
.guarantee-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 10px; color: var(--accent); }
.guarantee-card p { font-size: 13.5px; margin: 0 0 8px; color: var(--text); }

.faq-item { border-bottom: 1px solid var(--border-muted); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 14px 4px;
  font-size: 14.5px; font-weight: 700; color: var(--text); cursor: pointer; font-family: inherit;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.faq-q .chev { transition: transform .15s ease; flex: 0 0 auto; color: var(--accent); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; font-size: 13.5px; color: var(--text-soft); transition: max-height .2s ease; }
.faq-item.open .faq-a { padding-bottom: 14px; }

.loading-video-hint { text-align: center; color: var(--text-soft); font-size: 13px; margin: 0 0 18px; }

/* ===== Mobile-first: telas maiores ganham só mais respiro, layout não muda ===== */
@media (min-width: 560px) {
  .screen { padding-left: 24px; padding-right: 24px; }
  .progress-wrap { padding-left: 64px; padding-right: 64px; }
}
