/* =========================================================================
   LeadStalker — design tokens
   Extraído de lead-stalker-website (src/styles/global.css) para reuso no app.
   ========================================================================= */

:root {
  /* superfícies */
  --void: #0b0d10;
  --panel: #15181d;
  --panel-alt: #0e1116;
  --line: #262c35;
  --line-soft: #1c2128;
  --line-strong: #333b45;

  /* texto */
  --bone: #f5f3ee;
  --text: #f5f3ee;
  --text-2: #a8aeb6;
  --text-3: #8a9099;
  --text-on-light: #0b0d10;
  --text-on-light-2: #4a5058;

  /* card claro sobre página escura (ex: login) */
  --card-bg: #fcfcfb;
  --card-border: #e3e1da;
  --danger: #c0362c;

  /* atenção (alertas de rastreamento, ver styles/live.css) */
  --warn: #e0a33a;
  --warn-bg: rgba(224, 163, 58, 0.16);

  /* acento */
  --signal: #c6f24e;
  --signal-hover: #a8d92f;
  --signal-deep: #5f8a0c;
  --signal-bg: #1e2a10;
  --signal-line: #3c5116;
  --signal-text-soft: #a8c25e;

  /* tipografia */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* realce de sintaxe (ver highlightHtml() em components/business-modal.js) */
  --code-tag: #c6f24e;
  --code-attr: #8ab4f8;
  --code-string: #e8c07d;
  --code-comment: #8a9099;

  /* layout */
  --container: 1160px;
  --gutter: 140px;
  --radius: 12px;
  --radius-sm: 6px;
}

/*
  Regra de uso: --signal (#C6F24E) só funciona como texto sobre fundo escuro.
  Sobre fundo claro, usar --signal-deep.

  Tipografia: Inter (400/500/600/700) para texto geral e títulos; IBM Plex
  Mono (500) para métricas, IDs e labels. Inter é auto-hospedada em
  /public/fonts/inter (ver styles/fonts.css) — nenhuma requisição externa.
*/

/* =========================================================================
   Tema claro — automático via prefers-color-scheme, ou explícito via
   data-theme="light"/"dark" em <html> (escolha manual, ver theme.js).
   Os dois blocos abaixo precisam ficar em sincronia (não dá pra fatorar em
   CSS puro sem preprocessador). --card-bg/--card-border/--text-on-light*
   ficam de fora: o card de auth é sempre claro, nos dois temas da página.
   ========================================================================= */
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    --void: #f3f1ec;
    --panel: #ffffff;
    --panel-alt: #f7f5f0;
    --line: #e3e1da;
    --line-soft: #ece9e2;
    --line-strong: #c9c6bc;

    --bone: #15181d;
    --text: #15181d;
    --text-2: #4a5058;
    --text-3: #6b7178;

    --signal: #5f8a0c;
    --signal-hover: #4a6e08;
    --signal-bg: #eef7d8;
    --signal-line: #c7e08f;
    --signal-text-soft: #6b8f2e;

    --warn: #9a5b00;
    --warn-bg: rgba(154, 91, 0, 0.1);

    --code-tag: #4a6e08;
    --code-attr: #2b5fb3;
    --code-string: #9a5b00;
    --code-comment: #6b7178;
  }
}

:root[data-theme='light'] {
  --void: #f3f1ec;
  --panel: #ffffff;
  --panel-alt: #f7f5f0;
  --line: #e3e1da;
  --line-soft: #ece9e2;
  --line-strong: #c9c6bc;

  --bone: #15181d;
  --text: #15181d;
  --text-2: #4a5058;
  --text-3: #6b7178;

  --signal: #5f8a0c;
  --signal-hover: #4a6e08;
  --signal-bg: #eef7d8;
  --signal-line: #c7e08f;
  --signal-text-soft: #6b8f2e;

  --warn: #9a5b00;
  --warn-bg: rgba(154, 91, 0, 0.1);

  --code-tag: #4a6e08;
  --code-attr: #2b5fb3;
  --code-string: #9a5b00;
  --code-comment: #6b7178;
}
