/* Demo kit tokens: every colour, size and radius the kit uses, per theme, in this one file.
   A product copies this file to product/tokens.css (loaded after it) and overrides only what differs.
   kit.css and product CSS use var(--...) only: no raw colours, px font sizes or z-index elsewhere.
   Contrast targets (checked by qa/run.mjs): text 4.5:1 on every surface, large text 3:1. */
:root,
[data-theme='light'] {
  color-scheme: light;
  --bg: #f6f6f4;
  --surface: #ffffff;
  --surface-2: #efefec;
  --fg: #1b1c1f;
  --muted-fg: #5b5e66; /* 6.3:1 on --surface, 5.8:1 on --bg */
  --border: #dedfdb;
  --border-strong: #b9bbb5;
  --brand: #3d4fd6;
  --brand-fg: #ffffff;
  --brand-text: #3242b8;
  --brand-subtle: #e9ebfb;
  --success: #1d7a3e;
  --warning: #8a5300;
  --danger: #b42318;
  --scrim: rgb(20 20 24 / 0.45);
  --shadow: 0 16px 40px rgb(20 20 24 / 0.18);
}

[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0e1014;
  --surface: #15181d;
  --surface-2: #1d2128;
  --fg: #eef0f3;
  --muted-fg: #a3a9b4; /* 7.6:1 on --surface */
  --border: #2a2f37;
  --border-strong: #3d434d;
  --brand: #a9b4ff;
  --brand-fg: #11131c;
  --brand-text: #b9c2ff;
  --brand-subtle: #232a4a;
  --success: #5fd38a;
  --warning: #f0b45a;
  --danger: #ff8a80;
  --scrim: rgb(0 0 0 / 0.6);
  --shadow: 0 16px 40px rgb(0 0 0 / 0.55);
}

:root {
  /* type roles: the only font sizes in the demo */
  --font: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 24px;
  /* spacing, radius, controls */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --radius: 8px;
  --radius-lg: 14px;
  --control-h: 36px; /* desktop */
  --touch: 44px; /* frame narrower than 48rem */
  /* layers */
  --z-overlay: 21;
  --z-toast: 30;
  /* weight roles: the only font weights in the demo */
  --fw-regular: 400;
  --fw-semibold: 600;
  /* reviewer strip: graphite with one restrained blue, the same in both themes, so it never reads as product UI.
     Contrast on --sx-bg: fg 15.2:1, muted 7.4:1, accent 7.9:1. */
  --sx-bg: #1b1e23;
  --sx-panel: #22262c;
  --sx-control: #2b3037;
  --sx-control-hover: #353b44;
  --sx-line: #3a4049;
  --sx-fg: #f1f3f5;
  --sx-muted: #aab1bb;
  --sx-accent: #8fb0ff;
  --sx-accent-bg: #2a3550;
  --sx-decision: #e6c07a;
  --sx-h: 32px; /* strip control height with a mouse; 44px under a coarse pointer */
}
