/* Standalone pages (offline, privacy, terms, support) — DESIGN.md tokens.
   Mirrors the token block at the top of app.css; these pages don't load
   app.css, so the values are repeated here. Keep the two in sync. The
   legacy names below are the ones these pages' own <style> blocks use. */
:root {
  color-scheme: dark;

  /* Surfaces */
  --bg-0:         #070A0D;
  --bg-1:         #0D1217;
  --bg-2:         #131A21;
  --bg-3:         #1A232C;
  --line-1:       #1E2832;
  --line-2:       #2A3742;
  --line-control: #5A6F7E;
  --bar-glass:    rgba(19,26,33,.88);

  /* Text */
  --text-1: #E8EEF2;
  --text-2: #9AABB8;
  --text-3: #7C8E9C;

  /* Brand */
  --cyan:       #03E2E2;
  --on-cyan:    #021416;
  --cyan-text:  #03E2E2;
  --cyan-tint:  rgba(3,226,226,.12);
  --cyan-line:  rgba(3,226,226,.40);

  /* Semantic */
  --positive:      #2BD47D;
  --negative:      #FF5A6A;
  --warning:       #F5B23D;
  --live:          #FF4757;
  --info:          #5AA9FF;
  --premium:       #B08CFF;
  --positive-tint: rgba(43,212,125,.12);
  --negative-tint: rgba(255,90,106,.12);
  --warning-tint:  rgba(245,178,61,.12);
  --live-tint:     rgba(255,71,87,.12);
  --info-tint:     rgba(90,169,255,.12);
  --premium-tint:  rgba(176,140,255,.12);

  /* Type */
  --font-ui:      'Barlow', system-ui, -apple-system, sans-serif;
  --font-display: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  --font-num:     'Roboto Mono', ui-monospace, monospace;

  /* Spacing (4px base) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-12: 48px;

  /* Shape and depth */
  --r-1: 4px; --r-2: 8px; --r-3: 12px; --r-full: 999px;
  --shadow-overlay: 0 12px 32px rgba(0,0,0,.5);
  --scrim: rgba(0,0,0,.6);

  /* Motion */
  --dur-fast: 120ms; --dur-base: 200ms; --dur-slow: 320ms;
  --ease-out: cubic-bezier(.2,.8,.2,1);
  --ease-in:  cubic-bezier(.4,0,1,1);

  /* Layers */
  --z-bar: 40; --z-nav: 50; --z-sheet: 60; --z-overlay: 70; --z-toast: 80; --z-paywall: 90;

  --bg:      var(--bg-0);
  --surface: var(--bg-1);
  --card:    var(--bg-1);
  --bg2:     var(--bg-1);
  --bg3:     var(--bg-3);
  --border:  var(--line-1);
  --accent:  var(--cyan-text);
  --text:    var(--text-1);
  --muted:   var(--text-2);
  --muted2:  var(--text-3);
}

:root[data-theme="light"] {
  color-scheme: light;

  --bg-0:         #F3F6F8;
  --bg-1:         #FFFFFF;
  --bg-2:         #F7FAFB;
  --bg-3:         #EBF0F3;
  --line-1:       #E1E7EB;
  --line-2:       #C9D3DA;
  --line-control: #7D8E99;
  --bar-glass:    rgba(255,255,255,.9);

  --text-1: #0B1419;
  --text-2: #475864;
  --text-3: #5E6E79;

  --cyan-text: #00727A;
  --cyan-tint: rgba(0,114,122,.08);
  --cyan-line: rgba(0,114,122,.40);

  --positive:      #0A7442;
  --negative:      #C8243A;
  --warning:       #9A5B00;
  --live:          #C8243A;
  --info:          #1C64C4;
  --premium:       #6E45D6;
  --positive-tint: rgba(10,116,66,.08);
  --negative-tint: rgba(200,36,58,.08);
  --warning-tint:  rgba(154,91,0,.08);
  --live-tint:     rgba(200,36,58,.08);
  --info-tint:     rgba(28,100,196,.08);
  --premium-tint:  rgba(110,69,214,.08);
  --violet-b:      rgba(110,69,214,.35);

  --shadow-overlay: 0 12px 32px rgba(11,20,25,.14);
  --scrim: rgba(11,20,25,.4);
}

body { font-family: var(--font-ui); -webkit-font-smoothing: antialiased; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: 0; }
code { font-family: var(--font-num); font-size: 13px; color: var(--accent); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
