/* Play Help — "sala de controle do balcão", tema escuro único (escolha de marca, não depende do sistema).
   Layout: faixas de console mais escuras (hero, segurança, CTA final) com grade fina e brilho verde-Pix,
   intercaladas com painéis em azul-petróleo escuro, bordas finas e rótulos em fonte mono. */
:root {
  color-scheme: dark;
  /* superfícies */
  --bg: #08141a;
  --surface: #0d1c23;
  --surface-2: #12252d;
  --ink: #e3eef1;
  --muted: #93abb2;
  --line: #20363e;
  /* marca */
  --pix: #3dd1bb;
  --pix-strong: #76e5d4;
  --pix-soft: #0f342f;
  --amber: #f6b445;
  --amber-soft: #36290f;
  --danger: #ef7d70;
  --ok: #5fcf8e;
  --btn-bg: #3dd1bb;
  --btn-ink: #04241f;
  --bubble-in: #1b3039;
  --bubble-out: #113a34;
  /* console */
  --stage: #040d12;
  --stage-2: #0a1a21;
  --stage-ink: #dcebee;
  --stage-muted: #8aa6ad;
  --stage-line: rgb(150 214 224 / 0.12);
  --stage-line-strong: rgb(150 214 224 / 0.26);
  --stage-accent: #41e3c8;
  --stage-cyan: #7fd3ff;
  --stage-amber: #ffc261;
  --stage-on-accent: #032019;
  --glow: rgb(65 227 200 / 0.20);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.35), 0 14px 36px rgb(0 0 0 / 0.42);
  --shadow-lg: 0 30px 80px rgb(0 0 0 / 0.5);
  /* tipografia */
  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Atkinson Hyperlegible', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --radius: 12px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--font-body); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--pix-strong); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.25rem, 5.4vw, 4.25rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.16rem; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--stage-amber); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 0.74rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--pix-strong); }
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; }
.lead { font-size: clamp(1.03rem, 1.4vw, 1.17rem); color: var(--muted); max-width: 62ch; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.fine { font-size: .86rem; color: var(--muted); }

/* ------------------------------------------------------------------ botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1.5px solid transparent; font: 700 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, box-shadow .2s ease, border-color .15s ease; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); box-shadow: 0 8px 24px -10px var(--btn-bg); }
.btn-primary:hover { background: var(--pix-strong); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn-wa { background: #1f9d55; color: #fff; }
.btn-wa:hover { background: #18834a; }
.stage .btn-primary { background: var(--stage-accent); color: var(--stage-on-accent); box-shadow: 0 0 0 1px rgb(65 227 200 / .4), 0 10px 40px -8px var(--glow); }
.stage .btn-primary:hover { background: #6cf0da; }
.stage .btn-ghost { color: var(--stage-ink); border-color: var(--stage-line-strong); background: rgb(255 255 255 / .03); }
.stage .btn-ghost:hover { border-color: var(--stage-accent); }

/* ------------------------------------------------------------------ cabeçalho */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 700 1.14rem/1 var(--font-display); color: var(--ink); text-decoration: none; letter-spacing: -0.03em; }
.brand-mark { position: relative; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: linear-gradient(140deg, var(--pix) 0%, #0f5d7a 100%); color: #fff; font: 700 .82rem/1 var(--font-mono); letter-spacing: -.02em; }
.brand-mark::after { content: ""; position: absolute; right: -2px; top: -2px; width: 9px; height: 9px; border-radius: 50%; background: var(--stage-accent); border: 2px solid var(--bg); }
.brand-logo { width: 38px; height: 38px; border-radius: 10px; flex: none; box-shadow: 0 0 0 1px var(--line), 0 4px 14px -6px rgb(0 0 0 / .35); }
.nav { display: flex; gap: 6px; align-items: center; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: .93rem; padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav .btn { min-height: 42px; padding: 0 18px; }
.menu { position: relative; display: none; }
.menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid var(--line); color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 20px; height: 20px; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; display: grid; padding: 8px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.menu-panel a { padding: 12px 14px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 700; }
.menu-panel a:hover { background: var(--surface-2); }
.short { display: none; }
@media (max-width: 880px) {
  .nav-links { display: none; }
  .menu { display: block; }
}
@media (max-width: 420px) {
  .long { display: none; }
  .short { display: inline; }
  .brand { font-size: 1.04rem; }
  .nav .btn { padding: 0 14px; }
}

/* ------------------------------------------------------------------ faixa "console" */
.stage { position: relative; isolation: isolate; background: var(--stage); color: var(--stage-ink); overflow: hidden; }
.stage::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--stage-line) 1px, transparent 1px), linear-gradient(90deg, var(--stage-line) 1px, transparent 1px);
  background-size: 44px 44px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 35%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 70% 35%, #000 20%, transparent 75%); }
.stage::after { content: ""; position: absolute; z-index: -1; pointer-events: none; width: 720px; height: 720px; right: -200px; top: -260px;
  background: radial-gradient(circle, var(--glow), transparent 62%); }
.stage .lead { color: var(--stage-muted); }
.stage .eyebrow { color: var(--stage-accent); }
.stage .fine { color: var(--stage-muted); }

/* ------------------------------------------------------------------ hero */
.hero { padding-block: clamp(44px, 7vw, 96px) clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 24px; min-width: 0; justify-items: start; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid var(--stage-line-strong);
  background: rgb(255 255 255 / .04); font: 600 .76rem/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--stage-ink); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--stage-accent); box-shadow: 0 0 0 0 var(--glow); animation: ping 2.4s ease-out infinite; flex: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(65 227 200 / .55); } 80%, 100% { box-shadow: 0 0 0 9px rgb(65 227 200 / 0); } }
.hero h1 { color: #f2fafb; }
.clock { font-family: var(--font-mono); font-weight: 600; letter-spacing: -0.04em; color: var(--stage-amber); }
.grad { background: linear-gradient(92deg, var(--stage-accent) 10%, var(--stage-cyan) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; list-style: none; font: 500 .84rem/1.4 var(--font-mono); color: var(--stage-muted); }
.proof li { display: inline-flex; align-items: center; gap: 8px; }
.proof li::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: rgb(65 227 200 / .14)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2341e3c8' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/10px no-repeat; }

.hero-visual { position: relative; display: grid; justify-items: end; min-width: 0; padding-bottom: 176px; }
.hero-visual .phone { width: min(372px, 100%); }
.console { position: absolute; left: 0; bottom: 0; width: min(390px, 92%); border-radius: 14px; overflow: hidden;
  background: rgb(8 24 31 / .92); border: 1px solid var(--stage-line-strong); box-shadow: var(--shadow-lg), 0 0 0 1px rgb(0 0 0 / .2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 500 .74rem/1.55 var(--font-mono); color: var(--stage-ink); }
.console-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--stage-line); color: var(--stage-muted); letter-spacing: .04em; }
.console-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--stage-line-strong); }
.console-bar b { margin-left: 8px; font-weight: 600; }
.log { list-style: none; margin: 0; padding: 10px 12px 12px; display: grid; gap: 3px; }
.log li { display: grid; grid-template-columns: 62px 92px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 1px 4px; border-radius: 4px; animation: tick 7s ease-in-out infinite; }
.log li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log time { color: var(--stage-muted); }
.log code { font: inherit; }
.t-in { color: var(--stage-cyan); }
.t-ai { color: #c3a6ff; }
.t-calc { color: var(--stage-amber); }
.t-pix, .t-ok { color: var(--stage-accent); }
.log .sum { margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--stage-line-strong); border-radius: 0; animation: none; }
.log .sum code { color: var(--stage-muted); grid-column: 1 / 3; }
.log .sum span { color: var(--stage-accent); font-weight: 700; }
.log li:nth-child(1) { animation-delay: 0s; } .log li:nth-child(2) { animation-delay: .7s; } .log li:nth-child(3) { animation-delay: 1.4s; }
.log li:nth-child(4) { animation-delay: 2.1s; } .log li:nth-child(5) { animation-delay: 2.8s; } .log li:nth-child(6) { animation-delay: 3.5s; }
@keyframes tick { 0%, 6% { background: rgb(65 227 200 / .16); } 14%, 100% { background: transparent; } }
.cursor { display: inline-block; width: 7px; height: 13px; margin-left: 4px; vertical-align: -2px; background: var(--stage-accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-items: center; padding-bottom: 0; gap: 16px; }
  .console { position: static; width: min(460px, 100%); }
}
@media (max-width: 400px) { .log li { grid-template-columns: 54px 78px minmax(0, 1fr); gap: 6px; } .console { font-size: .69rem; } }

/* ------------------------------------------------------------------ telefone / conversa */
.phone { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
.stage .phone { border-color: var(--stage-line-strong); box-shadow: var(--shadow-lg); }
.phone-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: linear-gradient(120deg, #0b6f66, #0d5c73); color: #fff; }
.phone-head .avatar { width: 34px; height: 34px; border-radius: 50%; background: rgb(255 255 255 / .2); display: grid; place-items: center; font: 700 .8rem var(--font-mono); flex: none; }
.phone-head b { display: block; font-size: .97rem; }
.phone-head small { opacity: .85; font-size: .76rem; display: inline-flex; align-items: center; gap: 6px; }
.phone-head small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6cf0da; }
.chat { display: flex; flex-direction: column; gap: 8px; padding: 16px 12px 18px; min-height: 340px; background: var(--surface-2); color: var(--ink); }
.msg { max-width: 85%; padding: 8px 11px 6px; border-radius: 14px; font-size: .92rem; line-height: 1.45; box-shadow: 0 1px 0 rgb(0 0 0 / .05); animation: pop .35s ease both; overflow-wrap: anywhere; }
.msg time { display: block; text-align: right; font: 500 .66rem/1.2 var(--font-mono); color: var(--muted); margin-top: 2px; }
.msg.in { align-self: flex-start; background: var(--bubble-in); border-top-left-radius: 4px; }
.msg.out { align-self: flex-end; background: var(--bubble-out); border-top-right-radius: 4px; }
.msg.out time::after { content: " ✓✓"; color: var(--pix); }
.msg.pix { font-family: var(--font-mono); font-size: .74rem; word-break: break-all; border: 1px dashed var(--pix); }
.msg.sys { align-self: center; background: var(--amber-soft); color: var(--ink); font: 600 .68rem/1.35 var(--font-mono); padding: 5px 10px; border-radius: 6px; letter-spacing: .03em; text-align: center; }
@keyframes pop { from { opacity: .2; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.phone-input { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--surface); border-top: 1px solid var(--line); }
.phone-input span { flex: 1; display: flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .85rem; }
.phone-input i { width: 36px; height: 36px; border-radius: 50%; background: var(--pix); flex: none; }

/* ------------------------------------------------------------------ seções claras */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(30px, 4vw, 48px); max-width: 780px; }
.section-head.flush { margin-bottom: 0; }
.band { position: relative; background: var(--surface); border-block: 1px solid var(--line); }
.band::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgb(150 214 224 / 0.07) 1px, transparent 1.5px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); }
.band > .wrap { position: relative; }

/* Nichos */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 26px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.tab { min-height: 44px; padding: 0 18px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font: 700 .95rem var(--font-body); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.niche { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.niche .phone { width: 100%; max-width: 390px; }
.niche-copy { display: grid; gap: 20px; min-width: 0; align-content: start; padding-top: 8px; }
.niche-copy h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.does { display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.does li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.does li::before { content: ""; width: 24px; height: 24px; margin-top: 1px; border-radius: 7px; background: var(--pix-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7d73' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat; }
.guard { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 14px 16px; border-radius: var(--radius); background: var(--amber-soft); font-size: .95rem; }
.guard::before { content: ""; width: 20px; height: 20px; background: var(--amber); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l8 3v6c0 5-3.4 9.3-8 11-4.6-1.7-8-6-8-11V5l8-3z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l8 3v6c0 5-3.4 9.3-8 11-4.6-1.7-8-6-8-11V5l8-3z'/%3E%3C/svg%3E") center/contain no-repeat; }
@media (max-width: 860px) { .niche { grid-template-columns: 1fr; } .niche .phone { justify-self: center; } }
@media (max-width: 480px) { .tabs { display: flex; } .tab { flex: 1 1 auto; padding: 0 12px; } }

/* Como funciona: sequência real (por isso numerada) */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; list-style: none; padding: 0; margin: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 24px; right: 24px; top: 23px; height: 1.5px; background: linear-gradient(90deg, var(--pix), var(--line)); z-index: 0; }
.steps li { position: relative; z-index: 1; display: grid; gap: 10px; align-content: start; counter-increment: s; }
.steps li::before { content: "0" counter(s); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--pix);
  font: 700 .95rem var(--font-mono); color: var(--pix-strong); box-shadow: 0 0 0 6px var(--bg); }
.steps p { color: var(--muted); font-size: .97rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps::before { left: 23px; right: auto; top: 24px; bottom: 24px; width: 1.5px; height: auto; background: linear-gradient(180deg, var(--pix), var(--line)); }
  .steps li { grid-template-columns: 48px 1fr; column-gap: 16px; }
  .steps li::before { grid-row: span 2; }
}

/* Pix: fluxo + calculadora */
.money { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.flow { display: grid; gap: 0; margin-top: 8px; list-style: none; padding: 0; }
.flow li { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding-bottom: 18px; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 1.5px; background: var(--line); }
.flow .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--pix-soft); color: var(--pix-strong); }
.flow .ico svg { width: 18px; height: 18px; }
.flow b { display: block; }
.flow small { color: var(--muted); font-size: .9rem; }
.flow .zero .ico { background: var(--amber-soft); color: var(--amber); }
.gateways { display: flex; flex-wrap: wrap; gap: 8px; }
.gateways span { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); font: 600 .8rem var(--font-mono); }
.receipt { position: relative; display: grid; gap: 16px; padding: clamp(20px, 3vw, 28px); border-radius: 16px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.receipt-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.receipt-id { font-weight: 700; color: var(--muted); }
.rows { margin: 0; display: grid; gap: 0; font-family: var(--font-mono); font-size: .88rem; font-variant-numeric: tabular-nums; }
.rows div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.rows dt { color: var(--muted); }
.rows dd { margin: 0; text-align: right; font-weight: 600; }
.rows dd.ok { color: var(--ok); }
.rows dd.ok::before { content: "✓ "; }
.stamp { justify-self: start; padding: 6px 12px; border: 2px solid var(--ok); border-radius: 8px; color: var(--ok); font: 800 .78rem/1 var(--font-mono); letter-spacing: .08em; transform: rotate(-2deg); }
@media (max-width: 860px) { .money { grid-template-columns: 1fr; } }

/* Segurança (faixa console) */
.secure-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.secure-card { display: grid; gap: 12px; align-content: start; padding: 22px; border-radius: 14px; background: rgb(255 255 255 / .03); border: 1px solid var(--stage-line-strong); }
.secure-card .ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgb(65 227 200 / .12); color: var(--stage-accent); }
.secure-card .ico svg { width: 20px; height: 20px; }
.secure-card h3 { color: #f2fafb; }
.secure-card p { color: var(--stage-muted); font-size: .95rem; }
.secure-card code { font: 600 .72rem var(--font-mono); color: var(--stage-accent); letter-spacing: .04em; }
.stage h2 { color: #f2fafb; }
@media (max-width: 960px) { .secure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .secure-grid { grid-template-columns: 1fr; } }

/* Serviços */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.service { display: grid; gap: 14px; grid-template-rows: auto auto auto 1fr auto; padding: clamp(22px, 3vw, 28px); border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.service .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--pix-soft); color: var(--pix-strong); }
.service .ico svg { width: 22px; height: 22px; }
.service p { color: var(--muted); }
.service ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; align-content: start; }
.service li { padding-left: 24px; position: relative; font-size: .97rem; }
.service li::before { content: "✓"; position: absolute; left: 0; color: var(--pix); font-weight: 800; }
.service-actions { display: grid; gap: 10px; }
.service-actions .btn { width: 100%; white-space: normal; text-align: center; min-height: 48px; padding-block: 8px; }
@media (max-width: 720px) { .services { grid-template-columns: 1fr; } }

/* Planos */
.billing { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 26px; max-width: 100%; }
.billing button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 700 .95rem var(--font-body); cursor: pointer; }
.billing button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: grid; gap: 18px; align-content: start; grid-template-rows: auto auto auto auto 1fr auto; padding: clamp(22px, 3vw, 30px); border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.plan.main { border: 1.5px solid var(--pix); box-shadow: 0 0 0 4px var(--pix-soft); }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price b { font: 700 clamp(2.4rem, 5vw, 3.2rem)/1 var(--font-display); letter-spacing: -0.04em; }
.price span { color: var(--muted); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; align-content: start; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--pix); font-weight: 800; }
.plan .tag { justify-self: start; padding: 5px 10px; border-radius: 999px; background: var(--amber-soft); font: 700 .7rem var(--font-mono); letter-spacing: .06em; }
.plan .btn { width: 100%; }
.extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.extras > div { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: 18px; border: 1px solid var(--line); }
.refer { background: var(--amber-soft); border-color: transparent !important; }
.refer .eyebrow { color: var(--amber); }
.paynote { background: var(--surface); }
@media (max-width: 860px) { .plans, .extras { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .15s; }
.faq details[open] { border-color: var(--pix); }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); font: 700 1.1rem/1 var(--font-mono); color: var(--pix-strong); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 20px 18px; color: var(--muted); display: grid; gap: 10px; }
.faq-ask { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--muted); }

/* CTA final + rodapé */
.final-band .wrap { display: grid; gap: 20px; justify-items: start; padding-block: clamp(64px, 8vw, 104px); }
.final-band .hero-cta { margin-top: 4px; }
@media (max-width: 480px) {
  .hero-cta { display: grid; width: 100%; }
  .hero-cta .btn { width: 100%; }
  .calc .lines { font-size: .82rem; }
}
.foot { border-top: 1px solid var(--line); padding-block: 32px calc(96px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: .92rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; }
.foot a { color: var(--muted); display: inline-block; padding-block: 10px; }

/* ------------------------------------------------------------------ assistente (widget) */
.assistant-launcher { position: fixed; z-index: 50; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 20px 0 16px; border-radius: 999px; border: 1px solid var(--stage-line-strong);
  background: var(--stage); color: var(--stage-ink); font: 700 .98rem var(--font-body); cursor: pointer; box-shadow: var(--shadow-lg), 0 0 0 1px rgb(0 0 0 / .1);
  transition: transform .15s ease; }
.assistant-launcher:hover { transform: translateY(-2px); }
.assistant-launcher svg { width: 22px; height: 22px; color: var(--stage-accent); }
.assistant-launcher[aria-expanded="true"] { display: none; }
.assistant-launcher.is-away { opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none; visibility: hidden; transition: opacity .2s, transform .2s, visibility 0s .2s; }
.assistant-panel { position: fixed; z-index: 60; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: min(420px, calc(100vw - 36px)); height: min(720px, calc(100dvh - 40px)); display: flex; flex-direction: column;
  border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: rise .22s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.assistant-head { position: relative; isolation: isolate; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; background: var(--stage); color: var(--stage-ink); overflow: hidden; }
.assistant-head::after { content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; right: -90px; top: -150px; background: radial-gradient(circle, var(--glow), transparent 65%); }
.assistant-avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: linear-gradient(140deg, var(--stage-accent), #2a9bd1); color: var(--stage-on-accent); font: 700 .85rem var(--font-mono); }
.assistant-head b { display: block; font-family: var(--font-display); letter-spacing: -0.02em; }
.assistant-head small { display: inline-flex; align-items: center; gap: 7px; color: var(--stage-muted); font: 500 .74rem var(--font-mono); }
.assistant-head .dot { width: 7px; height: 7px; }
.icon-btn { margin-left: auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--stage-line-strong); background: transparent; color: var(--stage-ink); cursor: pointer; flex: none; }
.icon-btn svg { width: 18px; height: 18px; }
.assistant-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.a-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: .95rem; line-height: 1.5; overflow-wrap: anywhere; animation: pop .25s ease both; }
.a-msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-top-left-radius: 4px; }
.a-msg.me { align-self: flex-end; background: var(--pix); color: var(--btn-ink); border-top-right-radius: 4px; }
.a-msg .src { display: block; margin-top: 6px; font: 500 .68rem var(--font-mono); color: var(--muted); letter-spacing: .03em; }
.a-msg .handoff { margin-top: 10px; width: 100%; min-height: 42px; font-size: .9rem; }
.a-msg .handoff { box-shadow: none; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: bounce 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-4px); opacity: 1; } }
.assistant-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; background: var(--surface); }
.assistant-chips button { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 700 .84rem var(--font-body); cursor: pointer; }
.assistant-chips button:hover { border-color: var(--pix); color: var(--pix-strong); }
.assistant-form { display: flex; gap: 8px; padding: 10px 14px; background: var(--surface); }
.assistant-form input { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: 400 16px var(--font-body); }
.assistant-form input:focus { outline: none; border-color: var(--pix); box-shadow: 0 0 0 3px var(--pix-soft); }
.assistant-form button { width: 46px; min-height: 46px; padding: 0; border-radius: 12px; }
.assistant-foot { display: grid; gap: 6px; padding: 0 14px 12px; background: var(--surface); }
.wa-label { font: 600 .76rem var(--font-mono); letter-spacing: .03em; color: var(--muted); }
.wa-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.wa-opt { display: grid; place-items: center; min-height: 44px; padding: 6px 8px; border-radius: 12px; background: #1f9d55; color: #fff; text-decoration: none; text-align: center; font: 700 .82rem/1.2 var(--font-body); }
.wa-opt:hover { background: #18834a; }
.assistant-foot small { color: var(--muted); font-size: .7rem; line-height: 1.35; text-align: center; }
@media (max-width: 560px) {
  /* no celular o botão vira um círculo para não cobrir o conteúdo */
  .assistant-launcher { width: 58px; height: 58px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%; }
  .assistant-launcher .launcher-label { display: none; }
  .assistant-launcher svg { width: 26px; height: 26px; }
  .assistant-panel { inset: 0; width: 100%; height: 100dvh; max-height: none; border-radius: 0; border: 0; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .assistant-head { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(14px, env(safe-area-inset-right, 0px)); }
  body.sheet-open { overflow: hidden; }
}

/* Serviços: um botão só de WhatsApp */
.services-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
@media (max-width: 480px) { .services-cta { display: grid; } .services-cta .btn { width: 100%; white-space: normal; } }
/* Assistente: triagem por assunto e botão único */
.assistant-chips .topic { border-color: rgb(61 209 187 / .55); color: var(--pix-strong); background: var(--pix-soft); }
.assistant-foot .wa { width: 100%; min-height: 44px; font-size: .93rem; }
.assistant-foot .wa.pulse { animation: waPulse 1.1s ease-in-out 3; }
@keyframes waPulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(31 157 85 / .65); } 50% { box-shadow: 0 0 0 9px rgb(31 157 85 / 0); } }
.a-msg .topic-hint { display: block; margin-top: 8px; font-size: .86rem; color: var(--muted); }

/* ---------- Página de Termos e Privacidade ---------- */
.legal { max-width: 820px; padding-block: 40px 24px; }
.legal h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); margin-bottom: 14px; }
.legal h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); margin: 0 0 10px; }
.legal h3 { font-size: 1.05rem; margin: 18px 0 6px; color: var(--ink); }
.legal section { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.legal p, .legal li { line-height: 1.65; max-width: 72ch; }
.legal ul, .legal ol { padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--pix); }
.legal-meta { color: var(--muted); font-size: .85rem; margin: 0 0 10px; }
.legal-toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 18px; margin-top: 22px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.legal-toc a { color: var(--ink); text-decoration: none; padding-block: 8px; min-height: 24px; }
.legal-toc a:hover { color: var(--pix); }

/* Assistente: sugestões DENTRO da conversa (somem quando a pessoa escolhe), sem faixa fixa */
.assistant-log { gap: 12px; padding: 16px 14px 12px; scroll-behavior: smooth; }
.qr-group { display: grid; gap: 8px; animation: pop .25s ease both; }
.qr-topics { margin-left: 2px; }
.qr-card { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 12px;
  border-radius: 14px; border: 1px solid rgb(61 209 187 / .35); background: var(--surface); color: var(--ink); text-align: left; cursor: pointer;
  font: inherit; transition: border-color .15s, transform .15s, background .15s; }
.qr-card:hover, .qr-card:focus-visible { border-color: var(--pix); background: var(--pix-soft); transform: translateY(-1px); outline: none; }
.qr-card b { display: block; font: 700 .95rem/1.25 var(--font-body); }
.qr-card small { display: block; margin-top: 2px; color: var(--muted); font-size: .82rem; line-height: 1.3; }
.qr-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--pix-soft); color: var(--pix-strong); }
.qr-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.qr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.qr-chip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid rgb(61 209 187 / .55); background: var(--pix-soft);
  color: var(--pix-strong); font: 700 .86rem var(--font-body); cursor: pointer; }
.qr-chip:hover, .qr-chip:focus-visible { border-color: var(--pix); outline: none; }
.qr-chip--ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.qr-hint { margin: -2px 0 0 4px; color: var(--muted); font-size: .82rem; }
.a-msg .handoff { display: flex; margin-top: 10px; width: 100%; min-height: 42px; font-size: .9rem; text-decoration: none; }
