/* ============================================================
   RevOp design tokens — THE single source of truth.
   Every tool links this file. Do not redeclare these anywhere else.

   Verified 2026-09-06 against the three built tools; all values
   were already identical, only the token SETS had drifted.
   ============================================================ */

:root{
  /* ---- ink scale ---- */
  --ink-900:#0B1220; --ink-800:#0F1A2A; --ink-600:#2A3A52; --ink-400:#64748B;
  --ink-200:#CBD5E1; --ink-100:#E2E8F0; --ink-50:#F1F5F9;

  /* ---- surfaces ---- */
  --paper:#fff; --page:#F8FAFC;

  /* ---- accent ---- */
  --acc:#4338CA; --acc-soft:#EEF0FD;

  /* ---- state ----
     NEVER carried by colour alone. Every state ships a glyph AND a word.
     --warn and --bad are dE 4.9 in deuteranopia: hue cannot separate them. */
  --ok:#15803D;   --ok-soft:#EAF5EE;
  --warn:#B45309; --warn-soft:#FDF3E7;
  --bad:#B91C1C;  --bad-soft:#FBEBEB;

  /* ---- dark surface scale (hero bands, summary cards, the app chrome) ---- */
  --d1:#0F1A2A; --d2:#2A3A52; --d3:#47597A; --d4:#6B7C99; --d5:#98A5BB;

  /* ---- geometry ---- */
  --radius-control:6px; --radius-card:10px;

  /* ---- type ---- */
  --font-ui:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  --font-mark:'Questrial',var(--font-ui);   /* wordmark ONLY */
}

/* ============================================================
   Dark theme — DEFINED BUT NOT ACTIVE.

   Deliberately gated on an explicit [data-theme="dark"] rather than
   prefers-color-scheme. The three tools built before this file still
   carry hardcoded hex values in places, so flipping them on a media
   query would half-convert them and look broken.

   Turn it on per tool, only after that tool has been audited for
   hardcoded colours. The app shell sets the attribute.
   ============================================================ */
:root[data-theme="dark"]{
  --ink-900:#F1F5F9; --ink-800:#E2E8F0; --ink-600:#CBD5E1; --ink-400:#94A3B8;
  --ink-200:#334155; --ink-100:#1E293B; --ink-50:#152032;
  --paper:#0F1A2A;   --page:#0B1220;
  --acc:#818CF8;     --acc-soft:#1E1B4B;
  --ok:#4ADE80;   --ok-soft:#14301F;
  --warn:#FBBF24; --warn-soft:#332208;
  --bad:#F87171;  --bad-soft:#3B1414;
}

/* ---- universal: every figure in the product uses tabular numerals ---- */
.num,table td,table th,input[inputmode="numeric"],input[type="number"]{
  font-variant-numeric:tabular-nums;
}
