/* Dnairo design tokens v2 (docs/audits/ux-2026-11-02/UI_UX_DESIGN_SYSTEM.md §2).
   Loaded before app.css, site.css, menu.css and landing.css. Role names only (what a value is for, not
   what it looks like); the older names in each sheet (--brand-500, --ink-*, --r-*) stay as they are and
   new components use these. Values are the ones the sheets already use, so loading this file changes nothing. */

:root {
  /* Brand */
  --color-brand: #7C3AED;          /* surfaces and big buttons */
  --color-brand-ink: #6D28D9;      /* brand text and small badges: 4.5:1 on white */
  --color-brand-strong: #5B21B6;   /* hover and pressed on brand fills */
  --color-brand-50: #F5F0FF;
  --color-brand-100: #EADFFF;

  /* Text */
  --color-text: #121619;
  --color-text-2: #2A3036;
  --color-text-muted: #667085;     /* the lightest grey allowed for text */
  --color-text-inverse: #FFFFFF;

  /* Surfaces and borders */
  --color-canvas: #F5F7F9;
  --color-surface: #FFFFFF;
  --color-surface-sunken: #FAFCFE;
  --color-overlay: rgba(18, 22, 25, .55);
  --color-border: #E6E9EE;
  --color-border-strong: #98A2B3;
  --color-focus: #6D28D9;          /* focus ring: 3:1 against white and the canvas (WCAG 1.4.11) */

  /* Status: always shown with a word or an icon too, never by colour alone (WCAG 1.4.1) */
  --color-success: #12A150; --color-success-bg: #E8F7EC; --color-success-ink: #0E8040;
  --color-warning: #F5A524; --color-warning-bg: #FFF7E0; --color-warning-ink: #8A5A00;
  --color-danger: #E5383B;  --color-danger-bg: #FDECEC;  --color-danger-ink: #CB3134;
  --color-info: #2F6FEB;    --color-info-bg: #EAF1FE;    --color-info-ink: #1F57C3;

  /* Charts */
  --color-data-1: #7C3AED; --color-data-2: #FA4E0A; --color-data-3: #12A150;
  --color-data-4: #2F6FEB; --color-data-5: #F5A524; --color-data-6: #98A2B3;

  /* Type: size/line-height pairs (DESIGN_SYSTEM §2) */
  --text-display: 40px; --lh-display: 52px;
  --text-h1: 28px; --lh-h1: 36px;
  --text-h2: 20px; --lh-h2: 28px;
  --text-h3: 16px; --lh-h3: 24px;
  --text-body: 15px; --lh-body: 24px;
  --text-sm: 13px; --lh-sm: 20px;
  --text-xs: 12px; --lh-xs: 16px;
  --text-kpi: 28px; --lh-kpi: 32px;

  /* Space: a 4px scale */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px;
  --space-6: 24px; --space-7: 32px; --space-8: 40px; --space-9: 48px; --space-10: 64px;

  /* Radius, elevation, layers, motion */
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-pill: 999px;
  --elev-1: 0 1px 2px rgba(16, 24, 40, .06);
  --elev-2: 0 8px 24px rgba(16, 24, 40, .08);
  --elev-3: 0 24px 48px rgba(16, 24, 40, .18);
  --z-sticky: 10; --z-drawer: 40; --z-dialog: 50; --z-toast: 60;
  --motion-fast: 120ms; --motion-base: 200ms;

  /* Touch: the target the cashier and the phone apps aim for (WCAG 2.5.8 asks 24px; 44px is the goal) */
  --target-min: 44px;
}

@media (prefers-reduced-motion: reduce) {
  :root { --motion-fast: 0ms; --motion-base: 0ms; }
}
