/* ============================================================
   VioCyber M5 Style Kit — Design Tokens v1.2 (2026-06-12)
   Single source of truth for ALL M5 artifacts (website, decks,
   one-pagers, video end-cards). Derived from code-truth:
   vio-cyber-fe canon (Audiowide, HUD cyan) + first-call-deck.html.
   Future agents: import or inline-copy this block VERBATIM.
   Never invent new color/type values — extend here first.
   ============================================================ */
/* v1.2 READABILITY LAW (binding — spec 2026-06-12-website-design.md §5):
   1 body = --vc-ink, ≥16px, line-height 1.7, max-width var(--vc-measure)
   2 --vc-ink-dim only for true secondary lines   3 --vc-ink-faint never for content
   4 NO alpha-faded text anywhere                 5 mono labels ≥12px, weight 500+, tracking ≤ --vc-label-track
   6 long-form text always panel-backed (never bare on grid/glow atmosphere)
   7 accent-colored text only via --vc-cyan-text, links/chips only */

:root {
  /* ---- Ground (dark theme — primary) ---- */
  --vc-ground-0: #070b14;            /* page base */
  --vc-ground-1: #0a0f1e;            /* radial center / raised ground */
  --vc-panel:    rgba(10, 18, 32, .62);   /* card/panel fill (over ground) */
  --vc-panel-solid: #0d1426;         /* panel when transparency unwanted (email/video) */

  /* ---- Ink (text on dark) — v1.2 readability law (UAT dark-mode fix) ---- */
  --vc-ink:       #e8eef8;           /* primary text — 16.9:1 on ground; BODY PARAGRAPHS USE THIS */
  --vc-ink-dim:   #a9bcd8;           /* secondary text — 10.2:1; captions/support lines ONLY, never the message */
  --vc-ink-faint: #7e93b4;           /* labels/hints — 6.3:1; decorative labels ≥12px ONLY, never content */

  /* ---- Brand accents ---- */
  --vc-cyan:      #06b6d4;           /* PRIMARY accent — brand, links, active states */
  --vc-cyan-soft: rgba(6, 182, 212, .16);
  --vc-cyan-line: rgba(6, 182, 212, .28);
  --vc-cyan-text: #22cde6;           /* cyan AS TEXT (links/short labels) — 10.3:1; never paragraphs */
  --vc-magenta:   #ec4899;           /* secondary — sparing, contrast moments */
  --vc-amber:     #f59e0b;           /* tertiary — warnings, roadmap chips */
  --vc-emerald:   #34d399;           /* quaternary — verified/positive states */
  --vc-on-accent: #04222b;           /* text ON a cyan-filled surface (buttons) */

  /* ---- Hairlines & washes (mode-aware — never hardcode these rgba values) ---- */
  --vc-hairline:        rgba(109, 131, 165, .14);  /* card/panel borders */
  --vc-hairline-strong: rgba(109, 131, 165, .25);  /* chips, dots, emphasized rules */
  --vc-q1-soft: rgba(6, 182, 212, .10);            /* active-chip washes per question */
  --vc-q2-soft: rgba(236, 72, 153, .10);
  --vc-q3-soft: rgba(245, 158, 11, .10);
  --vc-q4-soft: rgba(52, 211, 153, .10);
  --vc-btn-glow: 0 0 24px rgba(6, 182, 212, .35);  /* primary-button hover glow */

  /* ---- The four-question hue system (NEVER reassign) ---- */
  --vc-q1: var(--vc-cyan);           /* Q1 What do I have?        — Continuous Asset Intelligence */
  --vc-q2: var(--vc-magenta);        /* Q2 What matters most?     — Exposure Intelligence */
  --vc-q3: var(--vc-amber);          /* Q3 What should I do next? — Orchestrated Response */
  --vc-q4: var(--vc-emerald);        /* Q4 Can I prove it?        — Provable Security & Compliance */

  /* ---- Typography ---- */
  --vc-font-display: 'Audiowide', sans-serif;                    /* H1/hero/brand ONLY — never body */
  --vc-font-body: 'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif;
  --vc-font-mono: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;  /* labels, data, slide numbers */

  /* Type scale (rem) — display sizes use clamp for responsiveness */
  --vc-text-hero:  clamp(2.2rem, 5vw, 3.6rem);   /* Audiowide */
  --vc-text-h1:    clamp(1.7rem, 3.5vw, 2.4rem); /* Audiowide */
  --vc-text-h2:    1.35rem;                       /* body font, weight 600 */
  --vc-text-body:  1rem;       /* 16px base; line-height 1.7 */
  --vc-text-small: .875rem;
  --vc-text-label: .75rem;     /* mono labels — 12px FLOOR (v1.2); letter-spacing ≤ var(--vc-label-track) */
  --vc-label-track: .08em;     /* v1.2 cap — the .14em-at-9px pattern is banned */
  --vc-measure: 62ch;          /* v1.2 prose measure cap (long-form ONLY — do not widen) */
  --vc-shell: 1400px;          /* site container width (marketing pages, nav, listing) */

  /* ---- Spacing scale (8px base) ---- */
  --vc-s1: .5rem;  --vc-s2: 1rem;  --vc-s3: 1.5rem;
  --vc-s4: 2rem;   --vc-s5: 3rem;  --vc-s6: 4.5rem;

  /* ---- Shape ---- */
  --vc-radius: 6px;                  /* cards/buttons — HUD is angular; never above 8px */
  --vc-bracket: 14px;                /* corner-bracket arm length */
  --vc-line: 1px solid var(--vc-cyan-line);

  /* ---- Motion ---- */
  --vc-ease: cubic-bezier(.22, .9, .3, 1);
  --vc-t-fast: 180ms;                /* hover/micro */
  --vc-t-reveal: 600ms;              /* entrance reveals */
  --vc-stagger: 90ms;                /* per-sibling animation-delay step */

  /* ---- Atmosphere ---- */
  --vc-grid-size: 44px;              /* background grid cell */
  --vc-grid-line: rgba(109, 131, 165, .07);
  --vc-glow-cyan: radial-gradient(ellipse at 20% 0%, rgba(6,182,212,.10), transparent 55%);
  --vc-glow-magenta: radial-gradient(ellipse at 85% 100%, rgba(236,72,153,.07), transparent 50%);
}

/* ============================================================
   CANONICAL RESPONSIVE BREAKPOINTS (convention — CSS @media cannot read
   custom properties, so these are a documented standard, not variables).
   Use ONLY these two across the kit and page CSS:
     Tablet  →  @media (max-width: 900px)
     Phone   →  @media (max-width: 520px)
   (a ≤380px tweak is allowed only where a specific element still overflows).
   ============================================================ */

/* ---- Light-safe variant (print, PDFs, paper one-pagers) ----
   Apply .vc-light on a root container or rely on @media print. */
.vc-light, .vc-print {
  --vc-ground-0: #ffffff;
  --vc-ground-1: #f4f7fb;
  --vc-panel: #ffffff;
  --vc-panel-solid: #ffffff;
  --vc-ink: #16233a;
  --vc-ink-dim: #44566f;
  --vc-ink-faint: #5e7089;           /* v1.2: was #7a8aa2 (3.5:1 — failed AA); now 5.05:1 on white */
  --vc-cyan: #0e7490;                /* darkened for contrast on white (AA) */
  --vc-cyan-soft: rgba(14, 116, 144, .08);
  --vc-cyan-line: rgba(14, 116, 144, .35);
  --vc-cyan-text: #0e7490;           /* light: same as cyan (5.4:1 on white) */
  --vc-magenta: #be185d;
  --vc-amber: #b45309;
  --vc-emerald: #047857;
  --vc-grid-line: rgba(22, 35, 58, .05);
  --vc-glow-cyan: none;
  --vc-glow-magenta: none;
  --vc-on-accent: #ffffff;                          /* light cyan is darker → white text */
  --vc-hairline:        rgba(22, 35, 58, .12);
  --vc-hairline-strong: rgba(22, 35, 58, .25);
  --vc-q1-soft: rgba(14, 116, 144, .08);
  --vc-q2-soft: rgba(190, 24, 93, .07);
  --vc-q3-soft: rgba(180, 83, 9, .08);
  --vc-q4-soft: rgba(4, 120, 87, .08);
  /* v1.2 fix: re-declare hue aliases so they recompute against the light accents
     (var() in a custom property resolves on the declaring element — :root-only
     aliases stay frozen to dark values when .vc-light sits on body) */
  --vc-q1: var(--vc-cyan); --vc-q2: var(--vc-magenta);
  --vc-q3: var(--vc-amber); --vc-q4: var(--vc-emerald);
  --vc-line: 1px solid var(--vc-cyan-line);
  --vc-btn-glow: 0 2px 12px rgba(14, 116, 144, .25);
}

/* Light EDITION usage: dark is brand-primary (web/decks/video). The light
   edition is for documents, print, email, and embedding in light contexts.
   To produce a light-mode artifact: add class "vc-light" on the root
   container (body) — every token flips; no per-component work needed. */

/* ---- Canonical atmosphere recipe (dark pages/slides) ---- */
.vc-ground {
  background:
    var(--vc-glow-cyan),
    var(--vc-glow-magenta),
    linear-gradient(var(--vc-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--vc-grid-line) 1px, transparent 1px),
    radial-gradient(120% 90% at 50% 10%, var(--vc-ground-1), var(--vc-ground-0));
  background-size: auto, auto,
    var(--vc-grid-size) var(--vc-grid-size),
    var(--vc-grid-size) var(--vc-grid-size), auto;
  color: var(--vc-ink);
  font-family: var(--vc-font-body);
}

/* ---- Reduced motion (mandatory in every artifact) ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
