/* helicopter brand: shared tokens, type and base parts for every page (landing, onboarding, dashboard).
   Type: Inter (variable, optical sizes) for words, Inter Display sizes for headlines, Geist Mono for numbers and code.
   Wordmark: the pinwheel mark + the pixel word (/assets/wordmark-pixel.svg), drawn on the same pixel grid as the helicopter.
   Colour: green means good or live, amber means attention; nothing else is coloured. */
@font-face { font-family: "Inter"; src: url("/fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #050706; --card: #0a0d0c; --card2: #111514; --raised: #151a18;
  --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.12); --line3: rgba(255,255,255,.18);
  --text: #eef1ef; --muted: #8f9893; --faint: #6b746f;
  --green: #7ae35f; --amber: #e0ad4f; --red: #e2665f;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r-sm: 8px; --r: 12px; --r-lg: 16px;
  /* type scale */
  --t-display: 600 clamp(40px, 6.5vw, 76px)/1.02 var(--sans);
  --t-h1: 600 clamp(30px, 4.4vw, 44px)/1.08 var(--sans);
  --t-h2: 600 clamp(22px, 2.6vw, 28px)/1.15 var(--sans);
  --t-h3: 600 17px/1.3 var(--sans);
  --t-body: 400 15px/1.55 var(--sans);
  --t-small: 400 13.5px/1.5 var(--sans);
  --t-label: 500 11.5px/1.3 var(--mono);
  color-scheme: dark;
}
.b-display, .b-h1, .b-h2 { letter-spacing: -0.035em; font-optical-sizing: auto; text-wrap: balance; }
.b-display { font: var(--t-display); }
.b-h1 { font: var(--t-h1); }
.b-h2 { font: var(--t-h2); letter-spacing: -0.025em; }
.b-label { font: var(--t-label); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.b-num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* wordmark: <a class="b-word" href="/"><svg class="b-mark"><use href="#m"/></svg><img class="b-pix" src="/assets/wordmark-pixel.svg" alt="helicopter"></a> */
.b-word { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.b-word .b-mark { width: 20px; height: 20px; fill: currentColor; }
.b-word .b-pix { height: 14px; width: auto; display: block; filter: invert(1) brightness(.95); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .b-word .b-pix { filter: none; } }

/* buttons */
.b-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 10px;
  font: 500 14px var(--sans); text-decoration: none; color: var(--text); border: 1px solid var(--line2); background: rgba(255,255,255,.03);
  cursor: pointer; transition: background .15s, border-color .15s; }
.b-btn:hover { background: rgba(255,255,255,.07); border-color: var(--line3); }
.b-btn.p { background: var(--text); color: #070908; border-color: var(--text); }
.b-btn.p:hover { background: #fff; }
.b-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* surfaces */
.b-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 -20px 80px -20px rgba(255,255,255,.05); }
.b-dots { position: fixed; inset: 0; pointer-events: none; z-index: 0; background-image: radial-gradient(rgba(238,241,239,.08) 1px, transparent 1.2px); background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 80%); mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 80%); }

/* inputs */
.b-input { width: 100%; min-height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line2); background: #070908; color: var(--text); font: 15px var(--sans); }
.b-input.mono { font-family: var(--mono); letter-spacing: .02em; }
.b-input:focus { outline: none; border-color: var(--line3); box-shadow: 0 0 0 3px rgba(238,241,239,.08); }

/* status */
.b-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--faint); }
.b-dot.ok { background: var(--green); } .b-dot.warn { background: var(--amber); } .b-dot.bad { background: var(--red); }
