/* ==========================================================================
   SmartAgendaIA — Landing page
   Tokens de marca reaproveitados de frontend/src/index.css (produto Omnichat):
   fundo creme, verde de marca (#0F3B34) e dourado (#C0842C).
   Tema único (claro/creme) — a landing é peça de marca, não segue o tema do app.
   ========================================================================== */

:root {
  /* --- Tokens de marca (espelham frontend/src/index.css) --- */
  --cream: 47 27% 94%;          /* fundo geral */
  --brand-green: 170 59% 15%;   /* #0F3B34 — verde profundo (seções escuras) */
  --gold: 36 63% 46%;           /* #C0842C — acento pontual (preenchimentos/ícones) */
  /* Mesmo dourado, escurecido para uso em TEXTO: o #C0842C sobre creme fica em
     2,86:1 e reprova no AA. Este passa (4,4:1 sobre creme; 4,9:1 com texto branco). */
  --gold-text: 36 63% 36%;
  --ink: 159 24% 11%;           /* texto principal */
  --muted-ink: 154 8% 38%;      /* texto secundário */

  /* Verde primário de ação (botões/ícones): o verde de marca clareado.
     Mesmo matiz do brand, luminosidade do --sidebar-primary do app. */
  --green: 170 50% 34%;
  --green-soft: 170 40% 92%;    /* tint para chips de ícone */

  --surface: 0 0% 100%;         /* cards */
  --border: 46 19% 87%;
  --whatsapp: 142 62% 40%;

  --radius: 0.75rem;
  --radius-lg: 1.25rem;

  --shadow-card: 0 1px 3px 0 hsl(159 24% 11% / 0.05), 0 1px 2px -1px hsl(159 24% 11% / 0.04);
  --shadow-card-hover: 0 12px 28px -12px hsl(159 24% 11% / 0.18);
  --shadow-lift: 0 24px 60px -24px hsl(159 24% 11% / 0.35);

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ----------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* header fixo (verde) tem ~92px; recua as âncoras para as seções não ficarem
     cortadas por baixo dele ao navegar pelo menu */
  scroll-padding-top: 104px;
}

/* Fundo do documento: branco. A "folha" central (.page) é que leva o creme,
   então no desktop sobram margens brancas dos dois lados. */
body {
  font-family: var(--font-body);
  background: #fff;
  color: hsl(var(--ink));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Coluna central (todo o conteúdo: header, main e footer) */
.page {
  max-width: 1320px;
  margin: 0 auto;
  background: hsl(var(--cream));
  box-shadow: 0 0 0 1px hsl(var(--ink) / 0.06);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: hsl(var(--green) / 0.18); }

/* Foco visível e consistente (acessibilidade) */
:focus-visible {
  outline: 3px solid hsl(var(--green));
  outline-offset: 3px;
  border-radius: 4px;
}
/* Sobre a topbar verde o anel verde sumiria: usa dourado */
.site-header :focus-visible { outline-color: hsl(var(--gold)); }

/* Pular para o conteúdo (leitores de tela / teclado) */
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: hsl(var(--brand-green)); color: #fff;
  padding: 12px 18px; border-radius: var(--radius); font-weight: 600;
  transition: top .18s ease;
}
.skip-link:focus { top: 16px; }

/* --------------------------------------------------------------- Layout */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }

/* Label de seção: MAIÚSCULAS + letter-spacing, com filetes laterais */
.eyebrow {
  display: flex; align-items: center; gap: 18px;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: hsl(var(--muted-ink));
  margin-bottom: 12px;
}
.eyebrow::before, .eyebrow::after {
  content: ""; flex: 1; height: 1px; background: hsl(var(--ink) / 0.14);
}
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .lede {
  font-size: 1rem; color: hsl(var(--muted-ink)); max-width: 560px; margin: 0 auto;
}

h1, h2, h3, .brand-name { font-family: var(--font-display); font-weight: 700; }

/* --------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  border-radius: 999px; padding: 0 22px; height: 46px;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease,
              transform .2s ease, box-shadow .2s ease;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: hsl(var(--green)); color: #fff; }
.btn-primary:hover { background: hsl(var(--green) / 0.9); box-shadow: 0 10px 24px -10px hsl(var(--green) / 0.8); transform: translateY(-1px); }

.btn-dark { background: hsl(var(--brand-green)); color: #fff; }
.btn-dark:hover { background: hsl(var(--brand-green) / 0.9); box-shadow: 0 10px 24px -10px hsl(var(--brand-green) / 0.7); transform: translateY(-1px); }

.btn-white { background: #fff; color: hsl(var(--brand-green)); }
.btn-white:hover { background: hsl(47 30% 96%); box-shadow: 0 12px 28px -12px hsl(0 0% 0% / 0.45); transform: translateY(-1px); }

.btn-outline { border-color: hsl(var(--ink) / 0.18); color: hsl(var(--ink)); background: transparent; }
.btn-outline:hover { background: hsl(var(--green)); border-color: hsl(var(--green)); color: #fff; }

.btn-lg { height: 54px; padding: 0 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* "Entrar" — vive na topbar verde (desktop e menu mobile) */
.btn-link {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 600;
  color: hsl(47 25% 88%);            /* 8,9:1 sobre o verde */
  border: 1px solid hsl(0 0% 100% / 0.35);
  padding: 10px 18px; border-radius: 999px;
  transition: color .15s, background-color .15s, border-color .15s;
}
.btn-link:hover { color: hsl(var(--brand-green)); background: #fff; border-color: #fff; }

/* --------------------------------------------------------------- Header */
/* Topbar em verde profundo — todo o texto sobre ela é claro (ver contrastes
   nos comentários de cada regra). */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: hsl(var(--brand-green));
  border-bottom: 1px solid hsl(0 0% 100% / 0.10);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 80px; padding: 12px 0; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; }
.brand-name {
  display: block;
  font-size: 1.5rem; letter-spacing: -0.01em; line-height: 1.1;
  color: #fff;                       /* 12,1:1 sobre o verde */
}
.brand-name b { color: hsl(var(--gold)); font-weight: 700; }  /* 3,8:1 — texto grande */
.brand-tagline {
  display: block;
  font-size: 0.72rem; line-height: 1.35; margin-top: 2px; max-width: 210px;
  color: hsl(47 25% 88%);            /* 8,9:1 sobre o verde */
}

.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav .navlink {
  position: relative; padding: 8px 14px; font-size: 0.95rem; font-weight: 500;
  white-space: nowrap;
  color: hsl(47 25% 88%);            /* 8,9:1 sobre o verde */
  transition: color .15s;
}
.nav .navlink:hover { color: #fff; }
.nav .navlink[aria-current="true"] { color: #fff; font-weight: 600; }
.nav .navlink[aria-current="true"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0;
  height: 2px; border-radius: 2px; background: hsl(var(--gold));
}

.header-actions { display: flex; align-items: center; gap: 10px; }

/* CTA duplicado do menu: só aparece dentro da nav aberta no mobile */
.mobile-only { display: none; }

.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: transparent; border: 1px solid hsl(0 0% 100% / 0.35);
  color: #fff; cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* --------------------------------------------------------------- Hero */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }

.hero h1 {
  font-size: clamp(2.2rem, 1.2rem + 3.4vw, 3.35rem);
  line-height: 1.14; letter-spacing: -0.015em; color: hsl(var(--brand-green));
}
.hero h1 .gold { color: hsl(var(--gold-text)); }
.hero-sub { margin-top: 24px; font-size: 1.08rem; color: hsl(var(--muted-ink)); max-width: 460px; }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-seal {
  margin-top: 26px; display: flex; align-items: center; gap: 10px;
  font-size: 0.875rem; color: hsl(var(--muted-ink));
}
.hero-seal svg { width: 20px; height: 20px; color: hsl(var(--green)); flex-shrink: 0; }

/* Palco do hero: foto da recepção + celular sobreposto */
.hero-stage { position: relative; border-radius: var(--radius-lg); }
.hero-photo-wrap {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 11;   /* próximo da foto (770×400) para cortar pouco */
  box-shadow: var(--shadow-lift);
  background: linear-gradient(135deg, hsl(38 30% 82%), hsl(160 18% 72%));
}
.hero-photo { width: 100%; height: 100%; object-fit: cover; }
/* Tint verde para integrar a foto ao tema */
.hero-photo-wrap::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, hsl(var(--brand-green) / 0.30), hsl(var(--brand-green) / 0.10) 55%, hsl(var(--gold) / 0.10));
  pointer-events: none;
}

/* --------------------------------------------------------------- Celular / chat */
.phone {
  position: absolute; right: -8px; bottom: -36px; z-index: 2;
  width: 260px;
  background: #0d1512; border-radius: 34px; padding: 9px;
  box-shadow: var(--shadow-lift), 0 0 0 1px hsl(0 0% 100% / 0.12) inset;
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.phone-screen {
  background: #ece5dd; border-radius: 27px; overflow: hidden;
  display: flex; flex-direction: column; height: 430px;
}
.phone-statusbar {
  display: flex; align-items: center; justify-content: space-between;
  background: hsl(var(--brand-green)); color: #fff;
  padding: 8px 14px 2px; font-size: 0.7rem; font-weight: 600;
}
.phone-statusbar .signal { display: flex; align-items: center; gap: 4px; }
.phone-statusbar svg { width: 13px; height: 13px; }

.phone-header {
  display: flex; align-items: center; gap: 9px;
  background: hsl(var(--brand-green)); color: #fff; padding: 6px 12px 11px;
}
.phone-back { width: 15px; height: 15px; flex-shrink: 0; opacity: 0.9; }
.phone-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: hsl(var(--green)); display: flex; align-items: center; justify-content: center;
}
.phone-avatar svg { width: 17px; height: 17px; color: #fff; }
.phone-who { line-height: 1.25; min-width: 0; }
.phone-name { font-size: 0.8rem; font-weight: 600; }
.phone-status { font-size: 0.65rem; opacity: 0.85; }
.phone-menu { margin-left: auto; width: 15px; height: 15px; opacity: 0.9; flex-shrink: 0; }

/* Área de mensagens (com scroll interno automático) */
.chat {
  flex: 1; overflow: hidden; padding: 12px 10px;
  display: flex; flex-direction: column; gap: 7px;
  background-color: #ece5dd;
  /* trama sutil do papel de parede do WhatsApp, em CSS */
  background-image: radial-gradient(hsl(38 20% 78% / 0.5) 1px, transparent 1px);
  background-size: 14px 14px;
  scroll-behavior: smooth;
}
.chat-scroll { display: flex; flex-direction: column; gap: 7px; margin-top: auto; }

.msg {
  max-width: 82%; padding: 6px 9px 5px; border-radius: 9px;
  font-size: 0.68rem; line-height: 1.4; position: relative;
  box-shadow: 0 1px 1px hsl(0 0% 0% / 0.09);
  /* estado inicial da animação; o JS revela */
  opacity: 0; transform: translateY(12px);
  transition: opacity .35s ease, transform .35s ease;
}
.msg.is-visible { opacity: 1; transform: translateY(0); }
.msg.from-clinic { align-self: flex-start; background: #fff; border-top-left-radius: 2px; color: #10231c; }
.msg.from-patient { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 2px; color: #10231c; }
.msg ul { list-style: none; margin: 4px 0 0; }
.msg li { padding-left: 9px; position: relative; }
.msg li::before { content: "•"; position: absolute; left: 0; }

.msg-meta {
  display: flex; align-items: center; justify-content: flex-end; gap: 3px;
  margin-top: 2px; font-size: 0.55rem; color: hsl(159 10% 45%);
}
.msg-meta .ticks { width: 13px; height: 13px; color: #8696a0; transition: color .3s ease; }
.msg.is-read .msg-meta .ticks { color: #53bdeb; } /* lido → azul */

/* Indicador "digitando…" */
.typing {
  align-self: flex-start; display: none;
  background: #fff; border-radius: 9px; border-top-left-radius: 2px;
  padding: 9px 11px; gap: 3px; box-shadow: 0 1px 1px hsl(0 0% 0% / 0.09);
}
.typing.is-visible { display: flex; }
.typing span {
  width: 5px; height: 5px; border-radius: 50%; background: #8696a0;
  animation: blink 1.3s infinite ease-in-out both;
}
.typing span:nth-child(2) { animation-delay: 0.18s; }
.typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

/* --------------------------------------------------------------- Cards (problema) */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: hsl(var(--surface) / 0.65);
  border: 1px solid hsl(var(--ink) / 0.08);
  border-radius: var(--radius);
  padding: 26px;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: hsl(var(--green) / 0.35);
}

.problem-card { display: grid; grid-template-columns: auto 1fr; gap: 16px 18px; align-items: start; }
.problem-num {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  color: hsl(var(--gold-text));
  background: hsl(var(--surface)); border: 1px solid hsl(var(--gold) / 0.35);
  padding: 5px 9px; border-radius: 8px;
}
.problem-card h3 { grid-column: 2; font-size: 1.05rem; color: hsl(var(--brand-green)); }
.problem-icon { grid-column: 1; color: hsl(var(--brand-green) / 0.55); }
.problem-icon svg { width: 34px; height: 34px; }
.problem-card p { grid-column: 2; font-size: 0.925rem; color: hsl(var(--muted-ink)); }

/* --------------------------------------------------------------- Como funciona (verde profundo) */
.flow-band {
  background: hsl(var(--brand-green));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 36px;
}
/* 4 passos + 3 setas: as setas ocupam colunas próprias (auto) */
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start; gap: 8px;
}
.flow-step { text-align: center; padding: 0 6px; }
.flow-icon {
  width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: hsl(var(--green));
  box-shadow: 0 8px 24px -10px hsl(0 0% 0% / 0.6);
}
.flow-icon.is-gold { background: hsl(var(--gold)); }
.flow-icon svg { width: 32px; height: 32px; color: #fff; }
.flow-step h3 { font-size: 1.05rem; margin-bottom: 6px; color: #fff; }
.flow-step p { font-size: 0.875rem; color: hsl(47 20% 88% / 0.78); line-height: 1.5; }

/* Seta com fluxo sutil */
.flow-arrow {
  display: flex; align-items: center; justify-content: center;
  height: 68px; color: hsl(47 20% 88% / 0.45);
}
.flow-arrow svg { width: 100%; max-width: 72px; height: 16px; overflow: visible; }
.flow-arrow .dash {
  stroke-dasharray: 5 5;
  animation: flow-dash 1.6s linear infinite;
}
@keyframes flow-dash { to { stroke-dashoffset: -20; } }

/* --------------------------------------------------------------- Recursos */
.feature-card { text-align: left; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 50%; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: hsl(var(--green)); color: #fff;
}
.feature-icon.is-gold { background: hsl(var(--gold)); }
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: hsl(var(--brand-green)); margin-bottom: 8px;
}
.feature-card p { font-size: 0.9rem; color: hsl(var(--muted-ink)); line-height: 1.55; }

/* --------------------------------------------------------------- Planos */
.billing-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  background: hsl(var(--ink) / 0.06); border-radius: 999px; padding: 5px;
  margin: 0 auto 36px; /* centralizado pelo wrapper */
}
.billing-toggle-wrap { display: flex; justify-content: center; }
.billing-opt {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; background: transparent; cursor: pointer;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  color: hsl(var(--muted-ink));
  padding: 9px 18px; border-radius: 999px;
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.billing-opt[aria-checked="true"] {
  background: hsl(var(--surface)); color: hsl(var(--brand-green));
  box-shadow: var(--shadow-card);
}
.discount-badge {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em;
  color: #fff; background: hsl(var(--gold-text)); /* texto pequeno: precisa de 4,5:1 */
  padding: 2px 8px; border-radius: 999px;
}

.plan {
  display: flex; flex-direction: column;
  background: hsl(var(--surface) / 0.65);
  border: 1px solid hsl(var(--ink) / 0.08);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.plan:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); border-color: hsl(var(--green) / 0.35); }
.plan-name {
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 600;
  color: hsl(var(--muted-ink)); text-align: center; margin-bottom: 12px;
}
.plan-price { text-align: center; min-height: 76px; }
.plan-strike {
  display: block; font-size: 0.85rem; color: hsl(var(--muted-ink));
  text-decoration: line-through; margin-bottom: 2px; min-height: 1.2em;
}
.plan-amount {
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 700;
  color: hsl(var(--brand-green)); letter-spacing: -0.01em;
}
.plan-amount .per { font-family: var(--font-body); font-size: 0.8rem; font-weight: 500; color: hsl(var(--muted-ink)); }
.plan-yearly { display: block; font-size: 0.72rem; color: hsl(var(--muted-ink)); margin-top: 4px; min-height: 1.1em; }
.plan-note { font-size: 0.85rem; color: hsl(var(--muted-ink)); text-align: center; margin-top: 4px; }

.plan-features { list-style: none; margin: 20px 0; display: flex; flex-direction: column; gap: 9px; }
.plan-features li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.85rem; color: hsl(var(--ink) / 0.85); }
.plan-features svg { width: 15px; height: 15px; color: hsl(var(--green)); flex-shrink: 0; margin-top: 3px; }
.plan .btn { margin-top: auto; }

/* Preços trocam com fade suave ao alternar o toggle */
.plan-price { transition: opacity .2s ease; }
.plan-price.is-swapping { opacity: 0; }

/* --------------------------------------------------------------- CTA final */
.final-cta {
  background: hsl(var(--brand-green)); color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px 44px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center;
}
.final-cta img { width: 96px; height: 96px; object-fit: contain; }
.final-cta h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem); line-height: 1.2; color: #fff; }
.final-cta p { margin-top: 10px; font-size: 0.95rem; color: hsl(47 20% 88% / 0.8); max-width: 340px; }
.final-cta-action { text-align: center; }
.final-cta-note { display: block; margin-top: 12px; font-size: 0.82rem; color: hsl(47 20% 88% / 0.7); }

/* --------------------------------------------------------------- Footer */
.site-footer { padding: 40px 0 48px; }
.footer-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center;
  border-top: 1px solid hsl(var(--ink) / 0.1); padding-top: 28px;
}
.footer-brand { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: hsl(var(--brand-green)); }
.footer-cnpj, .footer-copy { font-size: 0.8rem; color: hsl(var(--muted-ink)); margin-top: 4px; }
.footer-copy { text-align: center; }
.footer-contact { text-align: right; font-size: 0.8rem; color: hsl(var(--muted-ink)); }
.footer-site { display: block; font-weight: 600; color: hsl(var(--brand-green)); }
.footer-site:hover { color: hsl(var(--green)); }

/* --------------------------------------------------------------- Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in-view {
  opacity: 1; transform: none;
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--reveal-delay, 0ms);
}

/* --------------------------------------------------------------- Responsivo */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 72px; }
  .hero-stage { max-width: 560px; margin: 0 auto; }
  .hero-sub { max-width: none; }
  .flow { grid-template-columns: 1fr; gap: 26px; }
  .flow-arrow { height: auto; transform: rotate(90deg); }
  .flow-arrow svg { max-width: 44px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .final-cta { grid-template-columns: 1fr; text-align: center; gap: 24px; padding: 40px 28px; }
  .final-cta img { margin: 0 auto; }
  .final-cta p { margin-left: auto; margin-right: auto; }
}

@media (max-width: 860px) {
  .header-inner { min-height: 68px; gap: 12px; }
  .brand-tagline { display: none; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: hsl(var(--brand-green)); border-bottom: 1px solid hsl(0 0% 100% / 0.12);
    padding: 12px 24px 20px; box-shadow: var(--shadow-lift);
  }
  .nav.is-open { display: flex; }
  .nav .navlink { padding: 13px 8px; font-size: 1rem; }
  .nav .navlink[aria-current="true"]::after { display: none; }
  .nav.is-open .mobile-only { display: inline-flex; }
  .nav .btn { margin-top: 10px; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .header-actions .desktop-only { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .section { padding: 60px 0; }
  .grid-4 { grid-template-columns: 1fr; }
  .flow-band { padding: 36px 22px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 18px; }
  .footer-contact, .footer-copy { text-align: center; }
  .hero-cta .btn, .final-cta .btn { width: 100%; }
  .phone { position: relative; right: auto; bottom: auto; margin: -60px auto 0; }
  .hero-photo-wrap { aspect-ratio: 16 / 10; }
}

@media (max-width: 400px) {
  .billing-toggle { width: 100%; }
  .billing-opt { flex: 1; justify-content: center; padding: 9px 10px; }
}

/* --------------------------------------------------------------- Reduced motion
   Desliga floats, setas animadas e reveals; o chat é renderizado completo
   e estático pelo JS (ver main.js). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chat { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .msg { opacity: 1 !important; transform: none !important; }
  .phone { animation: none !important; }
  .card:hover, .plan:hover { transform: none; }
}
