/* VIVRA — landing. Paleta espelhada de mobile/lib/core/theme/app_theme.dart
   para o site e o app parecerem o mesmo produto. */

:root {
  --primary: #007C72;
  --primary-dark: #00635b;
  --secondary: #9CDD32;
  --accent: #FF7154;
  --bg: #FFFCF7;
  --surface: #ffffff;
  --ink: #14201e;
  --ink-soft: #5b6b68;
  --line: #e6e2d9;
  --radius: 20px;
  --wrap: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html { scroll-padding-top: 88px; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, a { touch-action: manipulation; }

.skip-link {
  position: fixed; z-index: 100; top: 12px; left: 12px;
  padding: 10px 16px; border-radius: 10px;
  background: var(--ink); color: #fff; text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
section[id] { scroll-margin-top: 88px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

a { color: inherit; }

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 15px 30px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 8px 20px rgba(0, 124, 114, .22);
}
.btn:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,124,114,.28); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-sm { padding: 10px 20px; font-size: 14px; box-shadow: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 252, 247, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand img { width: auto; height: 32px; display: block; }
.nav-links { display: flex; gap: 28px; }
/* O CTA sempre à direita, com ou sem os links do meio — sem depender do
   margin-left:auto do .nav-links, que some no mobile e deixava a posição
   do botão a mercê da ordem no flex. */
.nav-inner > .btn { margin-left: auto; }
.nav-links a {
  text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-soft);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--primary); }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 11px; flex: 0 0 44px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 90px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 64px; align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(156, 221, 50, .22);
  color: #3d5c00; font-weight: 700; font-size: 13px;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.social-proof-pill {
  color: var(--primary-dark); background: rgba(0,124,114,.09);
  border: 1px solid rgba(0,124,114,.1);
}
h1 {
  font-size: clamp(40px, 6vw, 62px); line-height: 1.05;
  font-weight: 800; letter-spacing: -.03em; margin-bottom: 20px;
}
h1, h2, h3 { text-wrap: balance; }
h1 em { font-style: normal; color: var(--primary); }
.lead { font-size: 19px; color: var(--ink-soft); max-width: 30em; margin-bottom: 30px; }
.lead strong { color: var(--ink); }
.micro { font-size: 13px; color: var(--ink-soft); margin-top: 12px; }
.offer-hint { margin-top: 14px; color: var(--ink-soft); font-size: 13px; }
.offer-hint strong { color: var(--primary); }

.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-quiz-btn { display: inline-flex; align-items: center; gap: 10px; }
.hero-quiz-btn span { font-size: 20px; transition: transform .15s ease; }
.hero-quiz-btn:hover span { transform: translateX(3px); }
.store-row { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
.store-badge-item { display: grid; justify-items: center; gap: 6px; }
.official-store-badge {
  display: block; height: 48px; border-radius: 8px; text-decoration: none;
  transition: transform .15s ease, filter .15s ease;
}
.official-store-badge img { display: block; width: auto; height: 48px; object-fit: contain; }
/* O PNG oficial da Google Play tem 12% de margem transparente em cima e
   embaixo (190 de 250px são selo); o SVG da Apple não tem nenhuma. */
.official-store-badge img.badge-google { height: calc(48px / .76); margin-block: calc(48px * -.12 / .76); }
a.official-store-badge:hover { transform: translateY(-2px); filter: drop-shadow(0 10px 12px rgba(16,22,20,.16)); }

/* ---------- Formulário ---------- */
.signup { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }
.signup input {
  flex: 1 1 240px; min-width: 0;
  padding: 15px 20px; font: inherit;
  border: 2px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  transition: border-color .15s ease;
}
.signup input:focus-visible { outline: 3px solid rgba(255, 113, 84, .7); outline-offset: 2px; border-color: var(--primary); }
.form-msg {
  flex-basis: 100%; font-size: 14px; font-weight: 600;
  margin: 4px 0 0 8px; min-height: 1.2em;
}
.form-msg.ok { color: var(--primary); }
.form-msg.err { color: #c0392b; }
.signup.big input, .signup.big .btn { padding-top: 17px; padding-bottom: 17px; }
.signup.big { max-width: 520px; margin: 0 auto; }

/* ---------- Produto real no hero ---------- */
.hero-art { position: relative; min-height: 640px; display: flex; justify-content: center; align-items: flex-end; }
.hero-glow {
  position: absolute; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(156,221,50,.36), rgba(156,221,50,0) 68%);
  top: 40px; left: 50%; transform: translateX(-50%);
}
.hero-product {
  position: relative; z-index: 2; width: min(420px, 92%); height: auto; display: block;
  filter: drop-shadow(0 32px 34px rgba(0, 60, 55, .2));
}
.hero-note {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border: 1px solid rgba(0,124,114,.12); border-radius: 14px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  color: var(--ink); font-size: 13px; font-weight: 700;
  box-shadow: 0 12px 28px rgba(0,60,55,.12);
}
.hero-note span { color: var(--secondary); }
.hero-note-photo { top: 29%; left: -1%; }
.hero-note-nutra { right: -4%; bottom: 22%; }

.blob { position: absolute; border-radius: 50%; filter: blur(64px); z-index: 1; }
.blob-1 { width: 320px; height: 320px; background: rgba(156, 221, 50, .40); top: -30px; right: -20px; }
.blob-2 { width: 280px; height: 280px; background: rgba(255, 113, 84, .28); bottom: -20px; left: -30px; }

/* ---------- Lançamento nas lojas ---------- */
.platform-status { border-block: 1px solid var(--line); background: rgba(255,255,255,.7); }
.platform-status-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.platform-status-inner > div {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px;
  padding: 24px 36px; align-items: center;
}
.platform-status-inner > div + div { border-left: 1px solid var(--line); }
.platform-status strong, .platform-status small { display: block; grid-column: 2; }
.platform-status small { color: var(--ink-soft); margin-top: 2px; }
.status-dot { grid-row: 1 / 3; width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 0 6px rgba(0,124,114,.1); }
.status-dot.live { background: var(--primary); }

/* ---------- Faixa de números ---------- */
.strip { background: var(--primary); color: #fff; padding: 34px 0; }
.strip-inner { display: flex; justify-content: space-around; gap: 24px; text-align: center; flex-wrap: wrap; }
.strip-inner strong { display: block; font-size: 34px; font-weight: 800; line-height: 1.1; }
.strip-inner span { font-size: 14px; opacity: .88; }

/* ---------- Caminhos: quiz personalizado ou app gratuito ---------- */
.quiz-path {
  position: relative; overflow: hidden;
  background: linear-gradient(145deg, #ffffff 0%, #f3faef 54%, #fff5e9 100%);
  border-bottom: 1px solid var(--line);
}
.quiz-path-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 72px; align-items: center;
}
.quiz-path-copy h2 {
  max-width: 10em; margin: 12px 0 18px;
  font-size: clamp(34px, 4.5vw, 52px); line-height: 1.08; letter-spacing: -.03em;
}
.quiz-path-copy > p { max-width: 38em; color: var(--ink-soft); font-size: 17px; }
.quiz-path-steps { list-style: none; display: grid; gap: 14px; margin: 28px 0; }
.quiz-path-steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: center; }
.quiz-path-steps li > span {
  grid-row: 1 / 3; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 13px; background: var(--primary); color: #fff; font-weight: 800;
}
.quiz-path-steps strong, .quiz-path-steps small { display: block; }
.quiz-path-steps small { color: var(--ink-soft); margin-top: 1px; }
.quiz-offer-inline {
  display: grid; gap: 2px; max-width: 430px; padding: 18px 20px;
  border: 1px solid rgba(0,124,114,.18); border-radius: 18px;
  background: rgba(255,255,255,.82); box-shadow: 0 14px 34px rgba(0,60,55,.08);
}
.quiz-offer-inline span { color: var(--primary); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.quiz-offer-inline strong { font-size: 25px; letter-spacing: -.02em; }
.quiz-offer-inline small { color: var(--ink-soft); }
.quiz-path-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 24px; }
.quiz-path-visual { position: relative; min-height: 640px; display: grid; place-items: center; }
.quiz-path-visual img {
  position: relative; z-index: 2; width: min(430px, 92%); height: auto; display: block;
  filter: drop-shadow(0 28px 36px rgba(0,60,55,.18));
}
.quiz-path-orbit {
  position: absolute; width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle, rgba(156,221,50,.38), rgba(156,221,50,0) 68%);
  animation: quiz-breathe 4s ease-in-out infinite;
}
.quiz-result-card {
  position: absolute; z-index: 3; right: -2%; bottom: 15%;
  display: flex; align-items: center; gap: 11px; padding: 13px 16px;
  border: 1px solid rgba(0,124,114,.14); border-radius: 16px;
  background: rgba(255,255,255,.94); box-shadow: 0 16px 36px rgba(0,60,55,.13);
  animation: quiz-float 3.5s ease-in-out infinite;
}
.quiz-result-card > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; }
.quiz-result-card strong, .quiz-result-card small { display: block; }
.quiz-result-card small { color: var(--ink-soft); margin-top: 1px; }

.has-js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.has-js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.has-js .quiz-path-visual[data-reveal] { transition-delay: .1s; }

@keyframes quiz-breathe {
  0%, 100% { transform: scale(.96); opacity: .76; }
  50% { transform: scale(1.04); opacity: 1; }
}
@keyframes quiz-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Seções ---------- */
.section { padding: 90px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-title {
  font-size: clamp(30px, 4vw, 42px); font-weight: 800;
  letter-spacing: -.02em; text-align: center; margin-bottom: 14px;
}
.section-title em { font-style: normal; color: var(--primary); }
.section-sub {
  text-align: center; color: var(--ink-soft); font-size: 17px;
  max-width: 34em; margin: 0 auto 52px;
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(0,60,55,.10); border-color: var(--primary); }
.card .icon { font-size: 30px; margin-bottom: 14px; }
.card h3 { font-size: 19px; margin-bottom: 9px; }
.card p { color: var(--ink-soft); font-size: 15px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 48px; }
.feature h3 { font-size: 20px; margin-bottom: 10px; }
.feature p { color: var(--ink-soft); }

/* ---------- Avaliações reais ---------- */
.stories { overflow: hidden; background: linear-gradient(180deg, #fffaf2 0%, #f5fbf6 100%); }
.stories-heading {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-bottom: 38px;
}
.stories-heading h2 {
  max-width: 16em; margin: 10px 0 12px;
  font-size: clamp(32px, 4vw, 46px); line-height: 1.1; letter-spacing: -.03em;
}
.stories-heading h2 em { color: var(--primary); font-style: normal; }
.stories-heading p { max-width: 42em; color: var(--ink-soft); font-size: 17px; }
.stories-controls { display: flex; gap: 10px; flex: 0 0 auto; }
.stories-controls button {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid rgba(0,124,114,.2); border-radius: 50%;
  background: var(--surface); color: var(--primary); font: inherit; font-size: 20px;
  cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease;
}
.stories-controls button:hover { transform: translateY(-2px); background: var(--primary); color: #fff; }
.stories-window {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}
.stories-track {
  display: flex; gap: 20px; width: max-content; max-width: 100%;
  padding: 8px max(5vw, calc((100vw - var(--wrap)) / 2 + 24px)) 28px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-inline: contain;
}
.stories-track::-webkit-scrollbar { display: none; }
/* Rolagem contínua: o snap puxaria o card de volta a cada quadro, e o recuo
   lateral quebraria a emenda entre o último card e a cópia do primeiro. */
.stories-track.is-marquee { scroll-snap-type: none; padding-inline: 0; }
.story-card {
  flex: 0 0 350px; min-height: 300px; display: flex; flex-direction: column;
  scroll-snap-align: start; padding: 28px; border: 1px solid rgba(0,124,114,.1);
  border-radius: 26px; background: rgba(255,255,255,.92);
  box-shadow: 0 16px 42px rgba(0,60,55,.08);
}
.review-stars { color: #f5b301; font-size: 16px; letter-spacing: .08em; }
.story-card blockquote { margin: 22px 0 26px; }
.story-card blockquote p { color: var(--ink); font-size: 16px; line-height: 1.7; font-style: italic; }
.review-person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review-avatar {
  width: 48px; height: 48px; display: block; flex: 0 0 48px; object-fit: cover;
  border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,124,114,.13), 0 5px 14px rgba(0,60,55,.1);
}
.review-person strong, .review-person small { display: block; }
.review-person small { margin-top: 2px; color: var(--ink-soft); font-size: 12px; }
.review-adaptation-note { max-width: 1120px; margin: 18px auto 0; padding: 0 24px; color: var(--ink-soft); font-size: 11px; text-align: center; }

/* ---------- Prova visual ---------- */
.visual-proof { padding-top: 72px; background: linear-gradient(135deg, #f1f9f4 0%, #fffaf2 100%); }
.proof-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 76px; align-items: center; }
.proof-image { position: relative; max-width: 450px; margin: 0 auto; }
.proof-image::before {
  content: ""; position: absolute; inset: 8% -8% -5% 8%; border-radius: 34px;
  background: rgba(156,221,50,.22); transform: rotate(3deg);
}
.proof-image img {
  position: relative; width: 100%; height: auto; display: block; border-radius: 30px;
  box-shadow: 0 24px 60px rgba(0,60,55,.16);
}
.eyebrow { color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.proof-copy h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -.03em; margin: 12px 0 18px; }
.proof-copy > p { color: var(--ink-soft); font-size: 17px; max-width: 37em; }
.mini-steps { list-style: none; display: grid; gap: 16px; margin: 30px 0; }
.mini-steps li { display: flex; align-items: center; gap: 14px; }
.mini-steps li > span {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 800;
}
.mini-steps strong, .mini-steps small { display: block; }
.mini-steps small { color: var(--ink-soft); margin-top: 2px; }
.text-link { color: var(--primary); font-weight: 800; text-decoration: none; }
.text-link:hover { color: var(--primary-dark); }

/* ---------- Planos ---------- */
.plans {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 26px; max-width: 800px; margin: 0 auto; align-items: start;
}
.plan {
  background: var(--surface); border: 2px solid var(--line);
  border-radius: var(--radius); padding: 34px 30px; position: relative;
}
.plan.featured { border-color: var(--primary); box-shadow: 0 18px 44px rgba(0,124,114,.14); }
.tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 16px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 20px; margin-bottom: 6px; }
.price { font-size: 38px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 22px; }
.price span { font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.plan li { padding-left: 28px; position: relative; font-size: 15px; color: var(--ink-soft); }
.plan li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  color: var(--primary); font-weight: 800;
}
.plan.featured li { color: var(--ink); }
.plan-offer {
  display: grid; gap: 2px; margin: 0 0 22px; padding: 14px 16px;
  border-radius: 14px; background: rgba(156,221,50,.16);
}
.plan-offer span { color: var(--primary); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.plan-offer strong { font-size: 17px; }
.plan-offer small { color: var(--ink-soft); }

/* ---------- CTA ---------- */
.cta { background: var(--primary); color: #fff; padding: 84px 0; text-align: center; }
.cta h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.cta p { font-size: 17px; opacity: .92; max-width: 32em; margin: 0 auto 32px; }
.cta .signup input { border-color: transparent; }
.cta .btn { background: var(--secondary); color: #14201e; box-shadow: none; }
.cta .btn:hover { background: #8fce27; }
.cta .form-msg.ok { color: var(--secondary); }
.cta .form-msg.err { color: #ffd7d0; }
.cta-store-row { justify-content: center; }

/* ---------- FAQ ---------- */
details {
  border-bottom: 1px solid var(--line); padding: 20px 0;
}
summary {
  font-weight: 700; font-size: 17px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--primary); font-size: 26px; font-weight: 400; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--ink-soft); margin-top: 12px; }

/* ---------- Rodapé ---------- */
.footer { background: #10201d; color: #cfdcd9; padding: 54px 0 26px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-logo { width: auto; height: 28px; filter: brightness(0) invert(1); margin-bottom: 10px; }
.footer .micro { color: #93a8a4; margin: 0; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #cfdcd9; text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--secondary); }
/* A atribuição das fontes vem antes do copyright e leva a borda que
   separava o rodapé — assim o crédito fica visível sem competir com o
   conteúdo, e o copyright continua fechando a página. */
.sources {
  text-align: center; color: #6f8582; font-size: 12.5px; line-height: 1.6;
  max-width: 640px; margin: 40px auto 0; padding-top: 22px;
  border-top: 1px solid #1d312d;
}
.sources a { color: #8fa5a1; text-decoration: underline; }
.sources a:hover { color: var(--secondary); }
.sources strong { color: #8fa5a1; font-weight: 600; }

.copyright {
  text-align: center; color: #6f8582; font-size: 13px;
  margin-top: 18px;
}

/* ---------- Páginas de texto (privacidade/termos) ---------- */
.legal { padding: 64px 0 90px; }
.legal h1 { font-size: 38px; margin-bottom: 8px; }
.legal .updated { color: var(--ink-soft); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 22px; margin: 38px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--primary); }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .hero { padding: 52px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero-copy { text-align: center; }
  .hero-actions { justify-content: center; }
  .store-row { justify-content: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .signup { justify-content: center; }
  .nav-inner { gap: 12px; }
  .nav-links { display: none; }
  /* Sem JS o botão não teria o que fazer; nesse caso os links só somem,
     como sempre foi. */
  .has-js .nav-toggle { display: flex; }
  .has-js .nav.is-open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 8px 24px 16px;
    background: rgba(255, 252, 247, .98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(0, 60, 55, .08);
  }
  .has-js .nav.is-open .nav-links a {
    padding: 14px 0; font-size: 17px; color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .has-js .nav.is-open .nav-links a:last-child { border-bottom: 0; }
  .brand img { height: 40px; }
  .section { padding: 64px 0; }
  .hero-art { min-height: 540px; }
  .hero-product { width: min(390px, 86%); }
  .hero-note-photo { left: 5%; }
  .hero-note-nutra { right: 2%; }
  .proof-grid { grid-template-columns: 1fr; gap: 48px; }
  .quiz-path-grid { grid-template-columns: 1fr; gap: 42px; }
  .quiz-path-copy { text-align: center; }
  .quiz-path-copy h2, .quiz-path-copy > p, .quiz-offer-inline { margin-inline: auto; }
  .quiz-path-steps { max-width: 460px; margin-inline: auto; text-align: left; }
  .quiz-path-actions { justify-content: center; }
  .quiz-path-visual { min-height: 560px; }
  .proof-copy { text-align: center; }
  .proof-copy > p { margin-inline: auto; }
  .stories-heading { align-items: center; }
  .mini-steps { max-width: 430px; margin-inline: auto; text-align: left; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 620px) {
  .hero { padding-top: 42px; }
  .hero-art { min-height: 480px; }
  .hero-note { font-size: 11px; padding: 8px 10px; }
  .hero-note-photo { top: 30%; left: 0; }
  .hero-note-nutra { right: 0; bottom: 18%; }
  .platform-status-inner { grid-template-columns: 1fr; }
  .platform-status-inner > div { padding: 20px 24px; }
  .platform-status-inner > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .store-row { justify-content: center; }
  .hero-actions { flex-direction: column; }
  .hero-actions > .btn { width: min(100%, 340px); text-align: center; justify-content: center; }
  .stories-heading { display: block; text-align: center; }
  .stories-heading p { margin-inline: auto; }
  .stories-controls { justify-content: center; margin-top: 24px; }
  .stories-window { mask-image: none; }
  .stories-track { padding-inline: 24px; }
  .story-card { flex-basis: min(84vw, 330px); min-height: 320px; }
  .quiz-path-visual { min-height: 480px; }
  .quiz-path-visual img { width: min(370px, 90%); }
  .quiz-result-card { right: 0; bottom: 10%; padding: 10px 12px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================================
   Página de venda (reescrita da LP)
   ========================================================================= */

/* ---------- Fase: pré-lançamento x no ar ----------
   O app ainda está em revisão na Google Play. Enquanto estiver, a página
   inteira precisa falar em lista de espera; quando entrar no ar, nos botões
   de compra. As duas versões vivem no HTML e o JS troca o atributo do body
   — assim virar a chave é uma linha, não uma reescrita da página. */
[data-phase="prelaunch"] .when-live { display: none !important; }
[data-phase="launched"] .when-soon { display: none !important; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-ghost {
  background: transparent; color: var(--primary);
  box-shadow: none; border: 2px solid var(--primary);
}
.btn-ghost:hover { background: rgba(0, 124, 114, .08); color: var(--primary-dark); }
.center { text-align: center; }

/* ---------- O problema ---------- */
.problem .section-sub { margin-bottom: 38px; }
.pains { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.pains li {
  position: relative; padding-left: 34px;
  color: var(--ink-soft); font-size: 16.5px;
}
.pains li::before {
  content: "✕"; position: absolute; left: 4px; top: 1px;
  color: var(--accent); font-weight: 800;
}
.pains strong { color: var(--ink); }
.turn {
  margin-top: 34px; padding: 22px 26px;
  background: rgba(156, 221, 50, .16); border-left: 4px solid var(--secondary);
  border-radius: 0 14px 14px 0; font-size: 17px;
}

/* ---------- Prints do app ---------- */
.shots {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px; max-width: 900px; margin: 0 auto;
}
.shots figure { display: flex; flex-direction: column; gap: 16px; align-items: center; }
/* Print de celular é quase 1:2,3. Esticado a 100% da largura da coluna, cada
   um passava de 700px de altura — 0,9 da tela do visitante, três deles
   viravam quase três telas de rolagem só de imagem. O teto de altura manda
   mais que a largura aqui: a imagem encolhe até caber em pouco mais de meia
   tela, e a largura acompanha sozinha. */
.shots img {
  max-width: 100%; max-height: 58vh; width: auto; height: auto; display: block;
  border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(0, 60, 55, .12);
}
.shots figcaption { color: var(--ink-soft); font-size: 14.5px; text-align: center; }

/* ---------- Três planos ---------- */
.plans-3 { max-width: var(--wrap); }
.plan-line { color: var(--ink-soft); font-size: 14px; margin: -14px 0 20px; min-height: 2.8em; }
.plan-btn { width: 100%; text-align: center; margin-top: 26px; }
.tag-alt { background: var(--ink); }

/* ---------- Comparativo ----------
   A tabela é larga demais para caber num celular sem espremer as colunas a
   ponto de virar ilegível, então rola sozinha dentro do próprio bloco — a
   página nunca rola de lado. */
.table-scroll { overflow-x: auto; margin: 64px auto 18px; max-width: var(--wrap); }
.compare {
  width: 100%; min-width: 760px; border-collapse: collapse;
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
}
.compare caption { caption-side: top; text-align: left; font-weight: 700; margin-bottom: 14px; }
.compare th, .compare td { padding: 14px 16px; text-align: center; font-size: 15px; }
/* Os valores nunca quebram em duas linhas: "Ilimitado" e "Completo" cabiam
   raspando na largura antiga e encostavam um no outro, dando a impressão de
   que a tabela estava embolada. O nome do recurso continua quebrando, senão
   é ele que estoura a largura. */
.compare tbody td, .compare thead th { white-space: nowrap; }
.compare tbody th { white-space: normal; min-width: 260px; }
.compare tbody td { min-width: 116px; }
.compare thead th { background: var(--ink); color: #fff; font-size: 15px; }
.compare thead th.hi { background: var(--primary); }
.compare tbody th {
  text-align: left; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.compare tbody td { color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.compare tbody td.hi { background: rgba(0, 124, 114, .05); color: var(--ink); font-weight: 600; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--primary); font-weight: 700; }
.compare .no { color: #a9b5b2; }

/* ---------- CTA final ---------- */
.cta .btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.cta .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Dica de arrasto: a tabela rola dentro do próprio bloco, mas num celular
   nada indica isso — a pessoa vê as colunas cortadas e conclui que a página
   está quebrada. Some no desktop, onde a tabela cabe inteira. */
.table-hint { display: none; }

@media (max-width: 900px) {
  .cta-row { justify-content: center; }
  .plan-line { min-height: 0; }
  .shots { gap: 40px; }
  .table-hint {
    display: block; text-align: center; margin: 0 0 10px;
    font-size: 13px; color: var(--ink-soft);
  }
  .table-scroll { margin-top: 48px; }
  .compare th, .compare td { padding: 13px 14px; font-size: 14.5px; }
}
