/* Tokens da identidade (ver DESIGN.md). Fonte de verdade para os quatro sites.
   Tema (22/09/2026, aprovado pelo Vinicius): escuro azul-marinho é o padrão; o claro vem de html[data-tema="claro"],
   trocado pelo botão lua/sol da barra (shared/js/bar.js). Nos dois temas os NOMES dos tokens ficam; os valores
   invertem: --white é sempre "a cor do texto", --void é sempre "a cor do fundo". Cor fixa (#000, rgba branco) em
   CSS de site quebra o modo claro: use os tokens ou color-mix com eles. */
:root {
  --void: #080b15;      /* fundo: azul-marinho do site antigo, um pouco mais escuro */
  --fundo: linear-gradient(160deg, #080b15 0%, #0b1222 45%, #0f1a36 100%); /* degradê da página, parado ao rolar */
  --painel: #0d1426;    /* painéis e cartões */
  --painel-hover: #111a31;
  --linha: rgba(148, 178, 255, .14); /* bordas finas */
  --sobre-azul: #ffffff; /* texto sobre os botões azuis, nos dois temas */
  --logo-filtro: none;  /* logos brancas: no claro viram escuras */
  --white: #ffffff;
  --ash: #9a9a9a;
  --silver: #bdbdbd;
  --iris: #395cb3;      /* azul escuro da logo: única cor de preenchimento dos botões */
  --iris-hover: #4a70d0; /* azul um pouco mais claro ao passar o mouse */
  --saffron: #ffb829;
  --verdant: #15846e;
  --dim: #3d3d3d; /* texto apagado para efeitos de holofote */

  --font: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace; /* rótulos técnicos (painéis) */

  --text-caption: 12px;
  --text-nav: 14px;
  --text-body: 18px;
  --text-2xs: 24px;
  --text-xs: 27px;
  --text-sub: 36px;
  --text-sm: 42px;
  --text-md: 48px;
  --text-lg: 78px;
  --text-display: 113px;

  --track-display: -0.04em;
  --track-nav: 0.025em;

  --s6: 6px; --s12: 12px; --s18: 18px; --s24: 24px; --s30: 30px;
  --s36: 36px; --s60: 60px; --s96: 96px; --s120: 120px;

  --radius: 24px;
  --pill: 9999px;
  --page: 1280px;
  --gutter: clamp(20px, 4vw, 48px);

  --bar-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* camadas (documentado: só estes níveis existem) */
  --z-canvas: 0;
  --z-content: 1;
  --z-glow: 5;
  --z-bar: 50;
  --z-menu: 60;
}

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--void) var(--fundo) fixed;
  color: var(--white);
  font-family: var(--font);
  font-size: var(--text-body);
  font-weight: 300; /* teste pedido em 22/09: era 200 */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01" on;
  overflow-x: clip;
}

h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.1; letter-spacing: var(--track-display); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--saffron); outline-offset: 4px; border-radius: 4px; }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  padding: 10px 16px; background: var(--iris); color: var(--sobre-azul);
  border-radius: var(--pill); font-size: var(--text-nav); font-weight: 600;
}
.skip:focus-visible { top: 14px; }

/* Animações pausadas pelo visitante (botão no rodapé) ou pelo sistema */
html.motion-off *, html.motion-off *::before, html.motion-off *::after { animation-play-state: paused !important; }
html.motion-off { scroll-behavior: auto; }
html.motion-off *, html.motion-off *::before, html.motion-off *::after { transition: none !important; }
html.motion-off [data-magnetic] { transform: none; }

.container { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }

.eyebrow {
  font-size: var(--text-nav);
  font-weight: 600;
  letter-spacing: var(--track-nav);
  text-transform: uppercase;
  color: var(--saffron);
  line-height: 1.2;
}

/* Botão principal: única cor de preenchimento da página */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 22px;
  background: var(--iris); color: var(--sobre-azul);
  border-radius: var(--pill);
  font-size: var(--text-nav); font-weight: 600; letter-spacing: var(--track-nav); text-transform: uppercase;
  white-space: nowrap;
  --mx: 0px; --my: 0px; --s: 1;
  transform: translate(var(--mx), var(--my)) scale(var(--s));
  transition: transform .35s var(--ease), background-color .25s;
  will-change: transform;
}
.pill:hover { background-color: var(--iris-hover); }
.pill:active { --s: .97; }

/* Link fantasma: só texto */
.ghost {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 6px;
  font-size: var(--text-nav); font-weight: 600; letter-spacing: var(--track-nav); text-transform: uppercase;
  color: var(--ash);
  --mx: 0px; --my: 0px;
  transform: translate(var(--mx), var(--my));
  transition: color .25s, transform .35s var(--ease);
  white-space: nowrap;
}
.ghost:hover { color: var(--white); }
.ghost--amber { color: var(--saffron); }
.ghost--amber:hover { color: var(--white); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Ícones de loja dentro dos botões */
.pill svg, .ghost svg { width: 16px; height: 16px; fill: currentColor; flex: 0 0 auto; }

/* ---------- Tema claro (html[data-tema="claro"]) ---------- */
html[data-tema="claro"] {
  color-scheme: light;
  --void: #ffffff;
  --fundo: linear-gradient(160deg, #ffffff 0%, #f5f8ff 50%, #e8eeff 100%);
  --white: #0f172a;     /* texto principal */
  --silver: #3f4a5c;    /* texto de apoio */
  --ash: #5f6b7d;       /* rótulos */
  --dim: #c7ced9;
  --saffron: #b45309;   /* âmbar escurecido: o #ffb829 some no branco (5:1 sobre branco) */
  --painel: #f5f7fb;
  --painel-hover: #eef2fb;
  --linha: rgba(15, 23, 42, .12);
  --logo-filtro: invert(1);
}
/* A constelação pinta o próprio fundo de preto a cada quadro: no escuro, "screen" deixa o preto transparente e o
   azul da página aparece; no claro, a imagem é invertida (o A branco fica escuro, os prédios continuam azuis) e
   "multiply" some com o branco. */
.hero__canvas { mix-blend-mode: screen; }
html[data-tema="claro"] .hero__canvas { filter: invert(1) hue-rotate(180deg) saturate(1.35); mix-blend-mode: multiply; } /* site que ainda monta a logo escura */
/* logo clara (AtalaTema.constelacao em shared/js/bar.js): cores já escolhidas, só inverte o fundo */
html[data-tema="claro"] .hero__canvas[data-logo-tema="claro"] { filter: invert(1); }
/* Troca suave só quando a pessoa clica no botão (não na abertura da página) */
html.tema-trocando, html.tema-trocando * { transition: background-color .4s, color .4s, border-color .4s, box-shadow .4s, fill .4s, stroke .4s !important; }
