/* Pushreel design system "Daylight Neon" — shared by landing page and app.
   Replaces "On Air". Full brief: design/pushreel-neon/neon.md

   Direction: fluorescent ink and neon light in broad daylight. Pure white paper, violet-black ink,
   three fluorescent inks with fixed jobs:
     LASER (pink, --rec)  = signal: the one action, live/record, playhead, edit marks.
     VOLT  (yellow-green) = highlighter: emphasis, selection, "on" states, price.
     ICE   (cyan)         = the cool light: info, progress, third output, second light source.
   Where two inks overlap they multiply (mix-blend-mode: multiply) into red, green and blue,
   the three primaries of video. Nothing on the page has a black shadow: objects are lit from
   below by a neon tube ("underglow").

   Fonts (Google Fonts):
     Sofia Sans Condensed (display, 700–900), Sofia Sans (body/UI, 400–800), Spline Sans Mono (code, labels, timecodes)
   <link href="https://fonts.googleapis.com/css2?family=Sofia+Sans+Condensed:wght@600..900&family=Sofia+Sans:wght@400..800&family=Spline+Sans+Mono:wght@400..700&display=swap" rel="stylesheet"> */

:root {
  /* ---------- grounds (one cool daylight family, pure white first) ---------- */
  --paper: #ffffff;
  --paper-2: #f3f4f8;      /* panels, alternating bands */
  --paper-3: #e6e8ef;      /* sunken wells, table heads */
  --line: #d5d8e2;         /* hairlines, decorative only (1.4:1) */
  --line-strong: #0e0a1f;  /* ink outlines on key objects (1.5px on landing, 1px in app) */

  /* ---------- ink (violet-black, never pure #000) ---------- */
  --ink: #0e0a1f;          /* 19.4:1 on paper */
  --ink-2: #3a3650;        /* body secondary, 11.5:1 on paper, 10.5:1 on paper-2 */
  --ink-3: #5f5b78;        /* captions, meta, 6.5:1 on paper, 5.3:1 on paper-3 */
  --on-neon: #0e0a1f;      /* the ONLY text colour allowed on any neon fill */

  /* ---------- LASER, the signal (old --rec role) ---------- */
  --rec: #ff2a8a;          /* fills, dots, playheads, rings, tubes. 3.5:1 on paper: graphics and >=24px bold only. Ink on it: 5.5:1 */
  --rec-text: #b8005c;     /* pink text and links on paper, 6.6:1 (6.0 on paper-2, 5.5 on --rec-tint) */
  --rec-tint: #ffe3f0;
  --rec-hot: #ff5ca8;      /* lighter tube core / top of button sheen; pink text inside dark wells (6.8:1 on --well) */
  --rec-deep: #e0006e;     /* tube shading and hard edges only. Not a ground for text (ink on it 4.1:1) */

  /* ---------- VOLT, the highlighter ---------- */
  --volt: #d6ff00;         /* fill only. 1.16:1 on paper, so it never carries an edge alone. Ink on it: 16.8:1 */
  --volt-text: #4a5d00;    /* volt-coloured text on paper, 7.4:1 (7.0 on --volt-tint) */
  --volt-line: #6e8a00;    /* volt-coloured lines/icons that must be seen on paper, 4.0:1 */
  --volt-tint: #f4ffc2;

  /* ---------- ICE, the cool light ---------- */
  --ice: #00d1ff;          /* fill only. 1.8:1 on paper. Ink on it: 10.7:1 */
  --ice-text: #006c8f;     /* 5.9:1 on paper (5.3 on --ice-tint) */
  --ice-line: #0088ad;     /* 4.1:1 on paper */
  --ice-tint: #d9f7ff;

  /* ---------- overprints (what multiply produces; use as flat colours where blend modes are not possible) ---------- */
  --ov-red: #d62a00;       /* LASER x VOLT. White on it 5.0:1 */
  --ov-green: #00d100;     /* VOLT x ICE */
  --ov-blue: #00228a;      /* LASER x ICE */

  /* ---------- semantic (never neon: status must not be confused with brand) ---------- */
  --ok: #0a6b3d;   --ok-tint: #ddf7e6;     /* 6.6:1 on paper, 5.8 on tint */
  --warn: #7a4e00; --warn-tint: #fff0c2;   /* 7.2:1, 6.3 on tint */
  --err: #a81e14;  --err-tint: #ffe4de;    /* 7.3:1, 6.1 on tint. Brick red, clearly not LASER pink */

  /* ---------- dark wells: terminal, preview stage, burned-in captions, footer. The only place neon text may glow. ---------- */
  --well: #0e0a1f;
  --well-2: #1a1530;
  --well-line: #322b4f;
  --well-ink: #f3f4f8;     /* 17.7:1 on well */
  --well-ink-2: #a9a6c4;   /* 8.3:1 on well, 7.5 on well-2 */
  --well-ok: #6bf0a8;      /* 13.6:1 on well */
  /* in wells: --volt 16.8:1, --ice 10.7:1, --rec-hot 6.8:1, --rec 5.5:1 */

  /* ---------- demo app "Tiny Wins" (only inside phone screens), pulled toward the three inks ---------- */
  --tw-bg: #faf7ff; --tw-ink: #231338; --tw-pink: #ff3d9a; --tw-teal: #00a99d;
  --tw-violet: #5b3df5; --tw-sky: #1fa8ff; --tw-sun: #ffd21f;

  /* ---------- type ---------- */
  --f-display: "Sofia Sans Condensed", "Arial Narrow", system-ui, sans-serif;  /* headlines and anything >= 20px */
  --f-text: "Sofia Sans", system-ui, sans-serif;                               /* body, UI, and headings below 20px (700–800) */
  --f-mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --f-ui: var(--f-text);

  /* ---------- shape (tubes bend round: slightly softer than On Air) ---------- */
  --r-s: 8px; --r-m: 14px; --r-l: 22px; --r-phone: 30px; --r-pill: 999px;
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1200px;
  --bw: 1.5px;             /* ink outline weight on key objects (landing). App uses 1px. */

  /* ---------- UNDERGLOW: replaces every "6px 6px 0 var(--ink)". A lit tube line under the object plus two blooms. ---------- */
  --under-rec:  0 3px 0 0 var(--rec),  0 12px 22px -6px rgb(255 42 138 / .55), 0 30px 56px -16px rgb(255 42 138 / .38);
  --under-volt: 0 3px 0 0 var(--volt), 0 12px 22px -6px rgb(160 205 0 / .62),  0 30px 56px -16px rgb(184 230 0 / .46);
  --under-ice:  0 3px 0 0 var(--ice),  0 12px 22px -6px rgb(0 190 240 / .55),  0 30px 56px -16px rgb(0 209 255 / .38);
  --under-rec-s:  0 2px 0 0 var(--rec),  0 8px 16px -6px rgb(255 42 138 / .5);   /* small objects, mobile */
  --under-volt-s: 0 2px 0 0 var(--volt), 0 8px 16px -6px rgb(160 205 0 / .6);
  --under-ice-s:  0 2px 0 0 var(--ice),  0 8px 16px -6px rgb(0 190 240 / .5);
  --under-rec-hover: 0 4px 0 0 var(--rec), 0 16px 30px -6px rgb(255 42 138 / .7), 0 40px 70px -16px rgb(255 42 138 / .5);
  --under-key: var(--under-rec);   /* default for "key objects" */

  /* ---------- HALO: all-round glow for dots, focus, the live playhead ---------- */
  --halo-rec:  0 0 0 4px rgb(255 42 138 / .16), 0 0 22px 2px rgb(255 42 138 / .45);
  --halo-volt: 0 0 0 4px rgb(214 255 0 / .55),  0 0 22px 2px rgb(184 230 0 / .55);
  --halo-ice:  0 0 0 4px rgb(0 209 255 / .2),   0 0 22px 2px rgb(0 209 255 / .5);
  --focus-ring: 0 0 0 2px var(--paper), 0 0 0 5px var(--ink), 0 0 0 9px rgb(214 255 0 / .9);  /* ink ring carries contrast, volt is the glow */

  /* ---------- glow inside dark wells (real neon: text-shadow and filter) ---------- */
  --glow-text-rec:  0 0 6px rgb(255 42 138 / .9), 0 0 20px rgb(255 42 138 / .5);
  --glow-text-volt: 0 0 6px rgb(214 255 0 / .75), 0 0 20px rgb(214 255 0 / .35);
  --glow-text-ice:  0 0 6px rgb(0 209 255 / .8),  0 0 20px rgb(0 209 255 / .4);
  --tube-rec:  drop-shadow(0 0 2px rgb(255 42 138 / .9)) drop-shadow(0 0 10px rgb(255 42 138 / .45));  /* filter: for SVG tube lines */
  --tube-volt: drop-shadow(0 0 2px rgb(160 205 0 / .9))  drop-shadow(0 0 10px rgb(184 230 0 / .5));
  --tube-ice:  drop-shadow(0 0 2px rgb(0 190 240 / .9))  drop-shadow(0 0 10px rgb(0 209 255 / .45));

  /* ---------- gradients. Rule: LASER and ICE never blend smoothly into each other (that makes the purple everyone ships). ---------- */
  --g-tube: linear-gradient(180deg, #ff5ca8 0%, #ff2a8a 50%, #f5187f 100%);            /* "Tube": primary button, playhead cap. Ink label >= 4.9:1 everywhere */
  --g-heat: linear-gradient(90deg, #ff2a8a 0%, #ff7a3c 38%, #ffd400 70%, #d6ff00 100%); /* "Heat": laser to volt, thin bars only (<= 8px high) */
  --g-fresh: linear-gradient(90deg, #d6ff00 0%, #5cffa0 50%, #00d1ff 100%);             /* "Fresh": volt to ice, progress and success */
  --g-marker: linear-gradient(100deg, transparent 0 2%, #d6ff00 4% 96%, transparent 98%); /* "Marker": highlighter swipe behind a word */
  --g-holo: conic-gradient(from 210deg at 32% 28%, #d6ff00, #9bffd0, #00d1ff, #ffffff, #ff9ccb, #fff3a0, #d6ff00); /* "Foil": stickers only */
  --g-split: linear-gradient(90deg, #ff2a8a 0 33.33%, #d6ff00 33.33% 66.66%, #00d1ff 66.66% 100%); /* "Three out": hard-stop triple bar */
  --g-leak:                                                                              /* "Light leak": page-corner atmosphere on paper */
    radial-gradient(42% 46% at 4% 0%,  rgb(255 42 138 / .20), transparent 72%),
    radial-gradient(46% 42% at 52% -6%, rgb(214 255 0 / .55), transparent 72%),
    radial-gradient(42% 50% at 100% 4%, rgb(0 209 255 / .24), transparent 72%);
  --g-well: radial-gradient(70% 90% at 50% 110%, rgb(255 42 138 / .22), transparent 70%), linear-gradient(#0e0a1f, #0e0a1f); /* well lit from below */

  /* ---------- patterns (background-image values; set background-size next to them) ---------- */
  --p-dots: radial-gradient(circle at 1px 1px, rgb(14 10 31 / .17) 1px, transparent 1.6px);  /* size: var(--p-dots-size) */
  --p-dots-size: 22px 22px;
  --p-halftone-rec: radial-gradient(circle, #ff2a8a 0 36%, transparent 39%);                /* size 12px 12px, fade with --m-fade-* */
  --p-halftone-ice: radial-gradient(circle, #00d1ff 0 36%, transparent 39%);
  --p-halftone-size: 12px 12px;
  --p-stripes: repeating-linear-gradient(-45deg, #d6ff00 0 10px, transparent 10px 20px);    /* tape/hatch: "not included", disabled, safe area */
  --p-scan: repeating-linear-gradient(0deg, rgb(255 255 255 / .035) 0 1px, transparent 1px 3px); /* scanlines, wells only */
  --m-fade-br: linear-gradient(135deg, #000 0%, transparent 72%);   /* mask-image helpers for halftones */
  --m-fade-up: linear-gradient(0deg, #000 0%, transparent 85%);

  /* ---------- motion ---------- */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-fast: .14s; --t-med: .28s;
}

/* Wide-gamut screens get inks that sRGB cannot show (this is where it reads as truly fluorescent).
   Contrast pairs above are checked in sRGB; these keep roughly the same lightness. Alpha glows stay sRGB. */
@media (color-gamut: p3) {
  @supports (color: color(display-p3 1 0 0)) {
    :root {
      --rec: color(display-p3 1 .17 .54);
      --volt: color(display-p3 .84 1 0);
      --ice: color(display-p3 0 .83 1);
    }
  }
}

/* Shared keyframes (prefix pr-). Nothing here is scroll-driven. */
@keyframes pr-breathe { 0%, 100% { box-shadow: 0 0 0 0 rgb(255 42 138 / .55), 0 0 10px 0 rgb(255 42 138 / .5); } 50% { box-shadow: 0 0 0 6px rgb(255 42 138 / 0), 0 0 18px 3px rgb(255 42 138 / .65); } }
@keyframes pr-tube-on { 0% { opacity: 0; } 8% { opacity: 1; } 14% { opacity: .15; } 22% { opacity: 1; } 30% { opacity: .4; } 38%, 100% { opacity: 1; } }
@keyframes pr-swipe   { from { background-size: 0% 78%; } to { background-size: 100% 78%; } }   /* matches the .mk marker (100% 78%) */
@keyframes pr-marquee { to { transform: translateX(-50%); } }
@keyframes pr-rise    { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Rules of the system (short form; neon.md is binding)

   COLOUR
   - Neon is a FILL, a glow, a gradient or a line. Text on any neon fill is --on-neon (ink). Never white on neon.
   - Neon-coloured text on paper only through the -text variants (--rec-text, --volt-text, --ice-text).
     Raw --rec as text only >= 24px and weight >= 700 (3.5:1). Raw --volt and --ice are never text or lone lines on paper.
   - A volt or ice shape on paper needs an edge: an ink outline, or it is large (>= 120px) and decorative.
   - Share of a screen: paper 70, ink 15, volt 8, laser 5, ice 2. One ink per job, see header.
   - LASER and ICE never blend smoothly (no pink-to-blue or purple gradients). Overlaps multiply instead.
   - Status colours (--ok, --warn, --err) are not neon and never glow.

   SHADOWS
   - No black or grey shadows. No hard offset shadows. Key objects (terminal, phones, price card, primary button)
     get border: var(--bw) solid var(--ink) plus one --under-* glow. Ordinary cards: 1px --line, no shadow.
   - At most ONE underglow colour per object and three glowing objects per viewport (the hero's terminal + phones count as one group).

   TYPE
   - Headlines: Sofia Sans Condensed 800–900, letter-spacing -0.01em, line-height 0.94–1.0, sentence case.
     Because it is condensed, set it about 25% larger than the old Red Hat sizes. Below 20px use Sofia Sans 700–800 instead.
   - Body: Sofia Sans 400/500, 17–19px on landing, 14–15px in app, line-height 1.5.
   - Mono caps labels (Spline Sans Mono 500, 12–12.5px, letter-spacing .08em) stay the recurring detail: "SCENE 02 · GET STARTED".
   - One word per headline carries the marker: background: var(--g-marker) behind ink text, box-decoration-break: clone,
     padding 0 .12em, drawn once on load with pr-swipe. No underline bars any more.

   COMPONENTS
   - Primary button: background var(--g-tube), ink label 800, ink border, radius --r-pill, min-height 50px, box-shadow var(--under-rec-s);
     hover var(--under-rec-hover) and translateY(-1px). No dot. Secondary: paper, ink border, hover fills --volt.
   - Burned-in captions: white Sofia Sans Condensed 800 on a --well box, radius 6px; the key word gets a --volt fill with ink text.
   - Edit marks (click ring, zoom frame, playhead, cut ticks) are always --rec; inside wells they carry --tube-rec.
   - Selection and "on": --volt fill with ink text or an ink track with a volt knob. Never pink (pink means act or live).

   MOTION
   - CSS only. On load: staggered pr-rise of hero parts, tubes flicker on once (pr-tube-on, .7s), marker swipes once.
     Loops allowed: the REC dot (pr-breathe 2.4s), the hero reel, one marquee band (pr-marquee 36s linear).
   - No scroll-triggered animation, no parallax, no cursor followers.
   - @media (prefers-reduced-motion: reduce): animation: none everywhere, markers fully drawn, tubes on, hero holds a still frame.
*/
