/* =========================================================
   Atypical Tech — Design Tokens (HSL) + base utilities
   Spec: Atypical Design System v1.1 ("Dynamic & Human")
   ========================================================= */

/* ---------------------------------------------------------
   Inter, servido por nós.

   Vinha do Google Fonts como <link> no <head>, e uma folha de estilo de
   terceiros bloqueia o render: o browser tinha de resolver DNS, negociar TLS e
   descarregar o CSS noutro domínio antes de pintar o primeiro pixel. Media-se
   nos números: o FCP era 2,84–2,89 s nas cinco páginas medidas, praticamente
   igual independentemente do conteúdo — um custo que não vinha da página.

   O ficheiro é o mesmo para os quatro pesos porque o Inter é hoje uma fonte
   variável. Daí `font-weight: 100 900`: um só woff2 por subconjunto cobre o
   400, o 500, o 600 e o 700, e são 133 KB em vez dos 534 KB que quatro cópias
   do mesmo ficheiro custariam.

   `swap` para que o texto apareça imediatamente na fonte do sistema e troque
   quando o Inter chegar — nunca há um período de texto invisível.
   --------------------------------------------------------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Outfit carrega os títulos (Design System Atypical: display/h1–h3). Mesmo esquema do
   Inter: fonte variável, um woff2 por subconjunto cobre 500–700, servida por nós. */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono: só para rótulos técnicos (eyebrows, URLs, referências). Um woff2 variável
   por subconjunto cobre 400 e 500. */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Paleta do Design System Atypical (APPLYATYPICALDESIGN.md). Os HSL abaixo são conversões
   exatas dos hex do documento — ink #395061, accent #17739F (light) / #6FC2EA (dark),
   neutros com viés ~205°. Cada token existe nos DOIS temas; um componente nunca nomeia cor. */
:root {
  --background: 0 0% 100%;              /* page  #FFFFFF (v1.1: página branca, cards com borda + sombra) */
  --foreground: 205.5 26% 30.2%;        /* ink   #395061 */
  --card: 0 0% 100%;                    /* surface #FFFFFF */
  --card-foreground: 205.5 26% 30.2%;
  --popover: 0 0% 100%;                 /* raised #FFFFFF */
  --popover-foreground: 205.5 26% 30.2%;
  --primary: 199.4 74.7% 35.7%;         /* accent #17739F */
  --primary-foreground: 0 0% 100%;      /* #FFFFFF */
  --secondary: 205.7 33.3% 95.9%;       /* sunken #F1F5F8 */
  --secondary-foreground: 205.5 26% 30.2%;
  --muted: 205.7 33.3% 95.9%;           /* #F1F5F8 */
  --muted-foreground: 207.6 17.9% 40.6%; /* #55697A */
  --accent: 203.3 60% 94.1%;            /* accent-quiet #E7F2F9 */
  --accent-foreground: 199.4 74.7% 35.7%;
  --destructive: 3 54.3% 49.8%;         /* danger #C4413A */
  --destructive-foreground: 0 0% 100%;
  --border: 208.2 25.4% 86.9%;          /* hairline #D5DEE6 */
  --input: 207.5 20.7% 77.3%;           /* border-strong #B9C6D1 */
  --ring: 199.4 74.7% 35.7%;            /* accent #17739F */
  --radius: 0.625rem;                   /* md 10px */

  /* Elevação (design system: borda primeiro, sombra depois). Sombra tingida do ink
     #111A21 em vez de preto puro, para ficar na mesma família da paleta. */
  --shadow-1: 0 1px 2px rgb(27 39 49 / 0.06), 0 1px 3px rgb(27 39 49 / 0.08);
  --shadow-2: 0 2px 4px -1px rgb(27 39 49 / 0.06), 0 4px 10px -2px rgb(27 39 49 / 0.08);
  --shadow-3: 0 4px 8px -2px rgb(27 39 49 / 0.08), 0 12px 24px -6px rgb(27 39 49 / 0.12);

  /* v1.1 — destaque (um bloco navy por tela: hero ou banda final) e tinta de erro AA. */
  --emphasis: 201.5 69.1% 19%;          /* #0F3A52 */
  --emphasis-foreground: 0 0% 100%;
  --danger-ink: 2.9 58.5% 41.6%;        /* #A8322C */

  /* Movimento (BLOG-69). As durações são as do design system; as curvas de entrada e de
     movimento na tela são as fortes do Emil Kowalski, porque as nativas do CSS são fracas
     demais e ease-in deixa a interface lenta. Componentes leem estes nomes, nunca um valor. */
  --at-duration-fast: 120ms;            /* cor, borda, hover */
  --at-duration-press: 160ms;           /* resposta ao clique */
  --at-duration-base: 180ms;            /* menus, acordeões */
  --at-duration-slow: 240ms;            /* painéis, diálogos */
  --at-ease-out: cubic-bezier(0.23, 1, 0.32, 1);     /* entrar, responder */
  --at-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); /* mover na tela */

  /* v1.1 — tokens at-* em hex, a camada que os componentes novos leem. Estados
     (success/warning/danger/info) dizem "como está"; matizes dizem "quem/qual". */
  --at-success: #17876A; --at-success-bg: #E3F3EE; --at-success-ink: #0E7259;
  --at-warning: #A96B00; --at-warning-bg: #FBF0DC; --at-warning-ink: #8A5A00;
  --at-danger: #C4413A;  --at-danger-bg: #FBE9E7;  --at-danger-ink: #A8322C;
  --at-info: #17739F;    --at-info-bg: #E7F2F9;    --at-info-ink: #135F84;
  --at-hue-sky: #57B4E3;    --at-hue-sky-tint: #E7F2F9;    --at-hue-sky-ink: #135F84;
  --at-hue-blue: #2F6586;   --at-hue-blue-tint: #E3EDF4;   --at-hue-blue-ink: #24506B;
  --at-hue-teal: #20A99B;   --at-hue-teal-tint: #DDF3F0;   --at-hue-teal-ink: #0D6359;
  --at-hue-indigo: #6D8EEA; --at-hue-indigo-tint: #E9EEFC; --at-hue-indigo-ink: #3A50A8;
  --at-hue-violet: #8B78D8; --at-hue-violet-tint: #F0EDFF; --at-hue-violet-ink: #5A49A5;
  --at-hue-coral: #F08057;  --at-hue-coral-tint: #FDEBE4;  --at-hue-coral-ink: #9A4222;
}

.dark {
  --background: 206.2 32% 9.8%;         /* page  #111A21 */
  --foreground: 205 33.3% 92.9%;        /* text  #E7EEF3 */
  --card: 205.7 30.4% 13.5%;            /* surface #18242D */
  --card-foreground: 205 33.3% 92.9%;
  --popover: 205.4 29.5% 17.3%;         /* raised #1F2E39 */
  --popover-foreground: 205 33.3% 92.9%;
  --primary: 199.5 74.5% 67.6%;         /* accent #6FC2EA */
  --primary-foreground: 206.2 32% 9.8%; /* inverte no dark: #111A21 */
  --secondary: 210 30.6% 19.2%;         /* inset #223140 */
  --secondary-foreground: 205 33.3% 92.9%;
  --muted-foreground: 205.5 20.8% 68.8%; /* #9FB2C0 */
  --accent: 201.8 37.9% 17.1%;          /* accent-quiet: sky a 14% sobre a page */
  --accent-foreground: 199.5 74.5% 67.6%;
  --destructive: 5.4 78.9% 72.2%;       /* danger #F08A80 */
  --destructive-foreground: 206.2 32% 9.8%; /* inverte no dark */
  --border: 205.2 26.1% 23.3%;          /* #2C3E4B */
  --input: 206.2 24.2% 31.6%;           /* border-strong #3D5364 */
  --ring: 199.5 74.5% 67.6%;
  --muted: 203.1 35.1% 7.3%;            /* sunken #0C1419 (v1.1) */

  --emphasis: 204 57.7% 20.4%;          /* #163A52 */
  --danger-ink: 5.4 78.9% 72.2%;        /* #F08A80 */
  --at-success: #4CC3A0; --at-success-bg: rgb(76 195 160 / .14); --at-success-ink: #4CC3A0;
  --at-warning: #E8A93C; --at-warning-bg: rgb(232 169 60 / .14); --at-warning-ink: #E8A93C;
  --at-danger: #F08A80;  --at-danger-bg: rgb(240 138 128 / .14); --at-danger-ink: #F08A80;
  --at-info: #6FC2EA;    --at-info-bg: rgb(87 180 227 / .14);    --at-info-ink: #6FC2EA;
  --at-hue-sky: #6FC2EA;    --at-hue-sky-tint: rgba(111,194,234,.16);  --at-hue-sky-ink: #A9DDF5;
  --at-hue-blue: #7FAED0;   --at-hue-blue-tint: rgba(127,174,208,.16); --at-hue-blue-ink: #B7D3E8;
  --at-hue-teal: #3CC7B8;   --at-hue-teal-tint: rgba(60,199,184,.16);  --at-hue-teal-ink: #8FE3D9;
  --at-hue-indigo: #8EA8F0; --at-hue-indigo-tint: rgba(142,168,240,.16); --at-hue-indigo-ink: #C3D0F8;
  --at-hue-violet: #A898EC; --at-hue-violet-tint: rgba(168,152,236,.16); --at-hue-violet-ink: #D2C9F8;
  --at-hue-coral: #F59A79;  --at-hue-coral-tint: rgba(245,154,121,.16);  --at-hue-coral-ink: #FAC6B2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9375rem; /* body 15/24 na escala do design system */
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* Escala tipográfica do design system: títulos em Outfit com tracking negativo;
   h4 fica em Inter 600, como o documento define. */
h1, h2, h3 {
  font-family: 'Outfit', 'Segoe UI', sans-serif;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h3 { letter-spacing: -0.01em; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* `<FocusOnNavigate Selector="h1">` no Routes.razor põe tabindex="-1" no título e foca-o,
   para que um leitor de ecrã anuncie a página nova. Com a home renderizada estaticamente
   isso passou a acontecer também no primeiro carregamento, e o Chromium desenhava um anel
   de foco azul à volta do <h1> — visível a cada visita.

   Só o anel é removido, não o foco: quem foi focado por código não chegou ali pelo teclado,
   então não precisa de ver onde está. Elementos realmente focáveis (tabindex >= 0, botões,
   links, campos) não são tocados por este seletor e mantêm o anel. */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* Container */
.container-x {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1rem;
  max-width: 1400px;
}
@media (min-width: 768px) { .container-x { padding-inline: 2rem; } }

/* Section */
.section { padding-block: 4rem; }
@media (min-width: 768px) { .section { padding-block: 6rem; } }
.section-muted { background: hsl(var(--muted)); }
/* Títulos à esquerda, na mesma margem do texto (BLOG-71): centrado em toda seção era o
   ritmo de template. A largura limitada mantém a linha legível. */
.section-title {
  font-size: 1.875rem; line-height: 1.2; font-weight: 700;
  max-width: 46rem; margin: 0 0 2.5rem;
}
@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }
.section-subtitle { color: hsl(var(--muted-foreground)); font-size: 1.0625rem; max-width: 42rem; margin: -1.5rem 0 2.5rem; }
/* Seções de texto corrido (o que é, porque não revendemos): a coluna fica na margem
   esquerda do container, não numa ilha centrada. */
.prose-left > * { max-width: 46rem; }

/* Grid helpers */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Buttons */
/* Botões: 38px de altura (design system), rótulo Inter 500 a 14px, radius md. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.5rem 1rem; height: 2.375rem;
  border-radius: var(--radius); font-weight: 500; font-size: 0.875rem;
  /* Propriedades explícitas, nunca `all`: o clique responde em 160ms e a cor em 120ms. */
  transition:
    transform var(--at-duration-press) var(--at-ease-out),
    background-color var(--at-duration-fast) ease,
    border-color var(--at-duration-fast) ease,
    color var(--at-duration-fast) ease;
  border: 1px solid transparent;
}
/* Anel de foco visível em tudo que é interativo: 2px de accent com 2px de offset.
   Campos de formulário têm o próprio halo (.input:focus) e não são afetados. */
:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
.btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn-outline { background: transparent; border-color: hsl(var(--input)); color: hsl(var(--foreground)); }
.btn-ghost { background: transparent; color: hsl(var(--foreground)); }
/* O botão confirma que ouviu o clique: encolhe 3% e volta. Sutil, porque se repete muito. */
.btn:active { transform: scale(0.97); }
/* Hover só com mouse: no toque, o :hover gruda depois do tap. */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: hsl(var(--primary) / 0.9); }
  .btn-outline:hover, .btn-ghost:hover { background: hsl(var(--accent)); }
}
/* Altura mínima, não fixa: em PT/ES o rótulo do CTA não cabe numa linha a 375px e
   transbordava do botão. O botão cresce com o rótulo (regra do design system). */
.btn-lg { height: auto; min-height: 3rem; padding: 0.5rem 2rem; font-size: 1.125rem; text-align: center; }
/* "sm" encolhe o padding, não a altura: 38px é o alvo mínimo de clique. */
.btn-sm { height: 2.375rem; padding: 0 0.75rem; font-size: 0.8125rem; }
.btn-icon { width: 2.375rem; padding: 0; }
.btn-block { width: 100%; }

/* Cards */
.card-x {
  background: hsl(var(--card)); color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
}
.card-body { padding: 1.5rem; }
.card-x { box-shadow: var(--shadow-1); }
/* O card não sobe nem acende: só a borda muda de cor. Hover se vê dezenas de vezes por
   visita, então o movimento fica no mínimo. */
.card-hover { transition: border-color var(--at-duration-fast) ease; }
@media (hover: hover) and (pointer: fine) {
  .card-hover:hover { border-color: hsl(var(--primary) / 0.5); }
}

/* Inputs */
.input, .textarea, .select-x {
  display: block; width: 100%;
  background: transparent; color: hsl(var(--foreground));
  border: 1px solid hsl(var(--input));
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem; font-size: 0.875rem;
  transition: border-color 150ms, box-shadow 150ms;
}
.input:focus, .textarea:focus, .select-x:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}
.textarea { min-height: 6rem; resize: vertical; }
.label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; }
/* Campo inválido: a borda muda de cor mas o erro nunca é só cor — o texto sob o campo
   nomeia a correção (regra do design system). */
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: hsl(var(--destructive)); }
.field-error { margin: 0.375rem 0 0; font-size: 0.75rem; line-height: 1.4; color: hsl(var(--danger-ink)); }

/* Badges */
.badge {
  display: inline-flex; align-items: center;
  padding: 0.125rem 0.625rem; border-radius: 9999px;
  background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground));
  font-size: 0.75rem; font-weight: 500;
}

/* ============= Header ============= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: hsl(var(--background) / 0.95);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid hsl(var(--border));
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
@media (min-width: 768px) { .header-inner { height: 5rem; } }
.header-logo { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; color: hsl(var(--foreground)); display: inline-flex; align-items: center; }
.header-logo img { height: 40px; width: auto; display: block; }
/* Um asset por tema, em vez do filter invert que achatava as cores da marca: o light
   mostra o logo colorido de wordmark ink; o dark, a variante oficial de wordmark branco
   (logo_completo_vert_color_2). Cada tema esconde o logo do outro. */
.header-logo .logo-dark { display: none; }
.dark .header-logo .logo-light { display: none; }
.dark .header-logo .logo-dark { display: block; }
/* BLOG-71: cinco links e um botão cabem a partir de 1024px; abaixo disso, o menu. A página
   atual ganha a cor do texto e um traço por baixo, sem caixa de fundo. */
.header-nav { display: none; gap: 0.25rem; align-items: center; }
@media (min-width: 1024px) { .header-nav { display: flex; } }
.header-nav a.header-nav-link {
  position: relative; color: hsl(var(--muted-foreground)); padding: 0.5rem 0.75rem;
  font-size: 0.875rem; line-height: 1.25rem; white-space: nowrap;
  transition: color var(--at-duration-fast) var(--at-ease-out);
}
.header-nav a.header-nav-link[aria-current="page"] { color: hsl(var(--foreground)); }
.header-nav a.header-nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.125rem;
  height: 2px; border-radius: 1px; background: hsl(var(--primary));
}
@media (hover: hover) and (pointer: fine) {
  .header-nav a.header-nav-link:hover { color: hsl(var(--foreground)); }
}
.header-nav .header-cta { white-space: nowrap; margin-left: 0.75rem; }
.header-right { display: none; align-items: center; gap: 0.5rem; }
@media (min-width: 768px) { .header-right { display: flex; } }
/* Idioma em texto (EN · ES · PT · CA) no lugar das bandeiras: uma bandeira é um país, não
   uma língua, e quatro emojis coloridos eram o elemento mais barulhento do cabeçalho. */
.lang-flags { display: flex; gap: 0.125rem; align-items: center; font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; }
.lang-flags a {
  font-size: 0.75rem; line-height: 1; letter-spacing: 0.04em; text-decoration: none;
  color: hsl(var(--muted-foreground)); padding: 0.5rem 0.375rem; border-radius: var(--radius);
  transition: color var(--at-duration-fast) var(--at-ease-out);
}
.lang-flags a.active { color: hsl(var(--foreground)); font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .lang-flags a:hover { color: hsl(var(--foreground)); }
}
.theme-toggle { min-width: 2.375rem; min-height: 2.375rem; display: inline-flex; align-items: center; justify-content: center; padding: 0.375rem; border-radius: var(--radius); color: hsl(var(--muted-foreground)); }
.theme-toggle:hover { color: hsl(var(--foreground)); background: hsl(var(--accent)); }
.menu-btn { display: inline-flex; padding: 0.5rem; border-radius: var(--radius); }
@media (min-width: 1024px) { .menu-btn { display: none; } }

.mobile-menu {
  display: flex; flex-direction: column;
  background: hsl(var(--background));
  border-top: 1px solid hsl(var(--border));
  padding: 0.5rem 0;
}
.mobile-menu button, .mobile-menu > a { display: block; padding: 0.75rem 1rem; text-align: left; color: hsl(var(--foreground)); text-decoration: none; }
.mobile-menu button:hover, .mobile-menu > a:hover { background: hsl(var(--accent)); }
.mobile-menu .lang-row { display: flex; gap: 0.5rem; padding: 0.75rem 1rem; border-top: 1px solid hsl(var(--border)); }
/* O CTA de agendamento no menu mobile: destacado dos itens de navegação. */
.mobile-menu .mobile-menu-cta {
  margin: 0.5rem 1rem;
  padding: 0.625rem 1rem;
  text-align: center;
  border-radius: var(--radius);
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 500;
}
.mobile-menu .mobile-menu-cta:hover { background: hsl(var(--primary) / 0.9); }

/* ============= Hero ============= */
/* v1.1: o hero é o bloco de destaque da página (navy, --emphasis), não mais o azul accent.
   O badge deixa a caixa alta: maiúsculas ficam só para o rótulo de 11px. */
/* O hero de imagem stock desfocada + overlay saiu; este é o padrão do /ai (fundo de
   accent, texto claro), agora global porque a home e as landings partilham a estética.
   Também levou consigo o hero-banner.jpg — o hero pesa zero bytes de asset. */
/* BLOG-69: o hero deixou de ser bloco navy. A página é branca (design system v1.1) e a
   única ênfase navy é a faixa final de CTA. */
.hero-dark {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  padding: 8rem 0 4rem;
}
@media (min-width: 768px) { .hero-dark { padding: 10rem 0 5rem; } }
.hero-dark-inner { max-width: 52rem; }
/* Home (BLOG-70): texto à esquerda, cena à direita a partir de 1024px; embaixo no mobile. */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3.5rem; } }
.hero-copy { min-width: 0; }
/* Linha de prova em mono, sem pílula nem ponto pulsando. */
.hero-badge {
  display: block;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.25rem;
}
.hero-dark h1 {
  font-size: 2.25rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 1.25rem; max-width: 44rem;
}
@media (min-width: 768px) { .hero-dark h1 { font-size: 3.25rem; } }
.hero-dark p {
  font-size: 1.125rem; line-height: 1.6;
  color: hsl(var(--muted-foreground));
  max-width: 40rem; margin: 0 0 2rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
/* Mais específico que `.hero-dark p` para vencer sem !important. */
.hero-dark .hero-footnote { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); margin: 0; max-width: none; }

/* ============= Números (livro-razão, BLOG-70) ============= */
.stats-section { padding-block: 1rem 3rem; }
.ledger { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 2rem; margin: 0; }
@media (min-width: 768px) { .ledger { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* column-reverse inverte o eixo: flex-end segura valor e rótulo no topo quando os
   rótulos de uma linha têm alturas diferentes. */
.ledger-row { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.25rem; padding-block: 1rem; border-top: 1px solid hsl(var(--border)); }
.ledger-value {
  margin: 0; font-family: 'Outfit', 'Segoe UI', sans-serif; font-weight: 600;
  font-size: 1.75rem; line-height: 1.15; letter-spacing: -0.01em; color: hsl(var(--foreground));
  font-variant-numeric: tabular-nums;
}
.ledger-label { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
/* ============= Split de problema (kicker+título | prosa) ============= */
.split-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (min-width: 1024px) { .split-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; } }
.split-2-title { font-size: 1.875rem; font-weight: 700; line-height: 1.2; margin: 0; }
@media (min-width: 768px) { .split-2-title { font-size: 2.25rem; } }
.split-2-p { font-size: 1.0625rem; line-height: 1.7; margin: 0 0 1.25rem; }
.split-2-p:last-child { margin-bottom: 0; }

.trust-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; }
/* O SVG da Stacksync é escuro sobre transparente: sem isto some no tema escuro. */
.dark .trust-logos img[src*="stacksync"] { filter: brightness(0) invert(1); opacity: 0.85; }


/* ============= Página institucional ============= */
.about-partner-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.about-company {
  max-width: 44rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 2rem;
}
.about-company-title { font-size: 1.25rem; font-weight: 600; margin: 0 0 0.5rem; }
/* Rótulo à esquerda, valor à direita a partir do tablet; empilhado no telemóvel, onde
   duas colunas obrigariam o endereço a quebrar em quatro linhas. */
.about-company-dl { display: grid; grid-template-columns: 1fr; gap: 0.25rem 1.5rem; margin: 1.5rem 0 0; }
@media (min-width: 640px) { .about-company-dl { grid-template-columns: auto 1fr; } }
.about-company-dl dt {
  font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: hsl(var(--muted-foreground));
  padding-top: 0.5rem;
}
.about-company-dl dd { margin: 0 0 0.75rem; font-size: 0.9375rem; }
@media (min-width: 640px) { .about-company-dl dd { padding-top: 0.4rem; margin-bottom: 0.5rem; } }
.about-company-dl dd:last-child { margin-bottom: 0; }
.about-company-dl a { color: hsl(var(--primary)); text-decoration: underline; }

/* ============= Banda final de CTA ============= */
.cta-band {
  background: hsl(var(--emphasis)); color: hsl(var(--emphasis-foreground));
  border-radius: 1rem; padding: 3rem 2rem;
}
@media (min-width: 768px) { .cta-band { padding: 4rem 3rem; } }
/* Descendente, e não `.cta-band-kicker` sozinho: `.kicker` é declarado mais abaixo neste
   ficheiro e, com a mesma especificidade, ganhava por ordem — o rótulo saía em
   muted-foreground sobre o fundo de accent, ou seja, quase invisível. */
.cta-band .cta-band-kicker { color: hsl(var(--emphasis-foreground) / 0.75); }
.cta-band-title { font-size: 1.875rem; font-weight: 700; line-height: 1.2; margin: 0 0 1rem; }
@media (min-width: 768px) { .cta-band-title { font-size: 2.25rem; } }
.cta-band-subtitle {
  color: hsl(var(--emphasis-foreground) / 0.85);
  max-width: 40rem; margin: 0 0 2rem;
  font-size: 1.0625rem; line-height: 1.6;
}
.cta-band-btn { background: hsl(var(--emphasis-foreground)); color: hsl(var(--emphasis)); }
@media (hover: hover) and (pointer: fine) {
  .cta-band-btn:hover { background: hsl(var(--emphasis-foreground) / 0.9); }
}
.cta-band-footnote { font-size: 0.8125rem; color: hsl(var(--emphasis-foreground) / 0.6); margin: 1.25rem 0 0; }

/* ============= FAQ ============= */
.faq-card h3 { font-size: 1.125rem; font-weight: 600; margin: 0 0 0.75rem; }
.faq-card p { color: hsl(var(--muted-foreground)); margin: 0; font-size: 0.9375rem; }

/* FAQ em acordeão, para as páginas de integração publicadas pela API. <details> nativo: abre
   sem JavaScript numa página estática, e as respostas continuam no HTML que o crawler lê. */
.faq-accordion { max-width: 48rem; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-accordion-item {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: 0.75rem; padding: 0 1.25rem;
}
.faq-accordion-item summary {
  cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; position: relative;
  font-weight: 600; font-size: 1.0625rem;
}
.faq-accordion-item summary::-webkit-details-marker { display: none; }
.faq-accordion-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.25rem; color: hsl(var(--primary));
}
.faq-accordion-item[open] summary::after { content: "−"; }
.faq-accordion-item summary:focus-visible { outline: 2px solid hsl(var(--primary)); outline-offset: 2px; border-radius: 0.25rem; }
.faq-accordion-item p { color: hsl(var(--muted-foreground)); margin: 0 0 1rem; font-size: 0.9375rem; line-height: 1.6; }

/* O primeiro parágrafo do corpo de uma página de integração, mostrado no hero. */
.integration-intro p {
  font-size: 1.125rem; color: hsl(var(--muted-foreground));
  max-width: 42rem; margin: 0 auto 2rem;
}
.integration-intro a { color: hsl(var(--primary)); text-decoration: underline; }

/* ============= Contact ============= */
.contact-grid { display: grid; gap: 2rem; max-width: 64rem; margin: 0 auto; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info-row { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon {
  flex-shrink: 0;
  width: 3rem; height: 3rem; border-radius: 9999px;
  background: hsl(var(--primary) / 0.1); color: hsl(var(--primary));
  display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 1.5rem; height: 1.5rem; }
.contact-info-row .label-sm { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: hsl(var(--muted-foreground)); margin: 0 0 0.125rem; }
.contact-info-row .value { font-weight: 500; margin: 0; }

/* ============= Footer ============= */
.footer { background: hsl(var(--card)); border-top: 1px solid hsl(var(--border)); padding-block: 3rem; margin-top: 0; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer h4 { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 0.75rem; }
.footer p, .footer a, .footer button { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.footer button { display: block; padding: 0.25rem 0; }
.footer-links a { display: block; padding: 0.25rem 0; text-decoration: none; }
.footer button:hover, .footer a:hover { color: hsl(var(--foreground)); }
.footer-socials { display: flex; gap: 0.75rem; }
.footer-socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 9999px;
  background: hsl(var(--muted)); color: hsl(var(--muted-foreground));
  transition: background-color var(--at-duration-fast) ease, color var(--at-duration-fast) ease;
}
.footer-socials a:hover { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.footer-bottom {
  border-top: 1px solid hsl(var(--border)); margin-top: 2rem; padding-top: 1.5rem;
  text-align: center; font-size: 0.875rem; color: hsl(var(--muted-foreground));
}
.footer-bottom p { margin: 0; }
/* The LSSI identifying line: smaller and dimmer than the copyright, present but not shouting. */
.footer-legal-id { margin-top: 0.5rem; font-size: 0.8125rem; opacity: 0.85; }

/* ============= Page (blog/post) ============= */
.page-with-fixed-header { padding-top: 5rem; }
@media (min-width: 768px) { .page-with-fixed-header { padding-top: 6rem; } }

.blog-card { overflow: hidden; }
.blog-card .img-wrap { aspect-ratio: 16/9; overflow: hidden; background: hsl(var(--muted)); }
.blog-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.blog-card h3 {
  font-size: 1.125rem; font-weight: 600; margin: 0.75rem 0 0.5rem;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card .excerpt {
  color: hsl(var(--muted-foreground)); font-size: 0.875rem; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.search-row { display: flex; flex-wrap: wrap; gap: 0.75rem; max-width: 42rem; margin: 0 0 2rem; }
.search-row .with-icon { position: relative; flex: 1 1 auto; min-width: 200px; }
.search-row .with-icon svg { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: hsl(var(--muted-foreground)); }
.search-row .with-icon input { padding-left: 2.5rem; }
.search-row select { width: 100%; max-width: 12rem; }
/* O seletor de quantidade é o mais curto dos três controlos e o menos importante:
   fica com a largura do seu conteúdo e cede o espaço à busca, que é quem cresce. */
.search-row .select-narrow { max-width: 8rem; flex: 0 0 auto; }

/* Markdown content */
/* Artigo
   Duas medidas: a prosa fica numa largura confortável de leitura, e os elementos que
   ganham com espaço — tabelas, blocos de código, imagens — usam a largura cheia do
   artigo. Alinhados pela esquerda, então a diferença lê como intencional. */
.article { --prose: 46rem; max-width: 60rem; margin-inline: auto; }
.article-head { max-width: var(--prose); }
/* Capa do artigo em proporção natural. Antes era aspect-ratio:16/9 + object-fit:cover,
   que recortava as laterais: as capas são ~1.9:1, e nas que são diagrama o recorte
   cortava texto do próprio diagrama. Os atributos width/height no <img> reservam o
   espaço e evitam deslocamento de layout. */
.article-cover {
  width: 100%; height: auto;
  border-radius: var(--radius); margin-bottom: 1.5rem;
}
.article-title { font-size: clamp(1.75rem, 1.25rem + 2vw, 2.5rem); line-height: 1.15; margin: 0.75rem 0 0.5rem; }
.article-footer { max-width: var(--prose); }
.article-comments { --prose: 46rem; max-width: 60rem; margin-inline: auto; }
.article-comments > * { max-width: var(--prose); }

/* Approved comments render as highlighted cards: a muted tint plus a primary left
   accent bar so they stand out from the page in both light and dark themes (in dark,
   --card equals --background, so a plain card would not read as distinct). */
.comment-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.comment {
  display: flex;
  gap: 0.875rem;
  background: hsl(var(--muted) / 0.3);
  border: 1px solid hsl(var(--border));
  border-left: 3px solid hsl(var(--primary));
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.comment-avatar {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
}
.comment-content { flex: 1 1 auto; min-width: 0; }
.comment-head { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.35rem; }
.comment-author { font-weight: 600; }
.comment-body { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }

.content-html {
  line-height: 1.7;
  /* A seção de fontes lista URLs cruas, que o autolink do Markdig transforma em <a>.
     São tokens sem ponto de quebra: sem isto, uma URL longa empurra a página inteira
     para o lado no mobile — 880px de scrollWidth num viewport de 390px. */
  overflow-wrap: break-word;
}
.content-html a { overflow-wrap: anywhere; }
.content-html > p,
.content-html > ul,
.content-html > ol,
.content-html > h2,
.content-html > h3,
.content-html > h4,
.content-html > blockquote { max-width: var(--prose, 46rem); }
.content-html h2 { margin-top: 2rem; }
.content-html h3 { margin-top: 1.5rem; }
.content-html pre { background: hsl(var(--muted)); padding: 1rem; border-radius: var(--radius); overflow-x: auto; }
.content-html code { background: hsl(var(--muted)); padding: 0.125rem 0.375rem; border-radius: 0.25rem; font-size: 0.875em; }
.content-html pre code { background: transparent; padding: 0; }
.content-html blockquote { border-left: 3px solid hsl(var(--border)); padding-left: 1rem; color: hsl(var(--muted-foreground)); margin-inline: 0; }
.content-html a { color: hsl(var(--primary)); text-decoration: underline; }
.content-html img { border-radius: var(--radius); margin: 1.5rem 0; }

/* Tabelas de conteúdo
   O markdown não tinha estilo algum aqui — saía com o default do browser, sem borda
   nem padding. O contêiner rolável vem do MarkdownRenderer.WrapTables. */
.table-scroll {
  margin: 1.75rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* Evita que o swipe horizontal na tabela vire o gesto de "voltar" do navegador. */
  overscroll-behavior-x: contain;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
}
.content-html table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.55;
  /* Faz a tabela rolar dentro do contêiner em vez de esmagar as colunas no mobile. */
  min-width: 36rem;
}
.content-html thead th {
  background: hsl(var(--muted));
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.content-html th,
.content-html td {
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid hsl(var(--border));
  vertical-align: top;
}
.content-html thead th + th,
.content-html tbody td + td { border-left: 1px solid hsl(var(--border)); }
.content-html tbody tr:nth-child(even) { background: hsl(var(--muted) / 0.35); }
.content-html tbody tr:last-child td { border-bottom: 0; }
.content-html table code { white-space: nowrap; }

@media (max-width: 640px) {
  .content-html table { font-size: 0.875rem; min-width: 30rem; }
  .content-html th, .content-html td { padding: 0.5rem 0.625rem; }
}

/* Toast */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 100;
  background: hsl(var(--card)); color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  padding: 0.75rem 1rem; box-shadow: var(--shadow-3);
  max-width: 24rem;
}
.toast.error { border-color: hsl(var(--destructive)); }

/* Pagination */
.pagination { display: flex; gap: 0.25rem; margin-top: 2rem; }
/* <a> para as páginas e <span> para a atual e para as pontas — eram <button>, que
   nenhum crawler segue. O inline-flex repõe a centragem que o botão dava de graça. */
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.375rem; height: 2.375rem; padding: 0 0.75rem;
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  background: hsl(var(--background));
  color: inherit; text-decoration: none;
}
.pagination .active { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: hsl(var(--primary)); }
.pagination .disabled { opacity: 0.5; cursor: not-allowed; }

/* Utils */
/* Rótulo de seção em caps (o "label" da escala tipográfica). Antes era o mesmo
   style= inline repetido em cada página; agora as páginas só dizem o quê, não o como. */
.kicker {
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: hsl(var(--muted-foreground));
  margin: 0 0 0.75rem;
}
.kicker-loose { margin-bottom: 1.5rem; }
.text-muted-fg { color: hsl(var(--muted-foreground)); }
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.flex { display: flex; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.hidden { display: none; }
.block { display: block; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

.blazor-error-boundary {
  background: hsl(var(--destructive)); color: hsl(var(--destructive-foreground));
  padding: 1rem; border-radius: var(--radius);
}
.blazor-error-boundary::after { content: "An error has occurred."; }

/* ============= Oferta de idioma ============= */
/* Fixa no rodapé, e não no topo em fluxo, por dois motivos aprendidos em produção:
   o `.header` é `position: fixed` e cobria a faixa por inteiro, e estando no fluxo ela
   empurrava o `main` 38px para baixo enquanto o header ficava pinado — conteúdo
   desalinhado e faixa invisível. Fora do fluxo não empurra nada e não disputa espaço
   com o header nem com o `.celigo-topbar` do BareLayout. */
.lang-offer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: hsl(var(--accent));
  border-top: 1px solid hsl(var(--border));
  box-shadow: 0 -1px 4px rgb(17 26 33 / 0.06);
  font-size: 0.875rem;
}
.lang-offer-inner {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem 1rem; min-height: 2.25rem;
}
.lang-offer a { color: hsl(var(--foreground)); text-decoration: none; font-weight: 500; }
.lang-offer a:hover { text-decoration: underline; }
.lang-offer a.lang-offer-dismiss {
  margin-left: auto; padding: 0.125rem 0.5rem; border-radius: var(--radius);
  color: hsl(var(--muted-foreground)); font-weight: 400; line-height: 1;
}
.lang-offer a.lang-offer-dismiss:hover {
  color: hsl(var(--foreground)); background: hsl(var(--background)); text-decoration: none;
}

/* Cookie consent banner. Built by analytics.js rather than by a component, so these classes
   are referenced only from there — see the comment at the top of that file for why. */
.consent-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: hsl(var(--background));
  border-top: 1px solid hsl(var(--border));
  box-shadow: 0 -1px 6px rgb(17 26 33 / 0.08);
  font-size: 0.875rem;
}
.consent-banner-text { margin: 0; flex: 1 1 20rem; color: hsl(var(--muted-foreground)); }
.consent-banner-link { color: hsl(var(--primary)); text-decoration: underline; }
.consent-banner-actions { display: flex; gap: 0.5rem; margin-left: auto; }

/* Medido num viewport de 390x844: a faixa ocupava 165px, ou 19,5% do primeiro ecrã. Tipo a
   13px e alturas mais justas põem-na em 138px (16,4%) — os botões passam a dividir a largura
   em vez de ficarem numa linha própria. O texto não é tocado, e o botão de recusar mantém o
   mesmo peso visual do de aceitar, como a AEPD exige. O ganho maior está na regra abaixo:
   era a sobreposição com a oferta de idioma que fazia as duas somarem quase um terço do ecrã. */
@media (max-width: 640px) {
  .consent-banner { padding: 0.625rem 0.875rem; gap: 0.5rem; font-size: 0.8125rem; line-height: 1.45; }
  .consent-banner-text { flex: 1 1 100%; }
  .consent-banner-actions { width: 100%; margin-left: 0; }
  .consent-banner-actions .btn { flex: 1 1 0; height: 2.125rem; }
}

/* Uma só barra fixa no fundo: com a de cookies aberta, a oferta de idioma sai da frente
   (a classe vem do analytics.js, que é quem constrói a faixa de consentimento). */
.has-consent-banner .lang-offer { display: none; }

/* Consent checkbox on the contact and comment forms.
   The box keeps its native size so the affordance is obvious and the hit target is real;
   the label sits beside it and the informational note underneath in muted, smaller type. */
.consent-field { margin-bottom: 1rem; }
.consent-check { display: flex; align-items: flex-start; gap: 0.5rem; cursor: pointer; font-size: 0.875rem; line-height: 1.4; }
.consent-check input[type="checkbox"] { margin-top: 0.15rem; flex: 0 0 auto; width: 1rem; height: 1rem; }
.consent-check a { color: hsl(var(--primary)); text-decoration: underline; }
.consent-note { margin: 0.5rem 0 0; font-size: 0.75rem; line-height: 1.5; color: hsl(var(--muted-foreground)); }

/* Legal pages: a readable measure, a table that scrolls on small screens, and a linked
   table of contents. Kept token-driven so it inverts with the dark theme like everything else. */
.legal-container { padding-block: 3rem 4rem; }
.legal-page { max-width: 52rem; margin: 0 auto; }
.legal-header h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.75rem; }
.legal-summary { color: hsl(var(--muted-foreground)); font-size: 1.05rem; line-height: 1.6; margin: 0 0 0.5rem; }
.legal-updated { color: hsl(var(--muted-foreground)); font-size: 0.8125rem; margin: 0 0 2rem; }
.legal-toc {
  background: hsl(var(--muted) / 0.4); border: 1px solid hsl(var(--border));
  border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 2.5rem;
}
.legal-toc ol { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.35rem; }
.legal-toc a { color: hsl(var(--primary)); text-decoration: none; font-size: 0.9rem; }
.legal-toc a:hover { text-decoration: underline; }
.legal-section { margin-bottom: 2.5rem; scroll-margin-top: 5rem; }
.legal-section h2 { font-size: 1.25rem; margin: 0 0 0.75rem; }
.legal-section-number { color: hsl(var(--muted-foreground)); font-weight: 600; margin-right: 0.25rem; }
.legal-section p { line-height: 1.7; margin: 0 0 0.75rem; }
.legal-section a { color: hsl(var(--primary)); text-decoration: underline; }
.legal-list { margin: 0 0 0.75rem; padding-left: 1.25rem; display: grid; gap: 0.4rem; line-height: 1.6; }
.legal-table-wrap { overflow-x: auto; margin: 0.5rem 0 0.75rem; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 30rem; }
.legal-table th, .legal-table td {
  border: 1px solid hsl(var(--border)); padding: 0.6rem 0.75rem; text-align: left; vertical-align: top;
}
.legal-table thead th { background: hsl(var(--muted) / 0.5); font-weight: 600; }
.legal-table th[scope="row"] { font-weight: 600; white-space: nowrap; }


/* =========================================================
   v1.1 — componentes do admin: StatusPill e MetricCard
   Status = ponto redondo + palavra na tinta "ink" (AA). Neutro para rascunho/arquivado.
   ========================================================= */
.status-pill {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.1875rem 0.625rem 0.1875rem 0.5rem; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 600; line-height: 1.25; white-space: nowrap;
  background: hsl(var(--muted)); color: hsl(var(--muted-foreground));
}
.status-pill::before {
  content: ""; width: 0.4375rem; height: 0.4375rem; border-radius: 50%;
  border: 1.5px solid currentColor; box-sizing: border-box;
}
.status-pill-success { background: var(--at-success-bg); color: var(--at-success-ink); }
.status-pill-success::before { background: var(--at-success); border-color: var(--at-success); }
.status-pill-info { background: var(--at-info-bg); color: var(--at-info-ink); }
.status-pill-info::before { background: var(--at-info); border-color: var(--at-info); }

.metric-card {
  background: hsl(var(--card)); color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  box-shadow: var(--shadow-1); padding: 0.875rem 1rem;
}
.metric-card-title { margin: 0 0 0.25rem; font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.metric-card-value {
  margin: 0; font-family: 'Outfit', 'Segoe UI', sans-serif; font-weight: 600;
  font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}
/* Um card de destaque por tela: o número que responde à pergunta principal. */
.metric-card-emphasis { background: hsl(var(--emphasis)); border-color: hsl(var(--emphasis)); color: hsl(var(--emphasis-foreground)); }
.metric-card-emphasis .metric-card-title { color: hsl(var(--emphasis-foreground) / 0.75); }


/* Rótulos técnicos em mono: o kicker compartilhado e o .eyebrow do bento. */
.kicker, .eyebrow { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; }
.eyebrow {
  display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.625rem;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

/* Matiz de identidade: quatro variáveis por classe, nunca hex solto num componente. */
.hue-sky    { --h: var(--at-hue-sky);    --h-tint: var(--at-hue-sky-tint);    --h-ink: var(--at-hue-sky-ink); }
.hue-blue   { --h: var(--at-hue-blue);   --h-tint: var(--at-hue-blue-tint);   --h-ink: var(--at-hue-blue-ink); }
.hue-teal   { --h: var(--at-hue-teal);   --h-tint: var(--at-hue-teal-tint);   --h-ink: var(--at-hue-teal-ink); }
.hue-indigo { --h: var(--at-hue-indigo); --h-tint: var(--at-hue-indigo-tint); --h-ink: var(--at-hue-indigo-ink); }
.hue-violet { --h: var(--at-hue-violet); --h-tint: var(--at-hue-violet-tint); --h-ink: var(--at-hue-violet-ink); }
.hue-coral  { --h: var(--at-hue-coral);  --h-tint: var(--at-hue-coral-tint);  --h-ink: var(--at-hue-coral-ink); }

@media (hover: hover) and (pointer: fine) {
  .app-card:hover { border-color: var(--h); }
}
.app-card .icon-tile { width: 2.75rem; height: 2.75rem; }
.chip-hue {
  display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.125rem 0.5625rem;
  border-radius: 9999px; font-size: 0.71875rem; font-weight: 500;
  background: var(--h-tint); color: var(--h-ink);
}
.chip-hue::before { content: ""; width: 0.375rem; height: 0.375rem; border-radius: 2px; background: var(--h); }

/* Menos movimento, não zero: cor e opacidade continuam; o que desloca ou escala sai. */
@media (prefers-reduced-motion: reduce) {
  .btn { transition: background-color var(--at-duration-fast) ease, border-color var(--at-duration-fast) ease, color var(--at-duration-fast) ease; }
  .btn:active { transform: none; }
}


/* =========================================================
   Home (BLOG-70). Blocos novos da home: cabeçalho de seção à esquerda, a cena do hero,
   faixa de logos, CSV do problema, serviços em lista, linha do tempo, compromissos e
   FAQ em <details>. Movimento: só a cena e a linha do tempo, uma vez; o resto responde
   ao usuário em 120–180ms.
   ========================================================= */

.section-head { display: grid; gap: 0.5rem; max-width: 46rem; margin: 0 0 2.5rem; }
.section-head .kicker { margin: 0; }
.section-head h2 { font-size: 1.875rem; font-weight: 700; line-height: 1.2; margin: 0; }
@media (min-width: 768px) { .section-head h2 { font-size: 2.25rem; } }
.section-head-sub { margin: 0.25rem 0 0; font-size: 1.0625rem; color: hsl(var(--muted-foreground)); }

/* Entrada do hero: uma vez por visita, CSS puro. O título lidera (12px), o resto sobrepõe
   com deslocamentos menores; os botões são clicáveis desde o primeiro frame. */
@keyframes hero-rise { from { opacity: 0; transform: translateY(var(--rise, 4px)); } }
@keyframes hero-fade { from { opacity: 0; } }
.hero-enter > * { animation: hero-rise 480ms var(--at-ease-out) both; }
.hero-enter > h1 { --rise: 12px; animation-duration: 560ms; animation-delay: 40ms; }
.hero-enter > p:not(.hero-footnote) { --rise: 8px; animation-delay: 110ms; }
.hero-enter > .hero-ctas { --rise: 6px; animation-delay: 160ms; }
.hero-enter > .hero-footnote { --rise: 0px; animation-delay: 190ms; }
.hero-scene-wrap { min-width: 0; animation: hero-fade 400ms var(--at-ease-out) 200ms both; }

/* A cena do pedido. Valores finais no CSS; o JS só anima entre eles. */
.hero-scene {
  position: relative; margin: 0; padding: 1rem; display: grid; gap: 0.75rem;
  background: hsl(var(--muted)); border: 1px solid hsl(var(--border)); border-radius: 1rem;
}
.hs-lanes { display: grid; grid-template-columns: minmax(0, 1fr) 3.25rem minmax(0, 1fr); gap: 0.75rem; align-items: center; }
.hs-rec {
  display: grid; gap: 0.375rem; min-width: 0; padding: 0.75rem 0.8125rem;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  box-shadow: var(--shadow-1); transition: border-color var(--at-duration-base) ease;
}
.hs-rec.is-hot { border-color: hsl(var(--primary)); }
.hs-src {
  display: flex; align-items: center; gap: 0.375rem;
  font: 500 0.6875rem/1.3 'JetBrains Mono', ui-monospace, Menlo, monospace;
  letter-spacing: 0.06em; text-transform: uppercase; color: hsl(var(--muted-foreground));
}
.hs-sq { width: 7px; height: 7px; border-radius: 2px; background: var(--h); flex: none; }
.hs-id { font: 500 0.875rem 'JetBrains Mono', ui-monospace, Menlo, monospace; color: hsl(var(--foreground)); }
.hs-row { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.hs-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-row b { font-weight: 500; color: hsl(var(--foreground)); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hs-f { display: inline-block; }
.hs-hub {
  justify-self: center; width: 3.25rem; height: 3.25rem; border-radius: 0.75rem;
  display: grid; place-items: center; background: hsl(var(--emphasis));
}
.hs-hub img { width: 26px; height: 26px; }
/* Status: palavra + ponto redondo (design system). Os dois ocupam a mesma célula para o
   crossfade não empurrar nada. */
.hs-pills { display: grid; justify-items: start; }
.hs-pills > * { grid-area: 1 / 1; }
.hs-pill {
  display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.125rem 0.5rem;
  border-radius: 9999px; font-size: 0.6875rem; font-weight: 500; white-space: nowrap;
}
.hs-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hs-pend { background: var(--at-warning-bg); color: var(--at-warning-ink); opacity: 0; }
.hs-ok { background: var(--at-success-bg); color: var(--at-success-ink); }
.hs-log {
  height: 4.4em; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 0.625rem; border-top: 1px solid hsl(var(--border));
  font: 400 0.6875rem/1.55 'JetBrains Mono', ui-monospace, Menlo, monospace; color: hsl(var(--muted-foreground));
}
.hs-log > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-okc { color: var(--at-success-ink); }
.hs-token {
  position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; opacity: 0;
  padding: 0.1875rem 0.5rem; border-radius: 9999px; white-space: nowrap;
  font: 500 0.6875rem 'JetBrains Mono', ui-monospace, Menlo, monospace;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); box-shadow: var(--shadow-3);
}
@media (max-width: 519.98px) {
  .hs-lanes { grid-template-columns: minmax(0, 1fr); }
  .hs-hub { width: 2.75rem; height: 2.75rem; }
}

/* Faixa de logos: parceiros em cor e clicáveis, tecnologias em cinza, mesma altura. */
.logo-strip-section { padding-block: 2.5rem; border-block: 1px solid hsl(var(--border)); }
@media (min-width: 768px) { .logo-strip-section { padding-block: 3rem; } }
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.25rem; }
.logo-strip img { height: 1.75rem; width: auto; max-width: 8rem; object-fit: contain; }
.logo-strip .logo-partner img, .logo-strip img.logo-partner { height: 2rem; }
.logo-strip-sep { width: 1px; height: 1.75rem; background: hsl(var(--border)); }
.logo-tech { filter: grayscale(1); opacity: 0.6; transition: opacity var(--at-duration-fast) ease, filter var(--at-duration-fast) ease; }
@media (hover: hover) and (pointer: fine) { .logo-tech:hover { filter: none; opacity: 1; } }
.dark .logo-strip img { filter: brightness(0) invert(1); opacity: 0.8; }
.dark .logo-strip img[src*="salesforce"], .dark .logo-strip img[src*="sap-"] { filter: none; opacity: 0.9; }

/* O CSV do problema: um recorte de planilha com as correções à mão marcadas. */
.csv-snippet {
  margin: 2rem 0 0; max-width: 28rem; overflow-x: auto;
  border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--card));
}
.csv-snippet figcaption {
  padding: 0.5rem 0.75rem; border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--muted));
  font: 400 0.75rem 'JetBrains Mono', ui-monospace, Menlo, monospace; color: hsl(var(--muted-foreground));
}
.csv-snippet table { width: 100%; border-collapse: collapse; font: 400 0.75rem/1.4 'JetBrains Mono', ui-monospace, Menlo, monospace; }
.csv-snippet th, .csv-snippet td { padding: 0.375rem 0.75rem; text-align: left; white-space: nowrap; border-top: 1px solid hsl(var(--border)); }
.csv-snippet th { border-top: 0; font-weight: 500; color: hsl(var(--muted-foreground)); }
.csv-snippet td { color: hsl(var(--foreground)); }
.csv-snippet .csv-fix { background: var(--at-hue-coral-tint); color: var(--at-hue-coral-ink); }
.csv-snippet .csv-miss { color: var(--at-danger-ink); }

/* Serviços em lista: a linha inteira é o link; o título muda de cor e a seta anda 3px. */
.service-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid hsl(var(--border)); }
.service-list > li { border-top: 1px solid hsl(var(--border)); }
.service-row {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem;
  padding-block: 1.5rem; color: inherit; text-decoration: none;
}
@media (min-width: 768px) { .service-row { grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; padding-block: 1.75rem; } }
.service-row-main { display: grid; gap: 0.5rem; min-width: 0; }
.service-row h3 { margin: 0; font-size: 1.25rem; font-weight: 600; transition: color var(--at-duration-fast) ease; }
.service-row-text { max-width: 44rem; color: hsl(var(--muted-foreground)); font-size: 0.9375rem; line-height: 1.6; }
.service-row-link { font-size: 0.875rem; font-weight: 600; color: hsl(var(--primary)); white-space: nowrap; }
.service-row-arrow { display: inline-block; transition: transform var(--at-duration-press) var(--at-ease-out); }
.chips { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.25rem; }
@media (hover: hover) and (pointer: fine) {
  .service-row:hover h3 { color: hsl(var(--primary)); }
  .service-row:hover .service-row-arrow { transform: translateX(3px); }
}

/* Linha do tempo do processo. Desenhada por padrão; .is-ready (JS) esconde até entrar na
   tela e .is-playing desenha uma vez. */
.timeline {
  position: relative; list-style: none; margin: 0; padding: 1.5rem 0 0;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem;
}
@media (min-width: 768px) { .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.timeline-line { display: none; }
@media (min-width: 768px) {
  .timeline-line { display: block; position: absolute; left: 0; right: 0; top: 0.3125rem; height: 2px; border-radius: 2px; background: hsl(var(--border)); overflow: hidden; }
  .timeline-line i { position: absolute; inset: 0; display: block; background: hsl(var(--primary)); transform-origin: left; }
}
.timeline-step { position: relative; display: grid; gap: 0.375rem; align-content: start; }
@media (min-width: 768px) {
  .timeline-step::before {
    content: ""; position: absolute; top: -1.5rem; left: 0; width: 12px; height: 12px; border-radius: 50%;
    background: hsl(var(--background)); border: 2px solid hsl(var(--primary));
  }
}
.timeline-when { font: 500 0.75rem 'JetBrains Mono', ui-monospace, Menlo, monospace; color: hsl(var(--primary)); letter-spacing: 0.02em; }
.timeline-step h3 { margin: 0; font-size: 1.125rem; font-weight: 600; }
.timeline-step p { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: hsl(var(--muted-foreground)); }
@keyframes timeline-draw { from { transform: scaleX(0); } }
@keyframes timeline-in { from { opacity: 0; transform: translateY(6px); } }
.timeline.is-ready:not(.is-playing) .timeline-line i { transform: scaleX(0); }
.timeline.is-ready:not(.is-playing) .timeline-step { opacity: 0; }
.timeline.is-playing .timeline-line i { animation: timeline-draw 700ms var(--at-ease-in-out) both; }
.timeline.is-playing .timeline-step { animation: timeline-in 400ms var(--at-ease-out) both; }
.timeline.is-playing .timeline-step:nth-child(2) { animation-delay: 120ms; }
.timeline.is-playing .timeline-step:nth-child(3) { animation-delay: 330ms; }
.timeline.is-playing .timeline-step:nth-child(4) { animation-delay: 520ms; }

/* Compromissos: texto num grid de linhas finas, sem ícones nem cards. */
.commitments { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 2.5rem; }
@media (min-width: 768px) { .commitments { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.commitment { display: grid; gap: 0.5rem; align-content: start; padding-block: 1.5rem; border-top: 1px solid hsl(var(--border)); }
.commitment h3 { margin: 0; font-size: 1.125rem; font-weight: 600; }
.commitment p { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: hsl(var(--muted-foreground)); }

/* FAQ: título à esquerda (fixo ao rolar no desktop), perguntas em <details> à direita. */
.faq-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 1024px) {
  .faq-split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 4rem; align-items: start; }
  .faq-head { position: sticky; top: 7rem; }
}
.faq-head { margin: 0; }
.faq-list { border-bottom: 1px solid hsl(var(--border)); }
.faq-item { border-top: 1px solid hsl(var(--border)); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-block: 1.125rem; cursor: pointer; list-style: none;
  font-family: 'Outfit', 'Segoe UI', sans-serif; font-size: 1.0625rem; font-weight: 600; color: hsl(var(--foreground));
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { flex: none; width: 1rem; height: 1rem; color: hsl(var(--muted-foreground)); transition: transform var(--at-duration-base) var(--at-ease-out); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item p { margin: 0; padding-bottom: 1.25rem; max-width: 44rem; font-size: 0.9375rem; line-height: 1.65; color: hsl(var(--muted-foreground)); }
/* Altura animada onde existe ::details-content: abre em 220ms, fecha em 160ms. */
@supports selector(::details-content) {
  .faq-item { interpolate-size: allow-keywords; }
  .faq-item::details-content {
    block-size: 0; overflow: hidden; opacity: 0;
    transition: block-size 160ms var(--at-ease-out), opacity 120ms ease, content-visibility 160ms allow-discrete;
  }
  .faq-item[open]::details-content { block-size: auto; opacity: 1; transition-duration: 220ms, 180ms, 220ms; }
}


@media (prefers-reduced-motion: reduce) {
  .hero-enter > *, .hero-scene-wrap { animation: hero-fade 200ms ease both; }
  .timeline.is-ready:not(.is-playing) .timeline-line i { transform: none; }
  .timeline.is-ready:not(.is-playing) .timeline-step { opacity: 1; }
  .timeline.is-playing .timeline-line i, .timeline.is-playing .timeline-step { animation: none; }
  .service-row-arrow, .faq-chevron { transition: none; }
  .faq-item::details-content { transition: none; }
}

/* ============= Landings de IA (/ai e /netsuite-ia) ============= */
/* Vinham de Ia.razor.css, que é CSS com escopo: só valia para Ia.razor. A /netsuite-ia usa
   as mesmas classes e ficava sem estilo nenhum (hero, rótulos, passos, tabela). Global,
   com o prefixo ai-, serve as duas (BLOG-71). */
/* ===== Shared kicker ===== */
.ai-kicker {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: hsl(var(--primary) / 0.8);
    margin: 0 0 0.75rem;
}

/* ===== Hero (BLOG-69: página branca; a ênfase navy fica só na faixa final) ===== */
.ai-hero {
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    padding: 6rem 0 4rem;
}

@media (min-width: 768px) {
    .ai-hero { padding: 8rem 0 5rem; }
}

.ai-hero-inner > * { max-width: 52rem; }

.ai-badge {
    font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
    display: inline-block;
    color: hsl(var(--muted-foreground));
    letter-spacing: 0.02em;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.ai-hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 1.25rem;
    max-width: 40rem;
}

@media (min-width: 768px) {
    .ai-hero h1 { font-size: 3.25rem; }
}

.ai-hero p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
    max-width: 38rem;
    margin: 0 0 2rem;
}

.ai-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ai-hero-footnote {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
}

/* ===== Stats ===== */
.ai-stats-section { padding-block: 3rem; }

/* Os números usam o livro-razão da home (.ledger, app.css). */

/* ===== Cost of silos (2-col) ===== */
.ai-cost {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .ai-cost { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.ai-cost-title {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

@media (min-width: 768px) {
    .ai-cost-title { font-size: 2.25rem; }
}

.ai-cost-p { font-size: 1.0625rem; line-height: 1.7; margin: 0 0 1.25rem; }
.ai-cost-p:last-child { margin-bottom: 0; }

/* Anchor target: keep the section clear of the fixed header on #process jump */
.ai-process-anchor { scroll-margin-top: 6rem; }

/* ===== Process steps ===== */
.ai-step { display: flex; flex-direction: column; }

.ai-step-head {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.875rem;
}

.ai-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-size: 0.8125rem;
    font-weight: 700;
    flex-shrink: 0;
}

.ai-step-time {
    font-size: 0.75rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
}

.ai-step-title { font-size: 1.0625rem; font-weight: 600; margin: 0 0 0.5rem; }

/* ===== Deliverables ===== */
.ai-deliverable-title { font-size: 1.0625rem; font-weight: 600; margin: 0 0 0.5rem; }

/* ===== Why columns ===== */
.ai-why-title { font-size: 1.125rem; font-weight: 600; margin: 0 0 1rem; }

.ai-why-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ai-why-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9375rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
}

.ai-why-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: hsl(var(--primary));
}

/* ===== Proven patterns ===== */
.ai-patterns {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 56rem;
}

.ai-pattern {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
}

.ai-pattern-text { font-size: 0.9375rem; font-weight: 500; }

.ai-pattern-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ===== Comparison table ===== */
.ai-table-wrap {
    overflow-x: auto;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
}

.ai-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 40rem;
    background: hsl(var(--card));
}

.ai-table th,
.ai-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.875rem;
    vertical-align: top;
    border-bottom: 1px solid hsl(var(--border));
}

.ai-table tbody tr:last-child th,
.ai-table tbody tr:last-child td { border-bottom: 0; }

.ai-table thead th {
    font-weight: 600;
    background: hsl(var(--muted) / 0.5);
    white-space: nowrap;
}

.ai-table tbody th {
    font-weight: 600;
    color: hsl(var(--foreground));
}

/* Highlight the "with partner" column */
.ai-table .ai-table-partner {
    background: hsl(var(--primary) / 0.06);
    font-weight: 500;
    color: hsl(var(--foreground));
}

.ai-table thead th.ai-table-partner {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

/* ===== Final CTA ===== */
.ai-cta {
    background: hsl(var(--emphasis));
    border: 1px solid hsl(var(--emphasis-foreground) / 0.14);
    color: hsl(var(--emphasis-foreground));
    border-radius: 1rem;
    padding: 3rem 2rem;
}

@media (min-width: 768px) {
    .ai-cta { padding: 4rem 3rem; }
}

.ai-cta-title {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem;
}

@media (min-width: 768px) {
    .ai-cta-title { font-size: 2.25rem; }
}

.ai-cta-subtitle {
    color: hsl(var(--emphasis-foreground) / 0.85);
    max-width: 40rem;
    margin: 0 0 2rem;
    font-size: 1.0625rem;
    line-height: 1.6;
}

.ai-cta-btn {
    background: hsl(var(--emphasis-foreground));
    color: hsl(var(--emphasis));
}

.ai-cta-btn:hover { background: hsl(var(--emphasis-foreground) / 0.9); }

.ai-cta-footnote {
    font-size: 0.8125rem;
    color: hsl(var(--emphasis-foreground) / 0.6);
    margin: 1.25rem 0 0;
}
