:root {
  /* Paleta oficial ChatClean (vault: Paleta ChatClean/PALETA.png) */
  --cc-green: #51bc69;      /* verde vivo */
  --cc-forest: #1f4a34;     /* verde escuro */
  --cc-ink: #14231b;        /* tinta */
  --cc-cream: #f1efe5;      /* creme */
  --cc-gold: #b7923e;       /* dourado */

  --bg: var(--cc-cream);
  --bg-2: #e9e5d6;          /* creme profundo */
  --surface: #ffffff;
  --line: #ddd8c6;          /* creme borda */
  --text: var(--cc-ink);
  --muted: #5a665e;
  --brand: var(--cc-forest);
  --accent: var(--cc-green);
  --accent-ink: #0d2417;
  --accent-soft: #e8f5ec;
  --gold: var(--cc-gold);
  --danger: #c0392b;
  --radius: 16px;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.55; -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
/* sem o realce azul do navegador ao tocar/clicar; o foco por teclado continua visível via :focus-visible */
* { -webkit-tap-highlight-color: transparent; }
button, a, .cards { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Topo */
.top { padding: 18px 0 6px; }
.logo { width: 176px; height: auto; margin-left: -12px; } /* o SVG tem respiro interno à esquerda */

/* Primeira dobra */
.hero {
  background:
    radial-gradient(760px 420px at 92% -8%, rgba(81, 188, 105, .26), transparent 62%),
    radial-gradient(520px 320px at -6% 30%, rgba(31, 74, 52, .07), transparent 60%),
    var(--bg);
  padding-bottom: 40px;
  position: relative; overflow: hidden;
}
.hero > .wrap { position: relative; z-index: 1; }
/* Detalhes de fundo: o balão do ícone da marca em contorno, bem claro, e uma malha de pontos que some nas bordas */
.hero::before {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  top: -70px; right: -110px; width: 420px; aspect-ratio: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 1600' fill='none' stroke='%231f4a34' stroke-opacity='.13' stroke-width='5'%3E%3Cpath d='M202.94,1232.56l158.21-191.1c-113.66-207.05-67.99-459.87,106.46-611.81,176.52-153.75,438.95-164.44,627.76-20.66,205.84,156.75,253.18,441.61,117.47,655.4-137.04,215.88-417.8,291.86-648.62,173.34l-361.28-5.17Z'/%3E%3Cellipse cx='588.53' cy='736.76' rx='101.8' ry='101.51'/%3E%3Cellipse cx='989.06' cy='736.62' rx='101.75' ry='101.45'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: heroFloat 18s ease-in-out infinite alternate;
}
.hero::after {
  content: ''; position: absolute; z-index: 0; pointer-events: none; inset: 0;
  background: radial-gradient(rgba(31, 74, 52, .2) 1.2px, transparent 1.6px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(520px 380px at 8% 96%, #000, transparent 72%);
  mask-image: radial-gradient(520px 380px at 8% 96%, #000, transparent 72%);
}
@keyframes heroFloat { from { transform: translate(0, 0) rotate(-4deg); } to { transform: translate(-14px, 18px) rotate(3deg); } }
.hero-grid { display: grid; gap: 28px; align-items: center; padding-top: 14px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--brand);
  font-size: 12.5px; font-weight: 600; letter-spacing: .01em;
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(81, 188, 105, .22); }
h1 {
  margin: 16px 0 14px; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 9vw, 58px); line-height: 1.06; letter-spacing: -.02em; text-wrap: balance;
}
h1 em {
  font-style: normal; color: var(--brand);
  background: linear-gradient(transparent 68%, rgba(81, 188, 105, .38) 68%, rgba(81, 188, 105, .38) 92%, transparent 92%);
}
.lead { margin: 0 0 22px; color: var(--muted); font-size: clamp(15.5px, 4.1vw, 18px); max-width: 52ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 14px; padding: 17px 26px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 16.5px;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s;
  box-shadow: 0 10px 26px rgba(31, 74, 52, .22), inset 0 -2px 0 rgba(13, 36, 23, .16);
}
.btn:hover { transform: translateY(-1px); background: #5cc774; box-shadow: 0 14px 32px rgba(31, 74, 52, .28), inset 0 -2px 0 rgba(13, 36, 23, .16); }
.btn:focus-visible, .opt:focus-visible, .field input:focus-visible, .field select:focus-visible, .link-btn:focus-visible, .video-facade:focus-visible {
  outline: 3px solid rgba(31, 74, 52, .55); outline-offset: 2px;
}
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-block { width: 100%; }
.cta-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.trust { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 13.5px; font-weight: 500; color: var(--brand); }
.trust .stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; }

/* Vídeo */
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden;
  background: var(--brand); border: 5px solid var(--surface);
  box-shadow: 0 28px 60px rgba(20, 35, 27, .22);
}
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer;
  background: linear-gradient(180deg, rgba(20, 35, 27, .25), rgba(20, 35, 27, .62)), var(--thumb, none) center / cover no-repeat, var(--brand);
  display: grid; place-items: center; align-content: center; gap: 14px; color: #fff;
}
.play {
  width: 74px; height: 74px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(81, 188, 105, .28);
  transition: transform .2s ease;
}
.video-facade:hover .play { transform: scale(1.06); }
.play svg { width: 28px; height: 28px; margin-left: 4px; }
.video-facade span { font-weight: 600; font-size: 14.5px; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }

/* Autoridade */
.proof-band { background: var(--brand); color: var(--bg); padding: 26px 0; border-bottom: 3px solid var(--gold); }
.proof { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
.proof div { text-align: center; }
.proof b { display: block; font-family: var(--font-display); font-size: clamp(30px, 8vw, 42px); font-weight: 800; line-height: 1.05; color: #fff; font-variant-numeric: lining-nums; }
.proof b span { color: var(--accent); }
.proof small { display: block; margin-top: 4px; font-size: 13px; color: rgba(241, 239, 229, .78); line-height: 1.35; }

/* Segunda dobra */
.section { padding: 56px 0; }
.section h2 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 800; font-size: clamp(27px, 6.6vw, 40px); letter-spacing: -.015em; line-height: 1.12; text-wrap: balance; }
.section > .wrap > p { margin: 0 0 28px; color: var(--muted); max-width: 60ch; }
.cta-band { margin-top: 32px; text-align: center; }

/* ---------------- Cards de benefício ----------------
   Cada card traz uma mini-cena animada do benefício (.viz).
   Mobile: carrossel com arraste, pontos e setas. Desktop (860px+): grade assimétrica. */
.cards {
  position: relative; display: flex; gap: 12px; overflow-x: auto;
  margin: 0 -20px; padding: 6px 20px 16px; scroll-padding: 0 20px;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab;
}
.cards::-webkit-scrollbar { display: none; }
.cards.dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }

.card {
  position: relative; isolation: isolate; overflow: hidden;
  flex: 0 0 min(86%, 350px); scroll-snap-align: center;
  display: flex; flex-direction: column; padding: 14px 14px 22px;
  border-radius: 24px; background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .25s;
}
.card--dark { background: var(--cc-forest); border-color: var(--cc-forest); color: var(--cc-cream); }
/* brilho que acompanha o cursor (--mx/--my vêm do JS) */
.card::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(81, 188, 105, .2), transparent 70%);
}
.card--dark::after { background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(81, 188, 105, .3), transparent 70%); }
@media (hover: hover) {
  .card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 26px 50px -18px rgba(20, 35, 27, .38); }
  .card:hover::after { opacity: 1; }
}
.card h3 { margin: 0 8px 6px; font-size: 18.5px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.card p { margin: 0 8px; color: var(--muted); font-size: 14.5px; }
.card--dark p { color: rgba(241, 239, 229, .76); }

/* entrada escalonada, uma única vez, quando a seção aparece */
.cards.js-reveal:not(.is-in) .card { opacity: 0; }
.cards.js-reveal:not(.is-in) .viz * { animation-play-state: paused; }
.cards.is-in .card { animation: cardIn .7s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * 90ms) backwards; }
@keyframes cardIn { from { opacity: 0; transform: translateY(26px) scale(.97); } }

/* mini-cenas */
.viz {
  position: relative; height: 196px; margin-bottom: 18px; padding: 14px; border-radius: 16px; overflow: hidden;
  background: var(--bg); display: grid; align-content: center;
}
.card--dark .viz { background: rgba(241, 239, 229, .07); box-shadow: inset 0 0 0 1px rgba(241, 239, 229, .1); }

/* 1. caixa de entrada única */
.viz-inbox { gap: 7px; }
.viz-inbox .row {
  display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px;
  padding: 4px 9px 4px 5px; border-radius: 99px; background: rgba(241, 239, 229, .09);
  animation: inboxRow 7s calc(var(--d) * .4s) infinite backwards;
}
/* ícone do canal, na cor de cada aplicativo */
.viz-inbox .ch { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.viz-inbox .ch svg { width: 15px; height: 15px; }
.viz-inbox .ch-wa { background: #25d366; }
.viz-inbox .ch-ig { background: linear-gradient(45deg, #f9b233 5%, #e6306c 50%, #8a3ab9 95%); }
.viz-inbox .ch-fb { background: #1877f2; }
.viz-inbox .ch-tg { background: #26a5e4; }
.viz-inbox .ch-tg svg { margin-left: -1px; }
.viz-inbox .ln { height: 6px; width: var(--l); border-radius: 99px; background: rgba(241, 239, 229, .26); }
/* contador de mensagens não lidas (entra com um "pop" junto com a linha) */
.viz-inbox .row b {
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center;
  background: var(--cc-cream); color: var(--cc-forest); font-size: 10.5px; font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums; animation: badgePop 7s calc(var(--d) * .4s) infinite backwards;
}
@keyframes badgePop {
  0%, 12% { transform: scale(0); }
  18% { transform: scale(1.3); }
  24%, 88% { transform: scale(1); }
  94%, 100% { transform: scale(0); }
}
@keyframes inboxRow {
  0% { opacity: 0; transform: translateX(-14px); }
  8%, 86% { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; transform: translateX(10px); }
}

/* 2. um número, vários atendentes */
.viz-team { justify-items: center; }
.team { width: 240px; display: grid; justify-items: center; }
.team .num { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 11px; border-radius: 99px; background: var(--cc-forest); color: var(--cc-cream); font-size: 12.5px; font-weight: 600; }
.team .num svg { width: 15px; height: 15px; color: var(--cc-green); }
.wires { display: block; width: 240px; height: 52px; }
.wires .base path { stroke: #cfc9b4; stroke-width: 1.5; }
.wires .pulse path {
  stroke: var(--cc-green); stroke-width: 3; stroke-linecap: round; stroke-dasharray: .18 1; stroke-dashoffset: .18;
  animation: wire 4s calc(var(--d) * 1s) linear infinite;
}
@keyframes wire { 0% { stroke-dashoffset: .18; } 24%, 100% { stroke-dashoffset: -1; } }
.people { width: 240px; display: grid; grid-template-columns: repeat(4, 1fr); justify-items: center; }
.people span {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1.5px solid #cfc9b4; color: var(--cc-forest); font-size: 12px; font-weight: 600;
  animation: who 4s calc(var(--d) * 1s) infinite;
}
@keyframes who {
  0%, 20%, 62%, 100% { background: var(--surface); border-color: #cfc9b4; box-shadow: 0 0 0 0 rgba(81, 188, 105, 0); transform: none; }
  27% { background: var(--accent-soft); border-color: var(--cc-green); box-shadow: 0 0 0 6px rgba(81, 188, 105, .24); transform: scale(1.08); }
}

/* 3. funil até a venda */
.viz-funnel { gap: 9px; padding-inline: 16px; }
.viz-funnel .st { display: grid; grid-template-columns: 68px 1fr 28px; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.viz-funnel .st i {
  height: 24px; width: var(--w); border-radius: 7px; background: var(--cc-forest); transform-origin: left center;
  transition: transform 1s cubic-bezier(.2, .7, .2, 1) calc(.3s + var(--d) * .15s);
}
.viz-funnel .s2 i { background: #2f6a4b; }
.viz-funnel .s3 i { background: var(--cc-green); }
.viz-funnel .s4 i { background: var(--cc-gold); animation: sale 2.6s 1.8s ease-in-out infinite; }
.viz-funnel .st b { text-align: right; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.cards.js-reveal:not(.is-in) .viz-funnel .st i { transform: scaleX(0); }
@keyframes sale { 0%, 100% { box-shadow: 0 0 0 0 rgba(183, 146, 62, .5); } 50% { box-shadow: 0 0 0 6px rgba(183, 146, 62, 0); } }

/* 4. a IA responde de madrugada */
.viz-chat { gap: 6px; }
.viz-chat .bub { max-width: 84%; padding: 9px 12px; border-radius: 15px; font-size: 13px; line-height: 1.35; }
.viz-chat .in { justify-self: start; border-bottom-left-radius: 4px; background: rgba(241, 239, 229, .15); color: var(--cc-cream); animation: chatIn 8s infinite backwards; }
.viz-chat .stamp { margin: -2px 0 4px 4px; font-size: 10.5px; color: rgba(241, 239, 229, .55); font-variant-numeric: tabular-nums; animation: chatIn 8s infinite backwards; }
.viz-chat .reply { display: grid; justify-items: end; }
.viz-chat .reply > * { grid-area: 1 / 1; }
.viz-chat .typing { align-self: start; display: flex; gap: 4px; padding: 12px; border-bottom-right-radius: 4px; background: var(--cc-green); animation: chatTyping 8s infinite backwards; }
.viz-chat .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-ink); animation: dot 1s infinite; }
.viz-chat .typing i:nth-child(2) { animation-delay: .15s; }
.viz-chat .typing i:nth-child(3) { animation-delay: .3s; }
.viz-chat .out { border-bottom-right-radius: 4px; background: var(--cc-green); color: var(--accent-ink); font-weight: 500; transform-origin: bottom right; animation: chatOut 8s infinite backwards; }
@keyframes chatIn { 0% { opacity: 0; transform: translateY(8px); } 6%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes chatTyping { 0%, 14% { opacity: 0; } 18%, 40% { opacity: 1; } 44%, 100% { opacity: 0; } }
@keyframes chatOut { 0%, 42% { opacity: 0; transform: scale(.9); } 48%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }

/* navegação do carrossel */
.car-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 4px; }
.car-btn {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; cursor: pointer;
  border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--cc-forest);
  transition: background .2s, border-color .2s, color .2s, transform .15s, opacity .2s;
}
.car-btn svg { width: 18px; height: 18px; }
.car-btn:active { transform: scale(.92); background: var(--cc-forest); border-color: var(--cc-forest); color: var(--cc-cream); }
.car-btn:focus-visible, .dot:focus-visible { outline: 3px solid rgba(31, 74, 52, .55); outline-offset: 2px; }
.car-btn[disabled] { opacity: .35; cursor: default; }
.dots { display: flex; align-items: center; }
.dot { padding: 10px 4px; border: 0; background: none; cursor: pointer; border-radius: 99px; }
.dot span { display: block; width: 8px; height: 8px; border-radius: 99px; background: #c9c3ad; transition: width .35s cubic-bezier(.2, .7, .2, 1), background .25s; }
.dot[aria-current="true"] span { width: 28px; background: var(--cc-forest); }

footer { border-top: 1px solid var(--line); padding: 22px 0 96px; color: var(--muted); font-size: 12.5px; text-align: center; }
footer a { color: inherit; }

/* CTA fixo no mobile */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(241, 239, 229, .94); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky.show { transform: none; }

/* Quiz (tela cheia) */
.quiz { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: none; flex-direction: column; overflow-y: auto; }
.quiz.open { display: flex; }
.quiz-head { position: sticky; top: 0; background: var(--bg); z-index: 2; }
.quiz-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 640px; margin: 0 auto; padding: 16px 20px 14px; }
.quiz-head .logo { width: 140px; margin-left: -10px; }
.step-count { font-size: 13px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.bar { height: 5px; background: var(--bg-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 0 99px 99px 0; transition: width .4s ease; }
.quiz-nav { width: 100%; max-width: 640px; margin: 0 auto; padding: 18px 20px 0; }
.link-btn { background: none; border: 0; padding: 6px 4px 6px 0; color: var(--muted); cursor: pointer; font-size: 14.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.link-btn:hover { color: var(--text); }
.quiz.is-done .quiz-nav, .quiz.is-done .step-count { display: none; }
.quiz-body { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 16px 20px 40px; }
.quiz-body h2, h1 { font-variant-numeric: lining-nums; }
.quiz-body h2 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 6.8vw, 34px); line-height: 1.14; letter-spacing: -.015em; text-wrap: balance; }
.quiz-body .hint { margin: 0 0 22px; color: var(--muted); font-size: 15px; min-height: 4px; }
.step { animation: in .28s ease both; }
@keyframes in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.opts { display: grid; gap: 10px; margin-bottom: 20px; }
.opt {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; cursor: pointer;
  padding: 17px 16px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--surface);
  font-weight: 500; font-size: 15.5px; transition: border-color .15s, background .15s, box-shadow .15s;
}
.opt:hover { border-color: var(--accent); }
.opt[aria-pressed="true"], .opt[aria-checked="true"] { border-color: var(--brand); background: var(--accent-soft); box-shadow: 0 0 0 3px rgba(81, 188, 105, .2); font-weight: 600; }
.opt .mark {
  flex: none; width: 24px; height: 24px; border: 2px solid #c9c3ad; border-radius: 50%; background: var(--bg);
  display: grid; place-items: center; transition: all .15s;
}
.opt.multi .mark { border-radius: 7px; }
.opt .mark svg { width: 14px; height: 14px; opacity: 0; color: #fff; }
.opt[aria-pressed="true"] .mark, .opt[aria-checked="true"] .mark { background: var(--brand); border-color: var(--brand); }
.opt[aria-pressed="true"] .mark svg, .opt[aria-checked="true"] .mark svg { opacity: 1; }
.opt:active { transform: scale(.985); }

.step-input h2 label { cursor: text; }
.step-input .field { margin-bottom: 18px; }
.step-input .field input { background: var(--surface); font-size: 18px; padding: 18px 46px 18px 16px; border-radius: 14px; }
.step-input .field.valid input {
  border-color: var(--brand);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4a34' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") right 15px center / 20px no-repeat;
}
.skip { display: flex; margin: 14px auto 0; padding: 8px 10px; text-decoration: underline; text-underline-offset: 3px; }

/* Transição "analisando" */
.analyzing { text-align: center; padding-top: 34px; }
.spinner { width: 58px; height: 58px; margin: 0 auto 22px; border-radius: 50%; border: 5px solid var(--bg-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.analyzing ul { list-style: none; padding: 0; margin: 20px auto 0; display: inline-grid; gap: 10px; text-align: left; }
.analyzing li { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--muted); opacity: 0; animation: in .35s ease forwards; }
.analyzing li:nth-child(1) { animation-delay: .25s; }
.analyzing li:nth-child(2) { animation-delay: .8s; }
.analyzing li:nth-child(3) { animation-delay: 1.35s; }
.analyzing li svg { width: 18px; height: 18px; color: var(--brand); flex: none; }

#waBtn { animation: pulse 2.4s ease-out 1s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 10px 26px rgba(31, 74, 52, .22), 0 0 0 0 rgba(81, 188, 105, .55); }
  70%, 100% { box-shadow: 0 10px 26px rgba(31, 74, 52, .22), 0 0 0 16px rgba(81, 188, 105, 0); }
}

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--bg); font-size: 16px; appearance: none; color: var(--text);
}
.field input:focus, .field select:focus { border-color: var(--brand); background: #fff; outline: none; }
.field input::placeholder { color: #9aa39b; }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.field .err { display: none; color: var(--danger); font-size: 12.5px; margin-top: 5px; }
.field.invalid .err { display: block; }
.privacy { font-size: 12px; color: var(--muted); margin: 14px 0 0; text-align: center; }
.privacy a { color: inherit; }

/* Análise concluída */
.done { text-align: center; padding-top: 14px; }
.done .check { width: 76px; height: 76px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; margin: 0 auto 20px; box-shadow: 0 0 0 12px rgba(81, 188, 105, .2); }
.done .check svg { width: 36px; height: 36px; }
.done h2 { margin-bottom: 12px; }
.done > p { color: var(--muted); margin: 0 auto 24px; max-width: 46ch; }
.done-card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 20px; padding: 22px 20px; text-align: left; }
.done-card h3 { margin: 0 0 4px; font-size: 19px; font-weight: 700; }
.done-card > p { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; }
.done ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 11px; }
.done li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.done li svg { flex: none; width: 20px; height: 20px; color: var(--brand); margin-top: 2px; }
.protocol { margin-top: 16px; font-size: 12.5px; color: var(--muted); }

/* Painel de debug (?debug=1) */
.dbg { position: fixed; right: 10px; bottom: 10px; z-index: 99; width: min(380px, calc(100vw - 20px)); max-height: 46vh; overflow: auto; background: #000; color: #7CFC9B; font: 11.5px/1.45 ui-monospace, Consolas, monospace; border-radius: 10px; padding: 10px; opacity: .93; }
.dbg b { color: #fff; }
.dbg div { border-bottom: 1px solid #222; padding: 5px 0; white-space: pre-wrap; word-break: break-word; }

@media (min-width: 860px) {
  .top { padding: 26px 0 10px; }
  .logo { width: 200px; margin-left: -14px; }
  .hero { padding-bottom: 76px; }
  .hero::before { top: -150px; right: -170px; width: 760px; }
  .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 52px; padding-top: 34px; }
  .proof { grid-template-columns: repeat(4, 1fr); }
  .proof-band { padding: 34px 0; }
  .cards { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; overflow: visible; margin: 0; padding: 0; cursor: auto; }
  .card { grid-column: span 5; padding: 16px 16px 26px; }
  .card:nth-child(4n + 1), .card:nth-child(4n) { grid-column: span 7; }
  .card h3 { font-size: 20px; }
  .viz { height: 216px; }
  .car-nav { display: none; }
  .sticky { display: none; }
  footer { padding-bottom: 22px; }
  .section { padding: 84px 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .viz-chat .typing, .wires .pulse { display: none; }
}
