/* Site pessoal de João Vitor Santos · identidade B "Melancia".
   Regras de movimento: só transform, opacity e clip-path; um efeito de impacto por tela;
   tudo que se mexe está dentro de (prefers-reduced-motion: no-preference). */

/* Fontes do Google Fonts (licença OFL), servidas do próprio domínio: só o subconjunto latino e as
   variações usadas. Fraunces é a instância 650 com SOFT 60 e opsz 144; Figtree é variável (400 e 600). */
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 650; font-display: swap;
  src: url("/assets/fontes/fraunces.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("/assets/fontes/figtree.woff2") format("woff2");
}

:root {
  --branco: #FFFFFF;
  --floresta: #0B241F;        /* texto; fundo do fechamento */
  --melancia: #FF4D5E;        /* pingo e botão do WhatsApp (nunca como cor de texto) */
  --melancia-texto: #C42A3B;  /* link e destaque no claro: 5,61 no Branco, 5,20 no Rosado */
  --musgo: #4E6660;           /* texto secundário: 6,19 no Branco, 5,74 no Rosado */
  --rosado: #FFF4F1;          /* fundo de faixa e de microcena */
  --borda: #F3DAD4;
  --marca-texto: #FFD9D4;     /* grifo; Floresta sobre ele dá 12,54 */
  --neblina: #C9D6D2;         /* texto secundário sobre Floresta: 10,91 */
  --rosa-forte: #FFE3DE;       /* formas grandes do topo, sobre o Rosado (decorativo) */
  --floresta-2: #12332C;       /* formas sobre a Floresta (decorativo) */
  --traco: #D5DDDA;           /* barras e linhas neutras das microcenas (decorativo) */

  --titulo: "Fraunces", Georgia, "Times New Roman", serif;
  --texto: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --out: cubic-bezier(.16, 1, .3, 1);
  --mola: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--branco);
  color: var(--floresta);
  font: 400 17px/1.6 var(--texto);
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--titulo);
  font-weight: 650;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  letter-spacing: -.005em;
  line-height: 1.08;
  text-wrap: balance;
}
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; }

a { color: var(--melancia-texto); text-underline-offset: 4px; text-decoration-thickness: 2px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--floresta); outline-offset: 3px; border-radius: 4px; }

/* Largura e gutter: 16px no celular, até 72px em tela larga */
.m { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: clamp(16px, 5vw, 72px); }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pular {
  position: absolute; left: 16px; top: -80px; z-index: 20;
  padding: 12px 18px; border-radius: 999px; background: var(--floresta); color: var(--branco); font-weight: 600;
}
.pular:focus { top: 12px; }

.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--musgo); max-width: 46ch; }
.mt { background: linear-gradient(transparent 58%, var(--marca-texto) 58%); padding: 0 .08em; }

/* Link de ação secundária: seta que anda no hover e no foco */
.link-seta {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; color: var(--melancia-texto);
}
.link-seta::after { content: "→"; transition: transform .25s var(--out); }
.link-seta:hover::after, .link-seta:focus-visible::after { transform: translateX(4px); }

/* Botão do WhatsApp: Floresta sobre Melancia (5,03:1) */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  background: var(--melancia); color: var(--floresta);
  font-weight: 600; font-size: 17px; text-decoration: none;
  transition: transform .2s var(--out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-g { min-height: 64px; padding: 0 32px; font-size: 20px; }
.acao { position: relative; display: inline-flex; align-items: center; gap: 14px; }

/* ---------- Topo ---------- */
.topo { display: flex; justify-content: space-between; align-items: center; padding-block: 20px; }
.marca { display: inline-flex; align-items: center; min-height: 44px; }
.marca svg { height: 36px; width: auto; }
.topo nav { display: flex; gap: clamp(8px, 2vw, 28px); }
.topo nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px;
  color: var(--floresta); font-weight: 600; font-size: 16px; text-decoration: none;
}
.topo nav a:hover, .topo nav a:focus-visible {
  text-decoration: underline; text-decoration-color: var(--melancia); text-decoration-thickness: 2px; text-underline-offset: 6px;
}

/* O cabeçalho fica por cima da faixa rosé do topo (a faixa sobe por baixo dele) */
.topo { position: relative; z-index: 2; }
.hero {
  position: relative; isolation: isolate; overflow: clip;
  margin-top: -84px; padding-block: calc(84px + clamp(28px, 5vw, 64px)) clamp(56px, 8vw, 104px);
  background: var(--rosado);
}
/* Formas grandes feitas com o pingo: círculos de tamanhos variados, atrás de tudo */
.hero-formas { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-formas i { position: absolute; border-radius: 50%; }
.forma-1 { width: clamp(420px, 62vw, 900px); aspect-ratio: 1; right: clamp(-320px, -18vw, -120px); top: clamp(-260px, -14vw, -90px); background: var(--rosa-forte); }
.forma-2 { width: clamp(90px, 13vw, 190px); aspect-ratio: 1; left: 38%; bottom: -5%; background: var(--branco); }
.hero-grade { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.nome { font-weight: 600; color: var(--musgo); margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 78px); line-height: 1.02; letter-spacing: -.015em; max-width: 14ch; }
.hero h1 .mt { background: none; padding: 0; color: var(--melancia-texto); }  /* 5,20 sobre o Rosado */
.sub { color: var(--musgo); font-size: clamp(18px, 1.7vw, 21px); max-width: 34ch; margin: 22px 0 30px; }

/* Palco: disco Floresta com o J branco; o pingo salta em arco por cima */
.palco { position: relative; width: min(520px, 100%); aspect-ratio: 1; justify-self: end; }
.disco {
  position: absolute; inset: 7%; border-radius: 50%; background: var(--floresta);
  display: grid; place-items: center;
  box-shadow: 0 48px 80px -44px rgba(11, 36, 31, .6);
}
.simbolo { width: 68%; height: auto; overflow: visible; margin: 4% 0 0 -6%; }
.pingo-salta { transform-box: fill-box; transform-origin: 50% 100%; }
/* Fichas do que eu faço: brancas, com sombra suave, em volta do disco */
.ficha {
  position: absolute; display: grid; gap: 6px; padding: 12px 14px; border-radius: 16px;
  background: var(--branco); color: var(--floresta); font-size: 13px; line-height: 1.3;
  box-shadow: 0 20px 36px -20px rgba(11, 36, 31, .5);
}
.ficha b { font-weight: 600; }
.ficha em { width: 10px; height: 10px; border-radius: 50%; background: var(--melancia); }
.ficha-planilha { left: -3%; top: 9%; min-width: 172px; }
.fp-linha { display: grid; grid-template-columns: 1fr 1fr 10px; gap: 6px; align-items: center; }
.fp-linha i { height: 8px; width: var(--w); border-radius: 4px; background: var(--traco); }
.ficha-conversa { right: -3%; top: 44%; border-bottom-right-radius: 4px; gap: 2px; }
.ficha-conversa small { font-size: 12px; font-weight: 600; color: var(--musgo); }
.ficha-conversa span { font-size: 14px; }
.ficha-busca { left: 2%; bottom: 7%; grid-auto-flow: column; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; color: var(--floresta); }

/* ---------- Pingo-guia de rolagem ---------- */
.guia {
  position: fixed; z-index: 5; pointer-events: none;
  left: clamp(4px, 1.6vw, 26px); top: 12vh; height: 66vh; width: 12px;
}
.guia-pingo {
  position: absolute; top: 0; left: 0; display: block;
  /* sem animation-timeline, o script move por seção com --p (0 a 1) */
  transform: translateY(calc(var(--p, 0) * 66vh));
}
.guia-pingo i { display: block; width: clamp(8px, .9vw, 12px); aspect-ratio: 1; border-radius: 50%; background: var(--melancia); transform-origin: 50% 100%; }

/* ---------- Ofertas ---------- */
.ofertas { padding-block: clamp(56px, 8vw, 104px); }
.ofertas h2 { margin-bottom: clamp(28px, 4vw, 48px); }
.lista-ofertas { position: relative; }
.oferta {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center;
  padding-block: clamp(28px, 4vw, 44px);
  border-top: 2px solid var(--floresta);
}
.oferta h3 { margin-bottom: 12px; }
.oferta p { color: var(--musgo); max-width: 58ch; }
.oferta .link-seta { margin-top: 10px; }
/* O pingo pousa na linha da oferta apontada; some sem JS */
.pingo-oferta {
  position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%;
  background: var(--melancia); opacity: 0; pointer-events: none;
}
.pingo-oferta.visivel { opacity: 1; }

/* Microcenas: desenhos do que o cliente vive, com dados fictícios. Texto nunca abaixo de 12px. */
.cena {
  background: var(--rosado); border: 1px solid var(--borda); border-radius: 22px;
  padding: 16px 16px 12px; width: 100%; max-width: 500px; justify-self: end;
  display: grid; gap: 10px; align-content: center;
  font-size: 13px; line-height: 1.35; color: var(--floresta);
}
.cena small { font-size: 12px; color: var(--musgo); }
.cena b { font-weight: 600; }
.cena i, .cena em, .cena u { font-style: normal; text-decoration: none; }
.cena .legenda { font-size: 12px; color: var(--musgo); text-align: center; max-width: none; }

/* 1. Pedido que vira linha de planilha */
.msg { justify-self: start; max-width: 88%; display: grid; gap: 2px; padding: 10px 14px; background: var(--branco); border: 1px solid var(--borda); border-radius: 16px 16px 16px 4px; }
.msg span { font-size: 14px; }
.desce { justify-self: center; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--melancia); color: var(--floresta); }
.plan { display: grid; gap: 1px; background: var(--traco); border: 1px solid var(--traco); border-radius: 10px; overflow: hidden; font-size: 12px; }
.plan-l { display: grid; grid-template-columns: 24px 48px 66px minmax(0, 1fr) 36px 76px; gap: 1px; }
.plan-l > * { display: flex; align-items: center; padding: 7px 6px; background: var(--branco); white-space: nowrap; overflow: hidden; }
.plan-l > i, .plan-letras > i { justify-content: center; padding: 0; background: #EEF2F0; color: var(--musgo); }
.plan-letras > i { padding-block: 4px; }
.plan-cab > b { background: #F7F9F8; }
.plan-nova > span { background: var(--marca-texto); font-weight: 600; }
.plan-nova > i { background: var(--melancia); color: var(--floresta); font-weight: 600; }

/* 2. Conversa de atendimento */
.fone { display: grid; background: var(--branco); border: 1px solid var(--borda); border-radius: 18px; overflow: hidden; }
.fone-topo { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--floresta); color: var(--branco); }
.fone-topo i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--melancia); color: var(--floresta); font-weight: 600; font-size: 15px; }
.fone-topo div { display: grid; }
.fone-topo small { color: var(--neblina); }
.fone-conversa { display: grid; gap: 8px; padding: 14px; background: #F4F7F6; }
.bal { max-width: 84%; padding: 9px 12px 6px; border-radius: 14px; }
.bal small { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 2px; }
.bal.dele { justify-self: start; background: var(--branco); border: 1px solid var(--traco); border-bottom-left-radius: 4px; }
.bal.meu { justify-self: end; background: var(--floresta); color: var(--branco); border-bottom-right-radius: 4px; }
.bal.meu small { color: var(--neblina); }
.etiqueta { justify-self: center; padding: 8px 16px; border-radius: 999px; background: var(--melancia); color: var(--floresta); font-weight: 600; }
.fone-campo { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--traco); }
.fone-campo span { flex: 1; padding: 9px 14px; border-radius: 999px; background: #F4F7F6; color: var(--musgo); }
.fone-campo i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--floresta); color: var(--branco); }

/* 3. Painel "Entregas de hoje" */
.painel { display: grid; grid-template-columns: 40px minmax(0, 1fr); background: var(--branco); border: 1px solid var(--borda); border-radius: 16px; overflow: hidden; }
.pn-lado { display: grid; gap: 12px; align-content: start; justify-items: center; padding: 16px 0; background: var(--floresta); }
.pn-lado i { width: 16px; height: 16px; border-radius: 5px; background: #37504A; }
.pn-lado i:first-child { background: var(--melancia); border-radius: 50%; }
.pn-corpo { display: grid; gap: 8px; padding: 14px; }
.pn-topo { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pn-topo b { font-size: 15px; }
.pn-resumo { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; }
.pn-resumo > div { display: grid; gap: 2px; align-content: start; padding: 10px 12px; border-radius: 10px; background: #F4F7F6; }
.pn-resumo b { font-size: 15px; white-space: nowrap; }
.pn-graf { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.pn-graf i { flex: 1; height: var(--h); border-radius: 2px 2px 0 0; background: var(--musgo); transform-origin: 50% 100%; }
.pn-graf i.hoje { background: var(--melancia); }
.pn-graf i.vazio { background: var(--traco); }
.pn-item { display: grid; grid-template-columns: minmax(0, 1fr) auto 76px; gap: 10px; align-items: center; padding-top: 8px; border-top: 1px solid var(--traco); }
.pn-item div { display: grid; }
.pn-item small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-item span { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pn-item em { justify-self: stretch; text-align: center; padding: 4px 0; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--musgo); box-shadow: inset 0 0 0 1px var(--musgo); }
.pn-item em.ok { background: #DDEBE6; color: var(--floresta); box-shadow: none; }
.pn-item em.rota { background: var(--melancia); color: var(--floresta); box-shadow: none; }

/* 4. Busca com resumo por IA e o resultado da TESA */
.bs-campo { display: flex; align-items: center; gap: 10px; padding: 11px 16px; background: var(--branco); border: 1px solid var(--traco); border-radius: 999px; }
.bs-campo svg { flex: none; color: var(--musgo); }
.bs-campo span { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-ia { display: grid; gap: 6px; justify-items: start; padding: 14px; background: var(--branco); border: 1px solid var(--borda); border-radius: 14px; }
.bs-ia small { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.bs-ia small i { width: 10px; height: 10px; border-radius: 50%; background: var(--melancia); }
.bs-ia span { font-size: 14px; }
.bs-ia b { padding: 4px 12px; border-radius: 999px; background: var(--marca-texto); font-size: 12px; }
.bs-res { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 10px; align-items: center; padding: 14px; background: var(--branco); border: 2px solid var(--floresta); border-radius: 14px; }
.bs-res i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--floresta); color: var(--branco); font-weight: 600; }
.bs-res div { display: grid; }
.bs-res div b { font-size: 15px; }
.bs-res > span { grid-column: 1 / -1; color: var(--musgo); }

/* ---------- TESA ---------- */
/* Grão leve (ruído SVG embutido) nas faixas coloridas; só textura, não recebe clique */
.hero::after, .tesa::after, .faixa-rosa::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");
}
.tesa::after { mix-blend-mode: soft-light; opacity: .7; }  /* o fechamento fica liso para emendar com o rodapé */

/* TESA em faixa Floresta: texto branco (16,33), secundário Neblina (10,91) */
.tesa { position: relative; isolation: isolate; overflow: clip; background: var(--floresta); color: var(--branco); padding-block: clamp(64px, 9vw, 120px); }
.tesa::before, .fecha::before { content: ""; position: absolute; z-index: -1; border-radius: 50%; background: var(--floresta-2); pointer-events: none; }
.tesa::before { width: clamp(360px, 52vw, 760px); aspect-ratio: 1; right: -12%; top: -30%; }
.tesa .lead { color: var(--neblina); }
.tesa .marcas li::before { background: var(--melancia); }
.tesa .mt { background: var(--marca-texto); color: var(--floresta); padding: 0 .2em; border-radius: 3px; }
.tesa .link-seta { color: var(--branco); text-decoration-color: var(--melancia); }
.tesa :focus-visible { outline-color: var(--branco); }
.tesa .janela { border: 0; box-shadow: 0 32px 64px -32px rgba(0, 0, 0, .7); }
.tesa .janela-barra { color: var(--musgo); }
.tesa-grade { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.tesa h2 { margin-bottom: 14px; }
.marcas { margin: 24px 0 14px; display: grid; gap: 14px; max-width: 52ch; }
.marcas li { position: relative; padding-left: 26px; }
.marcas li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--floresta); }
.tesa-figura { position: relative; padding-bottom: 28px; }
.janela { border-radius: 14px; overflow: hidden; background: var(--branco); border: 1px solid var(--borda); box-shadow: 0 24px 48px -28px rgba(11, 36, 31, .45); }
.janela-barra { display: flex; align-items: center; gap: 6px; padding: 9px 12px; line-height: 1.2; border-bottom: 1px solid var(--borda); font-size: 13px; color: var(--musgo); }
.janela-barra i { width: 9px; height: 9px; border-radius: 50%; background: var(--traco); }
.janela-barra span { margin-left: 10px; }
.janela img { width: 100%; aspect-ratio: 1440 / 704; }
/* O "100": selo sobre a captura; o script conta de 0 a 100 uma vez */
.cem {
  position: absolute; left: clamp(-20px, -1.5vw, -8px); bottom: 0;
  display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 18px;
  background: var(--melancia); color: var(--floresta); border-radius: 18px;
}
.cem b { font: 650 clamp(40px, 5vw, 56px)/1 var(--titulo); font-variation-settings: "opsz" 144, "SOFT" 60; font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.cem span { font-size: 13px; line-height: 1.4; font-weight: 600; }

/* ---------- Seções em duas colunas (título à esquerda) ---------- */
.dupla { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.dupla h2 + .lead { margin-top: 14px; }
.ferramentas, .comeca, .quem { padding-block: clamp(56px, 8vw, 104px); }
/* Como começa e Quem faz dividem uma faixa rosé */
.faixa-rosa { position: relative; isolation: isolate; background: var(--rosado); }
.quem { padding-top: 0; }
.quem .lead { color: var(--floresta); max-width: 56ch; }

/* Ferramentas: um pingo na cor de cada produto, que pula no hover e no foco */
.pingos { display: grid; margin-bottom: 14px; }
.pingos li { display: grid; grid-template-columns: 20px 1fr; gap: 16px; align-items: start; padding-block: 16px; border-top: 1px solid var(--traco); }
.pingos li:last-child { border-bottom: 1px solid var(--traco); }
.pingos i { width: 20px; height: 20px; margin-top: 7px; border-radius: 50%; background: var(--cor); }
.pingos p { color: var(--musgo); }
.pingos a {
  display: flex; align-items: center; width: fit-content; min-height: 44px; margin-top: -6px;
  font: 650 24px/1.15 var(--titulo); font-variation-settings: "opsz" 144, "SOFT" 60;
  color: var(--floresta); text-decoration-color: var(--melancia);
}

/* Como começa: três passos ligados por uma linha */
.passos { position: relative; display: grid; gap: clamp(28px, 4vw, 44px); padding-left: 40px; }
.passos::before, .passos::after { content: ""; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 2px; }
.passos::before { background: var(--traco); }
.passos::after { background: var(--floresta); transform-origin: 50% 0; }
.passos li { position: relative; font: 650 clamp(22px, 2.6vw, 30px)/1.2 var(--titulo); font-variation-settings: "opsz" 144, "SOFT" 60; max-width: 26ch; }
.passos li::before { content: ""; position: absolute; left: -40px; top: .3em; z-index: 1; width: 18px; height: 18px; border-radius: 50%; background: var(--melancia); box-shadow: 0 0 0 5px var(--rosado); }

/* ---------- Fechamento e rodapé (faixa Floresta) ---------- */
.fecha::before { width: clamp(240px, 34vw, 480px); aspect-ratio: 1; right: -10%; top: 12%; }
.fecha { position: relative; isolation: isolate; overflow: clip; background: var(--floresta); color: var(--branco); padding-block: clamp(72px, 10vw, 128px) clamp(48px, 6vw, 72px); }
.fecha h2 { font-size: clamp(32px, 5vw, 60px); max-width: 18ch; }
.fecha .lead { color: var(--neblina); margin: 20px 0 0; }
.fecha a:not(.btn), .rodape a { color: var(--branco); }
.fecha .lead a { display: inline-flex; align-items: center; min-height: 44px; }
.fecha :focus-visible, .rodape :focus-visible { outline-color: var(--branco); }
.acao-final { margin-top: 84px; }
.pingo-final {
  position: absolute; right: 30px; bottom: 100%; width: 48px; height: 48px; border-radius: 50%;
  background: var(--melancia); transform-origin: 50% 100%; pointer-events: none;
}
.rodape { background: var(--floresta); color: var(--neblina); padding-block: 28px 40px; font-size: 16px; }
.rodape-grade { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; }
.rodape-grade::before { content: ""; flex: 0 0 100%; height: 1px; background: #2A4640; margin-bottom: 12px; }
.rodape ul { display: flex; flex-wrap: wrap; gap: 0 28px; }
.rodape li, .rodape a { display: inline-flex; align-items: center; min-height: 44px; }
.rodape a { margin-left: 6px; }

/* Botão fixo do WhatsApp: só no celular */
.wa-fixo { display: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .topo nav .so-largo { display: none; }
  .hero-grade { grid-template-columns: 1fr; gap: 36px; }
  .palco { width: min(360px, 100%); justify-self: center; }
  .ficha { font-size: 12px; padding: 10px 12px; }
  .ficha-planilha { left: 0; top: 4%; min-width: 150px; }
  .ficha-conversa { right: 0; }
  .ficha-conversa span { font-size: 13px; }
  .ficha-busca { left: 0; bottom: 3%; padding: 9px 14px; }
  .forma-2 { display: none; }
  .oferta, .tesa-grade, .dupla { grid-template-columns: 1fr; }
  .oferta { gap: 20px; }
  .cena { justify-self: start; max-width: 500px; }
  .cem { left: 12px; }
  .acao-final { margin-top: 72px; }

  .wa-fixo {
    position: fixed; right: 16px; bottom: 16px; z-index: 10;
    display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: 999px;
    background: var(--melancia); color: var(--floresta); font-weight: 600; text-decoration: none;
    box-shadow: 0 10px 24px -10px rgba(11, 36, 31, .6);
    transition: opacity .2s, transform .2s var(--out), visibility 0s;
  }
  .wa-fixo:focus-visible { outline-color: var(--floresta); box-shadow: 0 0 0 3px var(--branco), 0 10px 24px -10px rgba(11, 36, 31, .6); }
  .wa-fixo.some { opacity: 0; transform: translateY(12px); visibility: hidden; transition: opacity .2s, transform .2s var(--out), visibility 0s .2s; }
  .rodape { padding-bottom: 96px; }
}

/* ---------- Movimento ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Abertura (uma vez): o disco cresce, o pingo salta em arco vindo do lado do botão e as fichas entram em sequência.
     Depois, só uma flutuação lenta; o script pausa tudo quando o topo sai da tela (.fora). */
  .disco { animation: estoura .7s var(--out) both; }
  .pingo-salta { animation: salto 1.2s var(--out) .35s both; }
  .pingo-flutua { animation: flutua 4.5s ease-in-out 1.8s infinite alternate; }
  .ficha { animation: sobe .6s var(--out) var(--d) both, flutua var(--t) ease-in-out calc(var(--d) + .6s) infinite alternate; }
  .hero.fora :is(.ficha, .pingo-flutua) { animation-play-state: paused; }
  @keyframes salto {
    0% { transform: translate(-340px, 190px) scale(.45); opacity: 0; }
    12% { opacity: 1; }
    30% { transform: translate(-210px, -30px) scale(.75); }
    58% { transform: translate(0, -44px) scale(1); }
    78% { transform: translate(0, 0) scale(1.14, .84); }
    100% { transform: none; opacity: 1; }
  }
  @keyframes flutua { from { transform: translateY(0); } to { transform: translateY(-9px); } }

  /* Pingo-guia: quica quando o script marca a entrada numa seção */
  .guia-pingo { transition: transform .5s var(--out); }
  .guia.quica .guia-pingo i { animation: quique .55s var(--out); }
  @keyframes quique {
    0% { transform: none; }
    30% { transform: translateY(-14px) scale(.92, 1.1); }
    70% { transform: translateY(0) scale(1.25, .78); }
    100% { transform: none; }
  }
  /* Onde existe, a posição acompanha a rolagem direto no CSS (sem JS) */
  @supports (animation-timeline: scroll()) {
    .guia-pingo { animation: desce linear both; animation-timeline: scroll(root); transition: none; }
    @keyframes desce { from { transform: translateY(0); } to { transform: translateY(66vh); } }
  }

  /* Pingo das ofertas: pula com um pouco de sobra até a oferta apontada */
  .pingo-oferta { transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), opacity .2s; }

  /* Entradas das microcenas e dos pingos: escondidas só com JS e só até entrarem na tela */
  .js [data-viu]:not(.viu) :is(.e, .e-x, .e-y, .e-pop) { opacity: 0; }
  .viu .e { animation: sobe .5s var(--out) var(--d, 0s) both; }
  .viu .e-x { animation: cresce-x .5s var(--out) var(--d, 0s) both; }
  .viu .e-y { animation: cresce-y .6s var(--out) var(--d, 0s) both; }
  .viu .e-pop { animation: estoura .45s var(--mola) var(--d, 0s) both; }
  @keyframes sobe { from { opacity: 0; transform: translateY(12px); } }
  @keyframes cresce-x { from { opacity: 0; transform: scaleX(0); } }
  @keyframes cresce-y { from { opacity: 0; transform: scaleY(0); } }
  @keyframes estoura { from { opacity: 0; transform: scale(0); } }

  /* TESA: a captura entra por máscara, de cima para baixo */
  .js .tesa-figura:not(.viu) .janela { clip-path: inset(0 0 100% 0 round 14px); }
  .js .tesa-figura:not(.viu) .cem { opacity: 0; }
  .tesa-figura.viu .janela { animation: mascara .9s var(--out) both; }
  .tesa-figura.viu .cem { animation: sobe .5s var(--out) .5s both; }
  @keyframes mascara { from { clip-path: inset(0 0 100% 0 round 14px); } to { clip-path: inset(0 0 0 0 round 14px); } }

  /* Ferramentas: o pingo do produto pula no hover e no foco */
  .pingos i { transition: transform .35s var(--mola); }
  .pingos li:hover i, .pingos li:focus-within i { transform: translateY(-8px); }

  /* Como começa: a linha se desenha. Com suporte, ligada à rolagem; sem, uma vez ao entrar na tela */
  .js .passos:not(.viu)::after { transform: scaleY(0); }
  .passos.viu::after { transition: transform 1.4s var(--out); }
  @supports (animation-timeline: view()) {
    .passos::after { animation: desenha linear both; animation-timeline: view(); animation-range: entry 30% cover 55%; }
    @keyframes desenha { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  }

  /* Fechamento: o pingo grande cai e pousa no botão */
  .js .acao-final:not(.viu) .pingo-final { opacity: 0; }
  .acao-final.viu .pingo-final { animation: pouso-final 1s var(--out) .15s both; }
  @keyframes pouso-final {
    0% { transform: translate(-160px, -240px) scale(.5); opacity: 0; }
    50% { transform: translate(-20px, -46px) scale(1); opacity: 1; }
    72% { transform: translate(0, 0) scale(1.22, .76); }
    86% { transform: translate(0, -8px) scale(.96, 1.04); }
    100% { transform: none; }
  }
  /* Efeito magnético (só com mouse): o script define --mx e --my */
  @media (hover: hover) {
    .acao-final { transform: translate(var(--mx, 0px), var(--my, 0px)); transition: transform .3s var(--out); }
  }
}

/* Celular estreito: as cenas simplificam (menos colunas e sem menu lateral) em vez de encolher a letra */
@media (max-width: 480px) {
  .cena { padding: 12px 12px 10px; }
  .plan-l { grid-template-columns: 22px 46px 60px minmax(0, 1fr) 34px; }
  .plan-l > :last-child { display: none; }
  .painel { grid-template-columns: minmax(0, 1fr); }
  .pn-lado { display: none; }
  .pn-corpo { padding: 12px; }
  .pn-resumo > div { padding: 8px 10px; }
}

/* Quem pede menos movimento: sem guia, sem quique, tudo no estado final */
@media (prefers-reduced-motion: reduce) {
  .guia { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
