/* PromoPier design tokens — the single source of truth (spec UX-D10, §5.8).
   Components consume semantic aliases only; primitives are listed first so the aliases can be re-pointed
   (a dark theme later re-maps aliases without touching components, spec UX-D11). */
:root {
  /* ---- primitives: neutrals ---- */
  --ink-900: #0f172a; --ink-800: #1e293b; --ink-700: #334155; --ink-600: #475569; --ink-500: #64748b;
  --ink-400: #94a3b8; --ink-300: #cbd5e1; --ink-200: #e2e8f0; --ink-100: #f1f5f9; --ink-50: #f8fafc; --white: #ffffff;
  /* ---- primitives: meaning hues (each meaning owns its hue) ---- */
  --savings-100: #dcfce7; --savings-600: #16a34a; --savings-700: #15803d;
  --verified-100: #ccfbf1; --verified-700: #0f766e;
  --expiry-100: #fef3c7; --expiry-200: #fde68a; --expiry-700: #b45309;
  --danger-100: #fee2e2; --danger-700: #b91c1c;
  --info-100: #dbeafe; --info-700: #1d4ed8;
  --flash-700: #7e22ce; --flash-100: #f3e8ff;
  --focus: #2563eb;

  /* ---- semantic aliases ---- */
  --color-bg: var(--white);
  --color-surface: var(--white);
  --color-surface-muted: var(--ink-50);
  --color-border: var(--ink-200);
  --color-border-strong: var(--ink-500);   /* input borders: 3:1 non-text contrast (spec §5.11) */
  --color-text: var(--ink-900);
  --color-text-muted: var(--ink-600);
  --color-text-subtle: var(--ink-500);
  --color-decoration: var(--ink-400);      /* 2.58:1 — decoration and borders only, never text */
  --color-primary: var(--ink-900);         /* primary buttons are ink so colour stays semantic */
  --color-primary-text: var(--white);
  --color-link: var(--ink-900);
  --color-savings-text: var(--savings-700); --color-savings-bg: var(--savings-100); --color-savings-solid: var(--savings-600);
  --color-verified-text: var(--verified-700); --color-verified-bg: var(--verified-100);
  --color-expiry-text: var(--expiry-700); --color-expiry-bg: var(--expiry-100); --color-expiry-border: var(--expiry-200);
  --color-danger-text: var(--danger-700); --color-danger-bg: var(--danger-100);
  --color-info-text: var(--info-700); --color-info-bg: var(--info-100);
  --color-flash-text: var(--flash-700); --color-flash-bg: var(--flash-100);

  /* ---- spacing: 8-point scale ---- */
  --sp-0_5: 2px; --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-6: 24px; --sp-8: 32px;
  --sp-10: 40px; --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;

  /* ---- radii ---- */
  --r-1: 4px; --r-2: 8px; --r-3: 12px; --r-4: 16px; --r-pill: 999px;

  /* ---- type: Inter, 1.25 scale from 16 px, line heights on a 4 px baseline ---- */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-12: 12px; --fs-13: 13px; --fs-14: 14px; --fs-16: 16px; --fs-20: 20px; --fs-25: 25px; --fs-31: 31px; --fs-39: 39px; --fs-49: 49px; --fs-61: 61px;
  --lh-12: 16px; --lh-13: 20px; --lh-14: 20px; --lh-16: 24px; --lh-20: 28px; --lh-25: 32px; --lh-31: 40px; --lh-39: 48px; --lh-49: 56px; --lh-61: 68px;
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-display: 650;
  /* money roles, always tabular numerals */
  --money-xl: var(--fw-display) var(--fs-39)/var(--lh-39) var(--font);
  --money-lg: var(--fw-semibold) var(--fs-31)/var(--lh-31) var(--font);
  --money-md: var(--fw-semibold) var(--fs-20)/var(--lh-20) var(--font);
  --money-sm: var(--fw-semibold) var(--fs-14)/var(--lh-14) var(--font);

  /* ---- layout ---- */
  --container: 1200px; --gutter: 24px; --header-h: 72px; --tabbar-h: 64px; --claimbar-h: 72px;
  --rail-w: 264px; --touch: 44px;

  /* ---- motion: feedback only ---- */
  --t-state: 120ms; --t-transition: 180ms; --t-sheet: 240ms; --t-emphasis: 320ms;
}
