/* ==========================================================================
   PowerLight — Color tokens
   "Desaturated purple-blacks carry the surface; a single electric violet
    carries the signal." Night-ops first: dark is the default state.
   ========================================================================== */
:root {
  /* --- Core surfaces (dark, night-ops base) --- */
  --pl-ink: #14111C;         /* primary background */
  --pl-void: #0C0A12;        /* deepest sections & footer */
  --pl-panel: #1C1826;       /* raised cards & nav on dark */
  --pl-panel-2: #16121F;     /* dark card fill inside light sections */
  --pl-panel-glow: #241F33;  /* radial hero / band gradient top */

  /* --- Signal & accent (the beam) --- */
  --pl-violet: #9A7BFF;      /* primary accent — CTAs, active state, links */
  --pl-violet-hot: #B9A3FF;  /* highlights, eyebrows, live markers, beam core */
  --pl-violet-deep: #6C4FD6; /* accent on light surfaces & mono labels */
  --pl-beam-core: #E6DCFF;   /* hottest tip of the beam / gradient stop */
  --pl-ready: #7CFCB4;       /* status only — ready / safe / validated */
  --pl-ready-deep: #128A57;  /* ready/safe on light surfaces */
  --pl-warn: #B04B6B;        /* rare — "don't" / error mark on light */

  /* --- Text & neutrals --- */
  --pl-white: #FFFFFF;       /* headlines & key text on dark */
  --pl-muted: #B3ACC4;       /* body copy on dark */
  --pl-muted-2: #A39BBB;     /* secondary body on dark */
  --pl-dim: #8079A0;         /* mono labels, captions, tertiary on dark */
  --pl-dim-2: #5F5876;       /* footer / faint mono on dark */

  /* --- Light surfaces (the deliberate exhale) --- */
  --pl-light: #F4F2F7;       /* light section background */
  --pl-light-2: #ECE9F2;     /* deeper light band (light-mode analog of void) */
  --pl-light-ink: #1A1622;   /* text on light surfaces */
  --pl-light-muted: #5B5470; /* body copy on light */
  --pl-light-ink-2: #3A3448; /* list / body text on light */
  --pl-border: #E3DFEC;      /* hairlines & dividers on light */
  --pl-light-line-strong: rgba(26,22,34,.22); /* strong hairline on light */

  /* --- Hairlines on dark --- */
  --pl-line: rgba(255,255,255,.07);
  --pl-line-strong: rgba(255,255,255,.10);

  /* --- Translucent violet washes (borders / fills) --- */
  --pl-violet-a10: rgba(154,123,255,.10);
  --pl-violet-a12: rgba(154,123,255,.12);
  --pl-violet-a22: rgba(154,123,255,.22);
  --pl-violet-a40: rgba(154,123,255,.40);
  --pl-violet-a55: rgba(154,123,255,.55);

  /* ---- Theme-aware component tokens (dark defaults; remapped by
     [data-theme="light"] in tokens/themes.css — components consume THESE
     so a whole page or section flips with one attribute) ---- */
  --pl-surface: var(--pl-ink);
  --pl-surface-deep: var(--pl-void);
  --pl-surface-card: var(--pl-panel);
  --pl-surface-glow: var(--pl-panel-glow);
  --pl-text-hi: var(--pl-white);
  --pl-text-body: var(--pl-muted);
  --pl-text-body-2: var(--pl-muted-2);
  --pl-text-label: var(--pl-dim);
  --pl-text-faint: var(--pl-dim-2);
  --pl-hairline: var(--pl-line);
  --pl-hairline-strong: var(--pl-line-strong);
  --pl-control-line: rgba(255,255,255,.28); /* secondary-button outline */
  --pl-accent-fg: var(--pl-violet-hot);     /* accent as TEXT/glyph */
  --pl-ready-fg: var(--pl-ready);           /* ready-green as TEXT/glyph */
  --pl-hud-line: rgba(185,163,255,.7);      /* HUD brackets & instrumentation */

  /* ---- Semantic aliases ---- */
  --bg: var(--pl-ink);
  --bg-deep: var(--pl-void);
  --surface-card: var(--pl-panel);
  --surface-light: var(--pl-light);
  --text-heading: var(--pl-white);
  --text-body: var(--pl-muted);
  --text-label: var(--pl-dim);
  --text-on-light: var(--pl-light-ink);
  --text-body-on-light: var(--pl-light-muted);
  --accent: var(--pl-violet);
  --accent-hi: var(--pl-violet-hot);
  --accent-on-light: var(--pl-violet-deep);
  --status-ready: var(--pl-ready);
  --border-dark: var(--pl-line);
  --border-light: var(--pl-border);
}
