/* HopeAgents AI: home "Conversa vira operação" (versão final)
   CSS puro, sem framework. Escala de 8px, raios 6/8/12 (só as bolhas do chat seguem o WhatsApp), uma seção escura. */

/* Fallback com a métrica da Geist: enquanto a Geist não chega (display=swap), o texto já ocupa a mesma largura
   e não muda de linha na troca (sem isso, a 390 px o título ia de 2 para 3 linhas e os botões empilhavam: CLS 0,2).
   size-adjust medido no Chrome com o texto do hero: Geist 400 ~ 1,015 x Arial; 500 ~ 1,045 x Arial;
   600 ~ 1,00 x Arial Bold. Vertical: Geist 1,01 / 0,29 em. Sem Arial no aparelho (Android), a face falha e vale a próxima da lista. */
@font-face {
  font-family: "Geist Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 100 450;
  size-adjust: 101.5%; ascent-override: 99.5%; descent-override: 28.6%; line-gap-override: 0%;
}
@font-face {
  font-family: "Geist Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 451 550;
  size-adjust: 104.5%; ascent-override: 96.7%; descent-override: 27.8%; line-gap-override: 0%;
}
@font-face {
  font-family: "Geist Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 551 1000;
  size-adjust: 100%; ascent-override: 101%; descent-override: 29%; line-gap-override: 0%;
}

:root {
  /* Paleta da marca (HopeAgents + SystemHope): neutros FRIOS, base azul-ardósia no hue OKLCH ~268, o mesmo do
     azul #2b4dff e da tinta marinho #0b1020. Nada de bege: fundo, faixa, linhas e cinzas saem da home antiga,
     do blog e do tema claro da SystemHope (#fafbfd, #f4f5fa, #5a6785, #8892a8). */

  /* superfícies (claro) */
  --bg: #fafbfd;
  --bg-tint: #eff2f9;
  --surface: #ffffff;
  --surface-2: #eff2f9;
  --surface-soft: #fafbfd;  /* barra e lateral da janela, cabeçalho de tabela: um fio abaixo do branco */
  --surface-sel: #e5ebf9;   /* item ativo da lateral do produto */

  /* texto */
  --ink: #0b1020;
  --ink-2: #353e51;
  --muted: #535f7c;         /* #5a6785 da home antiga um fio mais escuro, mesmo matiz: ≥ 4,5:1 até sob a sombra da janela */
  --faint: #8892a8;

  /* linhas */
  --line: #e0e4ee;
  --line-2: #e9ecf3;
  --border-strong: #ccd2de;
  --border-hover: #b2b7c5;
  --control: #788093;       /* contorno de campo e da aba ativa: ≥ 3:1 contra branco, fundo e faixa */

  /* marca e estados */
  --brand: #2b4dff;
  --brand-hover: #1f3de6;
  --grad-brand: #2b4dff; /* sólido: o botão do banner de cookies usa esta variável (CTAs sólidos, como na SystemHope) */
  --grad-text: linear-gradient(135deg, #2b4dff 0%, #4d4dff 55%, #6b4dff 100%); /* assinatura das duas marcas: só em texto */
  --ok: #15703b;
  --ok-bg: #e7f4ec;
  --bad: #b42318;
  --bad-bg: #fcebea;
  --warn: #8a5300;
  --warn-bg: #fbf0d9;
  --info: #1f3de6;          /* etiqueta informativa (não é alerta): azul da marca */
  --info-bg: #ebf1ff;

  /* chat: a bolha de saída na tinta da marca (o canal já aparece no cabeçalho e nos tiques), não no verde WhatsApp */
  --chat-bg: #eef1f8;
  --bubble-out: #dfe6ff;
  --bubble-out-line: #c3cdf0;

  /* sombra: só na janela de produto (e no banner, via contrato); tinta marinho, não preto */
  --shadow-window: 0 1px 2px rgba(11, 16, 32, .04), 0 24px 56px -24px rgba(11, 16, 32, .22), 0 8px 20px -12px rgba(11, 16, 32, .10);
  --shadow-lg: 0 24px 48px -16px rgba(11, 16, 32, .22), 0 8px 16px -8px rgba(11, 16, 32, .08);

  /* escuro (sala de controle): marinho profundo da marca, não preto neutro. A base é o #0c1530 do cartão
     "Agentes de IA" da SystemHope; a escala sobe no mesmo hue (OKLCH 268) até as linhas e o texto */
  --d-bg: #0c1530;
  --d-canvas: #0f1936;
  --d-surface: #141f3f;
  --d-surface-2: #1b2648;
  --d-line: #273357;
  --d-line-2: #2f3d62;
  --d-dots: #243053;
  --d-conn: #4f5d80;
  --d-ink: #e8eaf2;
  --d-muted: #aeb7cf;
  --d-faint: #8993ae;
  --d-brand: #6f86ff;
  --d-ok: #5ad48a;
  --d-bad: #f38b83;
  --d-warn: #f0bf5a;

  /* forma */
  --r-sm: 6px;
  --r: 8px;
  --r-lg: 12px;
  --maxw: 1200px;
  --pad: clamp(16px, 4vw, 32px);
  --sec: clamp(48px, 5vw, 64px);

  --font: "Geist", "Geist Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
a { -webkit-tap-highlight-color: rgba(43, 77, 255, .12); }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }
.nw { white-space: nowrap; }
.sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.dark :focus-visible { outline-color: #8fa2ff; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 150;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r);
  text-decoration: none; font-size: 14px;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--pad)); margin: 0 auto; padding-inline: var(--pad); }

.ic {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- tipografia ---------- */
h1 {
  font-size: clamp(2.5rem, 1.3rem + 3.9vw, 3.75rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
  font-weight: 600;
  text-wrap: balance;
}
/* a frase-chave no gradiente da marca, como a home antiga (.grad-text: #2b4dff → #6b4dff) e a SystemHope (título em gradiente) */
h1 .soft, .brand-ai { color: var(--brand); } /* fallback sólido */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  h1 .soft, .brand-ai {
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
  }
}
@media (forced-colors: active) {
  h1 .soft, .brand-ai { background: none; -webkit-text-fill-color: currentColor; color: CanvasText; }
}
h2 {
  font-size: clamp(1.875rem, 1.05rem + 2.4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}
h3 { font-size: 17px; line-height: 1.35; letter-spacing: -0.012em; font-weight: 600; }
.eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: .02em;
  color: var(--muted); margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 10px;
}
/* eyebrow dentro do h2 (o termo da seção entra no título; o visual é o mesmo do eyebrow solto) */
h2 > .eyebrow { display: flex; width: fit-content; line-height: 1.6; letter-spacing: .02em; font-weight: 500; }
h2 > .h2-t { display: block; }
/* o quadradinho azul fica só nas seções âncora (hero, rastreabilidade, casos) */
.eyebrow-mark::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--brand); }
/* seções secundárias (integrações, segurança): título um degrau abaixo */
.h2-sm { font-size: clamp(1.5rem, 1rem + 1.4vw, 2rem); line-height: 1.12; letter-spacing: -0.03em; }
.sub { color: var(--muted); font-size: 18px; line-height: 1.55; margin-top: 16px; max-width: 60ch; text-wrap: pretty; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: var(--r);
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-primary, .btn-grad { background: var(--brand); color: #fff; }
.btn-primary:hover, .btn-grad:hover { background: var(--brand-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--border-hover); }
.btn-quiet { color: var(--ink-2); padding: 0 12px; }
.btn-quiet:hover { color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 251, 253, .97); /* ≥ .97: o "AI" em gradiente (fim #6b4dff) mantém 4,5:1 quando a nav passa sobre a seção escura */
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; min-height: 44px; }
.brand img { width: 28px; height: 28px; }
.brand-word { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: .01em; }
.nav-links { display: flex; gap: 4px; margin-left: 24px; }
.nav-links a {
  font-size: 14px; color: var(--ink-2); text-decoration: none; white-space: nowrap;
  padding: 6px 10px; border-radius: var(--r-sm);
}
.nav-links a:hover { color: var(--ink); background: rgba(11, 16, 32, .04); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-burger {
  display: none; width: 44px; height: 44px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-burger span { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform .2s; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.nav-mobile { display: none; border-top: 1px solid var(--line); background: var(--bg); }
.nav-mobile.open {
  display: block;
  max-height: calc(100vh - 65px); max-height: calc(100dvh - 65px);
  overflow-y: auto; overscroll-behavior: contain;
}
.nav-mobile .wrap { padding-block: 8px 20px; display: flex; flex-direction: column; }
.nav-mobile a:not(.btn) {
  padding: 12px 0; font-size: 16px; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line-2);
}
.nav-mobile-cta { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; margin-top: 16px; }
/* 560-767: a barra já mostra "Falar com especialista"; de 768 em diante mostra os dois botões */
@media (min-width: 560px) and (max-width: 767px) {
  .nav-mobile-cta { grid-template-columns: minmax(0, 1fr); }
  .nav-mobile-cta .btn-primary { display: none; }
}
@media (min-width: 768px) { .nav-mobile-cta { display: none; } }

/* os 6 links só cabem numa linha a partir de ~1120 px; abaixo de 1140, hambúrguer */
@media (max-width: 1139px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  /* os três controles da barra (Entrar, Falar com especialista, hambúrguer) na mesma altura */
  .nav-talk { height: 44px; }
}
/* menu aberto e a janela alargou (tablet girado): o painel não fica preso aberto sem botão para fechar */
@media (min-width: 1140px) {
  .nav-mobile, .nav-mobile.open { display: none; }
}
@media (max-width: 767px) { .nav-login { display: none; } }
@media (max-width: 559px) { .nav-talk { display: none; } }

/* ---------- hero ---------- */
.hero { padding-top: clamp(28px, 2vw, 32px); }
.hero-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-head .eyebrow { margin-bottom: 14px; }
.lede {
  margin-top: 16px; max-width: 700px;
  font-size: clamp(17px, 1rem + .25vw, 18.5px); line-height: 1.5; color: var(--ink-2);
  text-wrap: pretty;
}
/* botões e a linha da SystemHope dividem a mesma linha no desktop: economiza altura */
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 12px 24px; margin-top: 22px; flex-wrap: wrap; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-cred { font-size: 14px; color: var(--muted); padding-left: 24px; border-left: 1px solid var(--border-strong); line-height: 1.4; }
.hero-cred strong { color: var(--ink); font-weight: 600; }

/* faixa de fundo que assenta a janela (começa na metade de baixo da janela) */
.stage { position: relative; isolation: isolate; margin-top: clamp(24px, 2vw, 28px); padding-bottom: var(--sec); }
.stage::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 300px; bottom: 0;
  background: var(--bg-tint); border-top: 1px solid var(--line);
}

/* ---------- produto em cena ---------- */
.demo-tabs {
  display: flex; justify-content: center; gap: 4px;
  width: max-content; max-width: 100%; margin: 0 auto 10px;
  padding: 4px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-tint);
}
.demo-tabs [role="tab"] {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  height: 36px; padding: 0 14px; border-radius: var(--r); border: 1px solid transparent;
  background: transparent; color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer;
}
.demo-tabs [role="tab"]:hover { color: var(--ink); }
/* aba ativa: contorno --control (3,5:1 contra o trilho, 4:1 contra o branco), não só a pílula branca */
.demo-tabs [role="tab"][aria-selected="true"] {
  background: var(--surface); color: var(--ink); border-color: var(--control);
  box-shadow: 0 1px 2px rgba(11, 16, 32, .06);
}
.demo-tabs .ic { width: 15px; height: 15px; }
/* rotação automática (só no computador): fio da marca na aba ativa, enche até a próxima troca e recomeça a cada troca.
   O JS põe .is-auto no trilho e atualiza --tab-progress (0 a 1); sem .is-auto (celular, movimento reduzido,
   depois de um clique na aba) não há fio. Sem brilho e sem degradê: cor sólida. */
.demo-tabs [role="tab"] { position: relative; }
.demo-tabs.is-auto [role="tab"][aria-selected="true"]::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; border-radius: 1px;
  background: var(--brand); transform: scaleX(var(--tab-progress, 0)); transform-origin: left center;
  pointer-events: none;
}

.window {
  margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-window); overflow: hidden;
}
.win-bar {
  display: flex; align-items: center; gap: 16px; height: 44px; padding: 0 16px;
  border-bottom: 1px solid var(--line); background: var(--surface-soft);
}
.win-dots { display: flex; gap: 6px; }
.win-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d5d9e4; }
.win-title { font-size: 13px; color: var(--muted); }
.win-title .sep { color: var(--muted); margin: 0 4px; }
.win-tag {
  margin-left: auto; font-size: 12px; color: var(--info); background: var(--info-bg);
  padding: 3px 8px; border-radius: var(--r-sm); font-weight: 500; white-space: nowrap;
}
/* sem altura fixa: a janela cresce com o conteúdo; min-height só dá o formato */
.win-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: 500px; }

.win-side { border-right: 1px solid var(--line); background: var(--surface-soft); padding: 16px 12px; font-size: 13px; }
.ws-org { display: none; align-items: center; gap: 9px; padding: 0 8px 14px; }
.ws-org-t { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.ws-org-t b { font-weight: 600; font-size: 13px; color: var(--ink); }
.ws-org-t small { font-size: 11.5px; color: var(--muted); }
[data-active="vendas"] .ws-org[data-area="vendas"],
[data-active="financeiro"] .ws-org[data-area="financeiro"],
[data-active="atendimento"] .ws-org[data-area="atendimento"],
[data-active="rh"] .ws-org[data-area="rh"] { display: flex; }
.ws-logo {
  width: 22px; height: 22px; border-radius: var(--r-sm); background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 11px; font-weight: 600;
}
.ws-nav li { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: var(--r-sm); color: var(--ink-2); }
.ws-nav li.on { background: var(--surface-sel); color: var(--ink); font-weight: 500; }
.ws-nav .ic { width: 15px; height: 15px; color: var(--muted); }
.ws-label { margin: 16px 8px 6px; font-size: 11px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
/* cada empresa fictícia mostra só o seu agente */
.ws-agents li { display: none; align-items: center; gap: 9px; padding: 6px 8px; border-radius: var(--r-sm); background: var(--surface-sel); color: var(--ink); font-weight: 500; }
.ws-agents i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
[data-active="vendas"] .ws-agents [data-area="vendas"],
[data-active="financeiro"] .ws-agents [data-area="financeiro"],
[data-active="atendimento"] .ws-agents [data-area="atendimento"],
[data-active="rh"] .ws-agents [data-area="rh"] { display: flex; }

/* os quatro painéis na mesma célula: a janela assume a altura do maior e não pula ao trocar de aba.
   O HTML sai sem [hidden] (extratores de conteúdo que leem sem CSS descartam [hidden]): antes do JS, e sem JS,
   só o primeiro painel aparece; o JS põe .is-on no ativo e [hidden] nos outros, que ocupam espaço sem ser vistos. */
.win-panels { min-width: 0; display: grid; }
.win-panels > .panel { grid-area: 1 / 1; }
.win-panels > .panel:not(:first-child) { visibility: hidden; }
.win-panels > .panel[hidden] { display: grid !important; visibility: hidden; }
.win-panels > .panel.is-on { visibility: visible; }
.win-panels > .panel:focus-visible { outline-offset: -3px; }
/* troca de painel: o que entra aparece por cima em 180 ms, e o que sai fica inteiro embaixo até o fim e só então some
   (nunca dois painéis meio transparentes). Fundo opaco para o de baixo não vazar. No celular (display: none) a troca
   é seca; com movimento reduzido também (regra global no fim do arquivo). */
.win-panels > .panel {
  position: relative; background: var(--surface); opacity: 0;
  transition: opacity 0s linear .18s, visibility 0s linear .18s;
}
.win-panels > .panel.is-on { z-index: 1; opacity: 1; transition: opacity .18s ease-out; }
.case-panels > .case:focus-visible { outline-offset: 6px; }
.panel { display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); min-width: 0; }

/* conversa */
.chat { display: flex; flex-direction: column; background: var(--chat-bg); border-right: 1px solid var(--line); min-width: 0; }
.chat-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: #e2e6ef; color: var(--ink-2);
  font-size: 11px; font-weight: 600; letter-spacing: .02em;
}
.chat-name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.chat-meta { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; line-height: 1.3; }
.chat-meta .ic { width: 12px; height: 12px; }
/* mensagens a partir do topo, como numa conversa curta no WhatsApp: a sobra de altura fica entre a última mensagem e o campo */
.msgs { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; gap: 8px; padding: 16px; }
.msgs .day {
  align-self: center; font-size: 11px; color: var(--muted); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 1px 8px; margin-bottom: 4px;
}
.msg {
  max-width: 86%; padding: 8px 10px 6px; border-radius: 10px; font-size: 13.5px; line-height: 1.45;
  background: var(--surface); border: 1px solid var(--line); position: relative;
}
.msg.in { align-self: flex-start; border-top-left-radius: 3px; }
.msg.out { align-self: flex-end; background: var(--bubble-out); border-color: var(--bubble-out-line); border-top-right-radius: 3px; }
.msg p { overflow-wrap: anywhere; }
.msg b { font-weight: 600; }
.msg .t { display: flex; justify-content: flex-end; align-items: center; gap: 3px; margin-top: 2px; font-size: 11px; color: var(--muted); font-family: var(--mono); }
.msg .t .ic { width: 13px; height: 13px; color: #3b82c4; stroke-width: 2; }
.msg-file p { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.msg-file p .ic { width: 16px; height: 16px; color: var(--ink-2); }
.composer {
  margin: 0 12px 12px; height: 38px; border-radius: 19px; background: var(--surface);
  border: 1px solid var(--line); display: flex; align-items: center; padding: 0 16px;
  font-size: 13px; color: var(--muted);
}

/* sistema */
.sys { padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sys-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sys-label { font-size: 12px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-weight: 500; }
.sys-conn { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.dot-ok { background: #22a05a; }
.dot-warn { background: #bd7f16; } /* ≥ 3:1 contra o fundo */

.doc { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.doc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.doc-kind { font-size: 12px; color: var(--muted); }
.doc-id { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; font-family: var(--mono); }
.status {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: var(--r-sm);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-ok { color: var(--ok); background: var(--ok-bg); }
.status-run { color: var(--warn); background: var(--warn-bg); }
.doc-fields { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.2fr) minmax(0, 1fr); border-bottom: 1px solid var(--line-2); }
.doc-fields > div { padding: 8px 12px; min-width: 0; }
.doc-fields > div + div { border-left: 1px solid var(--line-2); }
.doc-fields dt, .doc-rows dt { font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.doc-fields dd { font-size: 13px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.doc-fields dd.mono { font-size: 12px; }
.doc-fields dd.nw { white-space: nowrap; overflow-wrap: normal; }
.doc-items { width: 100%; border-collapse: collapse; font-size: 13px; }
.doc-items th { text-align: left; font-weight: 500; font-size: 11px; color: var(--muted); padding: 8px 14px 6px; letter-spacing: .02em; }
.doc-items td { padding: 5px 14px; border-top: 1px solid var(--line-2); }
.doc-items th:not(:first-child), .doc-items td:not(:first-child) { text-align: right; font-family: var(--mono); font-size: 12px; white-space: nowrap; width: 1%; }
.doc-items th:not(:first-child) { font-family: var(--font); font-size: 11px; }
.doc-items tfoot td { font-weight: 600; background: var(--surface-soft); padding-block: 7px; }
.doc-items tfoot td:last-child { font-size: 13px; font-weight: 500; }
.doc-rows > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 7px 14px; align-items: baseline; }
.doc-rows > div + div { border-top: 1px solid var(--line-2); }
.doc-rows dd { font-size: 13px; }

.steps-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.steps-head .mono { color: var(--ink); font-weight: 500; }
.steps ol li {
  display: grid; grid-template-columns: 64px 16px 1fr; gap: 10px; align-items: center;
  font-size: 13px; padding: 2px 0; color: var(--ink-2);
}
.steps time { font-size: 11.5px; color: var(--muted); }
.steps .ic { width: 14px; height: 14px; stroke-width: 2.25; }
.ic.ok { color: #1f9254; }
.ic.wait { color: var(--warn); }

.demo-note {
  margin: 14px auto 0; display: flex; justify-content: space-between; align-items: baseline;
  gap: 6px 24px; flex-wrap: wrap; font-size: 13px; color: var(--muted);
}
.demo-note p a { color: var(--ink); text-underline-offset: 2px; }
.link-arrow { color: var(--brand); font-weight: 500; text-decoration: none; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }
.demo-note .link-arrow { font-size: 14px; }

/* pilares: faixa compacta logo abaixo da janela, com título de seção */
.pillars-title {
  margin-top: clamp(36px, 4vw, 52px); font-size: clamp(1.25rem, 1rem + .8vw, 1.5rem);
  line-height: 1.2; letter-spacing: -0.025em;
}
.pillars {
  margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border-strong);
}
.pillars li { padding: 20px 24px 4px 24px; border-left: 1px solid var(--line); min-width: 0; }
.pillars li:first-child { padding-left: 0; border-left: 0; }
.pillars li:last-child { padding-right: 0; }
.pillars .ic { width: 18px; height: 18px; color: var(--brand); margin-bottom: 12px; }
.pillars h3 { font-size: 15.5px; }
.pillars p { font-size: 14px; line-height: 1.55; color: var(--muted); margin-top: 6px; }
.pillars .link-arrow { display: inline-block; margin-top: 8px; font-size: 13.5px; white-space: normal; }

/* ---------- seções ---------- */
.section { padding-block: var(--sec); border-top: 1px solid var(--line); }
.section-tint { background: var(--bg-tint); }
.sec-head { max-width: 720px; margin-bottom: clamp(28px, 3.5vw, 40px); }
.sec-head-row { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.sec-head-row .sub { max-width: 52ch; }
.sec-head-row .sub { margin-top: 0; }

/* operacional */
.op { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.tasks { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.tasks li {
  font-size: 14.5px; color: var(--ink-2); line-height: 1.45;
  padding: 8px 0 8px 18px; border-top: 1px solid var(--line); position: relative;
}
.tasks li::before { content: ""; position: absolute; left: 0; top: 18px; width: 8px; height: 1.5px; background: var(--faint); }
.compare {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  font-size: 15px; line-height: 1.5;
}
.compare th {
  text-align: left; font-size: 13px; font-weight: 500; color: var(--muted);
  padding: 14px 20px; background: var(--surface-soft); border-bottom: 1px solid var(--line);
}
.compare th:last-child { color: var(--ink); }
.compare td { padding: 14px 20px; vertical-align: top; border-top: 1px solid var(--line-2); }
.compare tbody tr:first-child td { border-top: 0; }
.compare td:first-child { color: var(--muted); width: 44%; }
.compare td:last-child { color: var(--ink); border-left: 1px solid var(--line-2); }
.compare td { padding-block: 12px; }
.op-note { margin-top: 14px; font-size: 14px; color: var(--muted); padding-left: 2px; }

/* como funciona */
.como { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.how { margin-top: 28px; }
.how li { display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 13px 0; border-top: 1px solid var(--border-strong); }
.how li:last-child { border-bottom: 1px solid var(--border-strong); }
.how-n { font-size: 13px; color: var(--muted); padding-top: 2px; }
.how h3 { font-size: 16px; }
.how p { font-size: 15px; color: var(--muted); margin-top: 2px; line-height: 1.5; }

.config {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; font-size: 14px;
}
.config-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.config-name { font-weight: 600; font-size: 15px; }
.config-area { font-size: 12.5px; color: var(--muted); }
.config-body { padding: 18px 20px 8px; }
.config-label { font-size: 11px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-weight: 500; margin-bottom: 8px; }
.config-process {
  counter-reset: p; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-soft);
  padding: 10px 14px; margin-bottom: 20px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2);
}
.config-process li { counter-increment: p; display: grid; grid-template-columns: 20px 1fr; padding: 3px 0; }
.config-process li::before { content: counter(p) "."; font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 1px; }
.config-tools li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 13.5px; }
.tg { width: 30px; height: 18px; border-radius: 9px; background: var(--faint); position: relative; flex: none; }
.tg::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(11, 16, 32, .2); }
.tg.on { background: var(--brand); }
.tg.on::after { left: 14px; }
.config figcaption { padding: 10px 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); background: var(--surface-soft); }

/* ---------- sala de controle (escura) ---------- */
.dark { background: var(--d-bg); color: var(--d-ink); padding-block: var(--sec); }
.dark .eyebrow { color: var(--d-muted); }
.dark .eyebrow-mark::before { background: var(--d-brand); }
.dark .sub { color: var(--d-muted); }
.av-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.gov { border: 1px solid var(--d-line); border-radius: var(--r-lg); padding: 18px 22px; background: var(--d-surface); }
.gov h3 { font-size: 15px; margin-bottom: 8px; }
.gov li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding: 5px 0; font-size: 14px; line-height: 1.5; color: var(--d-muted); }
.gov li + li { border-top: 1px solid var(--d-line); }
.gov li .ic { width: 15px; height: 15px; color: var(--d-brand); margin-top: 4px; stroke-width: 2.25; } /* item de recurso, não estado: azul da marca */
.gov strong { color: var(--d-ink); font-weight: 600; }

.canvas {
  margin-top: clamp(28px, 3.5vw, 40px);
  border: 1px solid var(--d-line); border-radius: var(--r-lg);
  background-color: var(--d-canvas);
  background-image: radial-gradient(var(--d-dots) 1px, transparent 1px);
  background-size: 20px 20px;
  overflow: hidden;
}
.canvas-bar {
  display: flex; justify-content: space-between; gap: 12px; padding: 9px 16px; white-space: nowrap;
  border-bottom: 1px solid var(--d-line); background: var(--d-surface); font-size: 12px; color: var(--d-muted);
}
.flow {
  --fg: 48px; /* vão entre os nós; os conectores se medem por ele */
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.15fr); column-gap: var(--fg);
  padding: 24px 28px 28px; align-items: center;
}
.step { position: relative; min-width: 0; }
/* conectores horizontais entre os nós */
.step + .step::before, .fork::before {
  content: ""; position: absolute; top: 50%; left: calc(-1 * var(--fg) - 1px); width: var(--fg); height: 1px; background: var(--d-conn);
}
.step + .step::after {
  content: ""; position: absolute; top: calc(50% - 3.5px); left: -8px; border: 3.5px solid transparent; border-left: 6px solid var(--d-conn);
}
.node {
  background: var(--d-surface); border: 1px solid var(--d-line-2);
  border-radius: var(--r); padding: 13px 16px; min-height: 104px;
}
.node-k { font-size: 11px; color: var(--d-faint); letter-spacing: .04em; text-transform: uppercase; display: flex; align-items: center; gap: 7px; }
.node-k .ic { width: 13px; height: 13px; stroke-width: 2.5; }
.node-t { font-size: 15px; font-weight: 600; margin-top: 6px; }
.node-d { font-size: 13px; color: var(--d-muted); margin-top: 4px; line-height: 1.45; }
.node-checks ul { margin-top: 6px; }
.node-checks li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; padding: 2px 0; }
.node-checks li .ic { width: 14px; height: 14px; color: var(--d-muted); stroke-width: 2.25; margin-top: 3px; }

/* bifurcação: o agente decide entre gravar e parar */
.fork { position: relative; display: grid; grid-auto-rows: 1fr; gap: 12px; padding-left: 28px; min-width: 0; }
.fork::before { width: calc(var(--fg) / 2); }
.fork::after {
  content: ""; position: absolute; left: calc(-1 * var(--fg) / 2 - 1px); width: 1px; background: var(--d-conn);
  top: calc((100% - 12px) / 4); bottom: calc((100% - 12px) / 4);
}
.fork .node { position: relative; min-height: 0; padding: 11px 16px 12px; }
.fork .node::before { content: ""; position: absolute; left: calc(-1 * var(--fg) / 2 - 29px); width: calc(var(--fg) / 2 + 28px); top: 50%; height: 1px; }
.fork .node::before { background: var(--c); }
.fork .node::after { content: ""; position: absolute; left: -8px; top: calc(50% - 3.5px); border: 3.5px solid transparent; border-left: 6px solid var(--c); }
.node-ok { --c: rgba(90, 212, 138, .75); border-color: rgba(90, 212, 138, .55); background: rgba(90, 212, 138, .06); }
.node-ok .node-k { color: var(--d-ok); }
.node-no { --c: rgba(243, 139, 131, .75); border-color: rgba(243, 139, 131, .6); background: rgba(243, 139, 131, .06); }
.node-no .node-k { color: var(--d-bad); }

.records { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 24px; }
.rec { background: var(--d-surface); border: 1px solid var(--d-line); border-radius: var(--r-lg); display: flex; flex-direction: column; min-width: 0; }
.rec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--d-line); }
.rec-title { display: flex; flex-direction: column; font-size: 14px; font-weight: 500; letter-spacing: 0; }
.rec-desc { font-size: 13px; font-weight: 400; color: var(--d-muted); margin-top: 2px; }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: var(--r-sm); flex: none; }
.st i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-ok { color: var(--d-ok); background: rgba(90, 212, 138, .1); }
.st-bad { color: var(--d-bad); background: rgba(243, 139, 131, .1); }
.rec-steps { padding: 10px 20px; flex: 1; }
.rec-steps li { display: grid; grid-template-columns: 72px 16px 1fr; gap: 12px; align-items: start; padding: 6px 0; font-size: 14px; line-height: 1.45; color: var(--d-ink); }
.rec-steps li + li { border-top: 1px solid rgba(39, 51, 87, .7); }
.rec-steps time { font-size: 12px; color: var(--d-faint); padding-top: 2px; }
.rec-steps .ic { width: 15px; height: 15px; margin-top: 2px; stroke-width: 2.25; }
.rec-steps .ic.ok { color: var(--d-ok); }
.rec-steps .ic.bad { color: var(--d-bad); }
.rec-steps .ic.stop { color: var(--d-warn); }
.rec-steps .is-bad span { color: #f6b1ab; }
.rec-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--d-line); font-size: 12.5px; color: var(--d-muted); }
.rec-bad .rec-foot { color: var(--d-ink); font-weight: 500; } /* tese positiva: o coral fica no selo, no ✕ e na linha do item */
.av-note { margin-top: 14px; font-size: 13px; color: var(--d-faint); }

/* ---------- casos ---------- */
.case-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.case-tabs [role="tab"] {
  text-align: left; background: none; border: 0; border-top: 2px solid var(--line);
  padding: 14px 0 0; cursor: pointer; display: flex; flex-direction: column; gap: 4px; color: var(--muted);
}
.case-tabs [role="tab"]:hover { color: var(--ink-2); border-top-color: var(--border-strong); }
.case-tabs [role="tab"][aria-selected="true"] { border-top-color: var(--brand); color: var(--ink); }
.ct-name { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.ct-stage { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; }
.ct-stage .stg { display: block; padding-left: 14px; text-indent: -14px; }
.ct-stage .dot { vertical-align: 1px; margin-right: 7px; }
/* os três casos na mesma célula (≥ 960 px, texto e cartão lado a lado): a seção não pula ao trocar de aba.
   Abaixo de 960 o caso empilha e cada um tem a própria altura: as abas ficam logo acima do painel,
   e a célula comum deixaria até 160px de vazio embaixo do caso mais curto.
   O HTML sai sem [hidden] (ver .win-panels): antes do JS, só o primeiro caso aparece. */
.case-panels > .case:not(:first-child) { display: none; }
.case-panels > .case.is-on { display: grid; }
@media (min-width: 960px) {
  .case-panels { display: grid; }
  .case-panels > .case { grid-area: 1 / 1; }
  .case-panels > .case:not(:first-child), .case-panels > .case[hidden] { display: grid !important; visibility: hidden; }
  .case-panels > .case.is-on { visibility: visible; }
}
/* texto e cartão de métricas lado a lado, com a mesma altura; o passo a passo corre embaixo, em colunas */
.case {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "main proof" "flow flow";
  column-gap: clamp(32px, 5vw, 72px); row-gap: 28px; align-items: stretch; align-content: start;
}
.case-main { grid-area: main; }
.case-proof { grid-area: proof; }
.case-flow { grid-area: flow; }
.case-meta { font-size: 14px; color: var(--muted); }
.case-name { font-size: clamp(26px, 1.2rem + 1.2vw, 32px); letter-spacing: -0.03em; margin-top: 8px; }
.case-main > p:not(.case-meta) { margin-top: 12px; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; max-width: 62ch; }
.case-main strong { font-weight: 600; color: var(--ink); }
.case-flow { counter-reset: f; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 24px; }
.case-flow li {
  counter-increment: f; display: block; text-wrap: pretty;
  padding: 12px 0 0; border-top: 1px solid var(--border-strong); font-size: 14.5px; color: var(--ink-2); line-height: 1.5;
}
.case-flow li::before { content: counter(f, decimal-leading-zero); display: block; margin-bottom: 4px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.case-flow li.is-next { color: var(--warn); }
/* cartão: a primeira prova ocupa a largura toda; as outras duas dividem a linha de baixo */
.case-proof {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto;
}
.proof { padding: 16px 20px; min-width: 0; }
.proof:first-child { grid-column: 1 / -1; display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid var(--line); }
.proof:nth-child(3) { border-left: 1px solid var(--line); }
.proof-v { font-size: 20px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.proof-l { font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.proof-big .proof-v { font-size: clamp(40px, 1.8rem + 1.8vw, 54px); letter-spacing: -0.045em; line-height: 1; }
.proof-big .proof-l { font-size: 15px; color: var(--ink-2); margin-top: 8px; }
/* atributo, não métrica: termo no peso do texto, com ✓ (como a lista de governança), e a descrição alinhada ao termo */
.proof-attr .proof-v { display: flex; align-items: center; gap: 8px; font-size: 15px; letter-spacing: -0.01em; line-height: 1.4; }
.proof-attr .proof-v .ic { width: 15px; height: 15px; color: var(--brand); stroke-width: 2.25; }
.proof-attr .proof-l { margin-top: 2px; padding-left: 23px; }

/* ---------- integrações + segurança ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
.duo-col { min-width: 0; }
.duo-col:first-child { padding-right: clamp(32px, 4.5vw, 64px); }
.duo-col + .duo-col { padding-left: clamp(32px, 4.5vw, 64px); border-left: 1px solid var(--line); }
.duo .sub { font-size: 16.5px; }
.stack, .sec-list { margin-top: 24px; border-top: 1px solid var(--border-strong); }
.stack > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.stack dt { font-size: 13px; color: var(--muted); }
.stack dd { font-size: 15px; color: var(--ink); line-height: 1.5; min-width: 0; }
.stack dd ul { display: flex; flex-wrap: wrap; gap: 2px 22px; }
.use { font-style: normal; font-size: 11.5px; font-weight: 500; padding: 1px 6px; border-radius: var(--r-sm); margin-left: 6px; vertical-align: 1px; white-space: nowrap; }
.use-ok { color: var(--ok); background: var(--ok-bg); }
.use-warn { color: var(--warn); background: var(--warn-bg); }
.stack-legend { margin-top: 12px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.stack-foot { margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.sec-list li { display: grid; grid-template-columns: 17px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.sec-list .ic { width: 16px; height: 16px; color: var(--brand); margin-top: 3px; }
.sec-list p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.sec-list strong { color: var(--ink); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 48px; align-items: start; }
.faq-col { border-top: 1px solid var(--border-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 12px 0; font-size: 15.5px; font-weight: 500; line-height: 1.45; letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--ink-2); }
.faq-ic { position: relative; width: 14px; height: 14px; flex: none; margin-top: 5px; }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; left: 0; top: 6.25px; width: 14px; height: 1.5px; background: var(--muted); transition: transform .2s; }
.faq-ic::after { transform: rotate(90deg); }
.faq-item[open] .faq-ic::after { transform: rotate(0deg); }
.faq-item p { padding: 0 32px 18px 0; font-size: 15px; color: var(--muted); line-height: 1.6; }
.faq-item a { color: var(--ink); text-underline-offset: 2px; }

/* ---------- CTA + formulário ---------- */
.cta-section { position: relative; }
.alias { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }
.cta-panel {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 4.5vw, 56px);
  align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 3.5vw, 44px);
}
.cta-alt { margin-top: 20px; font-size: 15px; color: var(--muted); }
.cta-secondary { color: var(--ink); font-weight: 500; text-underline-offset: 3px; }
.lead-form { display: flex; flex-direction: column; gap: 12px; }
.lead-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; }
.lead-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lead-label { font-size: 13.5px; font-weight: 500; color: var(--ink-2); line-height: 1.3; }
.lead-label em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.lead-input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: var(--r);
  border: 1px solid var(--control); background: var(--bg); color: var(--ink);
  font: inherit; font-size: 15px;
}
.lead-input:hover { border-color: var(--muted); }
.lead-input[aria-invalid="true"] { border-color: var(--bad); }
.lead-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: var(--surface); }
/* o form recorta o honeypot na horizontal (4px de folga para o anel de foco dos campos) */
.lead-form { position: relative; overflow-x: clip; padding: 4px; margin: -4px; }
/* honeypot: regra do contrato técnico, fora da vista, do toque e do Tab (tabindex=-1 no markup) */
.lead-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lead-submit { height: 48px; width: 100%; margin-top: 4px; font-size: 15px; }
.lead-submit .arrow { margin-left: 2px; }
.lead-submit[disabled] { opacity: .6; cursor: default; }
.lead-status { font-size: 14px; min-height: 0; color: var(--muted); }
.lead-status:empty { height: 0; margin-top: -12px; }
.lead-status.is-ok { color: var(--ok); }
.lead-status.is-err { color: var(--bad); }
.lead-legal { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.lead-legal a { color: var(--ink-2); text-underline-offset: 2px; }

/* ---------- banner de cookies: barra compacta no canto inferior esquerdo ---------- */
#cookie-banner {
  position: fixed; left: 16px; bottom: 16px; z-index: 200;
  width: calc(100% - 32px); max-width: 380px;
  display: flex; align-items: center; gap: 12px 14px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--border-strong);
  border-radius: var(--r-lg); padding: 12px 12px 12px 14px; box-shadow: var(--shadow-lg); font-family: inherit;
}
#cookie-banner p { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
#cookie-banner p a { color: var(--brand); font-weight: 500; }
.cb-actions { display: flex; flex-direction: column; gap: 6px; flex: none; }
.cb-actions button {
  height: 32px; padding: 0 14px; border-radius: var(--r-sm); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.cb-no { background: var(--surface-2); color: var(--ink); border: 1px solid var(--border-strong); }
.cb-yes { background: var(--grad-brand); color: #fff; border: 1px solid transparent; }
.cb-yes:hover { background: var(--brand-hover); }

/* ---------- rodapé ---------- */
.footer { border-top: 1px solid var(--line); padding-top: 44px; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2.6fr); gap: 48px; }
.footer-brand p { color: var(--muted); margin-top: 16px; max-width: 34ch; line-height: 1.55; }
.social { display: flex; gap: 8px; margin-top: 20px; }
.social a {
  width: 36px; height: 36px; display: grid; place-items: center; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
}
.social a:hover { color: var(--ink); border-color: var(--border-strong); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.35fr); gap: 24px; }
.footer-cols > * { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.footer-h { font-size: 13px; line-height: 1.6; letter-spacing: 0; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.footer-cols a { color: var(--muted); text-decoration: none; }
.fc-emp a[href^="mailto:"] { overflow-wrap: anywhere; }
/* CNPJ, endereço e cidade: informação, não lista de toque; um bloco só, com o seu próprio passo */
.fc-info { display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.footer-cols a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 36px; padding: 16px 0 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
}
.footer-bottom a { color: var(--muted); }

/* =================================================================
   Responsivo
   ================================================================= */
/* telas largas: barra lateral mais larga */
@media (min-width: 1280px) {
  .win-body { grid-template-columns: 240px minmax(0, 1fr); }
}
@media (min-width: 960px) {
  /* Integrações x Segurança lado a lado: os dois títulos têm 2 linhas ("Pronto para operar / dados sensíveis"
     quebra de propósito), e os subtítulos começam na mesma altura sem vão sob um título de 1 linha */
  .duo .h2-t { min-height: 2.24em; }
  #seg-title .h2-t { max-width: 11em; }
  /* Via: só atributos, sem número; o cartão vira lista */
  .proof-list { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .proof-list .proof:first-child { display: block; border-bottom: 0; }
  .proof-list .proof:nth-child(3) { border-left: 0; }
  .proof-list .proof + .proof { border-top: 1px solid var(--line); }
}
/* 960-1079 px: a coluna do formulário é estreita e "E-mail corporativo (obrigatório)" quebrava; um campo por linha */
@media (min-width: 960px) and (max-width: 1079px) {
  .lead-row { grid-template-columns: minmax(0, 1fr); }
}
/* rodapé em duas faixas (marca em cima, quatro colunas embaixo) até 1099 px: ao lado da marca, a coluna Empresa ficava estreita */
@media (max-width: 1099px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
/* notebooks (1100-1535 px): o banner de cookies (canto inferior esquerdo) fica na largura da barra lateral
   da janela do produto e não cobre a conversa. Borda esquerda da janela = max(32px, (100vw − 1200px) / 2). */
@media (min-width: 1100px) and (max-width: 1535px) {
  #cookie-banner { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px; }
  .cb-actions { flex-direction: row; }
  .cb-actions button { flex: 1 1 0; padding: 0 8px; }
}
@media (min-width: 1100px) and (max-width: 1279px) {
  #cookie-banner { max-width: calc(max(32px, (100vw - 1200px) / 2) + 200px - 28px); }
}
@media (min-width: 1280px) and (max-width: 1535px) {
  #cookie-banner { max-width: calc(max(32px, (100vw - 1200px) / 2) + 240px - 28px); }
}
@media (max-width: 1279px) {
  .case { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 1023px) {
  /* a linha da SystemHope volta para baixo dos botões, sem o divisor */
  .hero-actions { flex-direction: column; gap: 14px; }
  .hero-cred { padding-left: 0; border-left: 0; text-align: center; }
}

@media (max-width: 1099px) {
  .win-body { grid-template-columns: minmax(0, 1fr); }
  /* sem a barra lateral, a empresa fictícia de cada aba continua à vista numa faixa sobre a conversa */
  .win-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 16px; }
  .win-side .ws-nav, .win-side .ws-label, .win-side .ws-agents { display: none; }
  .ws-org { padding: 0; }
  .ws-org-t { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
  .flow { --fg: 36px; padding: 24px; }
  /* pilares em 2 x 2 até 1099 px: em 4 colunas estreitas, dois títulos quebravam e os parágrafos desalinhavam */
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars li { padding: 20px 24px 16px 0; border-left: 0; }
  .pillars li:nth-child(even) { padding: 20px 0 16px 24px; border-left: 1px solid var(--line); }
  .pillars li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
/* 960-1179 px: a coluna de texto do operacional é estreita; as 8 tarefas vão numa coluna só (uma linha cada) */
@media (min-width: 960px) and (max-width: 1179px) {
  .tasks { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 959px) {
  .doc-fields { grid-template-columns: 1fr 1fr; }
  .doc-fields > div:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line-2); }
  .op, .como, .av-top, .case, .cta-panel, .sec-head-row, .duo { grid-template-columns: minmax(0, 1fr); }
  .sec-head-row { gap: 0; }
  .sec-head-row .sub { margin-top: 16px; }
  .op-table { margin-top: 8px; }
  /* fluxo vertical até 959 px (em 2 x 2 a ligação de 02 para 03 some); os dois desfechos vêm lado a lado */
  .flow { grid-template-columns: minmax(0, 1fr); row-gap: 22px; padding: 20px 24px 24px; }
  .step + .step::before, .fork::before { display: block; top: -23px; left: 24px; width: 1px; height: 22px; }
  .step + .step::after { display: block; top: -7px; left: 20.5px; border: 3.5px solid transparent; border-top: 6px solid var(--d-conn); }
  /* bifurcação: tronco → barra → uma descida colorida para cada desfecho, lado a lado */
  .fork { padding: 12px 0 0; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 10px; }
  .fork::before { height: 23px; }
  .fork::after { top: 0; bottom: auto; left: 24px; width: calc(50% + 5px); height: 1px; }
  .fork .node::before { left: 24px; top: -12px; width: 1px; height: 12px; }
  .fork .node::after { left: 20.5px; top: -7px; border: 3.5px solid transparent; border-top: 6px solid var(--c); }
  .node { min-height: 0; padding: 11px 14px; }
  .node-t { margin-top: 4px; }
  .duo-col:first-child { padding-right: 0; }
  .duo-col + .duo-col { padding-left: 0; border-left: 0; margin-top: var(--sec); padding-top: var(--sec); border-top: 1px solid var(--line); }
  .case { grid-template-areas: "main" "flow" "proof"; row-gap: 24px; }
  /* 2 colunas: 4 passos ficam 2 + 2 e 5 ficam 2 + 2 + 1 (o último é o que está em implantação) */
  .case-flow { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; column-gap: 24px; }
  .case-proof { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto; }
  .proof:first-child { grid-column: auto; border-bottom: 0; justify-content: flex-start; }
  .proof + .proof { border-left: 1px solid var(--line); }
  .proof-big .proof-v { font-size: 40px; }
  .stage::before { top: 240px; }
}

@media (max-width: 767px) {
  /* abas do hero: 100% do container; cada coluna no tamanho do rótulo + a mesma parte da sobra
     (o respiro entre os rótulos fica igual e nenhum encosta na borda da pílula) */
  .demo-tabs { display: grid; grid-template-columns: repeat(4, auto); justify-content: stretch; width: 100%; }
  .demo-tabs [role="tab"] { justify-content: center; min-width: 44px; padding: 0 8px; }
  /* no celular cada painel tem a própria altura (as abas ficam acima; nada de vão bege sobre a conversa) */
  .win-panels > .panel:not(:first-child), .win-panels > .panel[hidden] { display: none !important; }
  .win-panels > .panel.is-on { display: grid !important; }
  .panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; }
  .chat { border-right: 0; border-bottom: 1px solid var(--line); }
  .msgs { padding: 12px; }
  .composer { display: none; }
  .sys { padding: 14px; gap: 12px; }
  .faq-cols { grid-template-columns: minmax(0, 1fr); }
  .faq-col + .faq-col { border-top: 0; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }

  /* registros empilhados, a recusa (#7318) primeiro: nada depende de deslizar */
  .records { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rec-bad { order: -1; }

  /* fluxo vertical (regras no bloco de 959 px); aqui só aperta o espaço */
  .flow { padding: 16px; }
  .fork .node-t { font-size: 14.5px; }
  .fork .node { padding-inline: 12px; }
  .fork .node-k { font-size: 10.5px; letter-spacing: .02em; gap: 6px; }
  .stage::before { top: 200px; }
}

@media (max-width: 639px) {
  body { font-size: 16px; }
  .sub, .duo .sub { font-size: 16px; }
  .hero-actions { width: 100%; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1 1 0; padding: 0 12px; }
  .demo-tabs [role="tab"] { font-size: 13.5px; gap: 6px; height: 44px; }
  .win-bar { padding: 0 12px; gap: 10px; height: 40px; }
  .win-side { padding: 8px 12px; }
  .win-title { display: none; }
  .msg { font-size: 13px; max-width: 90%; }
  .doc-top, .doc-fields > div { padding-inline: 12px; }
  .doc-fields dd.mono { font-size: 11.5px; }
  .doc-rows > div { grid-template-columns: 104px 1fr; gap: 10px; padding-inline: 12px; }
  .doc-items td, .doc-items th { padding-inline: 10px; }
  .doc-items td:first-child { font-size: 12.5px; }
  /* no celular a janela mostra conversa + documento; o registro de passos fica na seção de rastreabilidade
     (some inteiro: o cabeçalho "N passos registrados" sem a lista parecia algo que não carregou) */
  .steps { display: none; }
  .demo-note { flex-direction: column; align-items: flex-start; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillars li, .pillars li:nth-child(even) {
    display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 10px;
    padding: 16px 0; border-left: 0; border-top: 1px solid var(--line);
  }
  .pillars li:first-child { border-top: 0; }
  .pillars .ic { grid-row: 1 / span 3; margin: 2px 0 0; }
  .pillars p, .pillars .link-arrow { grid-column: 2; }
  .pillars p { margin-top: 4px; }

  .tasks { margin-top: 24px; gap: 0 16px; }
  .tasks li { font-size: 13.5px; padding: 8px 0 8px 14px; }
  .tasks li::before { top: 16px; width: 6px; }

  /* tabela vira pares empilhados */
  .compare, .compare tbody, .compare tr, .compare td { display: block; width: 100%; }
  .compare thead { display: none; }
  .compare tr { padding: 12px 16px; border-top: 1px solid var(--line-2); }
  .compare tbody tr:first-child { border-top: 0; }
  .compare td { padding: 0; border: 0 !important; font-size: 14px; }
  .compare td:first-child { width: auto; }
  .compare td::before { content: attr(data-l); display: inline-block; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-right: 8px; font-weight: 600; }
  .compare td:last-child::before { color: var(--ok); }
  .compare td + td { margin-top: 6px; }
  .op-note { font-size: 13.5px; }

  .how li { padding: 12px 0; }
  .how p { font-size: 14.5px; }
  /* a tela de configuração repete o fluxo desenhado logo abaixo: some no celular */
  .como .config { display: none; }

  .gov { padding: 14px 16px; }
  .gov li { font-size: 13.5px; }
  .rec-head, .rec-steps, .rec-foot { padding-inline: 16px; }
  .rec-steps li { grid-template-columns: 62px 15px 1fr; gap: 8px; font-size: 13.5px; }
  .rec-foot { flex-direction: column; gap: 2px; }

  /* casos: abas viram lista (nome à esquerda, estágio à direita) */
  .case-tabs { grid-template-columns: minmax(0, 1fr); gap: 0; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
  .case-tabs [role="tab"] {
    gap: 2px; padding: 10px 0 10px 14px; border-top: 1px solid var(--line); border-left: 2px solid transparent;
  }
  .case-tabs [role="tab"][aria-selected="true"] { border-top-color: var(--line); border-left-color: var(--brand); }
  .ct-name { font-size: 16px; }
  .ct-stage { font-size: 12.5px; }
  .case-main > p:not(.case-meta) { font-size: 15px; }
  .case-flow li { font-size: 14px; padding: 8px 0; }
  .case-flow { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  /* número numa coluna à esquerda, sem grid no li (em grid, cada trecho inline do texto, como um .nw, virava uma célula) */
  .case-flow li { position: relative; padding: 10px 0 10px 36px; border-top-color: var(--line); }
  .case-flow li::before { position: absolute; left: 0; top: 10px; margin: 0; padding-top: 2px; }
  .case-proof { grid-template-columns: minmax(0, 1fr); }
  .proof + .proof { border-left: 0; border-top: 1px solid var(--line); }
  .proof, .proof:first-child { padding: 14px 16px; display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: baseline; }
  .proof-v { font-size: 17px; }
  .proof-l { margin-top: 0; font-size: 13.5px; }
  .proof-big, .proof-big:first-child { display: block; }
  /* atributo: termo com ✓ e a descrição embaixo (a coluna de 96 px é da métrica) */
  .proof-attr, .proof-attr:first-child { display: block; }
  .proof-big .proof-v { font-size: 44px; }

  .stack > div { grid-template-columns: 84px 1fr; gap: 8px; padding: 10px 0; }
  .stack dd { font-size: 14.5px; }
  .stack dd ul { column-gap: 16px; }
  .sec-list li { gap: 10px; padding: 9px 0; }
  .sec-list p { font-size: 14px; }

  .faq-item summary { font-size: 15px; padding: 13px 0; }
  .faq-item p { padding-right: 0; font-size: 14.5px; }

  .cta-panel { padding: 24px 18px; }
  .footer { padding-top: 40px; }
  .footer-brand p { margin-top: 12px; }
  .footer-cols { gap: 24px 16px; }
  .fc-info { margin-top: 12px; }
  /* a coluna da direita um pouco mais larga: "Falar com especialista" cabe numa linha desde 320 px */
  .footer-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-areas: "prod casos" "prod acesso" "emp emp"; align-items: start; }
  .fc-prod { grid-area: prod; } .fc-casos { grid-area: casos; } .fc-acesso { grid-area: acesso; } .fc-emp { grid-area: emp; }
  .footer-bottom { margin-top: 32px; }

  #cookie-banner { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px; }
  .cb-actions { flex-direction: row; }
  .cb-actions button { flex: 1 1 0; }
}

/* celular deitado: com os botões de 44 px o banner ficava alto (quase metade da tela com a nav);
   mais largo e com os botões lado a lado, ele volta a ter uma faixa só */
@media (pointer: coarse) and (max-height: 500px) and (min-width: 640px) {
  #cookie-banner { max-width: 600px; }
  .cb-actions { flex-direction: row; }
}

/* alvos de toque de 44 px: celular em pé (< 640 px) e qualquer tela de toque (celular deitado, tablet) */
@media (max-width: 639px), (pointer: coarse) {
  .footer-cols > * { gap: 0; }
  .footer-cols a { display: block; padding-block: 11px; line-height: 22px; }
  .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; }
  .social a { width: 44px; height: 44px; }
  .cb-actions button { height: 44px; }
  .demo-tabs [role="tab"], .btn-sm { height: 44px; }
  .nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
  /* inline-flex come o espaço antes da seta: o gap devolve */
  .link-arrow, .pillars .link-arrow, .cta-secondary { display: inline-flex; align-items: center; gap: .3em; min-height: 44px; }
  .pillars .link-arrow { margin-top: 0; }
}

@media (max-width: 479px) {
  .lead-row { grid-template-columns: minmax(0, 1fr); }
  .demo-tabs .ic { display: none; }
  .demo-tabs [role="tab"] { padding: 0 8px; font-size: clamp(12.5px, 3.6vw, 13.5px); }
  /* rede de segurança para espaçamento de texto aumentado (WCAG 1.4.12) em 320 px: se os quatro rótulos não couberem,
     o maior quebra dentro da própria aba em vez de invadir a vizinha. Sem o aumento, eles cabem e nada muda. */
  .demo-tabs [role="tab"] { overflow-wrap: anywhere; line-height: 1.1; text-align: center; }
  /* botões do hero sempre empilhados: o layout não depende da largura da fonte (sem salto quando a Geist chega) */
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { flex: none; width: 100%; }
}

/* 320-359 px (zoom de 400 % em 1280): a tabela do pedido e o CNPJ cabem sem corte */
@media (max-width: 359px) {
  .doc-fields { grid-template-columns: minmax(0, 1fr); }
  .doc-fields > div + div { border-left: 0; border-top: 1px solid var(--line-2); }
  .doc-items td, .doc-items th { padding-inline: 6px; }
  .doc-items td:first-child, .doc-items th:first-child { padding-left: 12px; }
  .doc-items td:last-child, .doc-items th:last-child { padding-right: 12px; }
  /* a legenda "Fluxo desenhado · exemplo" quebra linha em vez de ser cortada */
  .canvas-bar { white-space: normal; flex-wrap: wrap; row-gap: 2px; }
  /* as quatro abas cabem com "RH" em 44 px */
  .demo-tabs { gap: 2px; }
  .demo-tabs [role="tab"] { padding: 0 6px; }
}

/* cores forçadas (Alto Contraste do Windows): aba ativa e interruptores continuam distinguíveis */
@media (forced-colors: active) {
  .demo-tabs [role="tab"][aria-selected="true"] { border-color: Highlight; text-decoration: underline 2px; text-underline-offset: 4px; }
  .demo-tabs.is-auto [role="tab"][aria-selected="true"]::after { forced-color-adjust: none; background: Highlight; bottom: 2px; }
  .case-tabs [role="tab"][aria-selected="true"] { border-top-color: Highlight; border-left-color: Highlight; }
  .case-tabs [role="tab"][aria-selected="true"] .ct-name { text-decoration: underline 2px; text-underline-offset: 4px; }
  .tg { forced-color-adjust: none; border: 1px solid CanvasText; background: Canvas; }
  .tg::after { top: 1px; left: 1px; background: CanvasText; box-shadow: none; }
  .tg.on { background: Highlight; border-color: Highlight; }
  .tg.on::after { left: 13px; background: HighlightText; }
  .dot, .ws-agents i, .st i, .status::before { forced-color-adjust: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
