/* Shuttlepod design tokens, generated from the design system's tokens.json.
   Don't edit values here: change the design system and run it through again. */

:root {
  /* Colour */
  --void: #050608;
  --bg: #08090c;
  --bg-1: #0d1014;
  --bg-2: #14171c;
  --bg-3: #1b1f26;
  --line: #20242a;
  --line-2: #2d323a;
  --line-3: #414751;
  --line-4: #626976;
  --fg: #e7ebef;
  --fg-2: #acb3be;
  --fg-3: #838b98;
  --fg-4: #5c6470;
  --hull: #e7ebef;
  --hull-2: #ced3db;
  --hull-ink: #0a0c0f;
  --hull-ink-2: #49505c;
  --accent: #ff6a1a;
  --accent-2: #ff8c49;
  --accent-ink: #a93800;
  --accent-soft: rgb(255 106 26 / 0.14);
  --on-accent: #08090c;
  --ok: #30de97;
  --warn: #f0cf4c;
  --err: #fe4f6d;
  --err-soft: rgb(254 79 109 / 0.14);
  --focus: var(--accent);
  --scrim: rgb(8 9 12 / 0.78);

  /* Light */
  --edge: inset 0 1px 0 rgb(231 235 239 / 0.05);
  --halo: 0 0 0 4px rgb(255 106 26 / 0.16);
  --halo-hull: 0 0 0 4px rgb(255 106 26 / 0.28);
  --halo-ok: 0 0 0 4px rgb(48 222 151 / 0.18);
  --halo-err: 0 0 0 4px rgb(254 79 109 / 0.18);
  --led-ok: 0 0 8px #30de97;
  --led-warn: 0 0 8px #f0cf4c;
  --led-err: 0 0 8px #fe4f6d;
  --limb: 0 -2px 20px rgb(231 235 239 / 0.22), 0 -24px 140px rgb(231 235 239 / 0.16);
  --lift: 0 16px 40px rgb(0 0 0 / 0.5);

  /* Space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Radius */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-pod: 999px;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 10vw, 128px);
  --section-tight: clamp(48px, 6vw, 80px);
  --grid-pitch: 48px;
  --nav-h: 64px;

  /* Archivo widths */
  --wide-display: 112%;
  --wide: 118%;
  --wide-mark: 125%;

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Helvetica, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Helvetica, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --text-display-xl: 600 88px/0.94 var(--font-display);
  --text-display-l: 600 64px/1 var(--font-display);
  --text-figure: 600 56px/1 var(--font-display);
  --text-display-m: 600 48px/1.04 var(--font-display);
  --text-title-l: 600 32px/1.1 var(--font-display);
  --text-title-m: 600 24px/1.15 var(--font-display);
  --text-title-s: 600 20px/1.2 var(--font-display);
  --text-lede: 400 18px/1.55 var(--font-body);
  --text-body: 400 16px/1.6 var(--font-body);
  --text-body-s: 400 15px/1.55 var(--font-body);
  --text-control: 500 14px/1 var(--font-body);
  --text-fine: 400 13px/1.6 var(--font-body);
  --text-mono-l: 500 16px/1.3 var(--font-mono);
  --text-data: 500 14px/1 var(--font-mono);
  --text-mono-m: 400 13px/1.75 var(--font-mono);
  --text-mono-s: 400 12px/1.5 var(--font-mono);
  --text-label: 500 11px/1 var(--font-mono);
}

.display-xl {
  font: var(--text-display-xl);
  letter-spacing: -0.045em;
}

.display-l {
  font: var(--text-display-l);
  letter-spacing: -0.04em;
}

.figure {
  font: var(--text-figure);
  letter-spacing: -0.04em;
}

.display-m {
  font: var(--text-display-m);
  letter-spacing: -0.03em;
}

.title-l {
  font: var(--text-title-l);
  letter-spacing: -0.025em;
}

.title-m {
  font: var(--text-title-m);
  letter-spacing: -0.02em;
}

.title-s {
  font: var(--text-title-s);
  letter-spacing: -0.015em;
}

.lede {
  font: var(--text-lede);
}

.body {
  font: var(--text-body);
}

.body-s {
  font: var(--text-body-s);
}

.control {
  font: var(--text-control);
  letter-spacing: 0.005em;
}

.fine {
  font: var(--text-fine);
}

.mono-l {
  font: var(--text-mono-l);
}

.data {
  font: var(--text-data);
}

.mono-m {
  font: var(--text-mono-m);
}

.mono-s {
  font: var(--text-mono-s);
}

.label {
  font: var(--text-label);
  letter-spacing: 0.12em;
}

/* Shuttlepod shared styles, from the design system's components/bundle.css.
   Every colour, size, radius and glow below is a token; nothing here redeclares one.
   Fonts load from the <link> in Base.astro. */

:root {
  color-scheme: dark;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 150ms;
  --t-slow: 320ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: var(--text-body, 400 16px/1.6 var(--font-body));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: var(--wide);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: inherit;
}

/* Emphasis in a heading is a quieter second tone. Orange stays on the full stop. */
h1 em,
h2 em,
h3 em,
h4 em {
  font-style: normal;
  color: var(--fg-3);
}

.dot {
  color: var(--accent);
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-color: var(--line-4);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--t-fast) ease, color var(--t-fast) ease;
}

a:hover {
  text-decoration-color: var(--accent);
}

code,
kbd,
samp,
pre {
  font-family: var(--font-mono);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ── Type ───────────────────────────────────────────────────────────────
   tokens.css gives each style a class (.display-xl, .label …) and a
   shorthand (--text-display-xl). These rules add what a token can't hold:
   width, fluid size and case. */

.display-xl,
.page-title {
  font: var(--text-display-xl, 600 88px/0.94 var(--font-display));
  font-size: clamp(44px, 6.4vw, 88px);
  font-stretch: var(--wide-display);
  letter-spacing: -0.045em;
}

.display-l,
.cta-title {
  font: var(--text-display-l, 600 64px/1 var(--font-display));
  font-size: clamp(36px, 5vw, 64px);
  font-stretch: var(--wide-display);
  letter-spacing: -0.04em;
}

.display-m,
.section-title {
  font: var(--text-display-m, 600 48px/1.04 var(--font-display));
  font-size: clamp(32px, 4.2vw, 48px);
  font-stretch: var(--wide);
  letter-spacing: -0.03em;
}

.section-title {
  max-width: 20ch;
}

.title-l {
  font: var(--text-title-l, 600 32px/1.1 var(--font-display));
  font-stretch: var(--wide);
  letter-spacing: -0.025em;
}

.title-m {
  font: var(--text-title-m, 600 24px/1.15 var(--font-display));
  font-stretch: var(--wide);
  letter-spacing: -0.02em;
}

.title-s {
  font: var(--text-title-s, 600 20px/1.2 var(--font-display));
  font-stretch: var(--wide);
  letter-spacing: -0.015em;
}

.figure {
  font: var(--text-figure, 600 56px/1 var(--font-display));
  font-stretch: var(--wide-display);
  letter-spacing: -0.04em;
}

.label {
  text-transform: uppercase;
}

.page-lede,
.section-lede {
  font: var(--text-lede, 400 18px/1.55 var(--font-body));
  color: var(--fg-2);
}

.page-lede {
  max-width: 50ch;
}

.section-lede {
  max-width: 56ch;
}

/* Mono label above an inner-page title. The marker is a pod. */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font: var(--text-label, 500 11px/1 var(--font-mono));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.kicker::before {
  content: '';
  width: 8px;
  height: 6px;
  border-radius: 0 var(--radius-pod) var(--radius-pod) 0;
  background: var(--accent);
}

/* ── Layout ─────────────────────────────────────────────────────────── */

.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.section {
  padding-block: var(--section);
}

.section--tight {
  padding-block: var(--section-tight);
}

.section + .section {
  border-top: 1px solid var(--line);
}

/* Engineering grid behind page heads */
.gridbg {
  position: relative;
  isolation: isolate;
}

.gridbg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: var(--grid-pitch) var(--grid-pitch);
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 70% 35%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 70% at 70% 35%, #000 25%, transparent 75%);
}

/* Viewport brackets: four corner ticks around a figure */
.frame {
  position: relative;
  padding: var(--space-6);
}

.frame::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  --tick: var(--line-4);
  --len: 12px;
  background:
    linear-gradient(var(--tick), var(--tick)) 0 0 / var(--len) 1px,
    linear-gradient(var(--tick), var(--tick)) 0 0 / 1px var(--len),
    linear-gradient(var(--tick), var(--tick)) 100% 0 / var(--len) 1px,
    linear-gradient(var(--tick), var(--tick)) 100% 0 / 1px var(--len),
    linear-gradient(var(--tick), var(--tick)) 0 100% / var(--len) 1px,
    linear-gradient(var(--tick), var(--tick)) 0 100% / 1px var(--len),
    linear-gradient(var(--tick), var(--tick)) 100% 100% / var(--len) 1px,
    linear-gradient(var(--tick), var(--tick)) 100% 100% / 1px var(--len);
  background-repeat: no-repeat;
}

.frame[data-label]::after {
  content: attr(data-label);
  position: absolute;
  top: -5px;
  left: var(--space-6);
  padding: 0 var(--space-2);
  background: var(--bg);
  font: var(--text-label, 500 11px/1 var(--font-mono));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* ── LED ────────────────────────────────────────────────────────────── */

.led {
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: var(--led-ok);
}

.led--pulse {
  animation: pulse 2.4s ease-in-out infinite;
}

.led--busy {
  background: var(--warn);
  box-shadow: var(--led-warn);
  animation: pulse 0.6s ease-in-out infinite;
}

.led--fault {
  background: var(--err);
  box-shadow: var(--led-err);
}

.led--off {
  background: transparent;
  box-shadow: none;
  border: 1px solid var(--fg-3);
}

/* ── Button ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 40px;
  padding: 0 var(--space-4);
  border: 1px solid var(--line-3);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--fg);
  font: var(--text-control, 500 14px/1 var(--font-body));
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--t-fast) ease, background var(--t-fast) ease, color var(--t-fast) ease,
    box-shadow var(--t-fast) ease;
}

.btn:hover {
  border-color: var(--fg-3);
  background: var(--bg-2);
}

.btn > span[aria-hidden] {
  transition: transform var(--t-fast) ease;
}

.btn:hover > span[aria-hidden] {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.btn--primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  box-shadow: var(--halo);
}

.btn--ghost {
  border-color: transparent;
}

.btn--ghost:hover {
  background: transparent;
  border-color: var(--line-3);
}

.btn--go {
  background: var(--ok);
  border-color: var(--ok);
  color: var(--on-accent);
  font-weight: 600;
}

.btn--go:hover {
  background: var(--ok);
  border-color: var(--ok);
  box-shadow: var(--halo-ok);
}

/* Quiet until hovered, so Destroy never competes with the primary action */
.btn--danger {
  border-color: transparent;
  color: var(--fg-3);
}

.btn--danger:hover {
  background: var(--err-soft);
  border-color: var(--err);
  color: var(--err);
}

.btn--destroy {
  background: var(--err);
  border-color: var(--err);
  color: var(--on-accent);
  font-weight: 600;
}

.btn--destroy:hover {
  background: var(--err);
  border-color: var(--err);
  box-shadow: var(--halo-err);
}

.btn--sm {
  height: 32px;
  padding: 0 var(--space-3);
  font-size: 13px;
}

.btn--lg {
  height: 48px;
  padding: 0 var(--space-6);
  font-size: 16px;
}

.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.4;
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}

/* ── Command ────────────────────────────────────────────────────────── */

.cmd {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  height: 40px;
  padding: 0 var(--space-1) 0 var(--space-4);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--void);
  color: var(--fg);
  font: var(--text-mono-m, 400 13px/1.75 var(--font-mono));
  line-height: 1;
  white-space: nowrap;
}

.cmd::before {
  content: '$';
  color: var(--ok);
  user-select: none;
}

.cmd {
  max-width: 100%;
  min-width: 0;
}

.cmd code {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  font: inherit;
}

.cmd code::-webkit-scrollbar {
  display: none;
}

.cmd-copy {
  align-self: stretch;
  margin: var(--space-1) 0 var(--space-1) var(--space-2);
  padding: 0 var(--space-3);
  border: 0;
  border-left: 1px solid var(--line-2);
  background: transparent;
  color: var(--fg-3);
  font: var(--text-label, 500 11px/1 var(--font-mono));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--t-fast) ease;
}

.cmd-copy:hover {
  color: var(--fg);
}

.cmd-copy[data-copied] {
  color: var(--ok);
}

.cmd-copy[data-failed] {
  color: var(--err);
}

.cmd--lg {
  height: 48px;
}

/* ── Pod: machine state ─────────────────────────────────────────────── */

.pod {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 24px;
  padding: 0 var(--space-3) 0 var(--space-2);
  border: 1px solid var(--line-3);
  border-left: 2px solid var(--line-4);
  border-radius: 0 var(--radius-pod) var(--radius-pod) 0;
  background: var(--bg-2);
  color: var(--fg);
  font: var(--text-mono-s, 400 12px/1.5 var(--font-mono));
  line-height: 1;
  white-space: nowrap;
}

.pod::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: var(--led-ok);
}

.pod--busy::before {
  background: var(--warn);
  box-shadow: var(--led-warn);
  animation: pulse 0.6s ease-in-out infinite;
}

.pod--fault::before {
  background: var(--err);
  box-shadow: var(--led-err);
}

.pod--stopped {
  border-style: dashed;
  border-left-style: solid;
  background: transparent;
  color: var(--fg-3);
}

.pod--stopped::before {
  background: transparent;
  box-shadow: none;
  border: 1px solid var(--fg-3);
}

.pod--yours {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
}

.pod--yours::before {
  background: var(--on-accent);
  box-shadow: none;
}

/* ── Tag ────────────────────────────────────────────────────────────── */

.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 24px;
  padding: 0 var(--space-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--fg-2);
  font: var(--text-mono-s, 400 12px/1.5 var(--font-mono));
  line-height: 1;
  white-space: nowrap;
}

.tag--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

/* S / M / L / XL */
.tag--size {
  height: 20px;
  padding: 0 6px;
  border-color: var(--line-4);
  border-radius: var(--radius-xs);
  color: var(--fg);
  font-weight: 500;
  letter-spacing: 0;
}

.tag--size.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.tag--lg {
  height: 32px;
  padding: 0 var(--space-3) 0 var(--space-2);
  background: var(--bg);
  font-size: 13px;
}

.tag-glyph {
  width: 16px;
  text-align: center;
  color: var(--accent);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ── Terminal ───────────────────────────────────────────────────────── */

.term {
  margin: 0;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--void);
  color: var(--fg);
  font: var(--text-mono-m, 400 13px/1.75 var(--font-mono));
  overflow-x: auto;
}

.term[data-title]::before {
  content: attr(data-title);
  display: block;
  margin: calc(var(--space-4) * -1) calc(var(--space-5) * -1) var(--space-4);
  padding: var(--space-2) var(--space-5);
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
  font: var(--text-label, 500 11px/1 var(--font-mono));
  line-height: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.term .prompt,
.term .good {
  color: var(--ok);
}

.term .prompt {
  user-select: none;
}

.term .muted {
  color: var(--fg-3);
}

.term .hl {
  color: var(--warn);
}

.term .out {
  color: var(--fg-2);
}

.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.15em;
  vertical-align: -0.2em;
  background: var(--fg-2);
  animation: cursor 1.1s steps(2, start) infinite;
}

/* ── Telemetry and meters ───────────────────────────────────────────── */

.telemetry {
  display: grid;
  grid-auto-flow: column;
  justify-content: start;
  margin: 0;
  border-top: 1px solid var(--line-2);
}

.telemetry > div {
  padding: var(--space-3) var(--space-6) 0 0;
}

.telemetry > div + div {
  padding-left: var(--space-6);
  border-left: 1px solid var(--line);
}

.telemetry dt {
  font: var(--text-label, 500 11px/1 var(--font-mono));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.telemetry dd {
  margin: var(--space-2) 0 0;
  font: var(--text-data, 500 14px/1 var(--font-mono));
  color: var(--fg);
}

.meter {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-3);
  font: var(--text-mono-s, 400 12px/1.5 var(--font-mono));
  line-height: 1;
}

.meter-label {
  min-width: 4ch;
  color: var(--fg-3);
}

.meter-value {
  min-width: 6ch;
  text-align: right;
  color: var(--fg);
}

.meter-bar {
  height: 4px;
  border-radius: var(--radius-xs);
  background: var(--bg-3);
  overflow: hidden;
}

.meter-bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--fg-2);
  transition: width 600ms ease;
}

.specs {
  margin: 0;
  font: var(--text-mono-s, 400 12px/1.5 var(--font-mono));
  line-height: 1;
}

.specs > div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--line-2);
}

.specs > div:last-child {
  border-bottom: 1px solid var(--line-2);
}

.specs dt {
  color: var(--fg-3);
}

.specs dd {
  margin: 0;
}

/* ── Forms ──────────────────────────────────────────────────────────── */

.field {
  display: grid;
  gap: var(--space-2);
}

.field-label {
  font: var(--text-label, 500 11px/1 var(--font-mono));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.input,
.textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--line-4);
  border-radius: var(--radius-sm);
  background: var(--void);
  color: var(--fg);
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}

.input {
  height: 44px;
  padding: 0 var(--space-4);
  font: var(--text-body-s, 400 15px/1.55 var(--font-body));
}

.input--mono {
  font: var(--text-mono-m, 400 13px/1.75 var(--font-mono));
}

.input--sm {
  height: 32px;
  padding: 0 var(--space-3);
  font: var(--text-mono-m, 400 13px/1.75 var(--font-mono));
}

.textarea {
  padding: var(--space-3) var(--space-4);
  font: var(--text-mono-m, 400 13px/1.75 var(--font-mono));
  line-height: 1.6;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--fg-3);
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--halo);
}

.input[aria-invalid='true'],
.textarea[aria-invalid='true'] {
  border-color: var(--err);
}

.input[aria-invalid='true']:focus,
.textarea[aria-invalid='true']:focus {
  box-shadow: var(--halo-err);
}

.field-hint {
  font: var(--text-fine, 400 13px/1.6 var(--font-body));
  color: var(--fg-3);
}

.field-error {
  font: var(--text-mono-s, 400 12px/1.5 var(--font-mono));
  color: var(--err);
}

/* Inline code in running text */
.code,
.prose code,
.field-hint code,
.confirm-text code {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--bg-2);
  color: var(--fg);
  font-size: 0.86em;
}

.seg {
  display: inline-flex;
  border: 1px solid var(--line-4);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.seg-opt {
  cursor: pointer;
}

.seg-opt span {
  display: block;
  padding: var(--space-2) var(--space-4);
  background: var(--void);
  color: var(--fg-2);
  font: var(--text-control, 500 14px/1 var(--font-body));
  line-height: 20px;
  transition: background var(--t-fast) ease, color var(--t-fast) ease;
}

.seg-opt + .seg-opt span {
  border-left: 1px solid var(--line-4);
}

.seg-opt:hover span {
  color: var(--fg);
}

.seg-opt input:checked + span {
  background: var(--hull);
  color: var(--hull-ink);
}

.seg-opt input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.seg-opt input:checked:focus-visible + span {
  outline-color: var(--hull-ink);
  outline-offset: -3px;
}

.option {
  display: block;
  cursor: pointer;
}

.option-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  height: 100%;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--bg-1);
  transition: border-color var(--t-fast) ease, background var(--t-fast) ease, box-shadow var(--t-fast) ease;
}

.option:hover .option-card {
  border-color: var(--line-4);
}

.option input:checked + .option-card {
  border-color: var(--accent);
  background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--bg-1);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.option input:focus-visible + .option-card {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.option-top {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font: var(--text-label, 500 11px/1 var(--font-mono));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.option input:checked + .option-card .tag--size {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.option-figure {
  margin-top: var(--space-2);
  font: var(--text-title-l, 600 32px/1.1 var(--font-display));
  font-stretch: var(--wide);
  letter-spacing: -0.03em;
}

.option-figure small {
  margin-left: var(--space-1);
  font: var(--text-mono-s, 400 12px/1.5 var(--font-mono));
  letter-spacing: 0;
  color: var(--fg-3);
}

.option-spec {
  font: var(--text-mono-s, 400 12px/1.5 var(--font-mono));
  color: var(--fg-2);
}

.option-name {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font: var(--text-body-s, 400 15px/1.55 var(--font-body));
  font-weight: 600;
}

.option-name::before {
  content: '';
  width: 10px;
  height: 10px;
  border: 1px solid var(--line-4);
  border-radius: 50%;
}

.option input:checked + .option-card .option-name::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--halo);
}

.option-desc {
  font: var(--text-fine, 400 13px/1.6 var(--font-body));
  color: var(--fg-2);
}

/* ── Panel and hull ─────────────────────────────────────────────────── */

.panel {
  padding: var(--space-6);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-1);
  box-shadow: var(--edge);
}

.panel--open {
  border-style: dashed;
  border-color: var(--line-3);
  background: transparent;
  box-shadow: none;
}

.panel--sunk {
  background: var(--void);
  box-shadow: none;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.panel-title {
  font: var(--text-title-m, 600 24px/1.15 var(--font-display));
  font-stretch: var(--wide);
  letter-spacing: -0.02em;
}

.panel-title--l {
  font: var(--text-title-l, 600 32px/1.1 var(--font-display));
  font-stretch: var(--wide);
  letter-spacing: -0.025em;
}

.panel-title--s {
  font: var(--text-title-s, 600 20px/1.2 var(--font-display));
  font-stretch: var(--wide);
  letter-spacing: -0.015em;
}

.panel-note {
  font: var(--text-mono-s, 400 12px/1.5 var(--font-mono));
  color: var(--fg-3);
}

.panel-body {
  margin-top: var(--space-3);
  max-width: 56ch;
  font: var(--text-body-s, 400 15px/1.55 var(--font-body));
  color: var(--fg-2);
}

.panel .tags {
  margin-top: var(--space-6);
}

/* Dashed inline note */
.hint {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-3);
  border: 1px dashed var(--line-3);
  border-radius: var(--radius-sm);
  background: var(--bg-1);
  font: var(--text-fine, 400 13px/1.6 var(--font-body));
  color: var(--fg-2);
}

.hint code {
  font-size: 12px;
  color: var(--fg);
}

/* ── Prose ──────────────────────────────────────────────────────────── */

.prose {
  font: var(--text-body, 400 16px/1.6 var(--font-body));
  color: var(--fg-2);
}

.prose p + p,
.prose p + ul,
.prose ul + p,
.prose p + ol,
.prose ol + p,
.prose p + pre,
.prose pre + p {
  margin-top: var(--space-4);
}

.prose ul,
.prose ol {
  margin: 0;
  padding-left: var(--space-6);
}

.prose li + li {
  margin-top: var(--space-2);
}

.prose li::marker {
  color: var(--fg-3);
}

.prose pre code {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

.prose strong {
  color: var(--fg);
  font-weight: 600;
}

/* ── Logo ───────────────────────────────────────────────────────────── */

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--fg);
}

.logo-mark {
  flex: none;
  width: 28px;
  height: 28px;
}

/* The station pod takes the text colour; the shuttle is always orange. */
.logo-mark .m-pod {
  fill: currentColor;
}

.logo-mark .m-shuttle {
  fill: var(--accent);
}

.logo--mono .m-shuttle {
  fill: currentColor;
}

.logo-word {
  font-family: var(--font-display);
  font-stretch: var(--wide-mark);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo--ink {
  color: var(--hull-ink);
}

/* ── Nav ────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: var(--scrim);
  backdrop-filter: blur(12px) saturate(140%);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  height: var(--nav-h);
}

.nav .brand,
.appnav .brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: var(--space-6);
  font: var(--text-control, 500 14px/1 var(--font-body));
  font-weight: 400;
}

.nav-links a {
  color: var(--fg-2);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current] {
  color: var(--fg);
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.appnav {
  border-bottom: 1px solid var(--line-2);
  background: var(--bg-1);
}

.appnav-inner {
  display: flex;
  align-items: stretch;
  gap: var(--space-10);
  height: 56px;
}

.tabs {
  display: flex;
  gap: var(--space-1);
}

.tab {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 var(--space-3);
  color: var(--fg-3);
  font: var(--text-control, 500 14px/1 var(--font-body));
  text-decoration: none;
}

.tab:hover,
.tab[aria-current] {
  color: var(--fg);
}

.tab[aria-current]::after {
  content: '';
  position: absolute;
  left: var(--space-3);
  right: var(--space-3);
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}

.who {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font: var(--text-mono-s, 400 12px/1.5 var(--font-mono));
  color: var(--fg-3);
}

.who code {
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--fg);
}

/* tmux-style status line */
.statusbar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: 28px;
  padding-right: var(--space-3);
  border-top: 1px solid var(--line-2);
  background: var(--void);
  color: var(--fg-3);
  font: var(--text-mono-s, 400 12px/1.5 var(--font-mono));
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}

.statusbar-session {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 var(--space-3);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
}

.statusbar a {
  color: var(--fg-2);
  text-decoration: none;
}

.statusbar a:hover,
.statusbar a[aria-current] {
  color: var(--fg);
}

.statusbar a[aria-current]::after {
  content: '*';
  color: var(--accent);
}

.statusbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.statusbar-right > span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* ── Footer ─────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--line-2);
  background: var(--bg-1);
  padding-bottom: var(--space-8);
}

/* Closing band: the call to action over a horizon */
.closing {
  --rise: 88px;
  padding-block: clamp(72px, 9vw, 112px) clamp(136px, 15vw, 184px);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.cta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.cta-side {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--space-8);
  padding-block: var(--space-16) var(--space-12);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.status {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font: var(--text-mono-s, 400 12px/1.5 var(--font-mono));
  color: var(--fg-3);
}

.footer-h {
  font: var(--text-label, 500 11px/1 var(--font-mono));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.footer-links {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
  font: var(--text-control, 500 14px/1 var(--font-body));
  font-weight: 400;
  line-height: 1.3;
}

.footer-links a {
  color: var(--fg-2);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--fg);
}

.colophon {
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
  font: var(--text-mono-s, 400 12px/1.5 var(--font-mono));
  line-height: 1.6;
  color: var(--fg-3);
}

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero {
  padding-block: clamp(56px, 8vw, 96px) clamp(72px, 9vw, 128px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-copy .page-lede {
  margin-top: var(--space-6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.hero-copy .term {
  margin-top: var(--space-10);
  max-width: 520px;
}

.hero-copy .telemetry {
  margin-top: var(--space-6);
  max-width: 520px;
}

/* ── Feature grid ───────────────────────────────────────────────────── */

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-2);
  border-left: 1px solid var(--line-2);
}

.feature {
  position: relative;
  padding: var(--space-6) var(--space-6) var(--space-8);
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  transition: background var(--t-fast) ease;
}

.feature::before {
  content: '';
  position: absolute;
  left: -1px;
  top: -1px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--t-slow) var(--ease-out);
}

.feature:hover {
  background: var(--bg-1);
}

.feature:hover::before {
  width: calc(100% + 1px);
}

.feature-spec {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font: var(--text-mono-s, 400 12px/1.5 var(--font-mono));
  line-height: 1;
  color: var(--fg-3);
}

.feature-spec::before {
  content: '';
  width: 8px;
  height: 6px;
  border-radius: 0 var(--radius-pod) var(--radius-pod) 0;
  background: var(--line-4);
  transition: background var(--t-fast) ease;
}

.feature:hover .feature-spec::before {
  background: var(--accent);
}

.feature-title {
  margin-top: var(--space-10);
  font: var(--text-title-s, 600 20px/1.2 var(--font-display));
  font-stretch: var(--wide);
  letter-spacing: -0.015em;
}

.feature-body {
  margin-top: var(--space-3);
  font: var(--text-body-s, 400 15px/1.55 var(--font-body));
  color: var(--fg-2);
}

/* ── Steps ──────────────────────────────────────────────────────────── */

.steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-8);
}

/* Flight path joining the markers */
.steps::before {
  content: '';
  position: absolute;
  left: 19.5px;
  top: 40px;
  bottom: 40px;
  width: 1px;
  background: var(--line-2);
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--space-5);
  align-items: start;
}

.step-n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-3);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--fg-2);
  font: var(--text-data, 500 14px/1 var(--font-mono));
}

.step.is-current .step-n {
  border-color: var(--accent);
  color: var(--accent);
}

.step-title {
  padding-top: var(--space-2);
  font: var(--text-title-s, 600 20px/1.2 var(--font-display));
  font-stretch: var(--wide);
  letter-spacing: -0.015em;
}

.step-body {
  margin-top: var(--space-2);
  font: var(--text-body-s, 400 15px/1.55 var(--font-body));
  color: var(--fg-2);
}

/* ── Ticker ─────────────────────────────────────────────────────────── */

.ticker {
  padding-block: var(--space-4);
  border-block: 1px solid var(--line-2);
  background: var(--bg-1);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
  display: flex;
  gap: var(--space-3);
  width: max-content;
  animation: scroll 46s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

/* ── Pricing ────────────────────────────────────────────────────────── */

.tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.tier {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-1);
  box-shadow: var(--edge);
  transition: border-color var(--t-fast) ease;
}

.tier:hover {
  border-color: var(--line-4);
}

.tier-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font: var(--text-label, 500 11px/1 var(--font-mono));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.tier-price {
  margin-top: var(--space-8);
  font: var(--text-figure, 600 56px/1 var(--font-display));
  font-stretch: var(--wide-display);
  letter-spacing: -0.04em;
}

.tier-per {
  font: var(--text-mono-s, 400 12px/1.5 var(--font-mono));
  letter-spacing: 0;
  color: var(--fg-3);
}

.tier-blurb {
  margin: var(--space-3) 0 var(--space-6);
  font: var(--text-body-s, 400 15px/1.55 var(--font-body));
  color: var(--fg-2);
}

.tier-offer {
  margin: calc(var(--space-3) * -1) 0 var(--space-6);
  font: var(--text-mono-s, 400 12px/1.5 var(--font-mono));
  color: var(--accent);
}

/* pinned to the bottom so spec rows line up across cards */
.tier .specs {
  margin: auto 0 var(--space-6);
}

.tier .btn {
  width: 100%;
}

/* ── FAQ ────────────────────────────────────────────────────────────── */

.faqs {
  border-top: 1px solid var(--line-2);
}

.faq {
  border-bottom: 1px solid var(--line-2);
}

.faq-q {
  display: grid;
  grid-template-columns: 1fr 24px;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  cursor: pointer;
  list-style: none;
  font: var(--text-lede, 400 18px/1.55 var(--font-body));
  font-family: var(--font-display);
  font-stretch: var(--wide-display);
  font-weight: 500;
  line-height: 1.3;
  transition: color var(--t-fast) ease;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q:hover {
  color: var(--accent-2);
}

.faq-plus {
  position: relative;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-3);
  border-radius: var(--radius-sm);
  transition: transform 200ms ease, border-color 200ms ease;
}

.faq-plus::before,
.faq-plus::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.5px;
  background: var(--fg-2);
  transform: translate(-50%, -50%);
}

.faq-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq[open] .faq-plus {
  transform: rotate(45deg);
  border-color: var(--accent);
}

.faq[open] .faq-plus::before,
.faq[open] .faq-plus::after {
  background: var(--accent);
}

.faq-a {
  padding: 0 var(--space-10) var(--space-6) 0;
  max-width: 66ch;
}

/* ── Docked list and machine rows ───────────────────────────────────── */

/* A station spine down the left: two rails with rungs, a junction plate per item
   and a neck joining it to the row, as in the Dock illustration. */
.docked {
  position: relative;
  list-style: none;
  margin: 0;
  padding: var(--space-3) 0 var(--space-3) var(--space-10);
  display: grid;
  gap: var(--space-3);
}

.docked::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 12px;
  border-inline: 1px solid var(--line-4);
  border-block: 4px solid var(--line-3);
  border-radius: var(--radius-xs);
  background: repeating-linear-gradient(to bottom, transparent 0 11px, var(--line-2) 11px 12px);
}

.docked > li {
  position: relative;
}

/* neck */
.docked > li::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 22px;
  width: 20px;
  height: 12px;
  border-block: 1px solid var(--line-3);
  background: var(--bg-2);
}

/* junction plate */
.docked > li::after {
  content: '';
  position: absolute;
  left: -40px;
  top: 16px;
  width: 20px;
  height: 24px;
  border: 1px solid var(--line-3);
  border-radius: var(--radius-xs);
  background: var(--bg-3);
}

.docked > li.is-open::before {
  border-block-style: dashed;
  background: transparent;
}

.docked > li.is-open::after {
  border-style: dashed;
  background: var(--bg);
}

.docked > li > :first-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.machine {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-1);
  box-shadow: var(--edge);
  transition: border-color var(--t-fast) ease;
}

.machine:hover {
  border-color: var(--line-4);
}

.machine--stopped {
  border-style: dashed;
  border-color: var(--line-3);
  background: transparent;
  box-shadow: none;
}

.machine-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: start;
}

.machine-name {
  font: var(--text-mono-l, 500 16px/1.3 var(--font-mono));
  letter-spacing: 0;
}

.machine-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin-top: var(--space-2);
  font: var(--text-mono-s, 400 12px/1.5 var(--font-mono));
  color: var(--fg-3);
}

.machine-net {
  margin: 0;
  display: grid;
  gap: var(--space-1);
  text-align: right;
  font: var(--text-mono-s, 400 12px/1.5 var(--font-mono));
}

.machine-net dt {
  display: inline;
  margin-right: var(--space-2);
  color: var(--fg-3);
}

.machine-net dd {
  display: inline;
  margin: 0;
  color: var(--fg-2);
}

.machine-stats {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.machine--stopped .meter-bar > i {
  background: var(--fg-4);
}

.machine-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.machine-actions .btn--danger {
  margin-left: auto;
}

.machine-new {
  background-image: repeating-linear-gradient(135deg, transparent 0 7px, var(--line) 7px 8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-6);
  border: 1px dashed var(--line-3);
  border-radius: var(--radius);
  color: var(--fg-2);
  font: var(--text-mono-m, 400 13px/1.75 var(--font-mono));
  line-height: 1.4;
  text-decoration: none;
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease;
}

.machine-new:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.machine-new small {
  font: var(--text-mono-s, 400 12px/1.5 var(--font-mono));
  color: var(--fg-3);
}

.confirm {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--err);
  border-radius: var(--radius-sm);
  background: var(--err-soft);
}

.confirm[hidden] {
  display: none;
}

.confirm-text {
  font: var(--text-fine, 400 13px/1.6 var(--font-body));
  font-size: 14px;
  color: var(--fg-2);
}

.confirm-text b {
  color: var(--fg);
}

.confirm-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.confirm-row .input {
  flex: 1 1 160px;
  width: auto;
}

/* ── Toast ──────────────────────────────────────────────────────────── */

.toasts {
  position: fixed;
  left: var(--space-5);
  bottom: var(--space-5);
  z-index: 100;
  display: grid;
  gap: var(--space-2);
  max-width: min(440px, calc(100vw - 40px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line-3);
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  color: var(--fg);
  font: var(--text-mono-s, 400 12px/1.5 var(--font-mono));
  box-shadow: var(--lift);
}

.toast-time {
  flex: none;
  color: var(--fg-3);
}

/* ── Instruments ────────────────────────────────────────────────────── */

/* Uptime: one bar per day, oldest on the left, today lit */
.uptime {
  display: grid;
  gap: var(--space-2);
}

.uptime-bars {
  display: flex;
  gap: 2px;
  height: 24px;
}

.uptime-bars i {
  flex: 1 1 0;
  min-width: 1px;
  border-radius: 1px;
  background: var(--fg-4);
}

.uptime-bars i.is-down {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-3);
}

.uptime-bars i.is-now {
  background: var(--ok);
  box-shadow: var(--led-ok);
}

.uptime-meta {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  font: var(--text-mono-s, 400 12px/1.5 var(--font-mono));
  color: var(--fg-3);
}

.uptime-meta b {
  font-weight: 500;
  color: var(--fg);
}

/* Sequence: events placed along a rail by time. Each item sets --t from 0 to 1. */
.sequence {
  position: relative;
  height: 64px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sequence::before {
  content: '';
  position: absolute;
  inset: 5px 0 auto;
  height: 7px;
  background:
    linear-gradient(var(--line-4), var(--line-4)) 0 50% / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--line-3) 0 1px, transparent 1px var(--tick, 5%)) 0 0 / 100% 100%;
}

.sequence > li {
  position: absolute;
  top: 0;
  left: calc(var(--t) * 100%);
  display: grid;
  gap: var(--space-1);
  padding-top: var(--space-6);
  font: var(--text-mono-s, 400 12px/1.5 var(--font-mono));
  line-height: 1.3;
  color: var(--fg-2);
  white-space: nowrap;
}

.sequence > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 11px;
  height: 11px;
  border: 1px solid var(--line-4);
  border-radius: 50%;
  background: var(--bg);
  transform: translateX(-50%);
}

.sequence > li b {
  font-weight: 500;
  color: var(--fg);
}

.sequence > li.is-end {
  justify-items: end;
  transform: translateX(-100%);
}

/* the last event is a pod: the machine has docked */
.sequence > li.is-end::before {
  left: auto;
  right: 0;
  top: 2px;
  width: 20px;
  height: 13px;
  border: 0;
  border-radius: 0 var(--radius-pod) var(--radius-pod) 0;
  background: var(--accent);
  transform: none;
}

.sequence > li.is-end b {
  color: var(--accent);
}

/* Size pod: S to XL drawn at their relative scale */
.sizepod {
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 28px;
  padding: 0 var(--space-2);
  border: 1px solid var(--line-4);
  border-left-width: 3px;
  border-radius: 0 var(--radius-pod) var(--radius-pod) 0;
  color: var(--fg);
  font: var(--text-data, 500 14px/1 var(--font-mono));
  letter-spacing: 0;
  text-transform: none;
}

.sizepod--s {
  width: 48px;
}

.sizepod--m {
  width: 64px;
}

.sizepod--l {
  width: 88px;
}

.sizepod--xl {
  width: 120px;
}

.sizepod.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

/* Ruler: a measured rule between sections, labelled with the section's anchor */
.ruler {
  display: flex;
  align-items: flex-end;
  gap: var(--space-4);
  font: var(--text-mono-s, 400 12px/1.5 var(--font-mono));
  line-height: 1;
  color: var(--fg-3);
}

.ruler::after {
  content: '';
  flex: 1;
  height: 9px;
  background:
    linear-gradient(var(--line-3), var(--line-3)) 0 100% / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--line-4) 0 1px, transparent 1px var(--grid-pitch)) 0 100% / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, var(--line-3) 0 1px, transparent 1px 8px) 0 100% / 100% 4px no-repeat;
}

/* Hatch: nothing here yet */
.hatch {
  background-image: repeating-linear-gradient(135deg, transparent 0 7px, var(--line) 7px 8px);
}

/* Horizon: the limb of a planet rising into the bottom of a band */
.horizon {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.horizon::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  top: calc(100% - var(--rise, 72px));
  width: max(8000px, 640%);
  aspect-ratio: 1;
  border: 1px solid var(--line-4);
  border-radius: 50%;
  background: var(--void);
  box-shadow: var(--limb);
  transform: translateX(-50%);
}

/* ── Hull ───────────────────────────────────────────────────────────── */

/* Light panel for the one featured thing in a group */
.hull {
  background: var(--hull);
  border-color: var(--hull);
  color: var(--hull-ink);
  box-shadow: none;
}

.hull .logo {
  color: var(--hull-ink);
}

.hull :focus-visible {
  outline-color: var(--hull-ink);
}

.hull h1 em,
.hull h2 em,
.hull h3 em,
.hull .panel-body,
.hull .panel-note,
.hull .specs dt {
  color: var(--hull-ink-2);
}

.hull .specs > div {
  border-color: var(--hull-2);
}

.hull .tag {
  border-color: var(--hull-ink-2);
  color: var(--hull-ink);
}

.hull .sizepod {
  border-color: var(--hull-ink-2);
  color: var(--hull-ink);
}

.hull .sizepod.is-on {
  border-color: var(--accent);
  color: var(--on-accent);
}

.hull .tag--accent,
.hull .tag--size.is-on {
  border-color: var(--accent);
  color: var(--on-accent);
}

.hull .btn {
  border-color: var(--hull-ink-2);
  color: var(--hull-ink);
}

.hull .btn:hover {
  background: var(--hull-2);
  border-color: var(--hull-ink);
}

.hull .btn--primary {
  border-color: var(--accent);
  color: var(--on-accent);
}

.hull .btn--primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  box-shadow: var(--halo-hull);
}

.tier.hull,
.tier.hull:hover {
  border-color: var(--hull);
}

.hull .tier-offer {
  color: var(--accent-ink);
}

.hull .tier-head,
.hull .tier-per,
.hull .tier-blurb {
  color: var(--hull-ink-2);
}

/* ── Dock illustration ──────────────────────────────────────────────── */

.dock {
  margin: 0 auto;
  width: 100%;
  max-width: 520px;
}

.dock svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Approach reticle: range rings and bearing ticks centred on the open port */
.d-reticle {
  fill: none;
  stroke: var(--line-2);
}

.d-reticle-far {
  stroke: var(--line-3);
  stroke-dasharray: 1 5;
}

.d-frame {
  fill: none;
  stroke: var(--line-4);
}

.d-note {
  font: 500 8.5px var(--font-mono);
  letter-spacing: 0.14em;
  fill: var(--fg-3);
}

.d-note--hot {
  fill: var(--accent);
}

.d-rung,
.d-seam {
  fill: none;
  stroke: var(--line-2);
}

.d-spine {
  fill: none;
  stroke: var(--line-4);
}

.d-cap,
.d-node,
.d-collar {
  fill: var(--bg-3);
  stroke: var(--line-3);
}

.d-hull {
  fill: var(--bg-2);
  stroke: var(--line-3);
}

.d-hi {
  fill: none;
  stroke: var(--fg);
  stroke-opacity: 0.09;
}

.d-win {
  fill: var(--bg);
  stroke: var(--line-3);
}

.d-pip {
  fill: var(--line-4);
}

.d-label {
  font: 500 10.5px var(--font-mono);
  fill: var(--fg);
}

.d-spec {
  font: 400 8.5px var(--font-mono);
  letter-spacing: 0.04em;
  fill: var(--fg-3);
}

.d-open .d-collar {
  fill: none;
  stroke-dasharray: 2 3;
}

.d-ghost {
  fill: none;
  stroke: var(--line-3);
  stroke-dasharray: 3 4;
}

.d-led {
  fill: var(--ok);
  filter: drop-shadow(0 0 2px var(--ok));
}

.d-led--amber {
  fill: var(--warn);
  filter: drop-shadow(0 0 2px var(--warn));
}

.d-led--blink {
  animation: blink 1.1s steps(2, start) infinite;
}

.d-led--blink-fast {
  animation: blink 0.6s steps(2, start) infinite;
}

.d-led--blink-slow {
  animation: blink 2.3s steps(2, start) infinite;
}

.d-vector {
  fill: none;
  stroke: var(--accent);
  stroke-opacity: 0.55;
  stroke-linecap: round;
  stroke-dasharray: 1 5;
}

.d-chev {
  fill: none;
  stroke: var(--accent);
  stroke-opacity: 0.8;
  stroke-linecap: round;
}

.d-hull--yours {
  fill: var(--accent);
  stroke: var(--accent);
  filter: drop-shadow(0 0 22px var(--accent-soft)) drop-shadow(0 0 6px var(--accent-soft));
}

.d-seam--yours {
  stroke: var(--on-accent);
  stroke-opacity: 0.25;
}

.d-win--yours {
  fill: var(--on-accent);
  stroke: var(--on-accent);
}

.d-label--yours {
  fill: var(--on-accent);
  font-weight: 600;
}

.d-spec--yours {
  fill: var(--on-accent);
  fill-opacity: 0.9;
}

.d-thrust {
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 4 4;
  animation: d-flicker 0.15s linear infinite, d-out 0.5s ease 1.7s both;
}

.d-yours-pod {
  animation: d-dock 1.9s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.d-collar--yours {
  animation: d-collar 0.3s ease 2.4s both;
}

.d-spec-a {
  animation: d-out 0.2s ease 2.4s both;
}

.d-spec-b {
  animation: d-in 0.3s ease 2.5s both;
}

.d-note--hot {
  animation: d-in 0.4s ease 2.6s both;
}

.d-lock {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: d-lock 0.9s ease-out 2.4s both;
}

/* ── Motion ─────────────────────────────────────────────────────────── */

.rise {
  animation: rise 700ms var(--ease-out) both;
  animation-delay: var(--d, 0ms);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cursor {
  to {
    opacity: 0;
  }
}

@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}

@keyframes blink {
  to {
    opacity: 0.15;
  }
}

@keyframes scroll {
  to {
    transform: translateX(-50%);
  }
}

@keyframes d-dock {
  from {
    transform: translateX(180px);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  to {
    transform: none;
  }
}

@keyframes d-flicker {
  to {
    stroke-dashoffset: 8;
  }
}

@keyframes d-collar {
  to {
    fill: var(--accent);
    stroke: var(--accent);
  }
}

@keyframes d-out {
  to {
    opacity: 0;
  }
}

@keyframes d-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes d-lock {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rise,
  .cursor,
  .led,
  .pod::before,
  .ticker-track,
  .d-led,
  .d-thrust,
  .d-yours-pod,
  .d-collar--yours,
  .d-spec-a,
  .d-spec-b,
  .d-note--hot,
  .d-lock {
    animation: none !important;
  }

  .ticker-track {
    flex-wrap: wrap;
    width: auto;
    padding-inline: var(--gutter);
  }

  .d-thrust,
  .d-spec-a,
  .d-lock {
    opacity: 0;
  }

  .d-collar--yours {
    fill: var(--accent);
    stroke: var(--accent);
  }
}

/* ── Narrow screens ─────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .tiers {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero .dock {
    max-width: 380px;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .machine-main {
    grid-template-columns: 1fr;
  }

  .machine-net {
    text-align: left;
  }

  .machine-stats {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .machine-actions .btn--danger {
    margin-left: 0;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .appnav-inner {
    gap: var(--space-4);
  }

  .who > span,
  .who code {
    display: none;
  }
}

@media (max-width: 640px) {
  .tiers {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  /* Sequence turns into a vertical rail: labels can't sit side by side on a phone */
  .sequence {
    display: grid;
    gap: var(--space-4);
    height: auto;
    padding-left: var(--space-6);
  }

  .sequence::before {
    inset: 6px auto 6px 5px;
    width: 1px;
    height: auto;
    background: var(--line-4);
  }

  .sequence > li,
  .sequence > li.is-end {
    position: relative;
    left: auto;
    grid-template-columns: 6ch auto;
    justify-items: start;
    gap: var(--space-3);
    padding-top: 0;
    transform: none;
  }

  .sequence > li::before,
  .sequence > li.is-end::before {
    left: calc(var(--space-6) * -1 + 5.5px);
    right: auto;
    top: 2px;
    transform: translateX(-50%);
  }

  .sequence > li.is-end::before {
    left: calc(var(--space-6) * -1);
    transform: none;
  }

  .statusbar-right > span + span {
    display: none;
  }
}

@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
  }

  .feature-title {
    margin-top: var(--space-6);
  }

  .telemetry {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, auto);
    row-gap: var(--space-4);
  }

  .telemetry > div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .faq-a {
    padding-right: 0;
  }
}

@media (max-width: 520px) {
  .statusbar a:not([aria-current]),
  .statusbar-session {
    display: none;
  }

  .statusbar {
    padding-left: var(--space-3);
  }

  .nav-actions .btn--ghost {
    display: none;
  }

  .appnav .logo-word {
    display: none;
  }
}

/* ── Site layout ────────────────────────────────────────────────────────
   Spacing between shared pieces. Not part of the design system bundle. */

.kicker + .page-title,
.kicker + .section-title {
  margin-top: var(--space-5);
}

.page-title + .page-lede {
  margin-top: var(--space-6);
}

.section-title + .section-lede,
.section-lede + .section-lede {
  margin-top: var(--space-4);
}
