/*
 * Titan Lock — design tokens (v0.2, concept stage)
 * Single source of truth for brand + UI colours, type and shape.
 * Used by branding/brand-sheet.html and design/mockups/*.html → changing a value here cascades to every mockup.
 * Later: mirror these into the Filament theme and the agent's colors.xml.
 *
 * BRAND DIRECTION (2026-11-11): Orange is the primary brand colour ("hard lock" = strength/enforcement),
 * paired with light teal (trust / paid / released) on a dark-teal surface. Replaces the earlier ink+green scheme.
 * Legacy token family `--tl-green-*` now holds the TEAL values (name kept so existing mockups keep working).
 *
 * Checked 2026-11-11 (WCAG 2.1 contrast + colour-blind separation via the dataviz validator):
 *   white on orange-700 (primary btn) 5.2 · white on teal-700 5.5 · white on ink-900 16.1 · white on sos 5.6
 *   ink on orange tints / light teal ≥ 13 · state *-fg on *-bg ≥ 6.6 · state *-on-dark on ink ≥ 7
 *   Ladder marks (teal/blue/yellow/orange/crimson) pass CVD separation (adjacent ΔE ≥ 15 deutan / normal).
 * Rule: state is never carried by colour alone — always icon + label too.
 */
:root {
  /* ── Titan Orange: the brand. Hard lock / strength / enforcement / primary action ── */
  --tl-orange-800: #9A3412;
  --tl-orange-700: #C2410C;  /* primary buttons (white text) */
  --tl-orange-600: #EA580C;
  --tl-orange-500: #F97316;  /* logo accent / brand mark */
  --tl-orange-400: #FB923C;  /* on dark surfaces */
  --tl-orange-100: #FFE6D3;
  --tl-orange-50:  #FFF6EE;

  /* ── Ink: dark-teal surface (lock screen, headers, sidebar, text) ── */
  --tl-ink-950: #06201C;
  --tl-ink-900: #0B2521;
  --tl-ink-800: #113A33;
  --tl-ink-700: #1A524A;
  --tl-ink-600: #276B61;

  /* ── Steel: neutrals (cool grey) ── */
  --tl-steel-600: #465A74;
  --tl-steel-500: #5E728C;
  --tl-steel-400: #8A9AB0;
  --tl-steel-300: #B6C2D2;
  --tl-steel-200: #D7DEE8;
  --tl-steel-100: #EBEFF5;
  --tl-steel-50:  #F6F8FB;
  --tl-white:     #FFFFFF;

  /* ── Teal (light teal companion): trust / paid / released / "all good". Legacy name --tl-green-* ── */
  --tl-green-800: #115E59;
  --tl-green-700: #0F766E;  /* teal buttons / "good" actions, white text */
  --tl-green-600: #0D9488;
  --tl-green-500: #14B8A6;
  --tl-green-400: #2DD4BF;  /* on ink surfaces */
  --tl-green-100: #CCFBF1;
  --tl-green-50:  #F0FDFA;

  /* ── Key Gold: ONLY the reseller key/credit economy (icon + balance). Never a status colour ── */
  --tl-gold-700: #8A5A00;
  --tl-gold-600: #B97A00;
  --tl-gold-500: #F0A91B;
  --tl-gold-400: #F7C04A;
  --tl-gold-100: #FDEFC8;
  --tl-gold-50:  #FFF8E6;

  /* ── Enforcement-ladder states ──
     fg = text on tint · bg = tint · solid = filled chip · mark = chart mark / dot · on-dark = text on ink
     Solid chips: normal/remind/lock take WHITE text; warn/restrict take INK text (lightness also separates them). */
  --tl-normal-fg: #115E59;   --tl-normal-bg: #F0FDFA;   --tl-normal-solid: #0F766E;   --tl-normal-mark: #0D9488;   --tl-normal-on-dark: #2DD4BF;
  --tl-remind-fg: #1D4BB0;   --tl-remind-bg: #EAF1FE;   --tl-remind-solid: #2563EB;   --tl-remind-mark: #2563EB;   --tl-remind-on-dark: #8FB4FF;
  --tl-warn-fg: #7A4D00;     --tl-warn-bg: #FFF4D6;     --tl-warn-solid: #EAB308;     --tl-warn-mark: #EAB308;     --tl-warn-on-dark: #FFD94A;
  --tl-restrict-fg: #8A3608; --tl-restrict-bg: #FFE9D9; --tl-restrict-solid: #E2590E; --tl-restrict-mark: #E2590E; --tl-restrict-on-dark: #FF9A52;
  --tl-lock-fg: #8F1A2E;     --tl-lock-bg: #FDE4EA;     --tl-lock-solid: #B01030;     --tl-lock-mark: #B01030;     --tl-lock-on-dark: #FF6F8F;

  /* ── Emergency call: its own red, same look on every screen. Never reused for anything else ── */
  --tl-sos: #C8281E;

  /* ── Type (production UI is ENGLISH; Inter first, Bengali fonts kept as fallback for the current mockups) ── */
  --tl-font-display: "Inter", "Anek Bangla", "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif;
  --tl-font-body: "Inter", "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif;
  --tl-font-code: ui-monospace, "Cascadia Mono", "Roboto Mono", Consolas, monospace; /* unlock codes, IMEI */

  /* ── Shape + elevation ── */
  --tl-radius-sm: 8px;
  --tl-radius-md: 12px;
  --tl-radius-lg: 16px;
  --tl-radius-xl: 24px;
  --tl-radius-pill: 999px;
  --tl-shadow-1: 0 1px 2px rgba(11, 37, 33, .06), 0 1px 3px rgba(11, 37, 33, .08);
  --tl-shadow-2: 0 4px 12px rgba(11, 37, 33, .08), 0 2px 4px rgba(11, 37, 33, .06);
  --tl-shadow-3: 0 16px 40px rgba(11, 37, 33, .16);
}
