/* ==========================================================================
   Siegel — Figma variable primitives  (COMPLETE, 144 variables / 6 collections)
   figma.variables.getLocalVariableCollectionsAsync(), file VjTi5A18yB4EYm0h3k1lPL
   Audited 2026-07-29.

   LAYER 1 of 2. Mirrors Figma exactly so the systems can be diffed. Consume
   the semantic tokens in _tokens-typography.css / _tokens-layout.css instead.

   ######################################################################
   #  CRITICAL: TWO COLLECTIONS ARE BOTH NAMED "Typography Variables"   #
   #  with IDENTICAL variable names and DIFFERENT values.               #
   #    FontSize/H2_FontSize = 32.0361328125   (Aktiv Grotesk set)      #
   #    FontSize/H2_FontSize = 14.416259765625 (Lato set)               #
   #  A CSS custom property can hold ONE value. This system CANNOT be   #
   #  exported to CSS without renaming. Namespaced below as -head-/     #
   #  -body-. This is the root cause of BUG-27. See BUG-33.             #
   ######################################################################
   ========================================================================== */

:root{

/* ==== COLLECTION 1: Primitives (46) ===================================== */

  /* Red ramp */
  --fig-red-100:#ffe1e3;
  --fig-red-500:#f83b4a;
  --fig-red-600:#d41927;   /* = Siegel-Red */
  --fig-red-700:#c01522;
  --fig-red-800:#9f151f;   /* button hover */
  --fig-red-900:#841820;   /* badge primary */

  /* Neutral ramp */
  --fig-neutral-50:#f5f6f6;
  --fig-neutral-100:#e6e7e7;
  --fig-neutral-200:#d0d1d1;
  --fig-neutral-300:#afb1b1;
  --fig-neutral-400:#8b8d8e;
  --fig-neutral-500:#6b6d6f;
  --fig-neutral-600:#5c5e5e;
  --fig-neutral-700:#4e5050;
  --fig-neutral-800:#444546;
  --fig-neutral-900:#3c3d3d;
  --fig-neutral-950:#000000;

  /* Brand */
  --fig-siegel-red:#d41927;
  --fig-siegel-grey:#8b8d8e;
  --fig-siegel-black:#333333;
  --fig-siegel-blue:#0072ce;
  --fig-siegel-yellow:#ffb500;
  --fig-siegel-green:#00843d;
  --fig-siegel-orange:#f37a20;
  --fig-siegel-white:#ffffff;   /* Figma: "Siegell-White" — typo, double L */

  /* Type scale primitives (integers — the CLEAN scale) */
  --fig-type-body-xxxs:8px;
  --fig-type-body-xxs:10px;
  --fig-type-body-xs:12px;
  --fig-type-body-sm:14px;
  --fig-type-body-rg:16px;
  --fig-type-body-md:18px;
  --fig-type-body-lg:20px;
  --fig-type-body-xl:22px;
  --fig-type-body-2xl:24px;
  --fig-type-heading-xs:32px;
  --fig-type-heading-sm:36px;   /* ORPHANED — no token references it */
  --fig-type-heading-md:48px;   /* ORPHANED — no token references it */
  --fig-type-heading-lg:64px;
  --fig-type-heading-display:72px;

  /* Families + weights.
     NOTE Figma stores weights as full font strings, and uses "Semi Bold"
     WITH A SPACE. The node walk reports "SemiBold" without. See BUG-35. */
  --fig-family-heading:"Aktiv Grotesk";
  --fig-family-body:"Lato";
  --fig-weight-light:300;       /* "Aktiv Grotesk Light" */
  --fig-weight-regular:400;     /* "Aktiv Grotesk Regular" */
  --fig-weight-semibold:600;    /* "Aktiv Grotesk Semi Bold" */
  --fig-weight-bold:700;        /* "Aktiv Grotesk Bold" */

  --fig-spacing-headings:-0.4px;

/* ==== COLLECTION 3: Colour Usage (29) — THE SEMANTIC LAYER ==============
   This is the layer to build against. Use these, not the ramps above. */

  --text-heading-primary:var(--fig-siegel-black);
  --text-body-primary:var(--fig-neutral-500);
  --text-heading-inverse:var(--fig-siegel-white);
  --text-body-inverse:var(--fig-siegel-white);
  --text-label:var(--fig-siegel-white);
  --text-caption:var(--fig-neutral-400);
  --text-link:var(--fig-neutral-900);
  --text-product-card-title:var(--fig-siegel-black);
  --text-product-card-secondary:var(--fig-siegel-black);

  --btn-primary:var(--fig-siegel-red);
  --btn-primary-hover:var(--fig-red-800);
  --btn-secondary:var(--fig-neutral-900);
  --btn-secondary-hover:var(--fig-neutral-950);
  --btn-disabled:var(--fig-neutral-100);
  --btn-stroke:var(--fig-neutral-900);
  --btn-stroke-focused:var(--fig-red-100);   /* A FOCUS TOKEN EXISTS — use it */

  --badge-primary:var(--fig-red-900);
  --badge-neutral:var(--fig-neutral-500);

  --bg-primary:var(--fig-neutral-50);
  --bg-secondary:var(--fig-siegel-white);
  --bg-tertiary:var(--fig-red-800);
  --bg-inverse-primary:var(--fig-neutral-900);
  --bg-inverse-secondary:var(--fig-neutral-600);
  --bg-inverse-tertiary:var(--fig-neutral-400);

  /* Product badge colours — PRO95 green, PRO98 blue, PRO70 orange */
  --product-green:var(--fig-siegel-green);
  --product-yellow:var(--fig-siegel-yellow);
  --product-blue:var(--fig-siegel-blue);
  --product-orange:var(--fig-siegel-orange);
  /* Product Code Accent in the client catalogue also uses these four. */
  --product-red:var(--fig-red-600);
  --product-black:var(--fig-siegel-black);
  --product-grey:var(--fig-neutral-500);
  --product-white:var(--fig-siegel-white);

  /* Figma also has an unnamed stray: "Color" = #FFFFFF. Ignore. BUG-34 */

/* ==== COLLECTION 4: "Typography Variables" — AKTIV GROTESK set ==========
   Namespaced -head- to resolve the collision. See BUG-33. */

  --fig-head-h1-size:36.0406494140625px;  --fig-head-h1-lh:43.248779296875px;
  --fig-head-h2-size:32.0361328125px;     --fig-head-h2-lh:38.443359375px;
  --fig-head-h3-size:28.4765625px;        --fig-head-h3-lh:34.171875px;
  --fig-head-h4-size:25.3125px;           --fig-head-h4-lh:30.375px;
  --fig-head-h5-size:22.5px;              --fig-head-h5-lh:27px;
  --fig-head-h6-size:20px;                --fig-head-h6-lh:24px;

/* ==== COLLECTION 5: "Typography Variables" — LATO set ===================
   Namespaced -body-. Same variable names as above in Figma. */

  --fig-body-h1-size:16.218292236328125px; --fig-body-h1-lh:19.461950302124023px;
  --fig-body-h2-size:14.416259765625px;    --fig-body-h2-lh:17.299510955810547px;
  --fig-body-h3-size:12.814453125px;       --fig-body-h3-lh:15.377344131469727px;
  --fig-body-h4-size:11.390625px;          --fig-body-h4-lh:13.668749809265137px;
  --fig-body-h5-size:10.125px;             --fig-body-h5-lh:12.149999618530273px;
  --fig-body-h6-size:9px;                  --fig-body-h6-lh:10.800000190734863px;

/* ==== COLLECTION 6: "Spacing" (3) ======================================
   MISNAMED. These are RADII, not spacing. There are NO spacing variables
   anywhere in the file. _tokens-layout.css is the only spacing source. */

  --fig-radius-sm:2px;
  --fig-radius-md:4px;
  --fig-radius-lg:6px;

  /* Motion — CLAUDE.md §Motion. Only two durations are real. */
  --dur-fast:200ms; /* linear   — button fills */
  --dur-base:300ms; /* ease-out — everything else */
}

/* ==========================================================================
   COLLECTION 2: "Typography Tokens" (40) — BROKEN, DO NOT USE

   Titles/H1/Size -> Type/heading/lg  (64)
   Titles/H2/Size -> Type/heading/lg  (64)   <- same
   Titles/H3/Size -> Type/heading/lg  (64)   <- same
   Titles/H4/Size -> Type/heading/lg  (64)   <- same
   Titles/H5/Size -> Type/heading/lg  (64)   <- same
   Titles/H6/Size -> Type/heading/xs  (32)
   Titles/Display/Size -> Type/heading/display (72)

   H1 through H5 all alias the SAME 64px primitive. The file's actual
   rendered headings are 64 / 38 / 28.48 / 25.31 / 22.5, so this collection
   was never finished. Type/heading/sm (36) and /md (48) are orphaned.
   Build headings from _tokens-typography.css, which was extracted from the
   rendered text styles, not from this collection. See BUG-36.

   Every Titles/*/Weight -> Type/weight/Bold except:
     Titles/Link Primary/Weight   -> Semi Bold  (Aktiv Grotesk, 16px)
     Titles/Link Secondary/Weight -> Regular    (Lato, 14px)
   Every Titles/*/Spacing -> Type/spacing/Headings (-0.4px)
   ========================================================================== */
