/* 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; }

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;
}

.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 { 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); }

/* ---------- 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-block; background: rgba(156, 221, 50, .22);
  color: #3d5c00; font-weight: 700; font-size: 13px;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
h1 {
  font-size: clamp(40px, 6vw, 62px); line-height: 1.05;
  font-weight: 800; letter-spacing: -.03em; margin-bottom: 20px;
}
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; }

/* ---------- 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 { outline: none; 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; }

/* ---------- Mockup do celular ---------- */
.hero-art { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; z-index: 2;
  width: 300px; height: 600px;
  background: #101614; border-radius: 42px; padding: 12px;
  box-shadow: 0 30px 70px rgba(0, 60, 55, .28);
}
.phone-screen {
  width: 100%; height: 100%; background: var(--bg);
  border-radius: 32px; padding: 22px 18px; overflow: hidden;
  display: flex; flex-direction: column; gap: 16px;
}
.chat-head { display: flex; align-items: center; gap: 11px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.chat-head strong { display: block; font-size: 15px; }
.online { font-size: 12px; color: var(--secondary); font-weight: 600; }
.bubbles { display: flex; flex-direction: column; gap: 11px; }
.bubble {
  padding: 13px 16px; border-radius: 18px; font-size: 14px;
  animation: rise .5s ease backwards;
}
.bubble.user {
  align-self: flex-end; background: var(--primary); color: #fff;
  border-bottom-right-radius: 6px; max-width: 85%; animation-delay: .1s;
}
.bubble.bot {
  align-self: flex-start; background: var(--surface);
  border: 1px solid var(--line); border-bottom-left-radius: 6px;
  max-width: 92%; animation-delay: .45s;
}
.bubble.total { animation-delay: .8s; }
.chip {
  display: inline-block; margin-top: 7px; margin-right: 5px;
  background: rgba(156, 221, 50, .2); color: #3d5c00;
  font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.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; }

/* ---------- 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; }

/* ---------- 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); }

/* ---------- 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); }

/* ---------- 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; }

/* ---------- 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 { 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; }
  .lead { margin-left: auto; margin-right: auto; }
  .signup { justify-content: center; }
  .nav-links { display: none; }
  .brand img { height: 40px; }
  .section { padding: 64px 0; }
  .footer-inner { flex-direction: column; }
}

@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; }
}
