/* Site institucional do Kinota.
   Tokens copiados de app/web/static/estilo.css do portal (mesmos nomes e valores; guia em
   docs/prompts/01-upgrade-visual-portal.md). Mudou token lá, mude aqui na mesma mudança.
   Cor só por token: nenhum valor de cor fora dos dois blocos de tokens abaixo.
   Componentes (.botao, .cartao, .selo, .rotulo-caixa, .beneficios, .recolhivel, .pular) seguem
   as mesmas regras do portal; o resto é só layout do site.

   Índice
     1. Tokens (claro e escuro)
     2. Base
     3. Componentes do portal
     4. Layout do site: topo, seções, faixa escura, hero
     5. Seções: cartões, passos, código, FAQ, rodapé
     6. Telas largas
     7. Impressão */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fontes/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fontes/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fontes/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fontes/Inter-Bold.woff2") format("woff2"); }

/* ---------- 1. Tokens ---------- */
:root {
  /* paleta da marca (verde, amarelo e azul do logotipo NFS-e) */
  --base-950: #07170f;
  --base-900: #0a2016;
  --base-800: #134228;
  --base-700: #1a4a2e;
  --marca: #7cc487;
  --marca-forte: #6bb577;
  --marca-clara: #8fd29a;
  --marca-escura: #5a9262;
  --azul: #313b8f;
  --azul-claro: #6c78d6;
  --amarelo: #e9c03a;
  --branco: #ffffff;
  /* Só do site: botão flutuante do WhatsApp. Mais escuro que o #25d366 oficial para o ícone branco
     passar em 3:1 (1.4.11); o anel é a mesma cor, translúcida, para a pulsação. */
  --whatsapp: #15983f;      /* ícone branco 3,75:1; 3:1 ou mais contra os fundos de token (sobre o brilho do hero, cerca de 2,4: o ícone identifica) */
  --whatsapp-anel: rgba(21, 152, 63, 0.45);

  /* papéis: área clara */
  --fundo: #f5f9f4;
  --superficie: #ffffff;
  --superficie-2: #edf4ec;
  --texto: #10231a;
  --sutil: #52665a;
  --borda: #d9e5d9;
  --borda-campo: #7b9182;
  --link: #2c6b3a;
  --foco: #2c6b3a;

  /* ação primária: verde da marca com texto escuro (o verde claro sobre branco não passa em AA) */
  --acao: var(--marca);
  --acao-hover: var(--marca-forte);
  --acao-texto: var(--base-950);

  /* área escura (no portal, barra lateral e destaque da tela de entrada) */
  --lateral: var(--base-950);
  --lateral-2: var(--base-900);
  --lateral-texto: #cbdacd;
  --lateral-sutil: #94a89a;
  --lateral-ativo: rgba(124, 196, 135, 0.14);
  --lateral-hover: rgba(255, 255, 255, 0.07);
  --lateral-linha: rgba(255, 255, 255, 0.1);
  --destaque-texto: #b8c9bb;
  --lateral-brilho: rgba(29, 82, 51, 0.85);
  --lateral-grade: rgba(124, 196, 135, 0.05);
  --lateral-azul: #aab4f2;
  --lateral-aviso: #f1d174;
  --tom-marca-fundo: rgba(124, 196, 135, 0.12);
  --tom-azul-fundo: rgba(108, 120, 214, 0.18);
  --tom-amarelo-fundo: rgba(233, 192, 58, 0.14);

  /* estados: cor do texto + fundo (só nos selos) */
  --perigo: #a3262a;
  --perigo-texto: #ffffff;
  --erro: #a3262a;
  --erro-fundo: #fbeaea;
  --ok: #0e6a42;
  --ok-fundo: #e1f4ea;
  --aviso: #7a5600;
  --aviso-fundo: #fdf3d6;
  --info: #313b8f;
  --info-fundo: #eaecf8;
  --falha: #9a3b00;
  --falha-fundo: #fdebdc;
  --neutro: #4a5a50;
  --neutro-fundo: #e8ece8;

  /* escalas (grade de 4 px) */
  --fonte: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fonte-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --t-xs: 0.75rem;   --lh-xs: 1rem;
  --t-sm: 0.875rem;  --lh-sm: 1.25rem;
  --t-base: 1rem;    --lh-base: 1.5rem;
  --t-md: 1.125rem;  --lh-md: 1.75rem;
  --t-lg: 1.25rem;   --lh-lg: 1.75rem;
  --t-xl: 1.5rem;    --lh-xl: 2rem;
  --t-2xl: 2rem;     --lh-2xl: 2.5rem;
  --t-3xl: 2.5rem;
  --t-h1: 1.75rem;   --lh-h1: 2.25rem;
  --e1: 0.25rem;
  --e2: 0.5rem;
  --e3: 0.75rem;
  --e4: 1rem;
  --e5: 1.5rem;
  --e6: 2rem;
  --e7: 3rem;
  --e8: 4rem;
  --controle: 2.5rem;
  --raio-s: 8px;
  --raio-m: 12px;
  --raio-g: 16px;
  --sombra-1: 0 1px 2px rgba(7, 23, 15, 0.06), 0 1px 1px rgba(7, 23, 15, 0.04);
  --sombra-2: 0 10px 30px rgba(7, 23, 15, 0.14);
  --sobreposicao: rgba(7, 23, 15, 0.6);
  --realce-1: rgba(7, 23, 15, 0.14);
  --halo-marca: rgba(124, 196, 135, 0.25);
  --anel: 0 0 0 3px rgba(44, 107, 58, 0.28);
  --raio-pilula: 999px;
  --largura-util: 96rem;
  --largura-lateral: 16rem;

  /* só do site */
  --lh-3xl: 1.1;                 /* título do hero (no portal, 1.1 solto em .acesso-titulo) */
  --largura-site: 72rem;         /* largura do conteúdo das seções */
  --linha-faixa: transparent;    /* linha entre faixa escura e página; só aparece no escuro */
}

/* "screen": na impressão vale sempre o tema claro, como no portal */
@media screen and (prefers-color-scheme: dark) {
  :root {
    --fundo: #07130c;
    --superficie: #0d2216;
    --superficie-2: #133021;
    --texto: #e6efe6;
    --sutil: #96ab9a;
    --borda: #1f3d2b;
    --borda-campo: #5f8468;
    --link: #7cc487;
    --foco: #7cc487;
    --lateral: #040f09;
    --lateral-2: #06150d;
    --perigo: #b42328;
    --erro: #f59a9d;
    --erro-fundo: #3a1d20;
    --ok: #7fdcab;
    --ok-fundo: #14331f;
    --aviso: #f1d174;
    --aviso-fundo: #392f14;
    --info: #aab4f2;
    --info-fundo: #1f2650;
    --falha: #f6b27a;
    --falha-fundo: #3a2412;
    --neutro: #aab8ae;
    --neutro-fundo: #1b2b22;
    --anel: 0 0 0 3px rgba(124, 196, 135, 0.35);
    --sombra-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --sombra-2: 0 10px 30px rgba(0, 0, 0, 0.5);
    --linha-faixa: var(--borda);   /* no escuro, a faixa escura quase some no fundo (1,03:1) */
  }
}

/* ---------- 2. Base ---------- */
* { box-sizing: border-box; }
/* scroll-padding-bottom: o item focado não fica atrás do botão fixo do WhatsApp (WCAG 2.4.11; mesmo valor do portal). */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--e8); scroll-padding-bottom: 6rem; }
body {
  margin: 0;
  font: 400 var(--t-base)/var(--lh-base) var(--fonte);
  font-feature-settings: "calt", "kern";
  background: var(--fundo);
  color: var(--texto);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 0.18em; }
h1 { font-size: var(--t-h1); line-height: var(--lh-h1); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 var(--e5); }
h2 { font-size: var(--t-md); line-height: var(--lh-md); font-weight: 600; letter-spacing: -0.005em; margin: var(--e5) 0 var(--e2); }
h3 { font-size: var(--t-base); line-height: var(--lh-base); font-weight: 600; margin: 0 0 var(--e1); }
p { margin: 0 0 var(--e4); }
code { font-size: 0.875em; background: var(--superficie-2); padding: 0.1em 0.35em; border-radius: 4px; }
abbr[title] { text-decoration: underline dotted; text-underline-offset: 0.18em; cursor: help; }
:focus-visible { outline: 2px solid var(--foco); outline-offset: 2px; }
.sutil { color: var(--sutil); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  a, .botao, summary { transition: background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s; }
}

/* "Pular para o conteúdo": primeiro item do Tab, aparece só com foco */
.pular { position: absolute; left: var(--e3); top: -10rem; z-index: 100; padding: var(--e2) var(--e4); background: var(--acao); color: var(--acao-texto); border-radius: var(--raio-s); font-weight: 600; text-decoration: none; }
.pular:focus { top: var(--e3); }

/* ---------- 3. Componentes do portal ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--e2);
  min-height: var(--controle); padding: 0 var(--e4); font: inherit; font-weight: 600; line-height: var(--lh-base);
  color: var(--acao-texto); background: var(--acao); border: 1px solid transparent; border-radius: var(--raio-s);
  box-shadow: inset 0 -1px 0 var(--realce-1); cursor: pointer; text-decoration: none;
}
.botao:hover { background: var(--acao-hover); }
.botao:active { box-shadow: none; transform: translateY(1px); }
.botao.secundario { background: transparent; color: var(--link); border-color: var(--borda-campo); box-shadow: none; }
.botao.secundario:hover { background: var(--superficie-2); }
.botao.grande { min-height: 3rem; padding: 0 var(--e5); }
.acoes { display: flex; flex-wrap: wrap; gap: var(--e3); align-items: center; margin-top: var(--e5); }

.cartao { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio-m); box-shadow: var(--sombra-1); padding: var(--e5); }
.cartao p:last-child { margin-bottom: 0; }

.selo { white-space: nowrap; display: inline-flex; align-items: center; gap: var(--e1); min-height: 1.5rem; padding: 0 var(--e3) 0 var(--e2); border-radius: var(--raio-pilula); font-size: var(--t-xs); line-height: var(--lh-xs); font-weight: 600; background: var(--neutro-fundo); color: var(--neutro); }
.selo::before { content: ""; flex: none; width: 0.5rem; height: 0.5rem; margin: 0.25rem; border-radius: 50%; background: currentColor; }
.selo.autorizada { color: var(--ok); background: var(--ok-fundo); }
.selo.rejeitada { color: var(--erro); background: var(--erro-fundo); }
.selo.erro_comunicacao { color: var(--falha); background: var(--falha-fundo); }
.selo.pendente { color: var(--aviso); background: var(--aviso-fundo); }
.selo.cancelada { color: var(--neutro); background: var(--neutro-fundo); }
.selo.autorizada::before { content: "\2713"; content: "\2713" / ""; width: 1rem; height: 1rem; margin: 0; background: none; font-size: var(--t-xs); line-height: 1rem; text-align: center; }
.selo.rejeitada::before { content: "\2715"; content: "\2715" / ""; width: 1rem; height: 1rem; margin: 0; background: none; font-size: var(--t-xs); line-height: 1rem; text-align: center; }
.selo.erro_comunicacao::before { content: "!"; content: "!" / ""; width: 0.875rem; height: 0.875rem; margin: 0.0625rem; background: none; border: 1.5px solid currentColor; font-size: 0.625rem; line-height: 0.75rem; text-align: center; }
.selo.pendente::before { background: none; border: 2px solid currentColor; }
.selo.cancelada::before { width: 0.625rem; height: 0.625rem; margin: 0.1875rem; box-sizing: border-box; border: 1.5px solid currentColor; background: linear-gradient(135deg, transparent 44%, currentColor 44% 58%, transparent 58%); }
.selos { display: flex; flex-wrap: wrap; gap: var(--e2); margin: 0; padding: 0; list-style: none; }

.rotulo-caixa { display: flex; align-items: center; gap: var(--e3); margin: 0 0 var(--e4); font-size: var(--t-xs); line-height: var(--lh-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--link); }
.rotulo-caixa::before { content: ""; width: 2rem; height: 1px; background: currentColor; }
.escuro .rotulo-caixa { color: var(--marca); }

.beneficios { display: grid; gap: var(--e3); margin: var(--e5) 0 0; padding: 0; list-style: none; font-size: var(--t-sm); line-height: var(--lh-sm); color: var(--destaque-texto); }
.beneficios li { display: flex; gap: var(--e3); align-items: center; }
.beneficios li::before { content: "\2713"; content: "\2713" / ""; flex: none; width: 1.25rem; height: 1.25rem; border-radius: 50%; display: grid; place-items: center; background: var(--lateral-ativo); color: var(--marca); font-size: var(--t-xs); font-weight: 700; }

/* Planos (valores ilustrativos até a definição de preço). */
.planos { align-items: stretch; }
.planos + .sutil { margin-top: var(--e4); }
.planos-todos { margin-top: var(--e5); padding: var(--e5); border: 1px solid var(--borda); border-radius: var(--raio-m); background: var(--superficie-2); }
.planos-todos h3 { margin: 0 0 var(--e4); }
.incluidos { display: grid; gap: var(--e2) var(--e5); margin: 0 0 var(--e4); padding: 0; list-style: none; font-size: var(--t-sm); line-height: var(--lh-sm); color: var(--texto); }
.incluidos li { display: flex; gap: var(--e2); }
.incluidos li::before { content: "\2713"; content: "\2713" / ""; flex: none; color: var(--ok); font-weight: 700; }
.planos-todos p { margin: 0; max-width: 72ch; color: var(--sutil); }
.planos-todos p + p { margin-top: var(--e3); }
.planos-todos { display: grid; gap: var(--e5); align-items: center; }
/* Ilustração (dados de exemplo) da aba Faturamento: cartão com leve profundidade, só tokens. */
.ilu-faturamento { margin: 0; justify-self: center; width: 100%; max-width: 22rem; }
.ilu-cartao { padding: var(--e2); border: 1px solid var(--borda); border-radius: var(--raio-g); background: var(--superficie); box-shadow: var(--sombra-2); }
.ilu-cartao svg { display: block; width: 100%; height: auto; }
.ilu-faturamento figcaption { margin-top: var(--e3); text-align: center; font-size: var(--t-xs); line-height: var(--lh-xs); color: var(--sutil); }
.ilu-rotulo { font-family: var(--fonte); font-size: 13px; font-weight: 600; fill: var(--sutil); }
.ilu-valor { font-family: var(--fonte); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; fill: var(--texto); }
.ilu-variacao { font-family: var(--fonte); font-size: 12px; font-weight: 600; fill: var(--ok); }
.ilu-base { stroke: var(--borda); stroke-width: 1; }
.ilu-barra { fill: var(--marca); }
.ilu-barra.atual { fill: var(--link); }
.ilu-mes { font-family: var(--fonte); font-size: 11px; fill: var(--sutil); }
.ilu-mes-fim { text-anchor: end; }
/* Ilustrações da seção Diferenciais (CHG-20261110-001): mesmo molde, dados de exemplo. */
.ilu-item { font-family: var(--fonte); font-size: 14px; font-weight: 600; fill: var(--texto); }
.ilu-detalhe { font-family: var(--fonte); font-size: 12px; fill: var(--sutil); }
.ilu-pilula { fill: var(--marca); }
.ilu-pilula.vazada { fill: none; stroke: var(--borda-campo); stroke-width: 1; }
.ilu-pilula-texto { font-family: var(--fonte); font-size: 11px; font-weight: 700; text-anchor: middle; fill: var(--base-950); }
.ilu-pilula-texto.vazada { fill: var(--sutil); }
.ilu-folha { fill: var(--fundo); stroke: var(--borda); stroke-width: 1; }
.ilu-linha { fill: var(--borda); }
.ilu-quadro { fill: var(--superficie); stroke: var(--borda-campo); stroke-width: 1; }
.ilu-assinante { font-family: var(--fonte); font-size: 15px; font-weight: 700; fill: var(--texto); }
.ilu-carimbo { font-family: var(--fonte); font-size: 9px; fill: var(--sutil); }
.ilu-carimbo.forte { font-weight: 700; fill: var(--texto); }
.plano { display: flex; flex-direction: column; gap: var(--e3); }
.plano p { margin: 0; }
/* Cor de destaque por perfil (só paleta da marca; cores de estado ficam para os selos). A faixa no topo é
   decorativa; o texto continua nos pares de contraste de sempre. */
.plano { position: relative; border-top: 4px solid var(--tom-plano, var(--borda)); }
.plano-essencial { --tom-plano: var(--borda-campo); }
.plano-profissional { --tom-plano: var(--marca); border: 2px solid var(--link); border-top-width: 4px; box-shadow: var(--sombra-2); background: linear-gradient(180deg, var(--superficie-2) 0%, var(--superficie) 45%); }
.plano-empresas { --tom-plano: var(--azul); }
.plano-escritorio { --tom-plano: var(--amarelo); }
.grade p.plano-sobre { margin: 0 0 calc(-1 * var(--e2)); font-size: var(--t-xs); line-height: var(--lh-xs); color: var(--sutil); }
.grade p.plano-tag { position: absolute; top: var(--e4); right: var(--e4); margin: 0; padding: 2px var(--e3); border-radius: var(--raio-pilula); background: var(--marca); color: var(--base-950); font-size: var(--t-xs); line-height: var(--lh-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.grade h3.plano-nome { margin: 0; font-size: var(--t-lg); line-height: var(--lh-lg); }
.grade p.plano-preco { margin: var(--e2) 0; color: var(--texto); font-size: var(--t-2xl); line-height: var(--lh-2xl); font-weight: 700; }
.plano-preco span { color: var(--sutil); font-size: var(--t-sm); font-weight: 400; }
.plano-itens { display: grid; gap: var(--e2); margin: 0; padding: 0; list-style: none; font-size: var(--t-sm); line-height: var(--lh-sm); }
.plano-itens li { display: flex; gap: var(--e2); }
.plano-itens strong { font-weight: 700; }
.plano-itens li::before { content: "\2713"; content: "\2713" / ""; flex: none; color: var(--ok); font-weight: 700; }
.plano .acoes { margin-top: auto; padding-top: var(--e3); }
/* Cartão "flutua" sob o mouse ou o foco do teclado (só o movimento respeita prefers-reduced-motion). */
.plano:hover, .plano:focus-within { box-shadow: var(--sombra-2); }
@media (prefers-reduced-motion: no-preference) {
  .plano { transition: transform 0.2s ease, box-shadow 0.2s ease; }
  .plano:hover, .plano:focus-within { transform: translateY(calc(-1 * var(--e2))); }
}
.secao-cabeca .selo { margin-right: var(--e2); }
/* No escuro, o cartão escuro e a barra do mês atual perdiam o destaque (mesma cor do fundo e das outras barras). */
@media screen and (prefers-color-scheme: dark) {
  .ilu-barra { fill: var(--marca-escura); }
  .ilu-barra.atual { fill: var(--marca-clara); }
}

.recolhivel > summary { display: flex; align-items: center; gap: var(--e2); cursor: pointer; list-style: none; }
.recolhivel > summary::-webkit-details-marker { display: none; }
.recolhivel > summary::before { content: "\25B8"; content: "\25B8" / ""; flex: none; color: var(--link); font-size: var(--t-sm); }
.recolhivel[open] > summary::before { transform: rotate(90deg); }
@media (prefers-reduced-motion: no-preference) { .recolhivel > summary::before { transition: transform 0.15s; } }

/* ---------- 4. Layout do site ---------- */
.marca { display: inline-flex; align-items: center; gap: var(--e3); color: var(--texto); text-decoration: none; }
.marca img { width: 2rem; height: 2rem; flex: none; }
.marca-produto { font-weight: 600; font-size: var(--t-md); line-height: var(--lh-md); letter-spacing: -0.01em; }

/* Faixa de contato acima do topo: canais à esquerda, redes à direita. Só para ver rápido; o menu continua no topo. */
.faixa-contato { background: var(--superficie-2); border-bottom: 1px solid var(--borda); font-size: var(--t-sm); line-height: var(--lh-sm); }
.faixa-dentro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--e1) var(--e5); max-width: var(--largura-site); margin: 0 auto; padding: var(--e1) var(--e4); }
.faixa-canais { display: flex; flex-wrap: wrap; gap: 0 var(--e5); margin: 0; padding: 0; list-style: none; }
.faixa-canais a { display: inline-flex; align-items: center; gap: var(--e2); min-height: 2.25rem; color: var(--texto); text-decoration: none; }
.faixa-canais a:hover { color: var(--link); text-decoration: underline; }
.faixa-canais svg, .rede svg { flex: none; width: 1.125rem; height: 1.125rem; fill: none; stroke: var(--link); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.faixa-redes { display: flex; align-items: center; gap: var(--e3); margin: 0; color: var(--sutil); }
.rede { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--superficie); border: 1px solid var(--borda); }
.rede:hover { background: var(--fundo); border-color: var(--borda-campo); }
/* No celular a faixa sai: o WhatsApp está no botão flutuante e o resto na seção Contato (topo mais curto). */
@media (max-width: 39.99rem) { .faixa-contato { display: none; } }

.topo { background: var(--superficie); border-bottom: 1px solid var(--borda); }
.topo-dentro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--e2) var(--e4); max-width: var(--largura-site); margin: 0 auto; padding: var(--e3) var(--e4); }
.menu { flex: 1 0 100%; }
.menu ul { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e1); margin: 0 calc(-1 * var(--e3)); padding: 0; list-style: none; }
.menu .entrar { margin-left: auto; }
/* Entrar: mesmo botão verde do login do portal, no tamanho do menu, com ícone de acesso. */
.menu .entrar .botao { gap: var(--e2); padding: 0 var(--e4); font-size: var(--t-sm); line-height: var(--lh-sm); }
.menu .entrar svg { width: 1rem; height: 1rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menu a:not(.botao) { display: inline-flex; align-items: center; min-height: var(--controle); padding: 0 var(--e3); border-radius: var(--raio-s); color: var(--sutil); font-weight: 500; font-size: var(--t-sm); line-height: var(--lh-sm); text-decoration: none; }
.menu a:not(.botao):hover { background: var(--superficie-2); color: var(--texto); }

.secao { padding: var(--e7) var(--e4); }
.secao.alt { background: var(--superficie); }
.secao.realce { background: var(--superficie-2); }
/* Duas seções seguidas com o mesmo fundo (ex.: Planos e Perguntas): o espaço de cima da segunda some, para não somar dois recuos. */
.secao:not(.alt):not(.escuro):not(.realce) + .secao:not(.alt):not(.escuro):not(.realce) { padding-top: 0; }
.dentro { max-width: var(--largura-site); margin: 0 auto; }
.secao-cabeca { max-width: 44rem; margin-bottom: var(--e6); }
.secao h2 { margin: 0 0 var(--e3); font-size: var(--t-xl); line-height: var(--lh-xl); font-weight: 700; letter-spacing: -0.015em; }
.secao-cabeca p { margin: 0; color: var(--sutil); font-size: var(--t-md); line-height: var(--lh-md); }
/* O rótulo também é um <p> do cabeçalho: mantém o tamanho e a cor do componente. */
.secao-cabeca .rotulo-caixa { margin: 0 0 var(--e4); font-size: var(--t-xs); line-height: var(--lh-xs); color: var(--link); }
.escuro .secao-cabeca .rotulo-caixa { color: var(--marca); }

/* faixa escura: hero, segurança e rodapé */
.escuro { --foco: var(--marca); background: var(--lateral-2); color: var(--lateral-texto); border-top: 1px solid var(--linha-faixa); border-bottom: 1px solid var(--linha-faixa); }
.escuro h2, .escuro h3 { color: var(--branco); }
.escuro .secao-cabeca p { color: var(--destaque-texto); }
.escuro a { color: var(--marca); }
.escuro .botao { color: var(--acao-texto); }
.escuro .botao.secundario { color: var(--branco); border-color: var(--lateral-sutil); }
.escuro .botao.secundario:hover { background: var(--lateral-hover); }

.heroi { position: relative; overflow: hidden; padding: var(--e7) var(--e4) var(--e8); background: var(--base-950) url("marca/fundo-acesso.svg") center / cover no-repeat; border-top: 0; }
.heroi-texto { max-width: 42rem; }
.heroi .selo { margin: 0 0 var(--e5); white-space: normal; padding-top: var(--e1); padding-bottom: var(--e1); }
.heroi h1 { margin: 0 0 var(--e4); font-size: clamp(var(--t-2xl), 6vw, var(--t-3xl)); line-height: var(--lh-3xl); font-weight: 700; letter-spacing: -0.025em; color: var(--branco); }
.heroi h1 span { color: var(--marca); }
/* Fundo no secundário do hero: o desenho do fundo não passa por dentro do botão. */
.heroi .botao.secundario { background: var(--base-950); }
.heroi .botao.secundario:hover { background: var(--lateral-hover); }
.heroi .subtitulo { max-width: 36rem; margin: 0; font-size: var(--t-md); line-height: var(--lh-md); color: var(--destaque-texto); }

/* Fundo animado do hero (CHG-20261008-002, 08/10/2026; protótipo em prototipos/2026-10-08-heroi-animado-v1.1/):
   NFS-e nasce embaixo, sobe em 3D, vira partículas e chega ao nó nacional, com fluxos de dados e pulsos. Só CSS + SVG,
   sem script. Camada aria-hidden e sem cliques; a cena (documentos, fluxos, partículas) só a partir de 80rem e
   começando 6rem depois da metade, para nunca passar atrás do texto; abaixo disso, pontos parados. Movimento só em
   prefers-reduced-motion: no-preference, sempre com o controle "Pausar animação" (checkbox, WCAG 2.2.2). */
.heroi .dentro { position: relative; z-index: 1; }
.heroi-anim { position: absolute; inset: 0; z-index: 0; pointer-events: none; user-select: none; overflow: hidden; container-type: size; contain: strict; }

/* --- controle de pausa: checkbox + rótulo, sem script; só aparece onde há movimento (bloco no-preference abaixo) --- */
.heroi-pausar { display: none; position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }  /* fora do Tab onde não há movimento */
.heroi-pausar-rotulo { display: none; position: absolute; top: var(--e3); right: var(--e3); z-index: 2; align-items: center; gap: var(--e2); min-height: var(--e6); padding: 0 var(--e3); border: 1px solid transparent; border-radius: var(--raio-pilula); background: var(--base-950); color: var(--lateral-sutil); font-size: var(--t-xs); line-height: var(--lh-xs); cursor: pointer; }  /* discreto: some no fundo do hero, 32 px de alvo (WCAG 2.5.8 pede 24) */
.heroi-pausar-rotulo::before { content: "\275A\275A"; content: "\275A\275A" / ""; font-size: var(--t-xs); letter-spacing: -0.1em; }
.heroi-pausar-rotulo:hover { border-color: var(--lateral-sutil); color: var(--lateral-texto); }
.heroi-pausar:checked + .heroi-pausar-rotulo { border-color: var(--lateral-sutil); color: var(--lateral-texto); }
.heroi-pausar:checked + .heroi-pausar-rotulo::before { content: "\25B6"; content: "\25B6" / ""; letter-spacing: 0; }  /* pausado: ▶ no lugar de ❚❚ (pista além da cor; o nome do controle é fixo) */
.heroi-pausar:focus-visible + .heroi-pausar-rotulo { outline: 2px solid var(--foco); outline-offset: 2px; }

/* --- camada 1: constelação (seção inteira; parada por padrão) --- */
.constelacao { position: absolute; inset: 0; }
.ponto { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--azul-claro); opacity: 0.25; }
.ponto.s1 { left: 6%; top: 18%; opacity: 0.15; }   .ponto.s2 { left: 31%; top: 9%; opacity: 0.15; }
.ponto.s3 { left: 44%; top: 84%; opacity: 0.15; }  .ponto.s4 { left: 58%; top: 30%; }
.ponto.s5 { left: 67%; top: 62%; opacity: 0.15; } .ponto.s6 { left: 78%; top: 46%; opacity: 0.15; }
.ponto.s7 { left: 91%; top: 74%; opacity: 0.15; } .ponto.s8 { left: 86%; top: 12%; opacity: 0.15; }
.ponto.s9 { left: 18%; top: 92%; opacity: 0.15; }

/* --- camadas 2 a 4: só em tela larga (medido em 08/10/2026: a cena começa cerca de 29 px depois do fim do texto) --- */
.fluxos, .documentos, .particulas { display: none; }
@media (min-width: 80rem) {
  .fluxos { display: block; position: absolute; top: 0; right: 4%; height: 100%; width: auto; aspect-ratio: 600 / 640; overflow: visible; }
  .documentos { display: block; position: absolute; inset: 0 0 0 calc(50% + 6rem); perspective: 1000px; perspective-origin: 0% 15%; transform-style: preserve-3d; }
  .particulas { display: block; position: absolute; inset: 0 0 0 calc(50% + 6rem); }
}
.heroi-fio { fill: none; stroke: color-mix(in srgb, var(--marca) 18%, transparent); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pulso { fill: none; stroke: var(--azul-claro); stroke-width: 1; stroke-linecap: round; stroke-dasharray: 12 288; opacity: 0; vector-effect: non-scaling-stroke; }
.pulso.q2, .pulso.q4 { stroke: var(--marca); }
.no { fill: var(--marca); opacity: 0.85; }
.no-anel { fill: none; stroke: color-mix(in srgb, var(--marca) 60%, transparent); stroke-width: 1; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; }

/* documentos NFS-e: perto (z +) maior e mais rápido; longe (z -) menor, transparente e lento. perspective-origin à
   esquerda: o que chega perto cresce para a direita, longe do texto. */
.doc { position: absolute; bottom: -10rem; left: var(--x); width: var(--w); aspect-ratio: 3 / 4; transform-style: preserve-3d; transform: translate3d(0, var(--y-parado), var(--z)) rotateX(14deg) rotateY(var(--rot)); opacity: var(--opac); }
.doc-corpo {
  position: absolute; inset: 0; padding: 1.75rem var(--e3) var(--e3); border-radius: var(--raio-s);
  border: 1px solid color-mix(in srgb, var(--marca) 45%, transparent);
  background:
    repeating-linear-gradient(to bottom, color-mix(in srgb, var(--marca) 32%, transparent) 0 2px, transparent 2px 0.75rem) content-box,
    linear-gradient(160deg, color-mix(in srgb, var(--marca) 12%, transparent), color-mix(in srgb, var(--azul-claro) 6%, transparent)) border-box;
  box-shadow: inset 0 0 1rem color-mix(in srgb, var(--azul-claro) 8%, transparent);
}
.doc-topo { position: absolute; top: var(--e2); left: var(--e3); width: 45%; height: 0.375rem; border-radius: var(--raio-pilula); background: color-mix(in srgb, var(--marca) 65%, transparent); }
.doc-xml { position: absolute; top: 0.25rem; right: var(--e2); font: 600 var(--t-xs)/1 var(--fonte); color: var(--azul-claro); opacity: 0.8; }
.doc-ok { position: absolute; right: var(--e2); bottom: var(--e2); width: 0.25rem; height: 0.25rem; border-radius: 50%; background: var(--azul-claro); }
.doc::after {
  content: ""; position: absolute; left: 50%; top: 45%; width: 0.25rem; height: 0.25rem; border-radius: 50%; background: var(--azul-claro); opacity: 0;
  box-shadow: 1.2rem -1rem 0 var(--azul-claro), -1.4rem -0.6rem 0 var(--marca), 0.4rem -2rem 0 var(--azul-claro), -0.8rem 1.2rem 0 var(--marca),
              1.8rem 0.6rem 0 var(--marca), -2rem -1.8rem 0 var(--azul-claro), 0 -3rem 0 var(--marca), 2.4rem -2.4rem 0 var(--azul-claro);
}
.doc.d1 { --x: 6%;  --z: 100px;  --w: 6.5rem;  --rot: -14deg; --dur: 19s; --atraso: -3s;  --opac: 0.6;  --deriva: 2rem;  --y-parado: -16rem; }
.doc.d2 { --x: 38%; --z: -260px; --w: 5rem;    --rot: 10deg;  --dur: 27s; --atraso: -17s; --opac: 0.35; --deriva: -3rem; --y-parado: -30rem; }
.doc.d3 { --x: 62%; --z: 40px;   --w: 6rem;    --rot: -8deg;  --dur: 22s; --atraso: -9s;  --opac: 0.5;  --deriva: -4rem; --y-parado: -22rem; }
.doc.d4 { --x: 22%; --z: -420px; --w: 4.5rem;  --rot: 18deg;  --dur: 31s; --atraso: -25s; --opac: 0.3;  --deriva: 4rem;  --y-parado: -36rem; }
.doc.d5 { --x: 78%; --z: 180px;  --w: 7rem;    --rot: 12deg;  --dur: 17s; --atraso: -12s; --opac: 0.55; --deriva: -6rem; --y-parado: -12rem; }
.doc.d6 { --x: 50%; --z: -120px; --w: 5.5rem;  --rot: -20deg; --dur: 25s; --atraso: -4s;  --opac: 0.4;  --deriva: 1rem;  --y-parado: -26rem; }
.doc.d7 { --x: 10%; --z: -320px; --w: 4.5rem;  --rot: 6deg;   --dur: 29s; --atraso: -21s; --opac: 0.3;  --deriva: 5rem;  --y-parado: -40rem; }
.doc.d8 { --x: 70%; --z: -40px;  --w: 5.75rem; --rot: -6deg;  --dur: 23s; --atraso: -15s; --opac: 0.45; --deriva: -2rem; --y-parado: -34rem; }
.doc.d9 { --x: 34%; --z: 160px;  --w: 7.5rem;  --rot: 16deg;  --dur: 21s; --atraso: -7s;  --opac: 0.6;  --deriva: 3rem;  --y-parado: -6rem; }

.particula { position: absolute; bottom: -1rem; left: var(--x); width: 3px; height: 3px; border-radius: 50%; background: var(--azul-claro); opacity: 0; }
.particula:nth-child(3n) { width: 1px; height: 1.25rem; border-radius: 0; background: linear-gradient(to top, transparent, var(--marca)); }
.particula.p1 { --x: 6%;  --dur: 9s;  --atraso: -1s; }   .particula.p2 { --x: 14%; --dur: 13s; --atraso: -6s; }
.particula.p3 { --x: 23%; --dur: 7s;  --atraso: -3s; }   .particula.p4 { --x: 31%; --dur: 11s; --atraso: -9s; }
.particula.p5 { --x: 40%; --dur: 8s;  --atraso: -5s; }   .particula.p6 { --x: 48%; --dur: 14s; --atraso: -2s; }
.particula.p7 { --x: 57%; --dur: 10s; --atraso: -7s; }   .particula.p8 { --x: 64%; --dur: 6s;  --atraso: -4s; }
.particula.p9 { --x: 72%; --dur: 12s; --atraso: -11s; }  .particula.p10 { --x: 81%; --dur: 9s; --atraso: -8s; }
.particula.p11 { --x: 88%; --dur: 15s; --atraso: -12s; } .particula.p12 { --x: 95%; --dur: 8s; --atraso: -3s; }

/* --- movimento: só para quem não pediu menos movimento e só em tela larga (onde há cena e controle) --- */
@media (prefers-reduced-motion: no-preference) and (min-width: 80rem) {
  .heroi-pausar { display: block; }
  .heroi-pausar-rotulo { display: inline-flex; }
  .ponto { animation: ponto-brilho 6s ease-in-out infinite alternate; }
  .ponto.s2, .ponto.s6 { animation-delay: -2s; }  .ponto.s4, .ponto.s8 { animation-delay: -4s; }
  .ponto.s3, .ponto.s7 { animation-duration: 9s; }
  .pulso { opacity: 0.5; animation: pulso-fluxo 5s linear infinite; }
  .pulso.q1 { animation-duration: 4.6s; animation-delay: -1s; }   .pulso.q2 { animation-duration: 6.2s; animation-delay: -3.5s; }
  .pulso.q3 { animation-duration: 5.4s; animation-delay: -2.2s; } .pulso.q4 { animation-duration: 7s; animation-delay: -5s; }
  .no-anel { animation: no-anel 6s ease-out infinite; }
  .doc { animation: doc-subir var(--dur) cubic-bezier(0.45, 0.05, 0.35, 1) var(--atraso) infinite; will-change: transform, opacity; }
  .doc-corpo { animation: doc-dissolver var(--dur) linear var(--atraso) infinite; }
  .doc::after { animation: doc-particulas var(--dur) linear var(--atraso) infinite; }
  .particula { animation: particula-subir var(--dur) linear var(--atraso) infinite; }
  .heroi-pausar:checked ~ .heroi-anim *, .heroi-pausar:checked ~ .heroi-anim *::after { animation-play-state: paused; will-change: auto; }
}
@keyframes ponto-brilho { from { transform: scale(0.6); } to { transform: scale(1.4); } }
@keyframes pulso-fluxo { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -300; } }
@keyframes no-anel { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(3); opacity: 0; } }
@keyframes doc-subir {
  0% { transform: translate3d(0, 0, var(--z)) rotateX(24deg) rotateY(var(--rot)) scale(0.92); opacity: 0; }
  10% { opacity: var(--opac); }
  88% { opacity: var(--opac); }
  100% { transform: translate3d(var(--deriva), calc(-100cqh - 20rem), var(--z)) rotateX(6deg) rotateY(calc(var(--rot) * -1)) scale(0.6); opacity: 0; }
}
@keyframes doc-dissolver { 0%, 70% { opacity: 1; transform: none; } 86%, 100% { opacity: 0; transform: scale(0.85); } }
@keyframes doc-particulas { 0%, 72% { opacity: 0; transform: scale(0.4); } 84% { opacity: 0.7; transform: scale(1); } 100% { opacity: 0; transform: translateY(-2rem) scale(1.6); } }
@keyframes particula-subir { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 0.6; } 80% { opacity: 0.45; } 100% { transform: translateY(calc(-100cqh - 2rem)); opacity: 0; } }

@media (forced-colors: active) { .heroi-anim, .heroi-pausar, .heroi-pausar-rotulo { display: none; } }  /* sem cena, sem controle nem parada no Tab */

/* ---------- 5. Seções ---------- */
.grade { display: grid; gap: var(--e4); margin: 0; padding: 0; list-style: none; }
.grade > li { display: flex; flex-direction: column; }
.grade .cartao { height: 100%; }
.grade h3 { margin-top: var(--e3); }
.grade p { color: var(--sutil); margin: 0; }

.icone { align-self: flex-start; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--raio-s); background: var(--superficie-2); color: var(--link); }
.icone svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Diferenciais (CHG-20261110-001): painel com texto + ilustração; duas colunas a partir de 64rem, .inverso troca o lado
   (só visual: no código o texto vem antes, e a ordem de leitura e de foco não muda). */
.diferencial { display: grid; gap: var(--e5); margin: 0 0 var(--e5); padding: var(--e4); background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio-g); box-shadow: var(--sombra-1); }
.diferencial-sobre { display: flex; align-items: center; gap: var(--e3); margin: 0 0 var(--e4); font-size: var(--t-sm); line-height: var(--lh-sm); font-weight: 600; color: var(--link); }
.diferencial h3 { margin: 0 0 var(--e3); font-size: var(--t-lg); line-height: var(--lh-lg); letter-spacing: -0.01em; }
.diferencial-texto > * { max-width: 40rem; }
.diferencial-texto > p:not([class]) { margin: 0 0 var(--e5); color: var(--sutil); }
.diferencial .incluidos { grid-template-columns: minmax(0, 1fr); margin: 0 0 var(--e5); }
.diferencial-nota { margin: 0; padding-top: var(--e4); border-top: 1px solid var(--borda); font-size: var(--t-sm); line-height: var(--lh-sm); color: var(--sutil); }
.diferencial-figura { margin: 0; padding: var(--e4) var(--e3); border-radius: var(--raio-m); background: var(--superficie-2); }
.diferencial-figura .ilu-cartao { max-width: 22rem; margin: 0 auto; }
.diferencial-figura figcaption { margin-top: var(--e3); text-align: center; font-size: var(--t-xs); line-height: var(--lh-xs); color: var(--sutil); }
.diferenciais-mais { margin-top: var(--e6); }
#diferenciais .acoes { margin-top: var(--e6); }
.escuro .icone { background: var(--lateral-ativo); color: var(--marca); }
.escuro .grade p { color: var(--lateral-texto); }
.escuro .item { padding: var(--e5); border: 1px solid var(--lateral-linha); border-radius: var(--raio-m); height: 100%; }

.passos { display: grid; gap: var(--e5); margin: 0; padding: 0; list-style: none; counter-reset: passo; }
.passos li { counter-increment: passo; display: grid; grid-template-columns: var(--controle) minmax(0, 1fr); align-content: start; gap: var(--e1) var(--e4); }
.passos li::before { content: counter(passo); grid-row: span 2; display: grid; place-items: center; width: var(--controle); height: var(--controle); border-radius: 50%; background: var(--acao); color: var(--acao-texto); font-weight: 700; }
.passos h3 { margin: var(--e2) 0 0; }
.passos p { margin: 0; color: var(--sutil); }

/* Diagrama do fluxo (Confiabilidade). Celular: uma coluna, com linha vertical entre as partes.
   Tela larga (seção 6): três colunas ligadas por linhas, com a volta do webhook em "U" por baixo. */
.fluxo { margin: var(--e7) 0 0; }
.fluxo figcaption { margin: 0 0 var(--e5); color: var(--sutil); font-size: var(--t-sm); line-height: var(--lh-sm); }
.fluxo-mapa { display: grid; justify-items: center; }
.fluxo-origem, .fluxo-destino, .fluxo-kinota { width: 100%; max-width: 26rem; }
.fluxo-rotulo { margin: 0 0 var(--e2); font-size: var(--t-xs); line-height: var(--lh-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sutil); text-align: center; }
.fluxo-no { display: grid; align-content: center; gap: var(--e1); min-height: 4rem; margin: 0; padding: var(--e2) var(--e4); border: 1px solid var(--borda); border-radius: var(--raio-m); background: var(--superficie); box-shadow: var(--sombra-1); text-align: center; box-sizing: border-box; }
.fluxo-no strong { font-weight: 600; }
.fluxo-no span { color: var(--sutil); font-size: var(--t-sm); line-height: var(--lh-sm); }
.fluxo-destino ul { display: grid; gap: var(--e3); margin: 0; padding: 0; list-style: none; }
.fluxo-kinota { padding: var(--e4); border-radius: var(--raio-g); background: var(--lateral); color: var(--lateral-texto); box-shadow: var(--sombra-2); border: 1px solid var(--lateral-linha); border-top: 3px solid var(--marca); box-sizing: border-box; }
.fluxo-kinota-cabeca { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--e2); margin: 0 0 var(--e4); }
.fluxo-kinota-nome { display: inline-flex; align-items: center; gap: var(--e2); color: var(--branco); font-weight: 700; }
.fluxo-kinota-tags { color: var(--lateral-sutil); font-size: var(--t-xs); line-height: var(--lh-xs); }
.fluxo-kinota-tags abbr { text-decoration: none; }
.fluxo-etapas { display: grid; gap: var(--e3); margin: 0; padding: 0; list-style: none; }
.fluxo-etapas li { display: grid; gap: var(--e1); padding: var(--e3); border: 1px solid var(--lateral-linha); border-radius: var(--raio-m); background: var(--lateral-2); text-align: center; }
.fluxo-etapas strong { color: var(--branco); font-weight: 600; }
.fluxo-etapas span { color: var(--lateral-texto); font-size: var(--t-sm); line-height: var(--lh-sm); }
.fluxo-passo { position: relative; display: flex; justify-content: center; width: 100%; margin: 0; padding: var(--e4) 0; }
.fluxo-passo::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--borda-campo); }
.fluxo-passo.volta { margin-top: var(--e4); }
.fluxo-passo.volta::before { display: none; }
.fluxo-pilula { position: relative; padding: var(--e1) var(--e3); border: 1px solid var(--borda); border-radius: var(--raio-pilula); background: var(--superficie); color: var(--sutil); font-size: var(--t-xs); line-height: var(--lh-xs); font-family: var(--fonte-mono); }
.fluxo-pilula b { color: var(--link); }
/* Situações da nota: bloco de destaque com o selo e o que ele significa. */
.situacoes { margin-top: var(--e7); padding: var(--e5); border: 1px solid var(--borda); border-radius: var(--raio-g); background: var(--superficie); box-shadow: var(--sombra-1); }
.situacoes h3 { margin: 0 0 var(--e2); font-size: var(--t-lg); line-height: var(--lh-lg); font-weight: 700; }
.situacoes > p { margin: 0 0 var(--e5); color: var(--sutil); }
.situacoes-lista { display: grid; gap: var(--e4); margin: 0; padding: 0; list-style: none; }
.situacoes-lista li { display: grid; align-content: start; justify-items: start; gap: var(--e2); padding: var(--e4); border-radius: var(--raio-m); background: var(--superficie-2); }
.situacoes-lista p { margin: 0; color: var(--sutil); font-size: var(--t-sm); line-height: var(--lh-sm); }

.api { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--e6); }
.lista-api { margin: 0 0 var(--e5); padding: 0; list-style: none; display: grid; gap: var(--e4); }
.lista-api li { padding-left: var(--e5); position: relative; }
.lista-api li::before { content: ""; position: absolute; left: 0; top: 0.5rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--acao); }
.lista-api p { margin: 0; color: var(--sutil); }
.codigo { margin: 0; min-width: 0; }
.codigo figcaption { margin-bottom: var(--e2); font-size: var(--t-xs); line-height: var(--lh-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sutil); }
.codigo pre { margin: 0 0 var(--e3); padding: var(--e4); overflow-x: auto; border-radius: var(--raio-m); background: var(--lateral); color: var(--lateral-texto); font-size: var(--t-sm); line-height: var(--lh-sm); border: 1px solid var(--linha-faixa); }
.codigo pre:focus-visible { outline-color: var(--marca); outline-offset: -3px; }
.codigo code { padding: 0; background: none; font-size: inherit; }
.codigo .k { color: var(--marca); }
.codigo .s { color: var(--amarelo); }

.faq { display: grid; gap: var(--e3); max-width: 48rem; }
.faq details { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio-m); }
.faq summary { min-height: 3rem; padding: var(--e3) var(--e4); font-weight: 600; }
.faq summary:hover { color: var(--link); }
.faq details > div { padding: 0 var(--e4) var(--e4) calc(var(--e4) + var(--e5)); color: var(--sutil); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Contato: canais à esquerda (ícone em círculo + texto), cartão "Como podemos ajudar?" à direita.
   Sem formulário: o site não tem script nem servidor (CSP form-action 'none'); os assuntos são links do WhatsApp (mailto não abre sem programa de e-mail). */
.contato { display: grid; gap: var(--e6); align-items: start; }
.contato h2 { max-width: 28ch; }
.contato-intro { color: var(--sutil); }
.canais { display: grid; gap: var(--e5); margin: var(--e5) 0 0; padding: 0; list-style: none; }
.canais li { display: flex; gap: var(--e4); align-items: flex-start; }
.canais h3 { margin: 0; }
.canais p { margin: 0; color: var(--sutil); overflow-wrap: anywhere; }
.canal-icone { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--marca); }
.canal-icone svg { width: 1.375rem; height: 1.375rem; fill: none; stroke: var(--acao-texto); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contato-ajuda { display: flex; flex-direction: column; padding: var(--e6) var(--e5); }
.contato-ajuda .rotulo-caixa { margin-bottom: var(--e3); }
.contato-titulo { margin: 0 0 var(--e2); font-size: var(--t-lg); line-height: var(--lh-lg); font-weight: 700; letter-spacing: -0.01em; }
.assuntos { display: grid; gap: var(--e2); margin: 0 0 var(--e2); padding: 0; list-style: none; }
.assuntos a { display: flex; align-items: center; justify-content: space-between; gap: var(--e3); min-height: 3rem; padding: 0 var(--e4); border: 1px solid var(--borda-campo); border-radius: var(--raio-s); background: var(--superficie); color: var(--link); font-weight: 600; text-decoration: none; }
.assuntos a:hover { background: var(--superficie-2); }
.assuntos svg { flex: none; width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contato-ajuda .acoes { margin-top: var(--e4); }
.contato-suporte { margin: var(--e3) 0 0; font-size: var(--t-sm); line-height: var(--lh-sm); color: var(--sutil); }

.rodape-site { padding: var(--e6) var(--e4); background: var(--lateral); color: var(--lateral-sutil); font-size: var(--t-sm); line-height: var(--lh-sm); }
.rodape-site .marca { color: var(--branco); margin-bottom: var(--e4); }
.rodape-site p { margin: 0 0 var(--e2); }
.rodape-site nav ul { display: flex; flex-wrap: wrap; gap: var(--e1) var(--e4); margin: var(--e4) 0; padding: 0; list-style: none; }
.rodape-site nav a { display: inline-flex; align-items: center; min-height: var(--controle); color: var(--lateral-texto); }
.rodape-site nav a:hover { color: var(--branco); }

/* Botão flutuante do WhatsApp: fixo no canto, pulsa devagar 2 vezes (2,4 s cada; não pisca, WCAG 2.3.1).
   Quem pede menos movimento no sistema vê o botão parado. */
/* Borda transparente: invisível no modo normal (o fundo verde passa por baixo dela), mas no alto contraste do Windows
   (forced-colors) vira o contorno do círculo, que senão some e deixa só o ícone solto (relatório de acessibilidade de 08/10, F1). */
.whatsapp-flutuante { position: fixed; right: var(--e4); bottom: var(--e4); z-index: 50; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border: 2px solid transparent; border-radius: 50%; background: var(--whatsapp); color: var(--branco); box-shadow: var(--sombra-2); animation: pulso-whatsapp 2.4s ease-out 2; }  /* pulsa 2 vezes e para (WCAG 2.2.2) */
.whatsapp-flutuante svg { width: 1.75rem; height: 1.75rem; fill: currentColor; }
.whatsapp-flutuante:hover { color: var(--branco); transform: scale(1.06); }
/* Foco em dois tons: o anel branco aparece na faixa escura e o verde-noite na clara. Sem animação, que mexe no box-shadow. */
.whatsapp-flutuante:focus-visible { animation: none; outline: 3px solid var(--branco); outline-offset: 0; box-shadow: 0 0 0 6px var(--base-950); }
@keyframes pulso-whatsapp {
  0% { box-shadow: var(--sombra-2), 0 0 0 0 var(--whatsapp-anel); }
  70% { box-shadow: var(--sombra-2), 0 0 0 1rem transparent; }
  100% { box-shadow: var(--sombra-2), 0 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-flutuante { animation: none; }
  .whatsapp-flutuante:hover { transform: none; }
}
/* O botão não cobre os links do rodapé no fim da página. */
.rodape-site { padding-bottom: calc(var(--e8) + var(--e4)); }

/* ---------- 6. Telas largas (mobile first: tudo acima vale para o celular) ---------- */
/* Até 80rem (onde começa a cena animada): só a parte de cima do fundo, sem os pontos e as curvas atrás do texto.
   Era só no celular; em 10/11/2026 (CHG-20261110-002) foi até 80rem porque um ponto (720 e 768 px) e uma curva
   (1024 a 1151 px) caíam sobre a lista do hero. De 64 a 80rem a escala vem da largura: pela altura, a imagem
   ficava mais estreita que a tela e deixava uma faixa escura à direita. */
@media (max-width: 79.99rem) {
  .heroi { background-position: center top; background-size: auto 200%; }
}
@media (min-width: 64rem) and (max-width: 79.99rem) {
  .heroi { background-size: 100% auto; }
}
@media (min-width: 40rem) {
  .grade.duas, .grade.tres, .grade.quatro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .passos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e6) var(--e5); }
  .situacoes-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .incluidos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .canais { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e5) var(--e4); }
  }
@media (min-width: 64rem) {
  .planos-todos { grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: var(--e7); }
  .ilu-cartao { transform: perspective(56rem) rotateY(-10deg) rotateX(4deg); }
  .topo-dentro { flex-wrap: nowrap; }
  .menu { flex: 0 1 auto; }
  .menu ul { margin: 0; }
  .menu .entrar { margin-left: var(--e3); }
  .secao { padding: var(--e8) var(--e6); }
  .secao h2 { font-size: var(--t-2xl); line-height: var(--lh-2xl); letter-spacing: -0.02em; }
  /* Perguntas: cabeçalho à esquerda, lista à direita (sem sobrar a direita vazia). */
  .faq-duas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--e7); align-items: start; }
  .faq-duas .secao-cabeca { margin-bottom: 0; }
  .faq-duas .faq { max-width: none; }
  .heroi { padding: var(--e8) var(--e6) 6rem; }
  .grade.tres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grade.quatro { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .diferencial { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--e7); align-items: center; padding: var(--e6); }
  .diferencial.inverso { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .diferencial.inverso .diferencial-figura { order: -1; }
  .diferencial.inverso .ilu-cartao { transform: perspective(56rem) rotateY(10deg) rotateX(4deg); }
  .diferencial-figura { padding: var(--e6); }
  .diferencial h3 { font-size: var(--t-xl); line-height: var(--lh-xl); letter-spacing: -0.015em; }
  .diferencial-texto > p:not([class]) { font-size: var(--t-md); line-height: var(--lh-md); }
  .passos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .situacoes { padding: var(--e6); }
  .situacoes-lista { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .api { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .contato { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: var(--e8); }
  .rodape-site { padding: var(--e7) var(--e6); }
  .whatsapp-flutuante { right: var(--e6); bottom: var(--e6); }
  /* Fluxo: origem | ligação | Kinota | ligação | governo. Larguras fixas nas pontas para a volta em "U". */
  .fluxo-mapa { grid-template-columns: 13rem 3rem minmax(0, 1fr) 3rem 13rem; grid-template-rows: auto auto var(--e8); align-items: center; justify-items: stretch; }
  /* As pontas ocupam a altura do Kinota (rótulos no topo, como a legenda de colunas); a caixa fica no meio. */
  .fluxo-origem { grid-area: 2 / 1; position: relative; }
  .fluxo-origem, .fluxo-destino { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
  .fluxo-origem .fluxo-no { position: relative; z-index: 1; }
  .fluxo-origem::before { content: ""; position: absolute; left: 50%; top: 50%; bottom: 0; width: 1px; background: var(--borda-campo); }
  .fluxo-kinota { grid-area: 2 / 3; position: relative; max-width: none; }
  .fluxo-destino { grid-area: 2 / 5; position: relative; }
  .fluxo-origem, .fluxo-destino { max-width: none; }
  .fluxo-origem .fluxo-rotulo, .fluxo-destino .fluxo-rotulo { position: absolute; top: 0; left: 0; right: 0; }
  .fluxo-etapas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fluxo-passo { width: auto; padding: 0; }
  .fluxo-passo::before { display: none; }
  .fluxo-passo.ida { grid-area: 1 / 1 / 2 / 3; justify-content: flex-end; align-self: end; margin-bottom: var(--e3); }
  .fluxo-passo.envio { grid-area: 3 / 4 / 4 / 6; justify-content: flex-end; align-self: start; margin-top: var(--e3); }
  /* Volta: desce do Kinota, corre para a esquerda e sobe até a origem. */
  .fluxo-passo.volta { grid-area: 3 / 1 / 4 / 4; align-self: stretch; justify-self: start; justify-content: center; align-items: flex-end; width: 15.5rem; margin: 0 0 0 6.5rem; border: 1px solid var(--borda-campo); border-top: 0; border-radius: 0 0 var(--raio-m) var(--raio-m); }
  .fluxo-passo.volta .fluxo-pilula { transform: translateY(50%); }
  /* ligações horizontais e pontos */
  .fluxo-kinota::before, .fluxo-kinota::after { content: ""; position: absolute; top: 50%; height: 1px; width: 3rem; background: var(--borda-campo); }
  .fluxo-kinota::before { right: 100%; }
  .fluxo-kinota::after { left: 100%; width: 1.5rem; }
  .fluxo-origem::after { content: ""; position: absolute; top: 50%; left: calc(100% + 1.5rem); width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--link); transform: translate(-50%, -50%); }
  .fluxo-destino ul { position: relative; }
  .fluxo-destino ul::before { content: ""; position: absolute; left: -1.5rem; top: var(--e6); bottom: var(--e6); width: 1px; background: var(--borda-campo); }
  .fluxo-destino li { position: relative; height: 4rem; }
  .fluxo-destino li::before { content: ""; position: absolute; top: 50%; left: -1.5rem; width: 1.5rem; height: 1px; background: var(--borda-campo); }
  .fluxo-destino li::after { content: ""; position: absolute; top: 50%; left: -1.5rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--link); transform: translate(-50%, -50%); }
}

/* topo fixo só onde sobra altura: no celular e com zoom ele cobriria o item focado (WCAG 2.4.11) */
@media (min-width: 64rem) and (min-height: 32rem) {
  .topo { position: sticky; top: 0; z-index: 10; }
}

/* ---------- 7. Impressão (cores do tema claro: o bloco escuro é só "screen") ---------- */
@media print {
  .pular, .faixa-contato, .topo, .acoes, .heroi .selo, .whatsapp-flutuante, .heroi-anim, .heroi-pausar, .heroi-pausar-rotulo { display: none !important; }
  .heroi, .escuro, .rodape-site { background: none; color: var(--texto); border: 0; }
  .heroi h1, .heroi .subtitulo, .escuro h2, .escuro h3, .escuro .grade p, .escuro .secao-cabeca p, .rodape-site .marca, .beneficios { color: var(--texto); }
  .escuro a, .rodape-site nav a { color: var(--link); }
  .secao, .heroi { padding: var(--e5) 0; }
  .cartao, .faq details, .passos li, .escuro .item { box-shadow: none; break-inside: avoid; }
  .fluxo, .situacoes { break-inside: avoid; }
  .diferencial, .diferencial-figura { box-shadow: none; break-inside: avoid; background: none; }
  .diferencial .ilu-cartao { transform: none; box-shadow: none; }
  /* blocos de fundo escuro viram claros no papel (o navegador descarta fundos) */
  .fluxo-kinota, .fluxo-etapas li { background: none; color: var(--texto); border-color: var(--borda-campo); }
  .fluxo-kinota-nome, .fluxo-kinota-tags, .fluxo-etapas strong, .fluxo-etapas span { color: var(--texto); }
  /* verde da marca e amarelo não têm contraste sobre o papel branco */
  .heroi h1 span, .escuro .rotulo-caixa, .escuro .secao-cabeca .rotulo-caixa { color: var(--link); }
  .beneficios li::before, .escuro .icone { color: var(--link); background: none; }
  .codigo .k { color: var(--link); }
  .codigo .s { color: var(--aviso); }
  .escuro .item { border-color: var(--borda-campo); }
  .codigo pre { background: var(--superficie-2); color: var(--texto); white-space: pre-wrap; }
  .selo { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Véu do VPS (veu.html; Caddyfile, VEU_PIN): só antes do lançamento ----------
   O cartão também serve a página 404 (404.html): ao apagar o véu, mantenha as regras .pagina-erro e .erro-cartao. */
.veu, .pagina-erro { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: var(--e4); }
.veu-cartao, .erro-cartao { width: 100%; max-width: 24rem; }
.veu-cartao .marca, .erro-cartao .marca { margin-bottom: var(--e5); }
.veu-cartao h1, .erro-cartao h1 { font-size: var(--t-xl); line-height: var(--lh-xl); margin-bottom: var(--e3); }
.veu-cartao form { display: grid; gap: var(--e2); margin-top: var(--e5); }
.veu-cartao label { font-weight: 600; }
.veu-cartao input { min-height: var(--controle); padding: 0 var(--e3); font: inherit; letter-spacing: 0.3em; color: var(--texto); background: var(--superficie); border: 1px solid var(--borda-campo); border-radius: var(--raio-s); }
.veu-cartao input:focus-visible { outline: 2px solid var(--foco); outline-offset: 0; box-shadow: var(--anel); }
.veu-cartao .botao, .erro-cartao .botao { margin-top: var(--e3); }
.veu-erro { display: none; padding: var(--e2) var(--e3); border-radius: var(--raio-s); color: var(--erro); background: var(--erro-fundo); border: 1px solid currentColor; font-weight: 600; }
.veu-erro::before { content: "! "; content: "! " / ""; }
.veu-erro:target { display: block; }
