/* =====================================================================
   We. Design System · v1.0 · we.css
   ---------------------------------------------------------------------
   Um único arquivo de sistema para todas as páginas da We.Open.
   - Tokens em :root, com tema claro/escuro via light-dark() e o atributo
     html[data-theme="light|dark"] (o usuário escolhe; sem atributo, segue o SO).
   - Acento por produto via [data-accent="core|wendy|sentinel|signon"]
     (colocado no <body> pela página, ou em uma seção).
   - "Ilhas escuras" (.island) forçam color-scheme: dark — telas de produto
     ficam escuras nos dois temas, como um screenshot.
   - Sem framework. Sem !important. Sem estilos inline nas páginas.
   ===================================================================== */

/* ---------- 0. Fontes (todas hospedadas em /fonts — nenhuma chamada externa) ---------- */
/* Neuropolitical: fonte oficial do logo (licença comercial em /fonts/LICENCA-neuropolitical.pdf) */
@font-face {
  font-family: "Neuropolitical";
  src: url("../fonts/logo-brand.woff2") format("woff2"),
       url("../fonts/logo-brand.woff") format("woff"),
       url("../fonts/logo-brand.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Bricolage Grotesque (títulos), Inter (texto) e IBM Plex Mono (números/rótulos) — SIL OFL, subset latin, variáveis */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-wght.woff2") format("woff2-variations"), url("../fonts/bricolage-grotesque-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght.woff2") format("woff2-variations"), url("../fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: light dark;

  /* Tipografia */
  --f-display: "Bricolage Grotesque", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --f-logo: "Neuropolitical", "Bricolage Grotesque", system-ui, sans-serif;

  --t-xs: .75rem;
  --t-sm: .875rem;
  --t-md: 1rem;
  --t-lg: 1.125rem;
  --t-lede: clamp(1.05rem, 1rem + .35vw, 1.22rem);
  --t-h4: clamp(1.1rem, 1rem + .45vw, 1.3rem);
  --t-h3: clamp(1.3rem, 1.1rem + .9vw, 1.7rem);
  --t-h2: clamp(1.85rem, 1.35rem + 2vw, 2.8rem);
  --t-h1: clamp(2.35rem, 1.5rem + 3.6vw, 4.2rem);

  /* Layout */
  --wrap: 1180px;
  --pad: clamp(16px, 4vw, 40px);
  --sec: clamp(64px, 8vw, 116px);
  --header-h: 68px;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .22s;

  /* Paletas fixas (não mudam com o tema) */
  --green-300: #86EFAC; --green-400: #4ADE80; --green-500: #22C55E; --green-600: #16A34A; --green-700: #15803D; --green-900: #052E16;
  --lime-300: #C8E87A;  --lime-400: #A9CF46;  --lime-500: #8FB535;  --lime-600: #74962A;  --lime-700: #5B7620;  --lime-900: #1A2800;
  --blue-300: #93C5FD;  --blue-400: #60A5FA;  --blue-500: #3B82F6;  --blue-600: #2563EB;  --blue-700: #1D4ED8;
  --violet-300: #C4B5FD; --violet-400: #A78BFA; --violet-500: #8B5CF6; --violet-600: #7C3AED; --violet-700: #6D28D9;
  --amber-400: #FBBF24; --amber-500: #F59E0B; --amber-700: #B45309;
  --red-400: #F87171;   --red-500: #EF4444;   --red-700: #B91C1C;

  /* Superfícies e tinta — claro primeiro (fallback), depois light-dark() */
  --bg: #F6F8FB;        --bg: light-dark(#F6F8FB, #0B0E14);
  --bg-alt: #EEF2F7;    --bg-alt: light-dark(#EEF2F7, #0F131B);
  --surface: #FFFFFF;   --surface: light-dark(#FFFFFF, #121722);
  --surface-2: #F3F5F9; --surface-2: light-dark(#F3F5F9, #181E2B);
  --surface-3: #E8ECF3; --surface-3: light-dark(#E8ECF3, #1F2735);
  --line: #E2E7EF;      --line: light-dark(#E2E7EF, #242D3D);
  --line-2: #CBD3DF;    --line-2: light-dark(#CBD3DF, #33405A);
  --ink: #0E1421;       --ink: light-dark(#0E1421, #E9EDF3);
  --ink-2: #414B5C;     --ink-2: light-dark(#414B5C, #A6B0C0);
  --ink-3: #66718A;     --ink-3: light-dark(#66718A, #7D8797);
  --on-fill: #FFFFFF;

  --shadow-sm: 0 1px 2px rgba(15, 20, 33, .06), 0 4px 12px rgba(15, 20, 33, .05);
  --shadow-sm: light-dark(0 1px 2px rgba(15,20,33,.06) , 0 1px 2px rgba(0,0,0,.4));
  --shadow-md: 0 12px 32px rgba(15, 20, 33, .10);
  --shadow-md: light-dark(0 12px 32px rgba(15,20,33,.10), 0 14px 36px rgba(0,0,0,.45));
  --shadow-lg: 0 28px 64px rgba(15, 20, 33, .16);
  --shadow-lg: light-dark(0 28px 64px rgba(15,20,33,.16), 0 32px 72px rgba(0,0,0,.6));

  /* Marca we.open — cores oficiais do logo: "we." lima #A9CF46, "open" e nomes de produto grafite #3D444E.
     No tema escuro o grafite vira um cinza-azulado claro para continuar legível sobre o fundo. */
  --brand-we: #A9CF46;
  --brand-name: #3D444E;         --brand-name: light-dark(#3D444E, #CBD2DC);
  --brand-slate: #3D444E;

  /* Acento padrão (We.Open / .Core) = lima da marca */
  --brand: #5B7620;              --brand: light-dark(#5B7620, #A9CF46);
  --brand-fill: #A9CF46;
  --brand-ink: #1A2800;
  --brand-wash: rgba(169,207,70,.18); --brand-wash: light-dark(rgba(169,207,70,.18), rgba(169,207,70,.14));
  --brand-line: rgba(169,207,70,.45);
  --brand-glow: rgba(169,207,70,.24);

  --accent: var(--brand);
  --accent-fill: var(--brand-fill);
  --accent-ink: var(--brand-ink);
  --accent-wash: var(--brand-wash);
  --accent-line: var(--brand-line);
  --accent-glow: var(--brand-glow);

  /* Estado (semântico) */
  --ok: #15803D;     --ok: light-dark(#15803D, #4ADE80);
  --warn: #B45309;   --warn: light-dark(#B45309, #FBBF24);
  --danger: #B91C1C; --danger: light-dark(#B91C1C, #F87171);
  --info: #1D4ED8;   --info: light-dark(#1D4ED8, #60A5FA);
  --ok-wash: rgba(34,197,94,.14);
  --warn-wash: rgba(245,158,11,.16);
  --danger-wash: rgba(239,68,68,.14);
  --info-wash: rgba(59,130,246,.14);
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"]  { color-scheme: dark; }

/* Acentos por produto */
[data-accent="core"] {
  --accent: var(--brand); --accent-fill: var(--brand-fill); --accent-ink: var(--brand-ink);
  --accent-wash: var(--brand-wash); --accent-line: var(--brand-line); --accent-glow: var(--brand-glow);
}
[data-accent="wendy"] {
  --accent: #5B7620;                 --accent: light-dark(#5B7620, #A9CF46);
  --accent-fill: #A9CF46;
  --accent-ink: #1A2800;
  --accent-wash: rgba(169,207,70,.18); --accent-wash: light-dark(rgba(169,207,70,.18), rgba(169,207,70,.14));
  --accent-line: rgba(169,207,70,.45);
  --accent-glow: rgba(169,207,70,.24);
}
[data-accent="sentinel"] {
  --accent: #1D4ED8;                 --accent: light-dark(#1D4ED8, #60A5FA);
  --accent-fill: #2563EB;
  --accent-ink: #FFFFFF;
  --accent-wash: rgba(59,130,246,.12); --accent-wash: light-dark(rgba(59,130,246,.12), rgba(59,130,246,.16));
  --accent-line: rgba(59,130,246,.4);
  --accent-glow: rgba(59,130,246,.24);
}
[data-accent="signon"] {
  --accent: #6D28D9;                 --accent: light-dark(#6D28D9, #A78BFA);
  --accent-fill: #7C3AED;
  --accent-ink: #FFFFFF;
  --accent-wash: rgba(139,92,246,.12); --accent-wash: light-dark(rgba(139,92,246,.12), rgba(139,92,246,.16));
  --accent-line: rgba(139,92,246,.4);
  --accent-glow: rgba(139,92,246,.24);
}

/* Ilha escura: qualquer bloco que deva ficar escuro nos dois temas */
.island { color-scheme: dark; }

/* ---------- 2. Reset e base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
button { font: inherit; color: inherit; }
p, ul, ol, h1, h2, h3, h4, h5 { margin: 0; }
ul, ol { padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-wash); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 3px solid var(--bg); }

/* ---------- 3. Tipografia ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: var(--t-h1); font-weight: 800; line-height: 1.02; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
h4 { font-size: var(--t-h4); }
h1 em, h2 em, .em { font-style: normal; color: var(--accent); }
.h1-sm { font-size: var(--t-h2); }
.h3 { font-size: var(--t-h3); }
.modal-note { text-align: center; color: var(--ink-3); font-size: .9rem; margin-top: 18px; }
.lede { font-size: var(--t-lede); line-height: 1.55; color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }
.small { font-size: var(--t-sm); }
.tiny { font-size: var(--t-xs); }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.accent { color: var(--accent); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: var(--t-xs); font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; flex: none; }
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { display: none; }
.balance { text-wrap: balance; }

/* Logo (fonte da marca) */
.logo {
  font-family: var(--f-logo);
  font-weight: 400;
  letter-spacing: .02em;
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex; align-items: baseline;
  white-space: nowrap;
  color: var(--ink);
}
.logo .lg-we, .logo .lg-dot { color: var(--brand-we); }
.logo .lg-name { color: var(--brand-name); }
.logo.lg { font-size: 1.7rem; }
.brand .logo { font-size: 1.95rem; }         /* topo: logo em destaque (pedido do Evandro) */
@media (max-width: 480px) { .brand .logo { font-size: 1.55rem; } }

/* Wordmark de produto (.Core, .Wendy, .Sentinel, .Signon) — mesma fonte da marca: ponto lima, nome grafite */
.wordmark { font-family: var(--f-logo); font-weight: 400; letter-spacing: .02em; line-height: 1; display: inline-flex; align-items: baseline; white-space: nowrap; color: var(--brand-name); }
.wordmark b { color: var(--brand-we); font-weight: 400; }
.wordmark span { color: var(--brand-we); }

/* ---------- 4. Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.wrap-narrow { max-width: 860px; }
.sec { padding-block: var(--sec); position: relative; }
.sec-tight { padding-block: calc(var(--sec) * .6); }
.sec-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.sec-surface { background: var(--surface); border-block: 1px solid var(--line); }
.sec-head { max-width: 46rem; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head p { color: var(--ink-2); margin-top: 16px; font-size: var(--t-lg); text-wrap: pretty; }
.sec-head h2 + p { margin-top: 14px; }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split-start { align-items: start; }
.split-narrow { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
@media (min-width: 981px) { .sticky-side { position: sticky; top: calc(var(--header-h) + 24px); } }
@media (max-width: 980px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split, .split-narrow { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }

.stack { display: flex; flex-direction: column; gap: 14px; }
.cluster { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.cluster.center { justify-content: center; }
.page-error { min-height: 60vh; display: grid; place-items: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; } .mt-6 { margin-top: 64px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.icon-sprite { display: none; }   /* sprite de ícones (_Icons.cshtml); os <use href="#i-..."> continuam funcionando */
.hide-sm { display: initial; } .show-sm { display: none; }
@media (max-width: 720px) { .hide-sm { display: none; } .show-sm { display: initial; } }

/* Ícones (sprite inline em _Icons.cshtml) */
.i { width: 1.15em; height: 1.15em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.2em; display: inline-block; }
.i-lg { width: 1.5em; height: 1.5em; }

/* ---------- 5. Topbar / navegação ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur), border-color var(--dur);
}
.topbar.scrolled { box-shadow: var(--shadow-sm); }
.topbar-in { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; padding: 6px 0; }
.brand-product { display: inline-flex; align-items: center; gap: 10px; }
.brand-sep { width: 1px; height: 22px; background: var(--line-2); }
.brand-product .wordmark { font-size: 1.15rem; }
@media (max-width: 480px) { .brand-product { display: none; } }

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-link, .nav-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 12px; border-radius: 10px; border: 0; background: none; cursor: pointer;
  color: var(--ink-2); font-size: .95rem; font-weight: 500; line-height: 1;
  transition: color var(--dur), background var(--dur);
}
.nav-link:hover, .nav-btn:hover, .nav-btn[aria-expanded="true"] { color: var(--ink); background: var(--surface-2); }
.nav-link[aria-current="page"] { color: var(--accent); }
.nav-btn .i { width: 1em; height: 1em; transition: transform var(--dur); }
.nav-btn[aria-expanded="true"] .i { transform: rotate(180deg); }

/* Menu de produtos */
.menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: min(720px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 10px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.menu.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); transition-delay: 0s; }
.menu-item { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 12px; transition: background var(--dur); }
.menu-item:hover { background: var(--surface-2); }
.menu-item .mk { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent); }
.menu-item .wordmark { font-size: 1.05rem; margin-bottom: 4px; }
.menu-item .desc { display: block; font-size: .85rem; color: var(--ink-2); line-height: 1.4; }
.menu-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px 6px; border-top: 1px solid var(--line); margin-top: 4px; font-size: .85rem; color: var(--ink-3); }
.menu-foot a { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

.topbar-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--ink-2);
  transition: color var(--dur), border-color var(--dur), background var(--dur);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--line-2); }
.theme-toggle .i { width: 18px; height: 18px; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }

.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); place-items: center; cursor: pointer; color: var(--ink); }
.nav-toggle .i { width: 20px; height: 20px; }
.nav-toggle .i-x { display: none; }
body.nav-open .nav-toggle .i-menu { display: none; }
body.nav-open .nav-toggle .i-x { display: block; }

@media (max-width: 980px) {
  .nav-toggle { display: grid; }
  .topbar-actions .btn { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: 12px var(--pad) 20px; max-height: calc(100vh - var(--header-h)); overflow: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity var(--dur), transform var(--dur), visibility 0s linear var(--dur);
  }
  body.nav-open .nav { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link, .nav-btn { width: 100%; padding: 12px 10px; font-size: 1.05rem; justify-content: space-between; }
  .menu, .menu.open { position: static; left: auto; transform: none; width: auto; box-shadow: none; border: 0; background: var(--surface-2); padding: 6px; display: none; grid-template-columns: 1fr; opacity: 1; visibility: visible; pointer-events: auto; transition: none; }
  .menu.open { display: grid; }
  .menu-foot { display: none; }
  .nav-cta { margin-top: 12px; }
}
@media (min-width: 981px) { .nav-cta { display: none; } }

/* ---------- 6. Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), background var(--dur), border-color var(--dur), color var(--dur), box-shadow var(--dur);
}
.btn:active { transform: translateY(1px); }
.btn .i { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--accent-fill); color: var(--accent-ink); box-shadow: 0 8px 20px -8px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px var(--accent-glow); filter: brightness(1.04); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); background: var(--surface); }
.btn-soft { background: var(--accent-wash); color: var(--accent); }
.btn-soft:hover { background: color-mix(in srgb, var(--accent-wash) 70%, var(--accent-fill)); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 14px; font-size: .88rem; border-radius: 10px; }
.btn-lg { padding: 15px 26px; font-size: 1.05rem; border-radius: 14px; }
.btn-block { width: 100%; white-space: normal; }
.link { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link .i { transition: transform var(--dur); }
.link:hover .i { transform: translateX(3px); }

/* ---------- 7. Chips, tags, badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface);
  font-size: .82rem; font-weight: 500; color: var(--ink-2); white-space: nowrap;
}
.chip .i { width: 1em; height: 1em; color: var(--accent); }
.chip-accent { background: var(--accent-wash); border-color: var(--accent-line); color: var(--accent); font-weight: 600; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 7px; font-size: .74rem; font-weight: 600; letter-spacing: .01em;
  border: 1px solid transparent; white-space: nowrap;
}
.tag-ok { background: var(--ok-wash); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.tag-warn { background: var(--warn-wash); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.tag-danger { background: var(--danger-wash); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.tag-info { background: var(--info-wash); color: var(--info); border-color: color-mix(in srgb, var(--info) 35%, transparent); }
.tag-neutral { background: var(--surface-2); color: var(--ink-2); border-color: var(--line); }
.tag-accent { background: var(--accent-wash); color: var(--accent); border-color: var(--accent-line); }
.tag .i { width: .95em; height: .95em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-fill); display: inline-block; flex: none; }
.dot.live { animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); } 50% { box-shadow: 0 0 0 6px transparent; } }
.num-badge {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--accent-wash); color: var(--accent); font-family: var(--f-mono); font-weight: 600; font-size: .85rem;
}

/* ---------- 8. Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(20px, 2.6vw, 28px);
  position: relative;
}
.card-hover { transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur); }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent-line); }
.card-accent { background-image: linear-gradient(90deg, var(--accent-fill), transparent 80%); background-size: 100% 3px; background-repeat: no-repeat; background-position: 0 0; }   /* barra de acento clipada pelo raio do card (background segue o border-radius) */
.card-soft { background: var(--surface-2); }
.card-flat { box-shadow: none; }
.card h3 { font-size: var(--t-h4); margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: .95rem; }
.icon-box { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent); margin-bottom: 16px; }
.icon-box .i { width: 22px; height: 22px; }
.icon-box.sm { width: 36px; height: 36px; border-radius: 10px; margin: 0; }
.icon-box.sm .i { width: 18px; height: 18px; }

/* Feature (ícone + título + texto + lista) */
.feature { display: flex; flex-direction: column; }
.feature ul { list-style: none; margin-top: 12px; display: grid; gap: 7px; }
.feature li { font-size: .9rem; color: var(--ink-2); padding-left: 18px; position: relative; }
.feature li::before { content: ""; position: absolute; left: 0; top: .66em; width: 8px; height: 2px; border-radius: 2px; background: var(--accent-fill); }

/* Check list */
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--ink-2); font-size: .95rem; }
.checks li .i { width: 22px; height: 22px; color: var(--accent); }
.checks li b { color: var(--ink); font-weight: 600; }
.checks li b + span { display: block; margin-top: 2px; }

/* Lista de definição em grade (título + descrição) */
.deflist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 34px; list-style: none; }
.deflist li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.deflist li:nth-last-child(-n+2) { border-bottom: 0; }
.deflist .chk { width: 22px; height: 22px; border-radius: 7px; background: var(--accent-wash); color: var(--accent); display: grid; place-items: center; margin-top: 1px; }
.deflist .chk .i { width: 13px; height: 13px; stroke-width: 2.6; }
.deflist b { display: block; font-weight: 600; color: var(--ink); font-size: .96rem; }
.deflist span { display: block; font-size: .88rem; color: var(--ink-3); margin-top: 3px; line-height: 1.5; }
@media (max-width: 760px) { .deflist { grid-template-columns: 1fr; } .deflist li:nth-last-child(2) { border-bottom: 1px solid var(--line); } }

/* ---------- 9. Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 108px) clamp(48px, 7vw, 96px); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-bg::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%;
  background:
    radial-gradient(52% 46% at 18% 32%, var(--accent-glow), transparent 70%),
    radial-gradient(40% 40% at 88% 12%, color-mix(in srgb, var(--accent-glow) 50%, transparent), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(color-mix(in srgb, var(--line) 70%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--line) 70%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 100%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-grid.wide { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
@media (max-width: 980px) { .hero-grid, .hero-grid.wide { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-proof .n { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.hero-proof .r { font-size: .86rem; color: var(--ink-3); margin-top: 8px; max-width: 16em; line-height: 1.4; }
@media (max-width: 520px) { .hero-proof { grid-template-columns: 1fr 1fr; } }

/* ---------- 10. Ilhas / mocks de produto ---------- */
.mock {
  color-scheme: dark;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.03) inset;
  overflow: hidden;
  font-size: .9rem;
}
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mock-head b { font-weight: 600; color: var(--ink); }
.mock-title { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.mock-body { padding: 16px 18px; }
.mock-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.mock-row:last-child { border-bottom: 0; }
.mock-row .lbl { color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.mock-row .val { font-weight: 600; color: var(--ink); }
.mock-foot { padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: .78rem; color: var(--ink-3); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mock-panel { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kpi { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.kpi .v { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); }
.kpi .l { font-size: .72rem; color: var(--ink-3); margin-top: 3px; }
@media (max-width: 480px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Barra genérica (meter) */
.bar { display: grid; grid-template-columns: minmax(84px, auto) 1fr auto; align-items: center; gap: 10px; font-size: .82rem; }
.bar .lbl { color: var(--ink-2); white-space: nowrap; }
.bar .track { display: block; height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.bar .fill { display: block; height: 100%; width: 0; border-radius: 0 4px 4px 0; background: var(--accent-fill); transition: width 1.4s var(--ease); }
.bar .fill.ok { background: var(--green-500); } .bar .fill.warn { background: var(--amber-500); } .bar .fill.danger { background: var(--red-500); } .bar .fill.info { background: var(--blue-500); }
.bar .val { font-family: var(--f-mono); font-size: .78rem; color: var(--ink); min-width: 3ch; text-align: right; }

/* ---------- 11. Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat { padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.stat .v { font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 1.5rem + 1.8vw, 2.8rem); letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.stat .v em { font-style: normal; color: var(--accent); }
.stat .l { color: var(--ink-2); font-size: .9rem; margin-top: 8px; line-height: 1.4; }
.stats-strip { padding-block: 32px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 12. Passos, timeline, abas, FAQ ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; position: relative; counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--f-mono); font-size: .78rem; font-weight: 600; color: var(--accent); letter-spacing: .12em; display: block; margin-bottom: 14px; }
.step h3 { font-size: var(--t-h4); margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.timeline { position: relative; padding-left: 26px; display: grid; gap: 16px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line-2); border-radius: 2px; }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; left: -24px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--tl, var(--accent-fill)); box-shadow: 0 0 0 3px var(--bg); }
.tl-item .who { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.tl-item .what { color: var(--ink); font-weight: 500; margin-top: 2px; }

.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.flow-node { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.flow-node::after { content: ""; position: absolute; top: 50%; right: -14px; width: 14px; height: 2px; background: var(--line-2); }
.flow-node:last-child::after { display: none; }
.flow-node .ph { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.flow-node .ph::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-fill); }
.flow-node h3 { font-size: 1.1rem; margin-bottom: 6px; }
.flow-node p { color: var(--ink-2); font-size: .9rem; }
@media (max-width: 980px) { .flow { grid-template-columns: 1fr 1fr; } .flow-node:nth-child(2)::after { display: none; } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } .flow-node::after { display: none; } }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 12px 16px; color: var(--ink-3); font-weight: 600; font-size: .95rem; cursor: pointer; white-space: nowrap; transition: color var(--dur), border-color var(--dur); }
.tab:hover { color: var(--ink-2); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent-fill); }
.panel { padding-top: 28px; }
.panel[hidden] { display: none; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 1.4rem; font-weight: 300; line-height: 1; transition: transform var(--dur); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding: 0 44px 22px 0; color: var(--ink-2); max-width: 72ch; }

/* ---------- 13. Depoimentos ---------- */
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 28px; display: flex; flex-direction: column; gap: 18px; height: 100%; }
.quote .q { margin: 0; font-size: 1.02rem; line-height: 1.65; color: var(--ink); text-wrap: pretty; }
.g3 .quote .q { font-size: .96rem; }
.quote .q::before { content: "“"; color: var(--accent); font-family: var(--f-display); font-size: 2rem; line-height: 0; vertical-align: -.35em; margin-right: 4px; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent); font-family: var(--f-display); font-weight: 700; font-size: .95rem; flex: none; }
.quote .who-text b { display: block; color: var(--ink); font-weight: 600; }
.quote .who-text small { display: block; color: var(--ink-3); font-size: .85rem; }

/* ---------- 14. Card de produto ---------- */
.product { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.product .icon-box { margin: 0; }
.product .wordmark { font-size: 1.3rem; }
.product .tagline { color: var(--ink); font-weight: 600; line-height: 1.35; }
.product p { color: var(--ink-2); font-size: .93rem; }
.product ul { list-style: none; display: grid; gap: 7px; }
.product li { font-size: .88rem; color: var(--ink-2); padding-left: 18px; position: relative; }
.product li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; border-radius: 2px; background: var(--accent-fill); }
.product .link { margin-top: auto; padding-top: 6px; }

/* ---------- 15. Planos ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-wash), var(--surface) 45%); }
.plan .tag { align-self: flex-start; margin-bottom: 14px; }
.plan h3 { font-size: 1.4rem; }
.plan .price { font-family: var(--f-display); font-weight: 600; color: var(--ink-2); margin-top: 10px; }
.plan ul { list-style: none; display: grid; gap: 10px; margin: 20px 0 26px; flex: 1; }
.plan li { font-size: .93rem; color: var(--ink-2); padding-left: 20px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-fill); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* ---------- 16. Formulários ---------- */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-sm); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink-2); letter-spacing: .01em; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 11px 13px; width: 100%; transition: border-color var(--dur), box-shadow var(--dur);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-fill); box-shadow: 0 0 0 3px var(--accent-wash); }
.form .btn { margin-top: 6px; }
.form-note { font-size: .8rem; color: var(--ink-3); margin-top: 12px; text-align: center; }
.form-msg { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: .9rem; border: 1px solid transparent; }
.form-msg.ok { background: var(--ok-wash); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.form-msg.err { background: var(--danger-wash); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.form-msg[hidden] { display: none; }
.campo-extra { display: none; }   /* honey-pot (_HoneyPot.cshtml): display:none para o autofill não preencher */
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
.contacts { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.contacts a { display: flex; align-items: center; gap: 11px; color: var(--ink-2); font-size: .97rem; transition: color var(--dur); }
.contacts a:hover { color: var(--ink); }
.contacts .i { color: var(--accent); width: 20px; height: 20px; }

/* Faixa de CTA (ilha escura) */
.cta-band { color-scheme: dark; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 80% at 0% 0%, var(--accent-glow), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: var(--t-h3); }
.cta-band p { color: var(--ink-2); }

/* ---------- 17. Rodapé ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 72px) 0 28px; color: var(--ink-2); font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer h4 { font-family: var(--f-body); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer a { color: var(--ink-2); transition: color var(--dur); }
.footer a:hover { color: var(--accent); }
.footer .brand-block p { margin: 14px 0 18px; max-width: 34ch; line-height: 1.6; }
.footer .addr { display: grid; gap: 8px; font-size: .88rem; }
.footer .addr span, .footer .addr a { display: flex; align-items: flex-start; gap: 9px; }
.footer .addr .i { color: var(--accent); margin-top: 2px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-3); }
.footer-bottom .cluster { gap: 16px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 18. Movimento ---------- */
/* Sem JS nada some: a classe .js só existe se o script rodou. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }
.count { font-variant-numeric: tabular-nums; }
/* Stagger dos reveals dentro de grades */
.grid > .reveal:nth-child(2), .flow > .reveal:nth-child(2) { --i: 1; }
.grid > .reveal:nth-child(3), .flow > .reveal:nth-child(3) { --i: 2; }
.grid > .reveal:nth-child(4), .flow > .reveal:nth-child(4) { --i: 3; }
.grid > .reveal:nth-child(5) { --i: 1; }
.grid > .reveal:nth-child(6) { --i: 2; }
.grid > .reveal:nth-child(7) { --i: 3; }
.grid > .reveal:nth-child(8) { --i: 1; }
.grid > .reveal:nth-child(9) { --i: 2; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .bar .fill { transition: none; }
  .dot.live { animation: none; }
  .btn:hover, .card-hover:hover { transform: none; }
}

/* ---------- 19. Prosa (páginas de texto) ---------- */
.prose { color: var(--ink-2); font-size: 1.02rem; line-height: 1.75; }
.prose h2 { font-size: 1.45rem; margin: 0 0 14px; color: var(--ink); }
.prose section { scroll-margin-top: calc(var(--header-h) + 24px); }
.prose section + section { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.prose p + p, .prose ul + p { margin-top: 14px; }
.prose ul { padding-left: 1.2rem; margin-top: 12px; display: grid; gap: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); }
.toc ol { list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); font-size: .9rem; font-weight: 500; counter-increment: toc; transition: background var(--dur), color var(--dur); }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--f-mono); font-size: .75rem; color: var(--ink-3); padding-top: 3px; }
.toc a:hover, .toc a.active { background: var(--accent-wash); color: var(--accent); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.info-grid .k { font-size: .78rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.info-grid .v { font-weight: 600; color: var(--ink); margin-top: 2px; word-break: break-word; }
@media (max-width: 560px) { .info-grid { grid-template-columns: 1fr; } }

/* ---------- 20. Trilha de estados (identidade Sentinel, reutilizável) ---------- */
.trail { display: flex; height: 3px; width: 100%; }
.trail i { display: block; height: 100%; }
.trail .d { background: var(--lime-400); } .trail .o { background: #DC2626; } .trail .p { background: #D9A441; } .trail .v { background: var(--line-2); }
/* proporção de cada trecho (substitui style="flex:N", que a CSP não permite) */
.trail .f1 { flex: 1; } .trail .f2 { flex: 2; } .trail .f3 { flex: 3; } .trail .f4 { flex: 4; } .trail .f5 { flex: 5; }
.trail .f6 { flex: 6; } .trail .f7 { flex: 7; } .trail .f8 { flex: 8; } .trail .f9 { flex: 9; }

/* ---------- 21. Impressão ---------- */
@media print {
  .topbar, .footer, .theme-toggle, .nav-toggle, .hero-bg { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------- Bloco visual (foto ou ilustração + texto) — partial _Visual ---------- */
.visual { align-items: center; }
.visual.flip .visual-text { order: 2; }
.visual.flip .visual-media { order: 1; }
.visual-media { margin: 0; position: relative; }
.visual-media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: var(--r-lg); background: var(--accent-wash); z-index: 0; }
.visual-media img { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--surface-2); }
.visual-media figcaption { position: relative; z-index: 1; margin-top: 12px; font-size: .82rem; color: var(--ink-3); }
.visual-media figcaption small { display: block; font-size: .76rem; }
.visual-media .illust { position: relative; z-index: 1; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg); padding: 8px; }
.visual-media .illust svg { display: block; width: 100%; height: auto; }
@media (max-width: 980px) { .visual.flip .visual-text { order: 0; } .visual.flip .visual-media { order: 0; } .visual-media::before { inset: 12px -8px -12px 12px; } }

/* Ilustrações vetoriais (Views/Shared/Illustrations): só tokens, funcionam nos dois temas e seguem o acento da página */
.il-wash { fill: var(--accent-wash); }
.il-dash { fill: none; stroke: var(--accent-line); stroke-width: 1.5; stroke-dasharray: 6 8; }
.il-fill { fill: var(--accent-fill); }
.il-surf, .il-card, .il-panel, .il-app { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.5; }
.il-panel { fill: var(--surface-2); }
.il-card-big { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.5; }
.il-ph { fill: var(--line-2); }
.il-ph-light { fill: var(--surface-3); }
.il-ph-acc { fill: var(--accent-fill); opacity: .7; }
.il-ph-onfill { fill: var(--accent-ink); opacity: .55; }
.il-icon { stroke: var(--ink-2); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.il-icon-acc { stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.il-flow { fill: none; stroke: var(--accent-fill); stroke-width: 2; stroke-dasharray: 5 6; opacity: .8; }
.il-dot { fill: var(--accent-fill); }
.il-dot-acc { fill: var(--accent); }
.il-dot-onfill { fill: var(--accent-ink); }
.il-screen { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.5; }
.il-screen-head { fill: var(--surface-3); }
.il-screen-head2 { fill: var(--surface-3); }
.il-pill { fill: var(--accent-wash); stroke: var(--accent-line); stroke-width: 1; }
.il-pill-ok { fill: var(--accent-fill); }
.il-bar { fill: var(--surface-3); }
.il-bar-fill { fill: var(--accent-fill); }
.il-stand, .il-keyboard, .il-hinge { fill: var(--surface-3); stroke: var(--line-2); stroke-width: 1; }
.il-keys rect { fill: var(--line-2); }
.il-avatar { fill: var(--accent-fill); }
.il-avatar-face { fill: var(--accent-ink); opacity: .85; }
.il-headset { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.il-headset-cup { fill: var(--ink); }
.il-mono { font-family: var(--f-mono); font-size: 11px; fill: var(--ink); font-weight: 600; }
.il-wave rect { fill: var(--ink-3); opacity: .55; }
.il-highlight { fill: var(--accent-wash); stroke: var(--accent-line); stroke-width: 1.5; }
.il-acc-line { stroke: var(--accent-fill); stroke-width: 2; stroke-dasharray: 4 5; }
.il-tag { fill: var(--surface); stroke: var(--accent-line); stroke-width: 1.5; }
.il-lens { fill: var(--surface); opacity: .9; }
.il-lens-ring { fill: none; stroke: var(--ink); stroke-width: 4; }
.il-lens-handle { stroke: var(--ink); stroke-width: 7; stroke-linecap: round; }
.il-score { fill: var(--accent-fill); }
.il-score-txt { font-family: var(--f-mono); font-size: 12px; font-weight: 600; fill: var(--accent-ink); }
.il-ok { fill: var(--ok); }
.il-warn { fill: var(--warn); }
.il-check { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.il-shield { fill: var(--accent-fill); stroke: var(--accent-fill); stroke-width: 2; stroke-linejoin: round; }
.il-check-big { fill: none; stroke: var(--accent-ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.il-clock { fill: var(--surface); }
.il-clock-ring { fill: none; stroke: var(--ink); stroke-width: 3; }
.il-clock-hands { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.il-vault { fill: var(--brand-slate, #3D444E); }
.il-vault-door { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.5; }
.il-dial { fill: var(--surface-2); }
.il-dial-ring { fill: none; stroke: var(--ink-2); stroke-width: 2.5; }
.il-dial-hands { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.il-key-ring { fill: none; stroke: var(--ink); stroke-width: 4; }
.il-key-shaft { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.il-rotate { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
.il-rotate-arrow { fill: var(--accent); }
.il-field { fill: var(--surface-3); }
.il-dots circle { fill: var(--ink-2); }
.il-spin { fill: var(--surface-3); }
.il-spin-arc { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
.il-strike { stroke: var(--danger); stroke-width: 2.5; stroke-linecap: round; }

/* ---------- Contatos: e-mail como texto + copiar; links só do tamanho do texto ---------- */
.contact-line { display: flex; align-items: center; gap: 11px; color: var(--ink-2); font-size: .97rem; flex-wrap: wrap; }
.contact-line a { color: var(--ink-2); transition: color var(--dur); width: fit-content; }
.contact-line a:hover { color: var(--ink); }
.contact-mail { color: var(--ink); user-select: all; }
.copy { font: inherit; font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: background var(--dur), color var(--dur), border-color var(--dur); }
.copy:hover { border-color: var(--accent-line); color: var(--accent); }
.copy.done { background: var(--ok-wash); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }

/* ---------- WhatsApp flutuante (partial _WhatsApp) ---------- */
:root { --wa: #25D366; --wa-ink: #073B1D; }
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: grid; justify-items: end; gap: 12px; }
.wa-fab { display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px 12px 14px; border-radius: 999px; border: 0; background: var(--wa); color: #fff; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; box-shadow: 0 14px 34px -10px rgba(37,211,102,.7), 0 2px 6px rgba(0,0,0,.18); transition: transform var(--dur), box-shadow var(--dur); }
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -10px rgba(37,211,102,.8), 0 2px 6px rgba(0,0,0,.2); }
.wa-fab .i { width: 22px; height: 22px; }
.wa-fab[aria-expanded="true"] .wa-label { display: none; }
.wa-pop { width: min(360px, calc(100vw - 36px)); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; transform-origin: bottom right; animation: wa-in .22s var(--ease); }
.wa-pop[hidden] { display: none; }
@keyframes wa-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.wa-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--wa); color: #fff; }
.wa-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; flex: none; }
.wa-avatar .i { width: 20px; height: 20px; }
.wa-who { display: grid; line-height: 1.25; min-width: 0; }
.wa-who b { font-size: .95rem; }
.wa-who small { font-size: .78rem; opacity: .9; }
.wa-close { margin-left: auto; width: 32px; height: 32px; border-radius: 8px; border: 0; background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.wa-close .i { width: 16px; height: 16px; }
.wa-text { padding: 14px 16px 0; font-size: .9rem; color: var(--ink-2); }
.wa-form { padding: 12px 16px 16px; display: grid; gap: 10px; }
.wa-form .field input, .wa-form .field select, .wa-form .field textarea { font-size: .92rem; }
.wa-form .field textarea { min-height: 56px; }
.btn-wa { background: var(--wa); color: var(--wa-ink); border-color: var(--wa); }
.btn-wa:hover { filter: brightness(.95); }
.wa-note { font-size: .76rem; color: var(--ink-3); text-align: center; }
.wa .form-msg { margin: 0; }
@media (max-width: 560px) { .wa { right: 12px; bottom: 12px; } .wa-fab { padding: 14px; } .wa-fab .wa-label { display: none; } }
@media (prefers-reduced-motion: reduce) { .wa-pop { animation: none; } }

/* Atributo hidden vence qualquer display de componente (ex.: .tag hidden="hidden") */
[hidden], .tag[hidden] { display: none; }
