/* docs/design-system/tokens/dist/tokens.css */
/* Nortcash · tokens do design system. Gerado por docs/design-system/tools/build-tokens.mjs a partir de docs/design-system/tokens/*.tokens.json. Não edite à mão. */
:root {
  /* Paleta: primitivos. Componente nunca lê daqui; lê --color-*. */
  --white: #FFFFFF;
  /* Neutro · claro · matiz 127° */
  --n-1: #FBFBFB;
  --n-2: #F6F7F5;
  --n-3: #F3F4F2;
  --n-4: #F0F1EF;
  --n-5: #EAECE9;
  --n-6: #E4E5E2;
  --n-7: #CDCECA;
  --n-8: #B6B8B4;
  --n-9: #A6A9A3;
  --n-10: #888A86;
  --n-11: #51534F;
  --n-12: #1A1B17;
  /* Lime · claro · matiz 127° */
  --lime-1: #FBFDF8;
  --lime-2: #F4F9EF;
  --lime-3: #E9F2DE;
  --lime-4: #DCEBCB;
  --lime-5: #CDDFB5;
  --lime-6: #BDD49F;
  --lime-7: #A7C380;
  --lime-8: #8BAC5A;
  --lime-9: #C0FF44;
  --lime-10: #B2EF37;
  --lime-11: #516F13;
  --lime-12: #2A3C05;
  /* Verde · claro · matiz 146° */
  --green-1: #F9FDF9;
  --green-2: #F1F9F1;
  --green-3: #E3F4E4;
  --green-4: #D2EDD3;
  --green-5: #BFE3C0;
  --green-6: #ACD8AE;
  --green-7: #90C893;
  --green-8: #6DB272;
  --green-9: #2AA040;
  --green-10: #128C2F;
  --green-11: #007824;
  --green-12: #193F1F;
  /* Vermelho · claro · matiz 19° */
  --red-1: #FFFAFA;
  --red-2: #FEF0F0;
  --red-3: #FFE8E7;
  --red-4: #FFD9D9;
  --red-5: #FDC8C8;
  --red-6: #F8B7B7;
  --red-7: #EE9F9F;
  --red-8: #DD8082;
  --red-9: #F05562;
  --red-10: #DE394E;
  --red-11: #CA1C3C;
  --red-12: #5B1E22;
  /* Âmbar · claro · matiz 63° */
  --amber-1: #FFFBF8;
  --amber-2: #FFF5EB;
  --amber-3: #FDEBDC;
  --amber-4: #FBDFC6;
  --amber-5: #F5D0AF;
  --amber-6: #EEC098;
  --amber-7: #E3AA77;
  --amber-8: #D18E4D;
  --amber-9: #EF9B47;
  --amber-10: #DB8931;
  --amber-11: #975911;
  --amber-12: #54310C;
  /* Neutro · escuro · matiz 127° */
  --n-dark-1: #0A0A0A;
  --n-dark-2: #141414;
  --n-dark-3: #1E1E1E;
  --n-dark-4: #282A25;
  --n-dark-5: #323330;
  --n-dark-6: #3F403D;
  --n-dark-7: #4F504D;
  --n-dark-8: #686A65;
  --n-dark-9: #7F817D;
  --n-dark-10: #91938F;
  --n-dark-11: #A6A9A3;
  --n-dark-12: #F6F8F3;
  /* Lime · escuro · matiz 127° */
  --lime-dark-1: #0B0F06;
  --lime-dark-2: #101607;
  --lime-dark-3: #18200B;
  --lime-dark-4: #202B0E;
  --lime-dark-5: #283612;
  --lime-dark-6: #334418;
  --lime-dark-7: #42591C;
  --lime-dark-8: #587426;
  --lime-dark-9: #C0FF44;
  --lime-dark-10: #B2EF37;
  --lime-dark-11: #B0E25D;
  --lime-dark-12: #E7FACF;
  /* Verde · escuro · matiz 146° */
  --green-dark-1: #081008;
  --green-dark-2: #0B170B;
  --green-dark-3: #0D220F;
  --green-dark-4: #102E13;
  --green-dark-5: #123A17;
  --green-dark-6: #16491D;
  --green-dark-7: #1D5F27;
  --green-dark-8: #2B7C37;
  --green-dark-9: #2AA040;
  --green-dark-10: #3AAC4C;
  --green-dark-11: #2DBE62;
  --green-dark-12: #CFF3D0;
  /* Vermelho · escuro · matiz 19° */
  --red-dark-1: #150A0A;
  --red-dark-2: #210D0D;
  --red-dark-3: #311213;
  --red-dark-4: #411719;
  --red-dark-5: #511C20;
  --red-dark-6: #662429;
  --red-dark-7: #833036;
  --red-dark-8: #A94249;
  --red-dark-9: #E14757;
  --red-dark-10: #EC5A65;
  --red-dark-11: #F78296;
  --red-dark-12: #FFDBDB;
  /* Âmbar · escuro · matiz 63° */
  --amber-dark-1: #130B05;
  --amber-dark-2: #1D1105;
  --amber-dark-3: #2C1804;
  --amber-dark-4: #3A1F01;
  --amber-dark-5: #4A2600;
  --amber-dark-6: #5D3000;
  --amber-dark-7: #793F00;
  --amber-dark-8: #9A5500;
  --amber-dark-9: #CD7C20;
  --amber-dark-10: #DB8931;
  --amber-dark-11: #DF9949;
  --amber-dark-12: #FFE1C6;
  /* Papéis de cor · tema claro */
  --color-paper: var(--white); /* Card, sidebar, campo */
  --color-ghost: var(--n-2); /* Hover de linha e de item, coluna atual */
  --color-soft: var(--n-4); /* Item ativo, linha selecionada, selo neutro */
  --color-stroke-subtle: var(--n-3); /* Divisor entre linhas */
  --color-canvas: var(--n-4); /* Fundo de página */
  --color-dim: var(--n-5); /* Esqueleto de carregamento, listra de dia futuro */
  --color-stroke: var(--n-6); /* Borda de campo e de item */
  --color-content-muted: var(--n-9); /* Placeholder, ícone inativo, série secundária */
  --color-control: var(--n-10); /* Borda de checkbox e rádio */
  --color-content-secondary: var(--n-11); /* Texto de apoio */
  --color-content-primary: var(--n-12); /* Títulos, valores, nomes */
  --color-content-inverse: var(--white); /* Texto sobre emphasis, selo sólido, tooltip, toast e botão destrutivo */
  --color-content-on-brand: var(--n-12); /* Texto e ícone sobre lime, igual nos dois temas */
  --color-deep: var(--n-dark-1); /* Âncora do tema escuro */
  --color-surface: var(--n-dark-2); /* Card sobre escuro */
  --color-raised: var(--n-dark-3); /* Item ativo sobre escuro */
  --color-stroke-dark: var(--n-dark-5); /* Borda sobre escuro */
  --color-muted-inverse: var(--n-dark-8); /* Eixo e ícone sobre escuro */
  --color-brand: var(--lime-9); /* Ação primária, halo de foco, etapa atual */
  --color-brand-hover: var(--lime-10); /* Hover e pressionado do botão primário */
  --color-brand-tint: var(--lime-3); /* Fundo do brilho de linha nova */
  --color-positive: var(--green-11); /* Entrada, pago, conciliada */
  --color-positive-surface: var(--green-3); /* Fundo do selo positivo */
  --color-emphasis: var(--green-12); /* Destaque forte no lugar do preto; borda de foco */
  --color-emphasis-surface: var(--green-4); /* Fundo do selo forte */
  --color-support: var(--green-12); /* Fundo da aba de ajuda, igual nos dois temas (ADR-DS-013) */
  --color-content-on-support: var(--white); /* Texto sobre a aba de ajuda, igual nos dois temas */
  --color-negative: var(--red-11); /* Prejuízo, atrasado, erro — nunca saída */
  --color-negative-hover: var(--red-10); /* Hover e pressionado do botão destrutivo */
  --color-negative-surface: var(--red-2); /* Fundo do selo e banner negativo, dia com resultado negativo */
  --color-warning: var(--amber-11); /* Aviso, atenção hoje, falta algo */
  --color-warning-surface: var(--amber-2); /* Fundo do selo e banner de aviso */
  --color-heat-1: var(--red-6); /* Degrau 1 de 5 do heatmap (pior); texto em content-primary */
  --color-heat-2: var(--red-4); /* Degrau 2 de 5 do heatmap (ruim); texto em content-primary */
  --color-heat-3: var(--n-4); /* Degrau 3 de 5 do heatmap (meio); texto em content-primary */
  --color-heat-4: var(--green-4); /* Degrau 4 de 5 do heatmap (bom); texto em content-primary */
  --color-heat-5: var(--green-6); /* Degrau 5 de 5 do heatmap (melhor); texto em content-primary */
  --color-backdrop: rgba(10,10,10,0.35); /* Véu atrás de sheet e dialog */
  /* Elevação e anéis: valor. O nome do Tailwind aponta para ele, em shapeLines. */
  --ds-shadow-menu: 0 8px 24px rgba(10,10,10,0.12); /* Menu, dropdown, toast e tooltip */
  --ds-shadow-sheet: -12px 0 40px rgba(10,10,10,0.18); /* Gaveta lateral (sheet) */
  --ds-shadow-dialog: 0 24px 64px rgba(10,10,10,0.2); /* Dialog */
  --ds-shadow-focus: 0 0 0 3px var(--color-brand); /* Halo de foco de campo e busca, junto da borda emphasis de 1px */
  --ds-shadow-focus-button: 0 0 0 2px var(--color-paper), 0 0 0 4px var(--color-emphasis); /* Anel de foco de botão: 2px de respiro em paper e anel emphasis */
  --ds-shadow-error: 0 0 0 3px color-mix(in srgb, var(--color-negative) 15%, transparent); /* Anel de campo com erro: negative a 15% */
  /* Tipografia */
  --font-sans: 'Plus Jakarta Sans', 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --text-display: 60px; --text-display--line-height: 1; --text-display--letter-spacing: -0.035em; --text-display--font-weight: 800; /* Display · só no painel lime das telas públicas */
  --text-lead: 18px; --text-lead--line-height: 1.5; --text-lead--letter-spacing: 0; --text-lead--font-weight: 500; /* Lead · parágrafo sob o Display, só no painel das telas públicas */
  --text-hero: 40px; --text-hero--line-height: 1.05; --text-hero--letter-spacing: -0.02em; --text-hero--font-weight: 700; /* Hero · KPI principal, um por tela · tabular */
  --text-headline: 32px; --text-headline--line-height: 1.2; --text-headline--letter-spacing: -0.02em; --text-headline--font-weight: 700; /* Headline · h1 de página */
  --text-value: 24px; --text-value--line-height: 1.1; --text-value--letter-spacing: -0.02em; --text-value--font-weight: 600; /* Value · KPI secundário, resumo, preço · tabular */
  --text-title: 20px; --text-title--line-height: 1.3; --text-title--letter-spacing: -0.01em; --text-title--font-weight: 700; /* Title · título de sheet e dialog */
  --text-section: 18px; --text-section--line-height: 1.3; --text-section--letter-spacing: 0; --text-section--font-weight: 700; /* Section · h2 de painel */
  --text-subsection: 16px; --text-subsection--line-height: 1.3; --text-subsection--letter-spacing: 0; --text-subsection--font-weight: 700; /* Subsection · h3 dentro do painel */
  --text-body: 14px; --text-body--line-height: 1.5; --text-body--letter-spacing: 0; --text-body--font-weight: 500; /* Body · 500 primário, 400 secundário · célula de tabela, item de menu, campo */
  --text-button: 14px; --text-button--line-height: 1; --text-button--letter-spacing: 0; --text-button--font-weight: 600; /* Button · rótulo de botão, aba ativa, valor em tabela (12px no botão pequeno) */
  --text-caption: 12px; --text-caption--line-height: 1.5; --text-caption--letter-spacing: 0; --text-caption--font-weight: 400; /* Caption · 400 ou 500 · apoio de linha, hint, selo, cabeçalho de tabela, iniciais de avatar */
  --text-metric: 12px; --text-metric--line-height: 1.2; --text-metric--letter-spacing: 0.05em; --text-metric--font-weight: 500; /* Metric label · uppercase · rótulo de métrica, eyebrow e grupo da navegação */
  --text-mono: 12px; --text-mono--line-height: 1.5; --text-mono--letter-spacing: 0; --text-mono--font-weight: 400; /* Mono · ui-monospace · só identificadores técnicos */
  /* Raio */
  --radius-xs: 4px; /* Checkbox, barra de gráfico, marca pequena */
  --radius-sm: 6px; /* Item de menu, botão de 28px */
  --radius-md: 8px; /* Botão, campo, selo de tipo, card interno */
  --radius-lg: 12px; /* Painel, sheet, dialog */
  --radius-full: 999px; /* Pílula, avatar, chip */
  /* Curvas */
  --ease-enter: cubic-bezier(0.22, 1, 0.36, 1); /* Entrada de sheet e troca de lado do auth */
  --ease-standard: cubic-bezier(0, 0, 0.58, 1); /* ease-out do CSS: toast e transições curtas */
  /* Elevação e anéis: nome. O Tailwind grava o valor do @theme dentro do utilitário, então shadow-menu precisa apontar para a variável para o .dark alcançá-lo. */
  --shadow-menu: var(--ds-shadow-menu);
  --shadow-sheet: var(--ds-shadow-sheet);
  --shadow-dialog: var(--ds-shadow-dialog);
  --shadow-focus: var(--ds-shadow-focus);
  --shadow-focus-button: var(--ds-shadow-focus-button);
  --shadow-error: var(--ds-shadow-error);
  /* Altura de controle */
  --control-sm: 32px; /* Botão pequeno, linha de tabela */
  --control-md: 40px; /* Campo, select, busca, botão médio, item de navegação */
  --control-lg: 48px; /* Botão grande, só em auth e onboarding */
  /* Espaço (grade de 4) */
  --space-1: 4px; /* Dentro de selo e ícone */
  --space-2: 8px; /* Entre rótulo e campo */
  --space-3: 12px; /* Entre controles */
  --space-4: 16px; /* Entre linhas de lista, gap do painel */
  --space-5: 20px; /* Entre campos de formulário */
  --space-6: 24px; /* Padding do painel, entre painéis */
  --space-8: 32px; /* Abaixo do título de página */
  --space-10: 40px; /* Padding lateral do conteúdo */
  --space-12: 48px; /* Entre blocos, padding do topo */
  /* Layout */
  --layout-sidebar: 256px; /* Sidebar aberta */
  --layout-sidebar-collapsed: 72px; /* Sidebar recolhida */
  --layout-content: 1280px; /* Largura máxima do conteúdo */
  --layout-sheet: 480px; /* Largura da sheet */
  --layout-dialog: 440px; /* Largura do dialog */
  /* Duração */
  --duration-fast: 180ms; /* Entrada do toast */
  --duration-base: 220ms; /* Entrada da sheet */
  --duration-slow: 600ms; /* Troca de lado login ↔ cadastro, brilho de linha nova */
  --duration-toast-short: 4000ms; /* Toast de uma frase */
  --duration-toast-long: 6000ms; /* Toast de duas frases */
}

.dark {
  /* Papéis de cor · tema escuro */
  --color-paper: var(--n-dark-3); /* Card, sidebar, campo */
  --color-ghost: var(--n-dark-4); /* Hover de linha e de item, coluna atual */
  --color-soft: var(--n-dark-5); /* Item ativo, linha selecionada, selo neutro */
  --color-stroke-subtle: var(--n-dark-5); /* Divisor entre linhas */
  --color-canvas: var(--n-dark-1); /* Fundo de página */
  --color-dim: var(--n-dark-6); /* Esqueleto de carregamento, listra de dia futuro */
  --color-stroke: var(--n-dark-6); /* Borda de campo e de item */
  --color-content-muted: var(--n-dark-8); /* Placeholder, ícone inativo, série secundária */
  --color-control: var(--n-dark-9); /* Borda de checkbox e rádio */
  --color-content-secondary: var(--n-dark-11); /* Texto de apoio */
  --color-content-primary: var(--n-dark-12); /* Títulos, valores, nomes */
  --color-content-inverse: var(--n-dark-1); /* Texto sobre emphasis, selo sólido, tooltip, toast e botão destrutivo */
  --color-content-on-brand: var(--n-12); /* Texto e ícone sobre lime, igual nos dois temas */
  --color-deep: var(--n-dark-1); /* Âncora do tema escuro */
  --color-surface: var(--n-dark-2); /* Card sobre escuro */
  --color-raised: var(--n-dark-3); /* Item ativo sobre escuro */
  --color-stroke-dark: var(--n-dark-5); /* Borda sobre escuro */
  --color-muted-inverse: var(--n-dark-8); /* Eixo e ícone sobre escuro */
  --color-brand: var(--lime-dark-9); /* Ação primária, halo de foco, etapa atual */
  --color-brand-hover: var(--lime-dark-10); /* Hover e pressionado do botão primário */
  --color-brand-tint: var(--lime-dark-4); /* Fundo do brilho de linha nova */
  --color-positive: var(--green-dark-11); /* Entrada, pago, conciliada */
  --color-positive-surface: var(--green-dark-4); /* Fundo do selo positivo */
  --color-emphasis: var(--green-dark-12); /* Destaque forte no lugar do preto; borda de foco */
  --color-emphasis-surface: var(--green-dark-5); /* Fundo do selo forte */
  --color-support: var(--green-12); /* Fundo da aba de ajuda, igual nos dois temas (ADR-DS-013) */
  --color-content-on-support: var(--white); /* Texto sobre a aba de ajuda, igual nos dois temas */
  --color-negative: var(--red-dark-11); /* Prejuízo, atrasado, erro — nunca saída */
  --color-negative-hover: var(--red-dark-10); /* Hover e pressionado do botão destrutivo */
  --color-negative-surface: var(--red-dark-4); /* Fundo do selo e banner negativo, dia com resultado negativo */
  --color-warning: var(--amber-dark-11); /* Aviso, atenção hoje, falta algo */
  --color-warning-surface: var(--amber-dark-4); /* Fundo do selo e banner de aviso */
  --color-heat-1: var(--red-dark-6); /* Degrau 1 de 5 do heatmap (pior); texto em content-primary */
  --color-heat-2: var(--red-dark-4); /* Degrau 2 de 5 do heatmap (ruim); texto em content-primary */
  --color-heat-3: var(--n-dark-4); /* Degrau 3 de 5 do heatmap (meio); texto em content-primary */
  --color-heat-4: var(--green-dark-4); /* Degrau 4 de 5 do heatmap (bom); texto em content-primary */
  --color-heat-5: var(--green-dark-6); /* Degrau 5 de 5 do heatmap (melhor); texto em content-primary */
  --color-backdrop: rgba(0,0,0,0.6); /* Véu atrás de sheet e dialog */
  /* Elevação e anéis: valor. O nome do Tailwind aponta para ele, em shapeLines. */
  --ds-shadow-menu: 0 8px 24px rgba(0,0,0,0.5); /* Menu, dropdown, toast e tooltip */
  --ds-shadow-sheet: -12px 0 40px rgba(0,0,0,0.6); /* Gaveta lateral (sheet) */
  --ds-shadow-dialog: 0 24px 64px rgba(0,0,0,0.6); /* Dialog */
  --ds-shadow-focus: 0 0 0 3px var(--color-brand); /* Halo de foco de campo e busca, junto da borda emphasis de 1px */
  --ds-shadow-focus-button: 0 0 0 2px var(--color-paper), 0 0 0 4px var(--color-emphasis); /* Anel de foco de botão: 2px de respiro em paper e anel emphasis */
  --ds-shadow-error: 0 0 0 3px color-mix(in srgb, var(--color-negative) 15%, transparent); /* Anel de campo com erro: negative a 15% */
}

/* site/styles/components.css */
/* Nortcash · camada de componentes para protótipo HTML standalone.
   Lê só os papéis de tokens/dist/tokens.css (--color-*, --text-*, --space-*, --radius-*,
   --shadow-*, --control-*, --layout-*). Nenhum valor de cor aqui (COR-01, ESC-02).
   Cada bloco cita a página do DS que o define. */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--text-body--line-height);
  font-weight: var(--text-body--font-weight);
  color: var(--color-content-primary);
  background: var(--color-canvas);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { flex: none; }
.num, .tabular { font-variant-numeric: tabular-nums; }

/* ---------- tipografia (foundations/tipografia.md) ---------- */
.text-display    { font-size: var(--text-display);    line-height: var(--text-display--line-height);    letter-spacing: var(--text-display--letter-spacing);    font-weight: var(--text-display--font-weight); }
.text-lead       { font-size: var(--text-lead);       line-height: var(--text-lead--line-height);       letter-spacing: var(--text-lead--letter-spacing);       font-weight: var(--text-lead--font-weight); }
.text-hero       { font-size: var(--text-hero);       line-height: var(--text-hero--line-height);       letter-spacing: var(--text-hero--letter-spacing);       font-weight: var(--text-hero--font-weight); font-variant-numeric: tabular-nums; }
.text-headline   { font-size: var(--text-headline);   line-height: var(--text-headline--line-height);   letter-spacing: var(--text-headline--letter-spacing);   font-weight: var(--text-headline--font-weight); }
.text-value      { font-size: var(--text-value);      line-height: var(--text-value--line-height);      letter-spacing: var(--text-value--letter-spacing);      font-weight: var(--text-value--font-weight); font-variant-numeric: tabular-nums; }
.text-title      { font-size: var(--text-title);      line-height: var(--text-title--line-height);      letter-spacing: var(--text-title--letter-spacing);      font-weight: var(--text-title--font-weight); }
.text-section    { font-size: var(--text-section);    line-height: var(--text-section--line-height);    letter-spacing: var(--text-section--letter-spacing);    font-weight: var(--text-section--font-weight); }
.text-subsection { font-size: var(--text-subsection); line-height: var(--text-subsection--line-height); letter-spacing: var(--text-subsection--letter-spacing); font-weight: var(--text-subsection--font-weight); }
.text-body       { font-size: var(--text-body);       line-height: var(--text-body--line-height);       letter-spacing: var(--text-body--letter-spacing);       font-weight: var(--text-body--font-weight); }
.text-body-400   { font-size: var(--text-body);       line-height: var(--text-body--line-height);       font-weight: 400; }
.text-button     { font-size: var(--text-button);     line-height: var(--text-button--line-height);     letter-spacing: var(--text-button--letter-spacing);     font-weight: var(--text-button--font-weight); }
.text-caption    { font-size: var(--text-caption);    line-height: var(--text-caption--line-height);    letter-spacing: var(--text-caption--letter-spacing);    font-weight: var(--text-caption--font-weight); }
.text-caption-500{ font-size: var(--text-caption);    line-height: var(--text-caption--line-height);    font-weight: 500; }
.text-metric     { font-size: var(--text-metric);     line-height: var(--text-metric--line-height);     letter-spacing: var(--text-metric--letter-spacing);     font-weight: var(--text-metric--font-weight); text-transform: uppercase; }
.text-mono       { font-family: var(--font-mono); font-size: var(--text-mono); line-height: var(--text-mono--line-height); }
.secondary { color: var(--color-content-secondary); }
.muted     { color: var(--color-content-muted); }
.positive  { color: var(--color-positive); }
.negative  { color: var(--color-negative); }
.warning   { color: var(--color-warning); }
.emphasis  { color: var(--color-emphasis); }

/* ---------- shell (patterns/pagina.md, foundations/espaco-e-layout.md) ---------- */
.shell { display: grid; grid-template-columns: var(--layout-sidebar) minmax(0, 1fr); min-height: 100vh; }
.content { width: 100%; max-width: calc(var(--layout-content) + 2 * var(--space-10)); margin: 0 auto; padding: var(--space-12) var(--space-10); }
.stack { display: flex; flex-direction: column; gap: var(--space-6); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }

/* ---------- documento / relatório (sem sidebar; composição de PageHeader + Panel) ---------- */
.doc { width: 100%; max-width: calc(var(--layout-content) + 2 * var(--space-10)); margin: 0 auto; padding: var(--space-12) var(--space-10); }
.doc-header { display: flex; align-items: center; justify-content: space-between; height: var(--control-md); margin-bottom: var(--space-8); color: var(--color-content-secondary); }
.doc-header .logo { color: var(--color-content-primary); }
.doc-footer { margin-top: var(--space-8); padding-top: var(--space-4); border-top: 1px solid var(--color-stroke); display: flex; justify-content: space-between; gap: var(--space-4); color: var(--color-content-secondary); font-size: var(--text-caption); }
.prose { max-width: 72ch; display: flex; flex-direction: column; gap: var(--space-3); font-weight: 400; }
.prose strong { font-weight: 600; }
.list { display: flex; flex-direction: column; gap: var(--space-3); }
.list-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); padding-bottom: var(--space-3); border-bottom: 1px solid var(--color-stroke-subtle); }
.list-row:last-child { border-bottom: 0; padding-bottom: 0; }
.list-row .value { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media print {
  @page { margin: 16mm; }
  body { background: var(--color-paper); }
  .doc { padding: 0; max-width: none; }
  .panel { break-inside: avoid; border: 1px solid var(--color-stroke); } /* no papel não há canvas: a borda substitui o contraste tonal */
  .btn, .bottom-nav { display: none !important; }
}

/* ---------- sidebar (components/sidebar.md) ---------- */
.sidebar { background: var(--color-paper); display: flex; flex-direction: column; padding: var(--space-4) var(--space-3); gap: var(--space-2); position: sticky; top: 0; height: 100vh; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; height: var(--control-md); padding: 0 var(--space-2); }
.logo { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; line-height: 24px; color: var(--color-content-primary); }
.company { display: flex; align-items: center; gap: var(--space-2); height: var(--control-md); padding: 0 var(--space-2); border-radius: var(--radius-md); }
.company:hover { background: var(--color-soft); }
.company .name { font-weight: 600; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 28px; height: 28px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: var(--text-caption); font-weight: 600; background: var(--color-soft); color: var(--color-content-primary); }
.avatar.current { background: var(--color-brand); color: var(--color-content-on-brand); } /* NAV-02 */
.avatar.round { border-radius: var(--radius-full); }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-group + .nav-group { margin-top: var(--space-4); }
.nav-label { padding: 0 var(--space-2); margin-bottom: var(--space-1); color: var(--color-content-secondary); }
.nav-item { display: flex; align-items: center; gap: var(--space-2); height: var(--control-md); padding: 0 var(--space-2); border-radius: var(--radius-md); color: var(--color-content-secondary); text-decoration: none; }
.nav-item svg { width: 18px; height: 18px; color: var(--color-content-secondary); }
.nav-item:hover { background: var(--color-ghost); color: var(--color-content-primary); }
.nav-item.active { background: var(--color-soft); color: var(--color-content-primary); font-weight: 600; } /* NAV-01 */
.nav-item.active svg { color: var(--color-content-primary); }
.nav-item .badge-type { margin-left: auto; }
.sidebar-footer { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.user { display: flex; align-items: center; gap: var(--space-2); height: var(--control-md); padding: 0 var(--space-2); }
.user .meta { display: flex; flex-direction: column; min-width: 0; }

/* ---------- page header (components/page-header.md) ---------- */
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); margin-bottom: var(--space-8); }
.page-header .eyebrow { color: var(--color-content-secondary); margin-bottom: var(--space-2); }
.page-header .title-row { display: flex; align-items: center; gap: var(--space-3); }
.page-header .subtitle { font-weight: 400; color: var(--color-content-secondary); margin-top: var(--space-1); }
.page-header .actions { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }

/* ---------- notice / banner (components/notice.md) ---------- */
.notice { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); margin-bottom: var(--space-6); }
.notice svg { width: 16px; height: 16px; margin-top: 2px; }
.notice-warning  { background: var(--color-warning-surface);  color: var(--color-warning); }
.notice-negative { background: var(--color-negative-surface); color: var(--color-negative); }
.notice-neutral  { background: var(--color-soft); color: var(--color-content-secondary); }

/* ---------- panel + section header (components/panel.md) ---------- */
.panel { background: var(--color-paper); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); } /* FORMA-02: sem borda, sem sombra */
.panel-footer { border-top: 1px solid var(--color-stroke); padding-top: var(--space-4); display: flex; align-items: center; justify-content: space-between; }
.panel-highlight { background: var(--color-emphasis); color: var(--color-content-inverse); }
.panel-highlight .secondary { color: var(--color-emphasis-surface); }
.section-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); }
.section-header .subtitle { color: var(--color-content-secondary); margin-top: 2px; max-width: 72ch; }
.item { border: 1px solid var(--color-stroke); border-radius: var(--radius-md); padding: 14px var(--space-4); display: flex; align-items: center; gap: var(--space-3); } /* PAINEL-03 */
.item svg { width: 20px; height: 20px; color: var(--color-content-secondary); }
.item .meta { flex: 1; min-width: 0; }
.item .title { font-weight: 600; }
.card-inner { border: 1px solid var(--color-stroke); border-radius: var(--radius-md); padding: var(--space-4); }
.divider { border: 0; border-top: 1px solid var(--color-stroke); margin: 0; }

/* ---------- metric (components/metric.md) ---------- */
.metric-label { font-size: var(--text-metric); line-height: var(--text-metric--line-height); letter-spacing: var(--text-metric--letter-spacing); font-weight: var(--text-metric--font-weight); text-transform: uppercase; color: var(--color-content-secondary); }
.kpi-strip { display: flex; }
.kpi { display: flex; flex-direction: column; gap: var(--space-2); padding: 0 var(--space-5); flex: 1; }
.kpi:first-child { padding-left: 0; }
.kpi + .kpi { border-left: 1px solid var(--color-stroke); }
.kpi.cash { border-left: 3px solid var(--color-brand); } /* outra natureza: caixa, não resultado */
.kpi-hero { font-size: var(--text-hero); line-height: var(--text-hero--line-height); letter-spacing: var(--text-hero--letter-spacing); font-weight: var(--text-hero--font-weight); color: var(--color-emphasis); font-variant-numeric: tabular-nums; }
.kpi-value { font-size: var(--text-value); line-height: var(--text-value--line-height); letter-spacing: var(--text-value--letter-spacing); font-weight: var(--text-value--font-weight); font-variant-numeric: tabular-nums; }
.currency { font-size: 16px; font-weight: 500; color: var(--color-content-secondary); margin-right: var(--space-1); }
.kpi-value .currency { font-size: var(--text-caption); }
.kpi-note { display: flex; align-items: center; gap: var(--space-2); color: var(--color-content-secondary); }
.summary { display: flex; }
.summary > div { flex: 1; padding: 0 var(--space-5); display: flex; flex-direction: column; gap: var(--space-1); }
.summary > div:first-child { padding-left: 0; }
.summary > div + div { border-left: 1px solid var(--color-stroke); }
.ratio-list { display: flex; flex-direction: column; gap: var(--space-4); }
.ratio-row { display: flex; flex-direction: column; gap: var(--space-2); }
.ratio-row .line { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.ratio-row .value { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ratio-track { height: 4px; background: var(--color-soft); border-radius: var(--radius-xs); overflow: hidden; }
.ratio-bar { height: 100%; background: var(--color-emphasis); border-radius: var(--radius-xs); }
.read-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-6); }
.read-field { display: flex; flex-direction: column; gap: 6px; }
.read-field .value { font-weight: 600; }

/* ---------- button (components/button.md) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: var(--control-md); padding: 0 var(--space-4); border-radius: var(--radius-md); font-size: var(--text-button); line-height: 1; font-weight: var(--text-button--font-weight); white-space: nowrap; text-decoration: none; border: 1px solid transparent; transition: background-color 120ms; }
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus-button); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-sm { height: var(--control-sm); padding: 0 var(--space-3); font-size: 12px; }
.btn-lg { height: var(--control-lg); padding: 0 var(--space-6); }
.btn-icon { width: var(--control-sm); padding: 0; }
.btn-icon.btn-xs { width: 28px; height: 28px; border-radius: var(--radius-sm); }
.btn-primary { background: var(--color-brand); color: var(--color-content-on-brand); }
.btn-primary:hover { background: var(--color-brand-hover); }
.btn-outline { border-color: var(--color-stroke); color: var(--color-content-primary); background: var(--color-paper); }
.btn-outline:hover { background: var(--color-ghost); }
.btn-outline:active { background: var(--color-soft); }
.btn-ghost { color: var(--color-content-secondary); }
.btn-ghost:hover { background: var(--color-ghost); color: var(--color-content-primary); }
.btn-ghost:active { background: var(--color-soft); }
.btn-destructive { background: var(--color-negative); color: var(--color-content-inverse); }
.btn-destructive:hover { background: var(--color-negative-hover); }
.btn-destructive-outline { border-color: var(--color-stroke); color: var(--color-negative); background: var(--color-paper); }
.btn-destructive-outline:hover { background: var(--color-ghost); }
.btn-inverse { background: var(--color-paper); color: var(--color-content-primary); }
.btn-inverse:hover { background: var(--color-ghost); }
.btn-link { height: auto; padding: 0; border-radius: 0; text-decoration: underline; color: var(--color-content-primary); font-weight: 500; }
.btn-link:hover { color: var(--color-content-secondary); }
.btn-group { display: flex; gap: var(--space-2); }

/* ---------- badge (components/badge.md) ---------- */
.badge { display: inline-flex; align-items: center; gap: var(--space-1); height: 22px; padding: 0 var(--space-2); border-radius: var(--radius-full); font-size: var(--text-caption); font-weight: 500; line-height: 1; white-space: nowrap; }
.badge-neutral  { background: var(--color-soft); color: var(--color-content-secondary); }
.badge-warning  { background: var(--color-warning-surface); color: var(--color-warning); }
.badge-negative { background: var(--color-negative-surface); color: var(--color-negative); }
.badge-positive { background: var(--color-positive-surface); color: var(--color-positive); }
.badge-strong   { background: var(--color-emphasis-surface); color: var(--color-emphasis); }
.badge-solid    { background: var(--color-emphasis); color: var(--color-content-inverse); }
.badge-type { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: var(--radius-md); background: var(--color-soft); color: var(--color-content-secondary); font-size: var(--text-caption); font-weight: 500; line-height: 1; } /* SELO-05 */
.badge-type.on-canvas { background: var(--color-paper); border: 1px solid var(--color-stroke); } /* SELO-06 */
.delta { display: inline-flex; align-items: center; gap: var(--space-1); height: 20px; padding: 0 6px; border-radius: var(--radius-full); font-size: var(--text-caption); font-weight: 600; line-height: 1; }
.delta-positive { background: var(--color-positive-surface); color: var(--color-positive); }
.delta-negative { background: var(--color-negative-surface); color: var(--color-negative); }
.delta-neutral  { background: var(--color-soft); color: var(--color-content-secondary); }
.delta svg { width: 8px; height: 8px; fill: currentColor; stroke: none; }
.counter { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-full); background: var(--color-brand); color: var(--color-content-on-brand); font-size: var(--text-caption); font-weight: 700; }
.resolved { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--color-content-secondary); font-size: var(--text-caption); } /* estado esperado, sem selo (SELO-01) */
.resolved svg { width: 14px; height: 14px; color: var(--color-positive); }

/* ---------- table (components/table.md) ---------- */
.table-wrap { margin: 0 calc(-1 * var(--space-6)); }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; padding: var(--space-3) var(--space-5); font-size: var(--text-caption); font-weight: 500; color: var(--color-content-secondary); border-bottom: 1px solid var(--color-stroke); }
.table th.sorted { font-weight: 700; color: var(--color-content-primary); }
.table td { padding: 14px var(--space-5); border-bottom: 1px solid var(--color-stroke-subtle); vertical-align: middle; }
.table.dense td { padding: var(--space-3) var(--space-5); }
.table tbody tr:hover { background: var(--color-ghost); }
.table tbody tr.selected { background: var(--color-soft); }
.table tbody tr.overdue td:first-child { box-shadow: inset 2px 0 0 var(--color-negative); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .cell-2 { display: flex; flex-direction: column; gap: 2px; }
.table .cell-2 .support { font-size: var(--text-caption); color: var(--color-content-secondary); }
.table th.num, .table td.num { text-align: right; }
.table td.num { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table td.actions { text-align: right; white-space: nowrap; }
.table .group-header td { padding: var(--space-5) var(--space-5) var(--space-2); border-bottom: 0; }
.table .group-header td:first-child { font-size: var(--text-metric); line-height: var(--text-metric--line-height); letter-spacing: var(--text-metric--letter-spacing); font-weight: 500; text-transform: uppercase; color: var(--color-content-secondary); }
.table-footer { display: flex; align-items: center; justify-content: space-between; padding-top: var(--space-4); color: var(--color-content-secondary); font-size: var(--text-caption); }
.selection-bar { display: flex; align-items: center; gap: var(--space-3); height: var(--control-md); padding: 0 var(--space-4); background: var(--color-soft); border-radius: var(--radius-md); }
.selection-bar .count { font-weight: 600; flex: 1; }

/* ---------- filter bar (components/filter-bar.md) ---------- */
.filter-bar { display: flex; align-items: center; gap: var(--space-3); }
.filter-bar .search { flex: 1; min-width: 200px; }
.filter-active { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); color: var(--color-content-secondary); font-size: var(--text-caption); }
.chip { display: inline-flex; align-items: center; gap: var(--space-2); height: 28px; padding: 0 6px 0 var(--space-3); border-radius: var(--radius-full); border: 1px solid var(--color-stroke); background: var(--color-paper); color: var(--color-content-primary); font-size: var(--text-caption); font-weight: 500; }
.chip .x { width: 18px; height: 18px; border-radius: var(--radius-full); background: var(--color-soft); display: inline-flex; align-items: center; justify-content: center; }
.chip .x svg { width: 10px; height: 10px; }

/* ---------- field (components/text-field.md, components/select.md) ---------- */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-size: var(--text-caption); font-weight: 500; color: var(--color-content-secondary); }
.input, .select { display: flex; align-items: center; gap: var(--space-2); width: 100%; height: var(--control-md); padding: 0 var(--space-4); background: var(--color-paper); border: 1px solid var(--color-stroke); border-radius: var(--radius-md); font: inherit; font-weight: 500; color: var(--color-content-primary); outline: none; }
.input::placeholder { color: var(--color-content-muted); }
.input:hover, .select:hover { border-color: var(--color-content-secondary); }
.input:focus, .select:focus-visible { border-color: var(--color-emphasis); box-shadow: var(--shadow-focus); }
.field.error .input { border-color: var(--color-negative); box-shadow: var(--shadow-error); }
.field .message { font-size: var(--text-caption); color: var(--color-content-secondary); }
.field.error .message { color: var(--color-negative); }
.input:disabled { background: var(--color-soft); opacity: .5; }
.input[readonly] { background: var(--color-soft); border-color: var(--color-stroke-subtle); }
.input-wrap { position: relative; }
.input-wrap > svg { position: absolute; left: var(--space-3); top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--color-content-muted); pointer-events: none; }
.input-wrap .input { padding-left: var(--space-10); }
.select { justify-content: space-between; text-align: left; }
.select svg { width: 16px; height: 16px; color: var(--color-content-muted); }
.textarea { min-height: 140px; padding: var(--space-3) var(--space-4); resize: vertical; }
.search-with-button { display: flex; }
.search-with-button .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.search-with-button .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.form { display: flex; flex-direction: column; gap: var(--space-5); }
.check { display: inline-flex; align-items: center; gap: var(--space-2); }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--color-emphasis); border-radius: var(--radius-xs); }

/* ---------- tabs e paginação (components/tabs-pagination.md) ---------- */
.tabs { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--color-stroke); }
.tab { height: var(--control-md); padding: 0 var(--space-3); display: inline-flex; align-items: center; color: var(--color-content-secondary); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.active { color: var(--color-content-primary); font-weight: 600; border-bottom-color: var(--color-emphasis); }
.pagination { display: flex; align-items: center; gap: var(--space-2); }

/* ---------- overlays (components/sheet.md, dialog.md, menu.md, toast.md, tooltip.md) ---------- */
.backdrop { position: fixed; inset: 0; background: var(--color-backdrop); }
.sheet { position: fixed; top: 0; right: 0; bottom: 0; width: var(--layout-sheet); background: var(--color-paper); box-shadow: var(--shadow-sheet); display: flex; flex-direction: column; }
.sheet-header { padding: var(--space-6); display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); }
.sheet-body { padding: 0 var(--space-6) var(--space-6); flex: 1; overflow: auto; }
.sheet-footer { padding: var(--space-4) var(--space-6); border-top: 1px solid var(--color-stroke); display: flex; justify-content: flex-end; gap: var(--space-3); }
.dialog { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: var(--layout-dialog); max-width: calc(100vw - 2 * var(--space-4)); background: var(--color-paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-dialog); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.dialog .actions { display: flex; justify-content: flex-end; gap: var(--space-3); }
.menu { min-width: 200px; background: var(--color-paper); border-radius: var(--radius-md); box-shadow: var(--shadow-menu); padding: var(--space-1); display: flex; flex-direction: column; }
.menu-item { display: flex; align-items: center; gap: var(--space-2); height: 36px; padding: 0 var(--space-3); border-radius: var(--radius-sm); text-align: left; }
.menu-item:hover { background: var(--color-ghost); }
.menu-item.destructive { color: var(--color-negative); }
.toast { position: fixed; bottom: var(--space-6); left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: var(--space-3); height: var(--control-md); padding: 0 var(--space-4); border-radius: var(--radius-full); background: var(--color-emphasis); color: var(--color-content-inverse); box-shadow: var(--shadow-menu); font-weight: 500; }
.tooltip { display: inline-block; padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm); background: var(--color-emphasis); color: var(--color-content-inverse); font-size: var(--text-caption); box-shadow: var(--shadow-menu); }

/* ---------- estados (patterns/estados.md) ---------- */
.skeleton { background: var(--color-dim); border-radius: var(--radius-sm); }
.empty { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); color: var(--color-content-secondary); } /* EST-01: uma linha e a ação */
.error-box { border: 1px solid var(--color-stroke); border-radius: var(--radius-md); padding: var(--space-4); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }

/* ---------- step rail (components/step-rail.md) ---------- */
.steps { display: flex; flex-direction: column; gap: var(--space-3); }
.step { display: flex; align-items: center; gap: var(--space-3); color: var(--color-content-secondary); }
.step .dot { width: 24px; height: 24px; border-radius: var(--radius-full); border: 1px solid var(--color-stroke); display: inline-flex; align-items: center; justify-content: center; font-size: var(--text-caption); font-weight: 600; }
.step.current { color: var(--color-content-primary); font-weight: 600; }
.step.current .dot { background: var(--color-brand); border-color: var(--color-brand); color: var(--color-content-on-brand); }
.step.done .dot { color: var(--color-positive); }

/* ---------- movimento (foundations/movimento.md) ---------- */
@keyframes row-new { from { background: var(--color-brand-tint); } to { background: transparent; } }
.row-new { animation: row-new var(--duration-slow) var(--ease-standard, ease-out) 400ms both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- responsivo (NAV-07, PAGINA-05) ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .content { padding: var(--space-6) var(--space-4) calc(var(--space-12) + 56px); }
  .doc { padding: var(--space-6) var(--space-4); }
  .grid-2, .read-grid { grid-template-columns: minmax(0, 1fr); }
  .kpi-strip, .summary { flex-direction: column; gap: var(--space-4); }
  .kpi + .kpi, .summary > div + div { border-left: 0; border-top: 1px solid var(--color-stroke); padding: var(--space-4) 0 0; }
  .kpi.cash { border-left: 0; border-top: 3px solid var(--color-brand); }
  .page-header { flex-direction: column; align-items: flex-start; }
  .table-wrap { overflow-x: auto; margin: 0 calc(-1 * var(--space-6)); }
  .panel { min-width: 0; }
  .bottom-nav { display: flex; }
}
.bottom-nav { display: none; position: fixed; left: 0; right: 0; bottom: 0; height: 64px; background: var(--color-paper); border-top: 1px solid var(--color-stroke); justify-content: space-around; align-items: center; padding: 0 var(--space-2); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--color-content-secondary); font-size: var(--text-caption); font-weight: 500; }
.bottom-nav a svg { width: 20px; height: 20px; }
.bottom-nav a.active { font-weight: 600; color: var(--color-content-primary); }
.bottom-nav a.active .pill { background: var(--color-brand); color: var(--color-content-on-brand); }
.bottom-nav .pill { width: 56px; height: 32px; border-radius: var(--radius-full); display: inline-flex; align-items: center; justify-content: center; }

/* site/styles/landing.css */
/* Landing and site pages. Copied from the landing prototype (Spec-Landing-Open-Finance-MCP), with two changes:
   the dashed "depends on" markers are gone, and every animation moves only transform and opacity
   (the wire drawing and the dash flow used stroke-dashoffset; the ticks and the stairs faded colors). */
/* Landing do Open Finance MCP. Só papéis do DS (var(--color-*), --space-*, --radius-*).
   DS: fora do DS — escala tipográfica de marketing (--lp-display, --lp-h2) e os blocos de página (primeira dobra, fluxo, escada de preço). */
[hidden] { display: none !important; }
:root { --lp-display: clamp(38px, 4.9vw, 68px); --lp-h2: clamp(28px, 3.4vw, 46px); --lp-gutter: clamp(20px, 5.5vw, 96px); --lp-max: 1392px; --rail-x: 36px; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { background: var(--color-canvas); overflow-x: hidden; }
.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-family: var(--font-mono); font-size: var(--text-mono); letter-spacing: 0; }
.wrap { width: 100%; max-width: var(--lp-max); margin: 0 auto; padding: 0 var(--lp-gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--space-4); top: var(--space-4); z-index: 100; background: var(--color-paper); padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); }
[data-agent] { display: none; }

/* ---------- topo ---------- */
.top { position: sticky; top: 0; z-index: 40; background: var(--color-canvas); border-bottom: 1px solid var(--color-stroke-subtle); }
.top-in { display: flex; align-items: center; gap: var(--space-6); height: 64px; white-space: nowrap; }
.top .logo { white-space: nowrap; }
.top .brand { display: flex; align-items: baseline; gap: var(--space-3); text-decoration: none; }
.top .powered { color: var(--color-content-secondary); font-size: var(--text-caption); white-space: nowrap; }
.top nav { display: flex; gap: var(--space-6); margin-left: auto; }
.top nav a { text-decoration: none; color: var(--color-content-secondary); font-weight: 500; }
.top nav a:hover { color: var(--color-content-primary); }
.top-actions { display: flex; align-items: center; gap: var(--space-3); }
.status { display: inline-flex; align-items: center; gap: var(--space-2); height: 28px; padding: 0 var(--space-3); border-radius: var(--radius-full); border: 1px solid var(--color-stroke); color: var(--color-content-secondary); font-size: var(--text-caption); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.status-dot { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--color-warning); }
.status.live .status-dot { background: var(--color-brand); }
.status.done { color: var(--color-content-primary); border-color: var(--color-brand); }
.status.done .status-dot { background: var(--color-brand); }

/* ---------- fio de conexão: o scroll completa a linha ---------- */
.rail { position: fixed; left: var(--rail-x); top: 0; bottom: 0; width: 2px; background: var(--color-stroke-subtle); z-index: 5; pointer-events: none; }
.rail-fill { position: absolute; inset: 0; background: var(--color-brand); transform-origin: top; transform: scaleY(var(--p, 0)); }
.rail-tip { position: absolute; left: -4px; top: 0; width: 10px; height: 10px; border-radius: var(--radius-full); background: var(--color-brand); transform: translateY(calc(var(--p, 0) * 100vh - 5px)); box-shadow: 0 0 0 4px var(--color-brand-tint); }
.tap { position: absolute; left: var(--rail-x); top: calc(clamp(64px, 7.5vw, 108px) + 7px); height: 1px; width: calc(var(--lp-gutter) - var(--rail-x) - 16px); background: var(--color-stroke); transform-origin: left; pointer-events: none; }
.tap::after { content: ""; position: absolute; right: -4px; top: -3px; width: 7px; height: 7px; border-radius: var(--radius-full); background: var(--color-stroke); }
.js .tap { transform: scaleX(0); transition: transform var(--duration-slow) var(--ease-enter); }
.js .passed > .tap { transform: scaleX(1); background: var(--color-brand); }
.js .passed > .tap::after { background: var(--color-brand); }

/* ---------- seções ---------- */
section.band { position: relative; padding: clamp(64px, 7.5vw, 108px) 0; }
.eyebrow { display: block; font-family: var(--font-mono); font-size: var(--text-mono); color: var(--color-content-secondary); margin-bottom: var(--space-4); }
.h2 { font-size: var(--lp-h2); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; max-width: 18ch; }
.lead { font-size: var(--text-lead); line-height: var(--text-lead--line-height); color: var(--color-content-secondary); font-weight: 400; max-width: 56ch; }
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--duration-slow) var(--ease-enter), transform var(--duration-slow) var(--ease-enter); transition-delay: var(--d, 0ms); }
.js .in .reveal, .js .reveal.in { opacity: 1; transform: none; }

/* ---------- primeira dobra ---------- */
.hero { position: relative; padding: clamp(56px, 8vw, 112px) 0 clamp(72px, 9vw, 128px); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--color-stroke) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(to bottom, rgb(0 0 0 / .9), transparent 78%); mask-image: linear-gradient(to bottom, rgb(0 0 0 / .9), transparent 78%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 12fr) minmax(0, 10fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: var(--lp-display); line-height: 1; letter-spacing: -0.04em; font-weight: 800; text-wrap: balance; }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.06em; height: 0.09em; background: var(--color-brand); transform-origin: left; }
.js .hero h1 .hl::after { transform: scaleX(0); transition: transform 900ms var(--ease-enter) 500ms; }
.js .hero.in h1 .hl::after { transform: scaleX(1); }
.hero .lead { margin-top: var(--space-6); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.seal { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-8); padding-top: var(--space-4); border-top: 1px solid var(--color-stroke); color: var(--color-content-secondary); font-size: var(--text-caption); max-width: 60ch; }

.console { position: relative; margin: 0; }
.card { background: var(--color-paper); border: 1px solid var(--color-stroke-subtle); border-radius: var(--radius-lg); }
.ledger { padding: var(--space-5) var(--space-5) var(--space-3); }
.ledger-head { display: flex; flex-direction: column; gap: var(--space-2); padding-bottom: var(--space-4); border-bottom: 1px solid var(--color-stroke); }
.ledger-head .mono { white-space: nowrap; }
.total { font-size: clamp(28px, 3.2vw, 44px); line-height: 1; letter-spacing: -0.03em; font-weight: 700; color: var(--color-emphasis); font-variant-numeric: tabular-nums; white-space: nowrap; }
.total .cur { font-size: 0.42em; font-weight: 500; color: var(--color-content-secondary); margin-right: 6px; letter-spacing: 0; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); padding: 9px 0; border-bottom: 1px solid var(--color-stroke-subtle); font-size: var(--text-body); }
.rows li:last-child { border-bottom: 0; }
.rows .tick { width: 16px; height: 16px; border-radius: var(--radius-full); border: 1px solid var(--color-stroke); display: inline-flex; align-items: center; justify-content: center; color: var(--color-content-on-brand); background: var(--color-brand); border-color: var(--color-brand); }
.rows .tick .i { width: 10px; height: 10px; stroke-width: 3; }
.rows .who { display: flex; flex-direction: column; min-width: 0; }
.rows .who small { color: var(--color-content-secondary); font-size: var(--text-caption); }
.rows .amt { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.js .rows li { opacity: .38; transition: opacity var(--duration-slow) var(--ease-standard); }
.js .rows li .tick { background: transparent; border-color: var(--color-stroke); color: transparent; }
.js .rows li .amt { opacity: 0; transition: opacity var(--duration-base); }
.js .rows li.on { opacity: 1; }
.js .rows li.on .tick { background: var(--color-brand); border-color: var(--color-brand); color: var(--color-content-on-brand); }
.js .rows li.on .amt { opacity: 1; }
.chat { position: relative; margin: calc(-1 * var(--space-2)) calc(-1 * var(--space-5)) 0 clamp(16px, 5vw, 72px); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); box-shadow: var(--shadow-dialog); }
.bubble { border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); max-width: 46ch; }
.bubble.q { background: var(--color-soft); align-self: flex-end; }
.bubble.a { border: 1px solid var(--color-stroke); align-self: flex-start; }
.bubble b { font-weight: 700; color: var(--color-emphasis); }
.js .bubble .w { opacity: 0; transition: opacity 160ms var(--ease-standard); }
.js .bubble .w.on { opacity: 1; }
.js .bubble { opacity: 0; transform: translateY(8px); transition: opacity var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-enter); }
.js .bubble.on { opacity: 1; transform: none; }
.snippet { margin: var(--space-3) clamp(16px, 5vw, 72px) 0 0; padding: var(--space-3) var(--space-4); color: var(--color-content-secondary); white-space: pre; overflow-x: auto; }
.fig-note { margin-top: var(--space-3); color: var(--color-content-muted); font-size: var(--text-caption); display: flex; justify-content: space-between; gap: var(--space-3); }
.replay { text-decoration: underline; color: var(--color-content-secondary); font-size: var(--text-caption); }

/* ---------- para quem é ---------- */
.who-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); margin-top: var(--space-12); }
.who-card { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.who-card h3 { font-size: var(--text-title); line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; }
.who-card p { color: var(--color-content-secondary); }
.scene { position: relative; height: 132px; border-radius: var(--radius-md); background: var(--color-canvas); border: 1px solid var(--color-stroke-subtle); padding: var(--space-3); overflow: hidden; display: flex; flex-direction: column; gap: 6px; justify-content: center; font-size: var(--text-caption); }
.scene .ln { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); height: 22px; padding: 0 var(--space-2); border-radius: var(--radius-sm); background: var(--color-paper); color: var(--color-content-secondary); }
.scene .ok { color: var(--color-positive); display: inline-flex; align-items: center; gap: 4px; }
.scene .ok .i { width: 12px; height: 12px; stroke-width: 3; }
.scene .mini-btn { align-self: flex-start; height: 26px; padding: 0 var(--space-3); border-radius: var(--radius-md); background: var(--color-brand); color: var(--color-content-on-brand); font-weight: 600; display: inline-flex; align-items: center; }
.scene .say { align-self: flex-end; background: var(--color-soft); color: var(--color-content-primary); border-radius: var(--radius-md); padding: 4px var(--space-3); }
.scene .ans { align-self: flex-start; border: 1px solid var(--color-stroke); border-radius: var(--radius-md); padding: 4px var(--space-3); color: var(--color-emphasis); font-weight: 700; font-variant-numeric: tabular-nums; }
@keyframes pop { 0%, 12% { opacity: 0; transform: translateY(6px); } 22%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes press { 0%, 20%, 100% { transform: none; } 10% { transform: scale(.94); } }
.js .in .scene .seq { animation: pop 5.6s var(--ease-enter) infinite both; animation-delay: calc(var(--n, 0) * 700ms); }
.js .in .scene .mini-btn { animation: press 5.6s var(--ease-standard) infinite; }
.who-foot { margin-top: var(--space-8); color: var(--color-content-secondary); }

/* ---------- como funciona ---------- */
.how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); margin-top: var(--space-12); align-items: start; }
.steps-lp { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.steps-lp li { counter-increment: st; padding: var(--space-8) 0; border-top: 1px solid var(--color-stroke); min-height: 34vh; display: flex; flex-direction: column; gap: var(--space-3); }
.steps-lp li::before { content: "0" counter(st); font-family: var(--font-mono); font-size: var(--text-mono); color: var(--color-content-secondary); }
.steps-lp h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; max-width: 20ch; }
.steps-lp p { color: var(--color-content-secondary); max-width: 44ch; }
.js .steps-lp li { opacity: .35; transition: opacity var(--duration-slow) var(--ease-standard); }
.js .steps-lp li.cur { opacity: 1; }
.stage { position: sticky; top: 104px; padding: var(--space-5); }
.stage svg { width: 100%; height: auto; display: block; }
.stage .node { fill: var(--color-canvas); stroke: var(--color-stroke); stroke-width: 1; }
.stage .node-main { stroke: var(--color-brand); }
.stage text { fill: var(--color-content-primary); font-family: var(--font-sans); font-size: 13px; font-weight: 600; }
.stage text.sub { fill: var(--color-content-secondary); font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; }
.stage .wire { fill: none; stroke: var(--color-stroke); stroke-width: 1.5; }
.stage .wire-on { fill: none; stroke: var(--color-brand); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 0; }
.stage .flow { fill: none; stroke: var(--color-brand); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0.5 13; opacity: 1; }
.stage .okb { fill: var(--color-brand); }
.stage .okc { fill: none; stroke: var(--color-content-on-brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stage .rowr { fill: var(--color-soft); }
@keyframes flow { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.js .stage .flow { animation: flow 1.1s linear infinite; }
.js .stage .wire-on { transition: opacity 900ms var(--ease-enter); }
.js .stage .g2, .js .stage .g3, .js .stage .g1 { transition: opacity var(--duration-slow) var(--ease-standard); }
.js .stage[data-step="0"] .wire-on, .js .stage[data-step="1"] .w-bank { opacity: 0; }
.js .stage[data-step="0"] :is(.g1, .g2, .g3), .js .stage[data-step="1"] :is(.g2, .g3), .js .stage[data-step="2"] .g3 { opacity: 0; }
.stage-cap { display: flex; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-3); color: var(--color-content-secondary); }
.how-close { margin-top: var(--space-12); font-size: var(--text-lead); font-weight: 500; }
.conn-block { margin-top: var(--space-12); padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); align-items: center; }
.conn-block h3 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.conn-block p { color: var(--color-content-secondary); margin-top: var(--space-3); }
.conn-links { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-5); }
.conn-demo { border: 1px solid var(--color-stroke); border-radius: var(--radius-md); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); background: var(--color-canvas); }
.conn-demo .bar { display: flex; align-items: center; justify-content: space-between; color: var(--color-content-secondary); font-size: var(--text-caption); }

/* ---------- funciona com ---------- */
.with { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-12); margin-top: var(--space-12); }
.with h3 { font-family: var(--font-mono); font-size: var(--text-mono); font-weight: 400; color: var(--color-content-secondary); margin-bottom: var(--space-4); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tags li { height: 36px; padding: 0 var(--space-4); border: 1px solid var(--color-stroke); border-radius: var(--radius-full); display: inline-flex; align-items: center; font-weight: 600; }

/* ---------- exemplos ---------- */
.ex { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); margin-top: var(--space-12); }
.ex article { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.ex h3 { font-size: var(--text-section); line-height: 1.35; font-weight: 600; background: var(--color-soft); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); align-self: flex-end; max-width: 40ch; }
.ex p { border: 1px solid var(--color-stroke); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); color: var(--color-content-secondary); max-width: 48ch; }
.ex-note { margin-top: var(--space-4); color: var(--color-content-muted); font-size: var(--text-caption); }

/* ---------- preço: a escada ---------- */
.price { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); margin-top: var(--space-12); align-items: end; }
.stairs { display: flex; align-items: flex-end; gap: 3px; height: 220px; padding-top: var(--space-6); border-bottom: 1px solid var(--color-stroke); }
.stairs i { flex: 1; min-width: 0; border-radius: 3px 3px 0 0; background: var(--color-stroke); height: var(--h); transform-origin: bottom; transition: transform var(--duration-base) var(--ease-enter); }
.stairs i.on { background: var(--color-content-primary); }
.stairs i.last { background: var(--color-brand); transform: scaleY(1.04); }
.tiers { display: grid; grid-template-columns: 50px 5fr 15fr 10fr; gap: 3px; margin-top: var(--space-2); color: var(--color-content-secondary); }
.tiers span { border-top: 1px solid var(--color-stroke); padding-top: var(--space-2); }
.calc label { display: block; color: var(--color-content-secondary); margin-bottom: var(--space-3); }
.calc input[type=range] { width: 100%; accent-color: var(--color-brand); height: 28px; }
.calc-out { margin-top: var(--space-6); }
.calc-total { font-size: clamp(40px, 5vw, 68px); line-height: 1; letter-spacing: -0.04em; font-weight: 800; font-variant-numeric: tabular-nums; }
.calc-total small { font-size: var(--text-lead); font-weight: 500; letter-spacing: 0; color: var(--color-content-secondary); margin-left: var(--space-2); }
.calc-sum { margin-top: var(--space-3); color: var(--color-content-secondary); font-variant-numeric: tabular-nums; }
.price-table { margin-top: var(--space-12); }
.price-table table { width: 100%; max-width: 560px; border-collapse: collapse; }
.price-table th, .price-table td { text-align: left; padding: var(--space-3) 0; border-bottom: 1px solid var(--color-stroke-subtle); }
.price-table th { font-size: var(--text-caption); font-weight: 500; color: var(--color-content-secondary); }
.price-table td:last-child, .price-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.incl { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); color: var(--color-content-secondary); }
.incl li { display: inline-flex; align-items: center; gap: var(--space-2); }
.incl .i { color: var(--color-positive); stroke-width: 2.5; }

/* ---------- segurança ---------- */
.sec { list-style: none; margin: var(--space-12) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-12); }
.sec li { padding: var(--space-5) 0; border-top: 1px solid var(--color-stroke); font-size: var(--text-lead); font-weight: 500; }

/* ---------- perguntas ---------- */
.faq { margin-top: var(--space-12); max-width: 860px; }
.faq details { border-top: 1px solid var(--color-stroke); }
.faq details:last-child { border-bottom: 1px solid var(--color-stroke); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: var(--text-lead); line-height: 1.4; font-weight: 600; }
.faq summary .i { transition: transform var(--duration-base) var(--ease-enter); color: var(--color-content-secondary); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { color: var(--color-content-secondary); padding: 0 0 var(--space-5); max-width: 68ch; }

/* ---------- chamada final e rodapé ---------- */
.final { text-align: left; }
.final .big { font-size: var(--lp-display); line-height: 1; letter-spacing: -0.04em; font-weight: 800; text-wrap: balance; max-width: 16ch; }
.final .cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-5); margin-top: var(--space-10); }
.pulse { position: relative; display: inline-flex; }
.js .done-zone .pulse::before { content: ""; position: absolute; inset: -6px; border-radius: 14px; border: 1px solid var(--color-brand); animation: ring 2.4s var(--ease-standard) infinite; }
@keyframes ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.18, 1.5); } }
.agents { margin-top: var(--space-12); padding: var(--space-6); max-width: 860px; }
.agents h2 { font-family: var(--font-mono); font-size: var(--text-mono); font-weight: 400; color: var(--color-content-secondary); margin-bottom: var(--space-3); }
.agents ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; color: var(--color-content-secondary); }
footer.foot { border-top: 1px solid var(--color-stroke); padding: var(--space-10) 0 var(--space-12); color: var(--color-content-secondary); font-size: var(--text-caption); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4) var(--space-8); }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
#agent-toggle .sm { display: none; }
.scan { position: fixed; left: 0; right: 0; top: 0; height: 2px; background: var(--color-brand); z-index: 90; opacity: 0; pointer-events: none; }
.scan.run { animation: scan 520ms var(--ease-standard); }
@keyframes scan { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(100vh); } }

/* ---------- modo agente: o mesmo HTML, sem decoração ---------- */
html.agent:not(#_):not(#_) [data-decor], html.agent:not(#_):not(#_) [data-human] { display: none !important; }
html.agent:not(#_):not(#_) main *, html.agent:not(#_):not(#_) footer.foot * { all: unset; display: revert; }
html.agent:not(#_):not(#_) main, html.agent:not(#_):not(#_) footer.foot { all: unset; display: block; font-family: var(--font-mono); font-size: 14px; line-height: 1.75; color: var(--color-content-primary); max-width: 86ch; margin: 0 auto; padding: var(--space-10) var(--space-6) 0; }
html.agent:not(#_):not(#_) footer.foot { padding-bottom: 120px; color: var(--color-content-secondary); }
html.agent:not(#_):not(#_) main [hidden] { display: none; }
html.agent:not(#_):not(#_) [data-agent] { display: block; color: var(--color-content-secondary); margin-bottom: 1.4em; padding: var(--space-3) var(--space-4); border: 1px dashed var(--color-stroke); border-radius: var(--radius-md); }
html.agent:not(#_):not(#_) main :is(h1, h2, h3, p, ul, ol, table, figure, pre, details, section, article, nav) { margin-bottom: 1.3em; }
html.agent:not(#_):not(#_) main :is(h1, h2, h3) { font-weight: 700; }
html.agent:not(#_):not(#_) main h1::before { content: "# "; color: var(--color-brand); }
html.agent:not(#_):not(#_) main h2::before, html.agent:not(#_):not(#_) footer.foot h2::before { content: "## "; color: var(--color-brand); }
html.agent:not(#_):not(#_) main h3::before { content: "### "; color: var(--color-brand); }
html.agent:not(#_):not(#_) main li, html.agent:not(#_):not(#_) footer.foot li { display: block; }
html.agent:not(#_):not(#_) main li::before, html.agent:not(#_):not(#_) footer.foot li::before { content: "- "; color: var(--color-content-secondary); }
html.agent:not(#_):not(#_) main ol.steps-lp li { opacity: 1; }
html.agent:not(#_):not(#_) :is(main, footer.foot) a { text-decoration: underline; cursor: pointer; }
html.agent:not(#_):not(#_) :is(main, footer.foot) a::after { content: " (" attr(href) ")"; color: var(--color-content-secondary); }
html.agent:not(#_):not(#_) main :is(td, th) { padding: 0 3ch 0 0; text-align: left; }
html.agent:not(#_):not(#_) main th { color: var(--color-content-secondary); }
html.agent:not(#_):not(#_) main pre { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--color-content-secondary); }
html.agent:not(#_):not(#_) main code { overflow-wrap: anywhere; }
html.agent:not(#_):not(#_) main ol.guide-steps li::before { all: unset; content: counter(gs) ". "; color: var(--color-content-secondary); }
html.agent:not(#_):not(#_) main ol.guide-steps li > div { display: inline; }
html.agent:not(#_):not(#_) main ol.guide-steps { counter-reset: gs; }
html.agent:not(#_):not(#_) main ol.guide-steps li { counter-increment: gs; }
html.agent:not(#_):not(#_) main summary { display: block; cursor: default; }
html.agent:not(#_):not(#_) main details > p { display: block; }
html.agent:not(#_):not(#_) main b { font-weight: 700; }
html.agent:not(#_):not(#_) main .who small::before { content: " · "; }
html.agent:not(#_):not(#_) main .rows .amt::before { content: " · "; }
html.agent:not(#_):not(#_) main .bubble.q::before { content: "Pergunta: "; color: var(--color-content-secondary); }
html.agent:not(#_):not(#_) main .bubble.a::before { content: "Resposta: "; color: var(--color-content-secondary); }
html.agent:not(#_):not(#_) main .seal span + span::before { content: " · "; color: var(--color-content-secondary); }
html.agent:not(#_):not(#_) main a + a::before { content: " · "; color: var(--color-content-secondary); }
html.agent:not(#_):not(#_) main ol.steps-lp li::before { content: none; }
html.agent:not(#_):not(#_) main .total .cur::after { content: " "; }
html.agent:not(#_):not(#_) main .eyebrow { color: var(--color-content-secondary); }
html.agent:not(#_):not(#_) main .hl::after { content: none; }
html.agent .top nav { display: none; }

/* Topo em telas médias: sem isso a barra estourava entre 1001 e 1240 px */
@media (max-width: 1240px) {
  .top .powered { display: none; }
  .top nav { gap: var(--space-4); }
  #agent-toggle .lg { display: none; }
  #agent-toggle .sm { display: inline; }
}
@media (max-width: 1100px) { .status { display: none; } }
@media (max-width: 1000px) {
  .rail, .tap { display: none; }
  .top nav, .top .powered, .status { display: none; }
  .top-in { gap: var(--space-3); }
  .top-actions { margin-left: auto; }
  .hero-grid, .how, .with, .price, .conn-block { grid-template-columns: minmax(0, 1fr); }
  .who-grid, .ex, .sec { grid-template-columns: minmax(0, 1fr); }
  .stage { position: relative; top: 0; order: -1; }
  .steps-lp li { min-height: 0; }
  .js .steps-lp li { opacity: 1; }
  .chat { margin-left: var(--space-4); }
  .snippet { margin-right: var(--space-4); }
  #agent-toggle .lg { display: none; }
  #agent-toggle .sm { display: inline; }
  .top .btn-primary { padding: 0 var(--space-3); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .rows li, .js .rows li .amt, .js .bubble, .js .bubble .w, .js .steps-lp li { opacity: 1 !important; transform: none !important; }
  .js .rows li .tick { background: var(--color-brand) !important; border-color: var(--color-brand) !important; color: var(--color-content-on-brand) !important; }
}
/* Celulares de 375 px ou menos: a barra estourava 13 px */
@media (max-width: 400px) {
  .top-in { gap: var(--space-2); padding: 0 var(--space-3) !important; }
  .top-actions { gap: var(--space-2); }
  .top .btn-primary, #agent-toggle { padding: 0 var(--space-2); }
}

/* ---------- o extrato tratado: a linha crua do banco vira campos ---------- */
/* DS: fora do DS — bloco "antes e depois" da landing. Levar ao Junior */
.refine { display: grid; grid-template-columns: minmax(0, 5fr) 56px minmax(0, 6fr); align-items: center; margin-top: var(--space-12); }
.refine figure { margin: 0; padding: var(--space-6); }
.refine-wire { height: 2px; background: var(--color-brand); transform-origin: left; }
.rawlist, .fields { margin: 0; }
.rawlist > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--color-stroke-subtle); }
.rawlist dt { color: var(--color-content-muted); }
.rawlist dd { margin: 0; color: var(--color-content-secondary); overflow-wrap: anywhere; line-height: 1.9; }
.tk { position: relative; white-space: nowrap; }
.tk::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--color-brand); transform-origin: left; }
.fields > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--color-stroke-subtle); align-items: baseline; }
.fields dt { color: var(--color-content-secondary); font-size: var(--text-caption); }
.fields dd { margin: 0; font-weight: 600; }
.nw { white-space: nowrap; }
.by { display: inline-block; margin-left: var(--space-1); padding: 1px var(--space-2); border: 1px solid var(--color-stroke); border-radius: var(--radius-full); font-family: var(--font-mono); font-size: var(--text-mono); font-weight: 400; color: var(--color-emphasis); white-space: nowrap; }
.js .refine-wire { transform: scaleX(0); transition: transform 500ms var(--ease-enter) 300ms; }
.js .refine.in .refine-wire { transform: scaleX(1); }
.js .tk::after { transform: scaleX(0); transition: transform 420ms var(--ease-enter); transition-delay: calc(500ms + var(--i) * 260ms); }
.js .refine.in .tk::after { transform: scaleX(1); }
.js .fields > div { opacity: 0; transform: translateX(-12px); transition: opacity var(--duration-slow) var(--ease-enter), transform var(--duration-slow) var(--ease-enter); transition-delay: calc(700ms + var(--i) * 260ms); }
.js .refine.in .fields > div { opacity: 1; transform: none; }
.treat { list-style: none; margin: var(--space-12) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8) var(--space-12); }
.treat li { border-top: 1px solid var(--color-stroke); padding-top: var(--space-5); }
.treat h3 { font-size: var(--text-lead); line-height: 1.35; font-weight: 600; }
.treat p { margin-top: var(--space-2); color: var(--color-content-secondary); max-width: 44ch; }
@media (max-width: 1000px) {
  .refine { grid-template-columns: minmax(0, 1fr); }
  .refine-wire { width: 2px; height: 32px; margin: 0 auto; transform-origin: top; }
  .js .refine-wire { transform: scaleY(0); }
  .js .refine.in .refine-wire { transform: scaleY(1); }
  .treat { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .fields > div { grid-template-columns: 96px minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .fields > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .by { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .js .refine-wire, .js .tk::after, .js .fields > div { opacity: 1 !important; transform: none !important; }
}

/* ---------- como conectar: tutorial em abas ---------- */
/* DS: fora do DS — abas de tutorial e bloco de código da landing. Levar ao Junior */
.guide { margin-top: var(--space-12); max-width: 920px; }
.guide-tabs { display: none; gap: var(--space-1); border-bottom: 1px solid var(--color-stroke); overflow-x: auto; scrollbar-width: none; }
.js .guide-tabs { display: flex; }
.guide-tabs button { position: relative; flex: none; background: none; border: 0; padding: var(--space-3) var(--space-4); font: inherit; font-weight: 600; color: var(--color-content-secondary); cursor: pointer; white-space: nowrap; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.guide-tabs button::after { content: ""; position: absolute; left: var(--space-4); right: var(--space-4); bottom: 0; height: 2px; background: var(--color-brand); transform: scaleX(0); transform-origin: left; transition: transform var(--duration-base) var(--ease-enter); }
.guide-tabs button[aria-selected="true"] { color: var(--color-content-primary); }
.guide-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.guide-tabs button:focus-visible { outline: 2px solid var(--color-brand); outline-offset: -2px; }
.guide-panel { margin-top: var(--space-6); padding: var(--space-8); }
.guide-panel h3 { font-size: var(--text-section); font-weight: 600; margin-bottom: var(--space-3); }
.guide-panel > p { color: var(--color-content-secondary); max-width: 62ch; }
.guide-panel > p + p { margin-top: var(--space-5); }
.js .guide-panel.off { display: none; }
.js .guide-panel > h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes guide-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.js .guide-panel:not(.off) { animation: guide-in var(--duration-base) var(--ease-enter); }
.guide-steps { list-style: none; counter-reset: gs; margin: var(--space-6) 0 0; padding: 0; display: grid; gap: var(--space-5); }
.guide-steps li { counter-increment: gs; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.guide-steps li::before { content: counter(gs); width: 28px; height: 28px; border-radius: var(--radius-full); border: 1px solid var(--color-stroke); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: var(--text-mono); color: var(--color-emphasis); }
.guide-steps li > div { padding-top: 3px; min-width: 0; }
.guide-panel code { font-family: var(--font-mono); font-size: var(--text-mono); background: var(--color-soft); border-radius: var(--radius-xs); padding: 1px 6px; }
.copyline { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-3); }
.copyline code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; padding: var(--space-2) var(--space-3); border: 1px solid var(--color-stroke); background: none; border-radius: var(--radius-md); scrollbar-width: none; }
.guide-code { margin: var(--space-3) 0 0; padding: var(--space-4); border: 1px solid var(--color-stroke); border-radius: var(--radius-md); font-family: var(--font-mono); font-size: var(--text-mono); line-height: 1.7; color: var(--color-content-secondary); white-space: pre; overflow-x: auto; }
@media (max-width: 600px) {
  .guide-panel { padding: var(--space-5); }
  .guide-steps li { grid-template-columns: 24px minmax(0, 1fr); gap: var(--space-3); }
  .guide-steps li::before { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) { .js .guide-panel:not(.off) { animation: none; } }

/* ---------- preço: o teste grátis na frente ---------- */
.h2 .hl { position: relative; white-space: nowrap; }
.h2 .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.04em; height: 0.09em; background: var(--color-brand); transform-origin: left; }
.js .h2 .hl::after { transform: scaleX(0); transition: transform 900ms var(--ease-enter) 300ms; }
.js .in .h2 .hl::after, .js .h2.in .hl::after { transform: scaleX(1); }
.stairs .free { flex: 0 0 44px; margin-right: 6px; height: 14%; border: 1px dashed var(--color-brand); border-bottom: 0; border-radius: 3px 3px 0 0; background: var(--color-brand-tint); }
.tiers .t0 { color: var(--color-emphasis); border-top-color: var(--color-brand); }
.trial { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 32px; padding: var(--space-1) var(--space-3); border: 1px solid var(--color-brand); border-radius: var(--radius-full); color: var(--color-emphasis); font-size: var(--text-caption); font-weight: 600; margin-bottom: var(--space-6); }
.trial-dot { flex: none; width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--color-brand); }
.js .trial-dot { animation: blink 2s var(--ease-standard) infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.calc-free { color: var(--color-emphasis); font-size: var(--text-title); font-weight: 500; margin-bottom: var(--space-2); }
.calc-free b { font-weight: 800; font-variant-numeric: tabular-nums; }
.calc-cta { margin-top: var(--space-6); }
@media (prefers-reduced-motion: reduce) { .js .h2 .hl::after { transform: none !important; } .js .trial-dot { animation: none; } }

/* Reduced motion: nothing loops, nothing slides (foundations/movimento.md). */
@media (prefers-reduced-motion: reduce) {
  .js .in .scene .seq, .js .in .scene .mini-btn, .js .stage .flow, .js .done-zone .pulse::before, .scan.run { animation: none !important; }
  .js .in .scene .seq { opacity: 1 !important; }
  .js .tap, .js .stage .wire-on, .js .stage .g1, .js .stage .g2, .js .stage .g3, .stairs i, .faq summary .i { transition: none !important; }
}


/* site/styles/pages.css */
/* Site pages other than the landing (preço, docs, termos, privacidade). Only DS roles, like landing.css. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
}

.page { padding: clamp(48px, 6vw, 88px) 0 clamp(64px, 7.5vw, 108px); }
.page-title { font-size: var(--lp-h2); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; max-width: 22ch; }
.page .lead { margin-top: var(--space-5); }
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.doc-nav { position: sticky; top: 96px; display: flex; flex-direction: column; gap: var(--space-1); }
.doc-nav a { text-decoration: none; color: var(--color-content-secondary); padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); font-weight: 500; }
.doc-nav a:hover { color: var(--color-content-primary); background: var(--color-ghost); }
.doc-nav a[aria-current="page"] { color: var(--color-content-primary); background: var(--color-soft); }
.doc { max-width: 760px; padding: 0; margin: 0; }
.doc h2 { font-size: var(--text-headline); line-height: var(--text-headline--line-height); letter-spacing: var(--text-headline--letter-spacing); font-weight: 700; margin-top: var(--space-12); scroll-margin-top: 96px; }
.doc h3 { font-size: var(--text-section); font-weight: 600; margin-top: var(--space-8); scroll-margin-top: 96px; }
.doc p, .doc ul, .doc ol { margin-top: var(--space-4); color: var(--color-content-secondary); max-width: 68ch; line-height: 1.65; }
.doc li + li { margin-top: var(--space-2); }
.doc strong { color: var(--color-content-primary); font-weight: 600; }
.doc code { font-family: var(--font-mono); font-size: var(--text-mono); background: var(--color-soft); border-radius: var(--radius-xs); padding: 1px 6px; color: var(--color-content-primary); }
.doc pre { margin: var(--space-4) 0 0; padding: var(--space-4); border: 1px solid var(--color-stroke); border-radius: var(--radius-md); font-family: var(--font-mono); font-size: var(--text-mono); line-height: 1.7; color: var(--color-content-secondary); white-space: pre; overflow-x: auto; background: var(--color-paper); }
.doc pre code { background: none; padding: 0; color: inherit; }
.doc table { width: 100%; border-collapse: collapse; margin-top: var(--space-4); }
.doc th, .doc td { text-align: left; padding: var(--space-3) var(--space-3) var(--space-3) 0; border-bottom: 1px solid var(--color-stroke-subtle); vertical-align: top; }
.doc th { font-size: var(--text-caption); font-weight: 500; color: var(--color-content-secondary); }
.doc td:first-child { white-space: nowrap; }
.doc .notice { margin: var(--space-6) 0 0; }
.doc a { color: var(--color-content-primary); }
.price-page .price { margin-top: var(--space-10); }
.legal .notice { margin-top: var(--space-8); max-width: 72ch; }
@media (max-width: 1000px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-nav { position: static; flex-direction: row; flex-wrap: wrap; }
}
