/* RALOTECH BUSINESS — design tokens (v8 language, 2026-10-15).

   Retempered from the emerald/slate console to the SwiftPOS landing v8
   (handoff-2026-10-06-v8/DESIGN-BRIEF.md + landing/assets/site.css):
     --bg #080d16 · --ink #e8eef7 · --muted #94a3b5
     --blue #8cc3ff (light) · --accent #4f8cff · --line #c3cfdd2b
     Inter (text) · Syne (display)
   Rule of the brief: true black in the shadows, electric blue as LIGHT and
   never as ink, amber/copper marks only what is active.

   Every --bz-* name is kept — 16.7k lines of surface depend on them; only
   the values change. New names are additive (--bz-active, --bz-glow,
   --bz-shadow*, --bz-btn-*, --bz-on-accent, --bz-font, --bz-display).

   Both modes are built by hand from the v8 source, not by inverting:
   light = html.room-light of the landing (#e8eef7 room, #0d1420/#1d2838
   ink, #49586c muted); dark = the landing :root. Contrast figures in the
   comments are WCAG ratios against the surface named. */

:root {
  color-scheme: light dark;

  /* Type */
  --bz-font:    Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --bz-display: Syne, Inter, system-ui, sans-serif;

  /* Canvas — v8 "room-light" */
  --bz-bg:      #e8eef7;   /* page (the lit room) */
  --bz-bg2:     #ffffff;   /* card / panel */
  --bz-bg3:     #f3f6fa;   /* hover / input */
  --bz-bg4:     #dbe3ee;   /* pressed / dividers */

  /* Text — v8 inks */
  --bz-text:    #0d1420;   /* primary            — 17.6:1 on card */
  --bz-text2:   #1d2838;   /* secondary          — 13.6:1 on card */
  --bz-text3:   #49586c;   /* labels / meta      —  7.3:1 on card, 6.2:1 on page */
  --bz-text4:   #5a6a7f;   /* muted / disabled   —  5.5:1 on card, 4.7:1 on page */

  /* Border — the v8 line, solid */
  --bz-border:  #d7dfea;   /* hairline */
  --bz-border2: #c3cfdd;   /* outline / focus-ring base (= v8 --line, opaque) */

  /* Brand */
  --bz-primary: #080d16;   /* chrome: sidebar — the v8 room, black in both modes */
  --bz-accent:  #155fe6;   /* electric blue as ink in the lit room — 5.5:1 on card, 4.8:1 on its tint */
  --bz-accent2: #0a3f8f;   /* accent hover (v8 header-cta hover on room-light) */
  --bz-accent3: rgba(21, 95, 230, 0.10);   /* accent tint — active nav / selected */
  --bz-on-accent: #ffffff; /* ink on an accent-filled surface */

  /* Active marker — amber/copper. Marks only what is active (a bar, a dot,
     a ring). Never text in light mode: 2.3:1 on white. */
  --bz-active:  #ff8a3d;
  --bz-active-ink: #b4530a; /* amber as ink where a word must be amber — 5.0:1 on card */

  /* Primary (ink) button — v8 .button-primary / .header-cta */
  --bz-btn-bg:    #0d1420;
  --bz-btn-ink:   #ffffff;
  --bz-btn-hover: #0a3f8f;

  /* Status */
  --bz-danger:     #b01e18;  /* 6.9:1 on card, 6.0:1 on its tint over a card, 5.2:1 on its tint over the page (#c4231a was 4.4 there — tax/financial errors sit on the page) */
  --bz-danger-bg:  rgba(196, 35, 26, 0.08);
  --bz-warning:    #9a4607;  /* 6.5:1 on card, 5.6:1 on its tint and on the page */
  --bz-warning-bg: rgba(154, 70, 7, 0.10);
  --bz-success:    #0a6b4f;  /* 6.5:1 on card, 5.6:1 on its tint */
  --bz-success-bg: rgba(10, 107, 79, 0.10);
  --bz-info:       #0f50c8;  /* 7.0:1 on card, 5.2:1 on its tint over the page (the accent itself is 4.1 there — the drawer's status pills in portrait) */
  --bz-info-bg:    rgba(21, 95, 230, 0.10);
  /* Ink on a status-filled surface (solid danger/warning/success buttons,
     badges). White on the dark-mode corals/ambers fails; these do not. */
  --bz-on-danger:  #ffffff;
  --bz-on-warning: #ffffff;
  --bz-on-success: #ffffff;

  /* Light and shadow — true black in the shadows, blue as light */
  --bz-glow:      0 0 0 3px rgba(21, 95, 230, 0.22);
  --bz-shadow:    0 1px 2px rgba(13, 20, 32, 0.06), 0 8px 24px rgba(13, 20, 32, 0.06);
  --bz-shadow-lg: 0 24px 64px rgba(13, 20, 32, 0.18), 0 2px 8px rgba(13, 20, 32, 0.08);
  --bz-scrim:     rgba(8, 13, 22, 0.55);

  /* Sidebar dimensions */
  --bz-sidebar-w: 256px;

  /* Radius — tighter, architectural (v8: 4/6px, pills 999) */
  --bz-r-sm: 6px;
  --bz-r:    8px;
  --bz-r-lg: 10px;
  --bz-r-xl: 14px;
}

/* Dark mode — the v8 :root. Auto via prefers-color-scheme; a page may pin
   it with <html data-theme="dark"> or opt out with data-theme="light". */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bz-bg:      #080d16;
    --bz-bg2:     #0d1420;
    --bz-bg3:     #131c2b;
    --bz-bg4:     #1d2838;

    --bz-text:    #e8eef7;   /* 15.9:1 on card */
    --bz-text2:   #c3cfdd;   /* 11.3:1 on card */
    --bz-text3:   #94a3b5;   /*  7.2:1 on card */
    --bz-text4:   #7b8a9e;   /*  5.3:1 on card */

    --bz-border:  #223042;
    --bz-border2: #33435a;

    --bz-primary: #05080e;   /* truer black than the page: the chrome recedes */
    --bz-accent:  #4f8cff;   /* the brand blue itself — 5.8:1 on card */
    --bz-accent2: #8cc3ff;   /* hover = the light */
    --bz-accent3: rgba(79, 140, 255, 0.16);
    --bz-on-accent: #061125; /* white on #4f8cff is 3.2:1 — dark ink instead, 5.9:1 */

    --bz-active:  #ff8a3d;
    --bz-active-ink: #ffb37a;

    --bz-btn-bg:    #e8eef7;
    --bz-btn-ink:   #0d1420;
    --bz-btn-hover: #8cc3ff;

    --bz-danger:     #ff7b70;  /* 7.3:1 on card */
    --bz-danger-bg:  rgba(255, 123, 112, 0.12);
    --bz-warning:    #ffb454;  /* 10.6:1 on card */
    --bz-warning-bg: rgba(255, 180, 84, 0.12);
    --bz-success:    #35d39f;  /* 9.7:1 on card */
    --bz-success-bg: rgba(53, 211, 159, 0.12);
    --bz-info:       #8cc3ff;
    --bz-info-bg:    rgba(140, 195, 255, 0.12);
    --bz-on-danger:  #1f0705;  /* 7.3:1 on #ff7b70 */
    --bz-on-warning: #1f1200;  /* 10.5:1 on #ffb454 */
    --bz-on-success: #03201a;  /* 9.5:1 on #35d39f */

    --bz-glow:      0 0 0 3px rgba(140, 195, 255, 0.28);
    --bz-shadow:    0 1px 0 rgba(0, 0, 0, 0.6), 0 12px 32px rgba(0, 0, 0, 0.55);
    --bz-shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.75), 0 2px 8px rgba(0, 0, 0, 0.6);
    --bz-scrim:     rgba(0, 0, 0, 0.7);
  }
}
:root[data-theme="dark"] {
  --bz-bg:      #080d16;
  --bz-bg2:     #0d1420;
  --bz-bg3:     #131c2b;
  --bz-bg4:     #1d2838;
  --bz-text:    #e8eef7;
  --bz-text2:   #c3cfdd;
  --bz-text3:   #94a3b5;
  --bz-text4:   #7b8a9e;
  --bz-border:  #223042;
  --bz-border2: #33435a;
  --bz-primary: #05080e;
  --bz-accent:  #4f8cff;
  --bz-accent2: #8cc3ff;
  --bz-accent3: rgba(79, 140, 255, 0.16);
  --bz-on-accent: #061125;
  --bz-active:  #ff8a3d;
  --bz-active-ink: #ffb37a;
  --bz-btn-bg:    #e8eef7;
  --bz-btn-ink:   #0d1420;
  --bz-btn-hover: #8cc3ff;
  --bz-danger:     #ff7b70;
  --bz-danger-bg:  rgba(255, 123, 112, 0.12);
  --bz-warning:    #ffb454;
  --bz-warning-bg: rgba(255, 180, 84, 0.12);
  --bz-success:    #35d39f;
  --bz-success-bg: rgba(53, 211, 159, 0.12);
  --bz-info:       #8cc3ff;
  --bz-info-bg:    rgba(140, 195, 255, 0.12);
  --bz-on-danger:  #1f0705;
  --bz-on-warning: #1f1200;
  --bz-on-success: #03201a;
  --bz-glow:      0 0 0 3px rgba(140, 195, 255, 0.28);
  --bz-shadow:    0 1px 0 rgba(0, 0, 0, 0.6), 0 12px 32px rgba(0, 0, 0, 0.55);
  --bz-shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.75), 0 2px 8px rgba(0, 0, 0, 0.6);
  --bz-scrim:     rgba(0, 0, 0, 0.7);
}
