/* The public front page at shyftcontrolroom.com (lane INST1, app/notes/cr-install.md). Look A: a dark HUD with purple,
   cyan corner brackets and tight corners; light when the device asks.
   This page is served from its own host, which serves this one sheet, so it cannot link the app's tokens.css. The two
   blocks below are copies of the app's tokens, written out as plain values, and the only place of this file that
   writes a colour: app/web/tests/tokens-guard.test.js fails when a copy differs from the app's, in either theme. */
:root {
  --bg: #05070d;
  --surface: rgba(10, 16, 30, 0.82);
  --border-strong: rgba(125, 211, 252, 0.58);
  --text: #e6edf7;
  --text-2: #c3cfe0;
  --muted: #93a4bd;
  --accent: #8554ed;
  --accent-strong: #7c3aed;
  --accent-text: #c4b5fd;
  --on-accent: #fff;
  --hud: #22d3ee;
  --hud-text: #67e8f9;
  --hud-glow: rgba(34, 211, 238, 0.5);
  --grid-line: rgba(125, 211, 252, 0.035);
  /* the wash behind the page: the app's --glow-page on dark, none on light (this page's own token) */
  --glow: rgba(124, 58, 237, 0.22);
  --glow-primary: rgba(124, 58, 237, 0.35);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  --r-md: 6px;
  --r-sm: 4px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --font-num: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f6fb;
    --surface: #ffffff;
    --border-strong: #718198;
    --text: #0f172a;
    --text-2: #334155;
    --muted: #505f75;
    --accent: #6d28d9;
    --accent-strong: #5b21b6;
    --accent-text: #5b21b6;
    --hud: #0e7490;
    --hud-text: #0b6078;
    --hud-glow: transparent;
    --grid-line: rgba(15, 23, 42, 0.035);
    --glow: transparent;
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 14px rgba(15, 23, 42, 0.06);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; display: flex; flex-direction: column;
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 75% -10%, var(--glow), transparent),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  color: var(--text);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 2px solid var(--hud); outline-offset: 2px; }
h1, h2, h3, p, ol { margin: 0; }

.top {
  display: flex; align-items: center; gap: 12px; padding: 18px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--border-strong);
}
.mark {
  width: 14px; height: 14px; flex: none; border: 2px solid var(--hud); transform: rotate(45deg);
  box-shadow: 0 0 10px var(--hud-glow);
}
.brand { font: 700 1.05em/1 var(--mono); letter-spacing: 0.08em; color: var(--accent-text); white-space: nowrap; }

main {
  flex: 1; width: 100%; max-width: 880px; margin: 0 auto; padding: clamp(24px, 6vw, 64px) clamp(16px, 4vw, 40px);
  display: flex; flex-direction: column; gap: 24px;
}

/* HUD panels: the app's card with its two cyan corner brackets */
.panel {
  position: relative; padding: clamp(20px, 4vw, 32px); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--r-md); box-shadow: var(--shadow);
}
.panel::before, .panel::after {
  content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--hud); pointer-events: none;
}
.panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--r-md); }
.panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--r-md); }

.hero { display: flex; flex-direction: column; gap: 14px; }
.kicker, h2, h3 { font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--hud-text); }
.kicker { font-size: 0.8em; font-weight: 600; }
h1 { font: 600 clamp(2em, 6vw, 2.9em)/1.1 var(--font-num); letter-spacing: -0.01em; }
.lead { max-width: 60ch; font-size: 1.12em; color: var(--text-2); }
.actions { margin-top: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border: 1px solid var(--accent); border-radius: var(--r-sm); font: 600 1em/1 var(--font); text-decoration: none;
}
.btn.primary { background: var(--accent-strong); color: var(--on-accent); box-shadow: 0 0 14px var(--glow-primary); }
.btn.primary:hover { background: var(--accent); }

h2 { font-size: 0.95em; font-weight: 600; margin-bottom: 16px; }
.steps { list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { padding: 14px 16px; border: 1px solid var(--border-strong); border-left: 3px solid var(--accent); border-radius: var(--r-sm); }
.steps h3 { font-size: 0.8em; font-weight: 600; margin-bottom: 6px; }
.steps p { color: var(--text-2); }
.steps strong { color: var(--text); }
.note { margin-top: 16px; color: var(--muted); font-size: 0.92em; }

.foot {
  padding: 18px clamp(16px, 4vw, 40px); border-top: 1px solid var(--border-strong);
  color: var(--muted); font: 600 0.78em/1 var(--mono); letter-spacing: 0.12em;
}

@media (max-width: 760px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; }
}
