/* ════════════════════════════════════════════════════════════════════
   Slingshot Lanes — premium dark design system  (redesign 2026-06-15)
   Shared foundation for all three direction mockups.

   Principles (from the dashboard-aesthetics research pass):
   • DEPTH BY SURFACE LADDER, NOT SHADOW. Four near-black steps + hairline
     borders create depth. No drop-shadows, no glassmorphism blur, no glow
     soup. (The old board leaned on backdrop-blur + 4 colours of box-shadow.)
   • ACCENT DISCIPLINE. Orange = ACTIVE / primary action ONLY. Green-teal =
     FREE / landed ONLY. Amber = idle ONLY. Teal = brand/links/info. Red =
     danger/over-context. A colour means exactly one thing, everywhere.
   • OFF-WHITE + OPACITY HIERARCHY. One ink colour at four opacities does the
     work of five greys. Primary 1.0 · secondary .66 · label .42 · faint .26.
   • 8PX RHYTHM. Every gap / pad / radius is a multiple of 4, mostly 8.
   • NUMBERS ARE TABULAR. Counts, %, hashes, ages → tnum + mono where codey.
   ════════════════════════════════════════════════════════════════════ */

/* Inter — self-hosted variable woff2 (the deployment CSP forbids Google Fonts;
   'self' is allowed, so the font ships beside the CSS). Same typeface as QA. */
@font-face {
  font-family: 'Inter';
  src: url('InterVariable.woff2') format('woff2-variations'),
       url('InterVariable.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* App-identity face (Futura) for the wordmark + hero titles, mirroring the iOS app. */
@font-face {
  font-family: 'SlingshotFutura';
  src: local('Futura Medium'), local('Futura-Medium'), local('Futura');
  font-weight: 100 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'SlingshotFutura';
  src: local('Futura Bold'), local('Futura-Bold');
  font-weight: 600 900; font-style: normal; font-display: swap;
}

:root {
  /* ── Surface ladder — flat depth ─────────────────────────────────── */
  --s0: #0a0b0d;          /* page base */
  --s1: #0e0f13;          /* card */
  --s2: #131419;          /* raised: input, inner well, popover */
  --s3: #191b21;          /* hover / active raise */
  --s-overlay: #1c1e25;   /* modal */

  /* ── Hairlines ───────────────────────────────────────────────────── */
  --line:        rgba(255,255,255,0.07);
  --line-2:      rgba(255,255,255,0.11);
  --line-strong: rgba(255,255,255,0.16);

  /* ── Ink — one colour, four weights ──────────────────────────────── */
  --t0: #f4f5f7;                       /* primary */
  --t1: rgba(244,245,247,0.66);        /* secondary / body */
  --t2: rgba(244,245,247,0.42);        /* labels / meta */
  --t3: rgba(244,245,247,0.26);        /* faint / placeholder */

  /* ── Accents (disciplined) ───────────────────────────────────────── */
  --active:    #ff8b2e;    --active-ink: #ffb061;   --active-bg: rgba(255,139,46,0.13);  --active-line: rgba(255,139,46,0.34);
  --landed:    #54d199;    --landed-ink: #7fe0b4;   --landed-bg: rgba(84,209,153,0.12);  --landed-line: rgba(84,209,153,0.30);
  --idle:      #d6a44e;    --idle-ink:   #e6bd6e;   --idle-bg:   rgba(214,164,78,0.12);  --idle-line:   rgba(214,164,78,0.30);
  --info:      #6fb6c9;    --info-ink:   #92cdde;   --info-bg:   rgba(111,182,201,0.12); --info-line:   rgba(111,182,201,0.32);
  --danger:    #e5736e;    --danger-ink: #f0938f;   --danger-bg: rgba(229,115,110,0.12); --danger-line: rgba(229,115,110,0.34);

  /* ── Radii / rhythm ──────────────────────────────────────────────── */
  --r-xs: 6px; --r-sm: 8px; --r: 11px; --r-lg: 14px; --r-xl: 18px;
  --u: 8px;                                /* spacing unit */

  /* ── Type ────────────────────────────────────────────────────────── */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'SlingshotFutura', 'Futura', 'Avenir Next', var(--sans);
  --mono: 'SF Mono', 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--s0);
  color: var(--t0);
  font-family: var(--sans);
  font-size: 14px; line-height: 1.5;
  font-feature-settings: 'cv11' 1, 'ss01' 1, 'tnum' 1, 'calt' 1;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.mono { font-family: var(--mono); font-feature-settings: 'tnum' 1; letter-spacing: -0.01em; }
.display { font-family: var(--display); }
.tnum { font-feature-settings: 'tnum' 1; }
a { color: var(--info-ink); text-decoration: none; }

/* ── Reusable atoms shared by every direction ──────────────────────── */

/* Status pill — tinted bg + matching ink + a status dot. One per status. */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 9px 0 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--line-2);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill.active { color: var(--active-ink); background: var(--active-bg); border-color: var(--active-line); }
.pill.free,
.pill.landed { color: var(--landed-ink); background: var(--landed-bg); border-color: var(--landed-line); }
.pill.idle   { color: var(--idle-ink);   background: var(--idle-bg);   border-color: var(--idle-line); }
.pill.info   { color: var(--info-ink);   background: var(--info-bg);   border-color: var(--info-line); }
.pill.danger { color: var(--danger-ink); background: var(--danger-bg); border-color: var(--danger-line); }
.pill.active .dot { animation: livedot 1.6s ease-in-out infinite; }
@keyframes livedot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.82); } }

/* Kind tag (triage/spike/hotfix) — quiet outline chip */
.tag {
  display: inline-flex; align-items: center; height: 18px; padding: 0 7px;
  border-radius: var(--r-xs); font-size: 9px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--idle-ink); background: var(--idle-bg); border: 1px solid var(--idle-line);
}

/* Button — flat, hairline, one accent on the primary */
.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px;
  border-radius: var(--r-sm); font-family: var(--sans);
  font-size: 12px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--t1); background: var(--s2); border: 1px solid var(--line-2);
  cursor: pointer; transition: background .14s, border-color .14s, color .14s;
  white-space: nowrap;
}
.btn:hover { background: var(--s3); border-color: var(--line-strong); color: var(--t0); }
.btn.primary { color: #1a1206; background: var(--active); border-color: transparent; font-weight: 700; }
.btn.primary:hover { background: var(--active-ink); }
.btn.ghost-info { color: var(--info-ink); border-color: var(--info-line); background: var(--info-bg); }
.btn.ghost-info:hover { background: rgba(111,182,201,0.18); }
.btn.danger { color: var(--danger-ink); border-color: var(--danger-line); background: var(--danger-bg); }
.btn.danger:hover { background: rgba(229,115,110,0.2); }
.btn.sm { height: 26px; padding: 0 10px; font-size: 11px; }

/* Thin context bar — 4px track + a glow dot at the head */
.ctx { display: flex; flex-direction: column; gap: 5px; }
.ctx-track { position: relative; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.07); overflow: visible; }
.ctx-fill  { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; }
.ctx-fill::after {           /* glow dot at the head of the fill */
  content: ''; position: absolute; right: -1px; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 7px 1px currentColor;
}
.ctx.ok     .ctx-fill { background: var(--info);   color: var(--info); }
.ctx.warn   .ctx-fill { background: var(--idle);   color: var(--idle); }
.ctx.danger .ctx-fill { background: var(--danger); color: var(--danger); }
.ctx-meta { display: flex; align-items: center; gap: 7px; font-size: 10.5px; }
.ctx-meta .pct { font-weight: 700; }
.ctx.ok .pct { color: var(--t1); } .ctx.warn .pct { color: var(--idle-ink); } .ctx.danger .pct { color: var(--danger-ink); }
.ctx-meta .tok { color: var(--t2); }
.ctx-meta .flag { margin-left: auto; font-weight: 700; }
.ctx.warn .flag { color: var(--idle-ink); } .ctx.danger .flag { color: var(--danger-ink); }
.ctx.danger .ctx-fill::after { animation: ctxpulse 1.6s ease-in-out infinite; }
@keyframes ctxpulse { 0%,100% { box-shadow: 0 0 7px 1px currentColor; } 50% { box-shadow: 0 0 12px 3px currentColor; } }

/* Section label — uppercase micro-label, the only place we track-out text */
.label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--t2);
}

/* Freshness dot (topbar) */
.fresh-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--landed); flex: none;
  box-shadow: 0 0 0 0 var(--landed); animation: freshpulse 2.4s ease-out infinite; }
@keyframes freshpulse { 0% { box-shadow: 0 0 0 0 rgba(84,209,153,0.5); } 70% { box-shadow: 0 0 0 6px rgba(84,209,153,0); } 100% { box-shadow: 0 0 0 0 rgba(84,209,153,0); } }

/* Mono commit hash chip */
.sha { font-family: var(--mono); font-size: 11px; color: var(--t2); }
.sli { font-weight: 700; font-size: 11px; color: var(--info-ink); letter-spacing: 0.01em; }

/* Scrollbars — thin, quiet */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* Faint top vignette — a single, restrained light source (no rainbow radial) */
body::before {
  content: ''; position: fixed; inset: 0 0 auto 0; height: 320px; pointer-events: none; z-index: 0;
  background: radial-gradient(120% 100% at 50% -40%, rgba(111,182,201,0.05), transparent 70%);
}
