/* =============================================================================
   NGOV · tokens do design system para o site (spec site-2026-10-23)
   Cópia de .claude/skills/ngov-design-system/colors_and_type.css (cores, raios,
   sombras, espaçamento e tipografia), com três diferenças:
   - fontes locais em fonts/ (sem Google Fonts): Plus Jakarta Sans variável (OFL)
     em todo o texto e, enquanto a licença não chega, também nos títulos;
   - Test The Future mantida aqui, pronta para voltar aos títulos (ver --font-display);
   - o tema escuro segue prefers-color-scheme (o produto usa a classe .dark).
   As classes utilitárias .ds-* do design system não são usadas no site.
   ============================================================================= */

/* Plus Jakarta Sans variável (200–800), latin e latin-ext, do pacote @fontsource-variable
   (licença em fonts/plus-jakarta-sans-OFL.txt). O latin cobre todo o português e é
   pré-carregado no <head>; o latin-ext só baixa se a página usar um caractere dele. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap;
  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; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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; }

/* Test The Future (fonte de display da marca). Os três arquivos em fonts/ são a versão de
   TESTE (sem acentos, "?", ":" e "$"; S-01 do QA de 23/10), por isso nenhum texto a usa hoje.
   Os pesos declarados estão um degrau acima do desenho de cada arquivo de propósito: os
   títulos pedem 300/400 (o que fica bem na Plus Jakarta Sans) e, com a Test The Future
   ativada, recebem o ExtraLight e o Light do desenho original, sem mudar nenhuma regra. */
@font-face { font-family: "Test The Future"; src: url("fonts/test-the-future-extralight.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Test The Future"; src: url("fonts/test-the-future-light.woff2") format("woff2");      font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Test The Future"; src: url("fonts/test-the-future-regular.woff2") format("woff2");    font-weight: 500; font-style: normal; font-display: swap; }

:root {
  /* Cores do produto (triplas HSL, como no app) */
  --background: 210 40% 98%;
  --foreground: 222 47% 11%;
  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;
  --primary: 214 84% 56%;            /* #2570EB, azul institucional */
  --primary-foreground: 210 40% 98%;
  --secondary: 210 40% 95%;
  --muted: 212 36% 93%;
  --muted-foreground: 217 19% 41%;
  --accent: 210 40% 93%;
  --border: 214 24% 88%;
  --input: 214 27% 84%;
  --ring: 214 84% 56%;
  --shell: 214 80% 93%;
  --surface: 214 95% 93%;

  /* Escalas em hex (marketing) */
  --brand-blue-50:  #eff6ff;
  --brand-blue-100: #dbeafe;
  --brand-blue-200: #bfdbfe;
  --brand-blue-600: #2563eb;
  --brand-blue-700: #1d4ed8;
  --brand-blue-900: #1e3a8a;
  --brand-primary:  #2570eb;

  --neutral-50:  #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-500: #64748b;
  --neutral-600: #475569;
  --neutral-700: #334155;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;

  /* Navy do modo escuro do produto */
  --navy-900: #0c1322;   /* hsl(223 47% 9%)  fundo */
  --navy-800: #121b2b;   /* hsl(223 40% 12%) card */
  --navy-700: #1a2538;   /* hsl(217 29% 16%) superfície */
  --navy-600: #2a364b;   /* hsl(217 22% 24%) borda */

  /* Raios */
  --radius: 0.95rem;
  --radius-sm: 0.75rem;        /* rounded-xl: botões, inputs, selos */
  --radius-md: 1rem;           /* rounded-2xl */
  --radius-lg: 1.5rem;         /* rounded-3xl: cards de vitrine */
  --radius-card: 1.75rem;      /* painel "calmo" */
  --radius-shell: 2rem;
  --radius-pill: 9999px;

  /* Sombras (funcionais, suaves) */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow:    0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  /* Espaçamento (grade de 4 px) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Tipografia */
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  /* Fonte dos títulos, frases e numerais grandes. UMA variável faz a troca:
     trocar para Test The Future quando a fonte licenciada estiver em fonts/, assim:
       --font-display: "Test The Future", "Plus Jakarta Sans", system-ui, sans-serif;
     (e trocar os três test-the-future-*.woff2 pelos licenciados; ver o README). */
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --tracking-tight: -0.02em;
  --tracking-display: -0.025em;      /* títulos grandes; serve às duas fontes de display */
  --tracking-wide: 0.06em;
  --tracking-wider: 0.16em;
  --lh-tight: 1.1;
  --lh-snug: 1.3;
  --lh-normal: 1.5;
  --lh-relaxed: 1.6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: 223 47% 9%;
    --foreground: 210 40% 98%;
    --card: 223 40% 12%;
    --card-foreground: 210 40% 98%;
    --primary: 214 89% 66%;
    --primary-foreground: 222 47% 10%;
    --secondary: 217 29% 20%;
    --muted: 217 29% 20%;
    --muted-foreground: 214 17% 73%;
    --accent: 217 29% 20%;
    --border: 217 22% 24%;
    --input: 217 22% 30%;
    --ring: 214 89% 66%;
    --shell: 223 35% 11%;
    --surface: 223 32% 15%;
  }
}
