/* ── LP /whatsapp · estilos locais ────────────────────────────────────────────
   Usa os tokens de styles.css — incluindo o verde da marca do WhatsApp, que
   vive lá como --wa-green/--on-wa-green (cor de terceiro, fora da paleta do
   Alfred, mas ainda assim um token só). Nada de cor crua aqui.

   As animações são todas CSS puro em loop, sem JS e sem observer: a seção
   "como funciona" é um filme curto de 12s que roda sozinho. Todas ficam
   desligadas em `prefers-reduced-motion` — no fim do arquivo — porque o
   conteúdo precisa ser legível parado.
   ────────────────────────────────────────────────────────────────────────── */

:root {
  /* #1214 — --wa-green e --on-wa-green agora vivem em styles.css, para o FAB
     e o mock partilharem o mesmo par. */
  --wa-bubble-in: var(--card2);
  /* #1214 — o verde da bolha e o MESMO --wa-green, lavado; escrito como rgba
     cru ele era um terceiro lugar a manter em sincronia com a marca. */
  --wa-bubble-out: color-mix(in srgb, var(--wa-green) 14%, transparent);
}
:root[data-theme="light"] {
  --wa-bubble-in: var(--surface);
  --wa-bubble-out: color-mix(in srgb, var(--wa-green) 12%, transparent);
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.wa-hero .hero-grid { align-items: center; }
.wa-eye .eyebrow-dot { background: var(--wa-green); }

.wa-badge-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px;
}
.wa-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--border2); background: var(--card);
  font-size: 13px; color: var(--dim);
}
.wa-badge svg { width: 14px; height: 14px; color: var(--wa-green-text, var(--wa-green)); flex: 0 0 auto; }

/* ── Telefone (usado no hero e no "como funciona") ────────────────────────── */

.wa-phone {
  width: 100%; max-width: 320px; margin: 0 auto;
  border: 8px solid var(--wa-bezel); border-radius: 34px;
  background: var(--bg);
  /* #1214 — o .wa-panel logo abaixo neste mesmo arquivo ja usa o token; esta
     era a ultima grafia da mesma elevacao (blur 80, spread -40, alpha .55,
     dentro da banda que --shadow-panel unificou). Importa duas vezes: no
     @media print o token vira `none` e um literal continuaria queimando
     tinta debaixo do aparelho. */
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

.wa-topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.wa-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-dim); color: var(--accent-text, var(--accent-bright));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex: 0 0 auto;
}
.wa-topbar .wa-who { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.2; }
.wa-topbar .wa-status { font-size: 11px; color: var(--muted); }

.wa-thread {
  padding: 14px 12px; min-height: 340px;
  display: flex; flex-direction: column; gap: 9px;
  background:
    radial-gradient(circle at 20% 10%, var(--accent-glow), transparent 55%),
    var(--bg);
}

.wa-msg {
  max-width: 82%; padding: 9px 12px; border-radius: 14px;
  font-size: 13px; line-height: 1.45; color: var(--text);
}
.wa-msg.in  { align-self: flex-start; background: var(--wa-bubble-in); border-bottom-left-radius: 4px; }
.wa-msg.out { align-self: flex-end; background: var(--wa-bubble-out); border-bottom-right-radius: 4px; }
.wa-msg .wa-time { display: block; margin-top: 3px; font-size: 10px; color: var(--muted); }

/* Botão de formulário dentro da bolha — como o WhatsApp desenha um Flow CTA. */
.wa-cta {
  margin-top: 8px; padding-top: 8px;
  border-top: 1px solid var(--border2);
  text-align: center; font-size: 13px; font-weight: 600;
  color: var(--wa-green-text, var(--wa-green));
}

/* Formulário nativo abrindo por cima da conversa. */
.wa-sheet {
  position: relative; margin-top: auto;
  border: 1px solid var(--border2); border-radius: 16px 16px 6px 6px;
  background: var(--surface); padding: 14px 13px;
}
.wa-sheet-title {
  margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--text);
  text-align: center;
}
.wa-field { margin-bottom: 11px; }
.wa-field .wa-lbl { display: block; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.wa-input {
  height: 28px; border: 1px solid var(--border2); border-radius: 7px;
  background: var(--bg); display: flex; align-items: center;
  padding: 0 9px; font-size: 12px; color: var(--text);
}
.wa-opt { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12px; color: var(--dim); }
.wa-radio {
  width: 13px; height: 13px; border-radius: 50%;
  border: 1.5px solid var(--border3); flex: 0 0 auto;
}
.wa-opt.on .wa-radio { border-color: var(--wa-green); box-shadow: inset 0 0 0 3px var(--wa-green); }
.wa-opt.on { color: var(--text); font-weight: 600; }
.wa-submit {
  margin-top: 12px; border-radius: 999px; padding: 8px;
  background: var(--wa-green); color: var(--on-wa-green);
  font-size: 12px; font-weight: 700; text-align: center;
}

/* ── Painel do Alfred (o outro lado da história) ──────────────────────────── */

.wa-panel {
  width: 100%; max-width: 380px;
  border: 1px solid var(--border); border-radius: 16px;
  background: var(--card); overflow: hidden;
  box-shadow: var(--shadow-panel);
}
.wa-panel-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 13px; background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.wa-panel-bar .pw-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border3); }
.wa-panel-bar .wa-panel-t {
  margin-left: 8px; font-family: var(--font-mono);
  font-size: 11px; color: var(--muted);
}
.wa-panel-body { padding: 14px; }

/* Cartão de respostas do formulário, como aparece no inbox. */
.wa-answers { border: 1px solid var(--border2); border-radius: 12px; padding: 12px; background: var(--surface); }
.wa-answers-h {
  display: flex; align-items: center; gap: 6px; margin-bottom: 10px;
  font-size: 12px; font-weight: 700; color: var(--ok-text);
}
.wa-answers-h svg { width: 14px; height: 14px; }
.wa-answer { margin-bottom: 9px; }
.wa-answer:last-child { margin-bottom: 0; }
.wa-answer dt { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.wa-answer dd { margin: 0; font-size: 13px; color: var(--text); font-weight: 500; }

.wa-route {
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border2);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: var(--dim);
}
.wa-tag {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px;
  background: var(--accent-dim); color: var(--accent-text, var(--accent-bright));
  /* Every other small tag in the LP mocks (.pw-tag, .pt-badge, .sec-chip)
     is Geist Mono; this one was the single Geist-bold survivor. */
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 600;
}
.wa-arrow { color: var(--muted); }

/* ── "Como funciona" · a linha do tempo animada ───────────────────────────── */

.wa-how { padding:var(--sec-y) 0; background: var(--card); border-block: 1px solid var(--border); }
@media (max-width: 760px) { }

.wa-how-grid {
  max-width: 1060px; margin: 46px auto 0; padding: 0 32px;
  display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center;
}
@media (max-width: 900px) {
  .wa-how-grid { grid-template-columns: 1fr; gap: 32px; padding: 0 20px; }
}

.wa-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.wa-step {
  display: flex; gap: 14px; padding: 15px 16px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
  transition: border-color var(--dur-slow) var(--ease-out), background var(--dur-slow) var(--ease-out), opacity var(--dur-slow) var(--ease-out);
  opacity: .45;
}
.wa-step-n {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--card2); color: var(--muted);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  transition: background var(--dur-slow) var(--ease-out), color var(--dur-slow) var(--ease-out);
}
.wa-step h3 { margin: 0 0 7px; font-size: 15px; font-weight: 600; line-height: 1.22; text-wrap: balance; color: var(--text); letter-spacing: var(--ls-tight); }
.wa-step p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--dim); }

/* O passo ativo acende. 12s de ciclo, 4 passos de 3s cada. */
.wa-step { animation: waStepCycle 12s infinite; }
.wa-step:nth-child(1) { animation-delay: 0s; }
.wa-step:nth-child(2) { animation-delay: 3s; }
.wa-step:nth-child(3) { animation-delay: 6s; }
.wa-step:nth-child(4) { animation-delay: 9s; }

@keyframes waStepCycle {
  0%, 24% { opacity: 1; border-color: var(--accent-border); background: var(--card2); }
  25%, 100% { opacity: .45; border-color: var(--border); background: var(--surface); }
}
.wa-step-n { animation: waStepNum 12s infinite; }
.wa-step:nth-child(1) .wa-step-n { animation-delay: 0s; }
.wa-step:nth-child(2) .wa-step-n { animation-delay: 3s; }
.wa-step:nth-child(3) .wa-step-n { animation-delay: 6s; }
.wa-step:nth-child(4) .wa-step-n { animation-delay: 9s; }
@keyframes waStepNum {
  0%, 24% { background: var(--accent-bright); color: var(--btn-text); }
  25%, 100% { background: var(--card2); color: var(--muted); }
}

/* O palco: cada cena entra no seu intervalo de 3s e sai. */
.wa-stage { position: relative; min-height: 420px; }
.wa-scene {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; animation: waScene 12s infinite;
}
.wa-scene:nth-of-type(1) { animation-delay: 0s; }
.wa-scene:nth-of-type(2) { animation-delay: 3s; }
.wa-scene:nth-of-type(3) { animation-delay: 6s; }
.wa-scene:nth-of-type(4) { animation-delay: 9s; }

@keyframes waScene {
  0%       { opacity: 0; transform: translateY(14px); }
  3%, 22%  { opacity: 1; transform: none; }
  25%, 100%{ opacity: 0; transform: translateY(-10px); }
}

/* Mensagens entrando dentro de uma cena. */
.wa-msg.seq { opacity: 0; animation: waMsgIn .5s var(--ease-out) forwards; }
.wa-msg.seq.s1 { animation-delay: .25s; }
.wa-msg.seq.s2 { animation-delay: .9s; }
.wa-msg.seq.s3 { animation-delay: 1.5s; }
@keyframes waMsgIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

/* "Digitando…" */
.wa-typing { display: inline-flex; gap: 3px; align-items: center; }
.wa-typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.wa-typing i:nth-child(2) { animation-delay: .16s; }
.wa-typing i:nth-child(3) { animation-delay: .32s; }

/* ── Grade de recursos ────────────────────────────────────────────────────── */

.wa-feat-sec { padding:var(--sec-y) 0; }
@media (max-width: 760px) { }
.wa-feat-grid {
  max-width: 1100px; margin: 46px auto 0; padding: 0 32px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
@media (max-width: 1100px) { .wa-feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .wa-feat-grid { grid-template-columns: 1fr; padding: 0 20px; } }

.wa-feat {
  border: 1px solid var(--border); border-radius: 14px; padding: 26px 24px;
  background: var(--card);
  transition: border-color .2s cubic-bezier(.7,0,.3,1), background-color .2s cubic-bezier(.7,0,.3,1);
}
.wa-feat:hover { border-color: var(--accent-border); }
.wa-feat-ico {
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-dim); color: var(--accent-text, var(--accent-bright));
}
.wa-feat-ico svg { width: 20px; height: 20px; }
.wa-feat h3 { margin: 0 0 7px; font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: var(--ls-tight); text-wrap: balance; }
.wa-feat p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--dim); }
.wa-feat p strong { color: var(--text); font-weight: 500; }

.wa-new {
  display: inline-block; margin-left: 7px; padding: 2px 7px; border-radius: 5px;
  background: var(--tag-new-bg); color: var(--tag-new-fg);
  font-size: 10px; font-weight: 700; letter-spacing:var(--ls-wide); vertical-align: middle;
}

/* ── Comparativo honesto ──────────────────────────────────────────────────── */

.wa-vs-sec { padding:var(--sec-y) 0; background: var(--card); border-block: 1px solid var(--border); }
@media (max-width: 760px) { }
.wa-vs { max-width: 900px; margin: 44px auto 0; padding: 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .wa-vs { grid-template-columns: 1fr; padding: 0 20px; } }
.wa-vs-col { border: 1px solid var(--border); border-radius: 18px; padding: 26px 24px; background: var(--surface); }
.wa-vs-col.on { border-color: var(--accent-border); box-shadow: 0 24px 60px -36px var(--accent-bright); }
.wa-vs-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing:var(--ls-caps); text-transform: uppercase; color: var(--muted); }
.wa-vs-h { font-size: 20px; font-weight: 600; letter-spacing: var(--ls-tight); color: var(--text); margin: 6px 0 18px; }
.wa-vs-col.on .wa-vs-h { color: var(--accent-text, var(--accent-bright)); }
.wa-vs-l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.wa-vs-l li { display: flex; gap: 12px; font-size: 14.5px; line-height: 1.5; color: var(--dim); }
.wa-vs-l li strong { color: var(--text); font-weight: 600; }
.wa-vs-l svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; }
.wa-vs-col.off svg { color: var(--red); }
.wa-vs-col.on svg { color: var(--ok-text); }

/* ── Acessibilidade: nada se mexe se o usuário pediu para não mexer ───────── */

@media (prefers-reduced-motion: reduce) {
  .wa-step,
  .wa-step-n,
  .wa-scene,
  .wa-msg.seq,
  .wa-typing i { animation: none !important; }
  /* Sem o loop, tudo tem que ficar legível de uma vez: os passos acendem
     todos e as cenas viram uma pilha vertical em vez de um empilhamento
     absoluto invisível. */
  .wa-step { opacity: 1; border-color: var(--accent-border); background: var(--card2); }
  .wa-step-n { background: var(--accent-bright); color: var(--btn-text); }
  .wa-stage { min-height: 0; display: flex; flex-direction: column; gap: 26px; }
  .wa-scene { position: static; opacity: 1; transform: none; }
  .wa-msg.seq { opacity: 1; }
}
