/* styles.css — Motor Metabólico (Dr. Rodrigo Neves, produto digital)
   Mobile-first, paleta verde/creme (saúde), legível em viewport 390. */

:root {
  --color-cream: #FAF6EE;
  --color-cream-2: #F2ECDD;
  --color-green-900: #1F3D2B;
  --color-green-700: #2E5B3E;
  --color-green-600: #3B7A4F;
  --color-green-100: #E4EEE3;
  --color-text: #23291F;
  --color-text-muted: #5B6459;
  --color-white: #FFFFFF;
  --color-danger: #9E4B3A;
  --radius: 14px;
  --shadow: 0 4px 16px rgba(31, 61, 43, 0.10);
  --max-width: 480px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-cream);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-cream);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 10px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

#back-btn {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--color-green-700);
  cursor: pointer;
  padding: 4px 6px;
  visibility: hidden;
}

#progress-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#progress-wrap {
  width: 100%;
  height: 8px;
  background: var(--color-green-100);
  border-radius: 999px;
  overflow: hidden;
}

#progress-fill {
  height: 100%;
  width: 4%;
  background: var(--color-green-600);
  border-radius: 999px;
  transition: width 0.45s ease;
}

#progress-phase {
  margin: 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  transition: opacity 0.25s ease;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
}

#quiz-app {
  width: 100%;
  max-width: var(--max-width);
  padding: 8px 20px 48px;
}

.screen {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fade-in {
  animation: fadeIn 0.35s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-green-600);
  margin: 6px 0 0;
}

/* ---------- Rosto do Dr. (hero + assinatura) ---------- */
.dr-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.dr-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-green-100);
  box-shadow: var(--shadow);
}
.dr-photo-caption {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-green-700);
  margin: 0;
  text-align: center;
}

/* ---------- Hook (T1) ---------- */
.screen-hook { text-align: left; padding-top: 12px; }
.hook-title {
  font-size: 26px;
  line-height: 1.28;
  font-weight: 800;
  color: var(--color-green-900);
  margin: 6px 0 4px;
}
.hook-body {
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text);
  margin: 0;
}
.hook-meta {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- Perguntas ---------- */
.question-title {
  font-size: 21px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--color-green-900);
  margin: 8px 0 0;
}
.question-sub {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.option-btn {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  font-size: 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--color-green-100);
  background: var(--color-white);
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.option-btn:active { transform: scale(0.98); }
.option-btn.selected {
  border-color: var(--color-green-600);
  background: var(--color-green-100);
  font-weight: 600;
}
.option-btn.multi.selected::after {
  content: " ✓";
  color: var(--color-green-700);
  font-weight: 800;
}

/* ---------- Botão primário ---------- */
.btn-primary {
  width: 100%;
  padding: 17px 18px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-green-700);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow);
  margin-top: 8px;
}
.btn-primary:active { transform: scale(0.98); }
.btn-cta { background: var(--color-green-600); }

/* ---------- Interrupt (educacional) ---------- */
.screen-interrupt { padding-top: 12px; }
.interrupt-title {
  font-size: 23px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--color-green-900);
  margin: 4px 0 0;
}
.interrupt-body {
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0;
}
.source-note {
  font-size: 12.5px;
  color: var(--color-text-muted);
  font-style: italic;
  margin: 0;
}

/* ---------- Loader ---------- */
.screen-loader {
  align-items: center;
  text-align: center;
  padding-top: 60px;
}
.spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid var(--color-green-100);
  border-top-color: var(--color-green-600);
  animation: spin 0.9s linear infinite;
  margin-bottom: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--color-green-900);
}
.loader-line {
  font-size: 14px;
  color: var(--color-text-muted);
  min-height: 20px;
}

/* Micro-animação "montando seu plano" — labor illusion */
.loader-progress-wrap {
  width: 100%;
  max-width: 260px;
  height: 6px;
  background: var(--color-green-100);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 14px;
}
.loader-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--color-green-600);
  border-radius: 999px;
  transition: width 2.5s linear;
}

/* ---------- Email ---------- */
.email-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-green-900);
}
.field-input {
  padding: 14px 16px;
  font-size: 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--color-green-100);
  background: var(--color-white);
}
.field-input:focus {
  outline: none;
  border-color: var(--color-green-600);
}
.field-error {
  color: var(--color-danger);
  font-size: 13px;
  min-height: 16px;
  margin: 0;
}

/* ---------- Resultado ---------- */
.screen-result { gap: 22px; }
.result-hero { text-align: left; padding-top: 8px; }
.result-greeting {
  font-size: 15px;
  color: var(--color-text-muted);
  margin: 6px 0 0;
}
.result-motor-name {
  font-size: 30px;
  font-weight: 800;
  color: var(--color-green-900);
  margin: 4px 0;
  line-height: 1.15;
}
.result-tagline {
  font-size: 16px;
  color: var(--color-green-700);
  font-weight: 600;
  margin: 0;
}

.result-section {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.result-h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-green-900);
  margin: 0 0 10px;
}
.result-list {
  margin: 0;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.6;
}
.result-list.check li { list-style: "✓  "; padding-left: 2px; }

.result-mechanism p { font-size: 14.5px; line-height: 1.6; margin: 0 0 8px; }
.result-crisis-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 0 0 12px;
  display: block;
}

/* ---------- Mockups do produto na oferta ---------- */
.offer-mockups {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
}
.offer-mockup-img {
  width: 33.333%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: block;
}

/* ---------- Espelho dinâmico (hero de prova) ---------- */
.result-mirror { border: 1.5px solid var(--color-green-600); }
.mirror-paragraph {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0 0 10px;
  font-weight: 500;
}

/* ---------- Seus números ---------- */
.numeros-grid {
  display: flex;
  gap: 10px;
}
.numero-card {
  flex: 1;
  background: var(--color-green-100);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
}
.numero-valor {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-green-900);
  margin: 0 0 2px;
}
.numero-label {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.3;
}
.numero-nota {
  font-size: 12px;
  color: var(--color-text-muted);
  font-style: italic;
  margin: 10px 0 0;
  line-height: 1.5;
}

/* ---------- Prévia do plano ---------- */
.peek-sub {
  font-size: 13.5px;
  color: var(--color-text-muted);
  margin: 0 0 12px;
}
.peek-meals {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.peek-meal {
  border-left: 3px solid var(--color-green-600);
  padding-left: 10px;
}
.peek-meal-name {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-green-700);
  margin: 0 0 2px;
}
.peek-meal-desc {
  font-size: 14px;
  color: var(--color-text);
  margin: 0;
  line-height: 1.4;
}

/* ---------- Assinatura do Dr. ---------- */
.result-signature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 4px;
}
.dr-photo-signature {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}
.result-signature-text p { margin: 0; }
.signature-line {
  font-size: 12.5px;
  color: var(--color-text-muted);
}
.signature-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-green-900);
}
.signature-title {
  font-size: 12.5px;
  color: var(--color-text-muted);
}

.result-offer { background: var(--color-green-100); }
.offer-stack { margin-bottom: 10px; }
.offer-line { font-size: 14px; margin: 4px 0; }
.offer-total-riscado {
  font-size: 14px;
  color: var(--color-text-muted);
  text-decoration: line-through;
  margin: 6px 0 0;
}
.offer-price {
  font-size: 22px;
  color: var(--color-green-900);
  margin: 10px 0 4px;
}
.offer-reason {
  font-size: 13.5px;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.offer-bump-note {
  font-size: 13px;
  color: var(--color-text-muted);
  font-style: italic;
}
.offer-guarantee {
  font-size: 13.5px;
  margin-top: 10px;
  line-height: 1.5;
}

.faq-item { margin-bottom: 14px; }
.faq-item:last-child { margin-bottom: 0; }
.faq-q { font-weight: 700; font-size: 14.5px; margin: 0 0 4px; color: var(--color-green-900); }
.faq-a { font-size: 14px; color: var(--color-text-muted); margin: 0; line-height: 1.5; }

.legal-note {
  font-size: 11.5px;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
}

/* ---------- Telas pequenas (garantir dobra 390x844) ---------- */
@media (max-width: 380px) {
  .hook-title { font-size: 23px; }
  .question-title { font-size: 19px; }
  .result-motor-name { font-size: 26px; }
}
