/* ==========================================================================
   ANGITE — design tokens
   Single source of truth for colour, type, space, radius, elevation, motion.
   Rule: components.css must consume ONLY these variables (no raw hex).
   Brand palette is inherited from the CoGuard template (#0B1135 / #FFD105)
   and re-balanced: amber is now a SIGNAL colour (CTA, key figure, marker),
   not a surface. Amber covers <10% of any viewport on purpose.
   ========================================================================== */

:root {
  /* ---- brand ---- */
  --c-navy: #0B1135;          /* 18.33:1 on white — hero, header, footer */
  --c-navy-800: #131A44;      /* raised surface inside navy bands */
  --c-navy-600: #232B5C;      /* hairlines inside navy bands */
  --c-amber: #FFD105;         /* 12.55:1 with --c-navy on amber CTA */
  --c-amber-700: #C9A400;     /* NON-TEXT only: borders, rules, markers (2.39:1) */
  --c-amber-ink: #7E6600;     /* amber as TEXT on light bg — 5.54:1 white, 5.13:1 canvas */

  /* ---- neutrals ---- */
  --c-ink: #1A1D26;           /* 16.83:1 on white — headings, body */
  --c-body: #5A6172;          /* 6.20:1 on white — secondary copy (AA) */
  --c-muted: #8B92A3;         /* meta only, never body copy */
  --c-line: #E3E6EC;          /* table rules, card borders */
  --c-stripe: #FBFBFD;        /* even-row tint in spec tables */
  --c-canvas: #F5F6F9;        /* page background */
  --c-surface: #FFFFFF;       /* card / table surface */
  --c-white: #FFFFFF;         /* pure white surface */

  /* ---- semantic ---- */
  --bg: var(--c-canvas);
  --fg: var(--c-ink);
  --fg-soft: var(--c-body);
  --accent: var(--c-amber);
  --rule: var(--c-line);

  /* ---- type ---- */
  /* Display: Poppins 400/700/900, self-hosted (SIL OFL) — the original template's
     typeface. Titles are 900. Fallback chain is system-only (Segoe UI Variable,
     then Bahnschrift, then Arial): Barlow Condensed is no longer shipped, so
     keeping it in the stack would be a dead link — a blocked woff2 now falls
     straight back to a system face and will reflow, which is the accepted cost
     of dropping a font we no longer serve. */
  --f-display: "Poppins", "Segoe UI Variable Display", "Bahnschrift SemiCondensed", Bahnschrift,
               "Arial Narrow", system-ui, sans-serif;
  /* Body: Poppins first (template's face, same three woff2 files as display),
     then the system stack. Zero third-party domain either way. */
  --f-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
            Arial, "Noto Sans", sans-serif;
  --f-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas,
            "Liberation Mono", monospace;

  --fs-xs: 0.75rem;      /* 12 — spec labels, meta */
  --fs-sm: 0.8125rem;    /* 13 — table body */
  --fs-base: 1rem;       /* 16 */
  --fs-md: 1.125rem;     /* 18 — lede */
  --fs-lg: 1.375rem;     /* 22 — h2 on desktop */
  --fs-h2: clamp(1.35rem, 2.4vw, 2.25rem);
  --fs-h1: clamp(1.9rem, 4.3vw, 3.5rem);
  --fs-hero: clamp(2rem, 6.2vw, 3.75rem);

  --lh-tight: 1.05;
  --lh-snug: 1.3;
  --lh-body: 1.65;

/* */
  --ls-caps: 0.08em;     /* uppercase eyebrows / labels */
  --ls-display: 0;       /* display headings letter-spacing */
  --fw-reg: 400;
  --fw-med: 500;
  --fw-bold: 700;

  /* ---- space (4px base) ---- */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 2.5rem;
  --s-8: 3rem;
  --s-9: 4rem;
  --s-10: 5rem;

  /* ---- layout ---- */
  --w-page: 72.5rem;                    /* 1160 */
  --w-text: 46rem;                      /* 736 — doc/legal line length */
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 3.75rem;                  /* 60 */

  /* ---- tech texture (derived from the two brand colours only) ----
     hex stays in this file so the "no raw hex outside tokens" gate holds:
     #FFD105 -> 255,209,5   #0B1135 -> 11,17,53                      */
  --c-dark-grid: rgba(255, 255, 255, 0.05);   /* fine grid on navy bands */
  --c-dark-glow: rgba(255, 209, 5, 0.10);     /* amber bloom, hero only */
  --c-amber-hair: rgba(255, 209, 5, 0.38);    /* 1px technical hairlines */
  --c-amber-soft: rgba(255, 209, 5, 0.16);    /* bracket marks on media */
  --c-shadow-amber: rgba(255, 209, 5, 0.22);
  --c-light-grid: rgba(11, 17, 53, 0.04);     /* blueprint grid on light areas */

  /* ---- shape: near-square on purpose, no soft SaaS rounding ---- */
  --r-1: 2px;
  --r-2: 3px;
  --bw: 1px;
  --bw-strong: 3px;

  /* ---- elevation (minimal; borders do the work) ---- */
  --sh-1: 0 1px 2px rgba(11, 17, 53, 0.06);
  --sh-2: 0 6px 24px rgba(11, 17, 53, 0.10);

  /* ---- motion ---- */
  --dur-1: 120ms;
  --dur-2: 200ms;
  --ease: cubic-bezier(0.2, 0, 0.2, 1);

  /* ---- layers ---- */
  --z-header: 100;
  --z-wabar: 90;

  /* ---- touch ---- */
  --tap: 2.875rem;                      /* 46px min hit area */
}
