/* Airside. Dark first, hairlines not shadows, one accent, left-aligned. */
:root {
  color-scheme: dark;
  --canvas: #0a0c12;
  --surface: #11141d;
  --raised: #191d29;
  --line: #242938;
  --field: #5d657c;
  --ink: #eef0f7;
  --muted: #9aa1b5;
  --accent: #5cc8ff;
  --accent-strong: #8ad8ff;
  --accent-soft: #0e2a3b;
  --good: #4fd09a;
  --good-soft: #10281f;
  --bad: #ff8577;

  --display: "Barlow Semi Condensed", system-ui, sans-serif;
  --sans: Geist, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }

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

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

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.band { border-bottom: 1px solid var(--line); }
.band > .wrap { padding-block: 88px; }
.band--surface { background: var(--surface); }

.stack { display: flex; flex-direction: column; gap: 40px; }

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 56px;
  align-items: center;
}
.split > * { flex: 1 1 400px; min-width: 0; }

/* Type */
.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.h1, .h2, .h3 {
  font-family: var(--display);
  font-weight: 600;
  text-wrap: balance;
}
.h1 { font-size: clamp(44px, 5.6vw, 76px); line-height: 1; letter-spacing: -0.025em; }
.h2 { font-size: clamp(32px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.02em; }
.h2--big { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; max-width: 760px; }
.h3 { font-size: 20px; line-height: 1.2; }

.lead { font-size: 19px; color: var(--muted); max-width: 520px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.mono { font-family: var(--mono); }

.heading { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  padding-block: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand img { width: 28px; height: 28px; display: block; }
.nav { display: flex; flex-wrap: wrap; gap: 0 28px; flex-grow: 1; font-size: 14px; }
.nav a, .footer-links a { color: var(--muted); text-decoration: none; padding: 12px 0; }
.nav a:hover, .footer-links a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border: 1px solid var(--field);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--ink);
  font: 500 15px var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms, border-color 120ms, color 120ms;
}
.btn:hover { background: var(--raised); color: var(--ink); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--canvas); font-weight: 600; }
.btn--primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--canvas); }
.btn--small { height: 44px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
/* The product window is exactly as tall as the copy beside it: tops and bottoms line up. */
.hero > .wrap { padding-block: 88px 96px; align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }

.command {
  margin: 0;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.command .prompt { color: var(--muted); user-select: none; }

/* Product window */
.window {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.window-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.window-bar .mono { font-size: 12px; color: var(--muted); }
.window-title { font-family: var(--display); font-weight: 600; font-size: 17px; }

.transcript {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.transcript .ask { color: var(--ink); }
.transcript dl {
  margin: 0;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 6px 12px;
}
.transcript dt { color: var(--accent); }
.transcript dd { margin: 0; }

.bays {
  list-style: none;
  margin: 0;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 8px;
  flex: 1;
}
.bay {
  --bay-bg: var(--accent-soft);
  --bay-fg: var(--accent-strong);
  background: var(--bay-bg);
  border-radius: var(--radius-sm);
  padding: 8px 8px 9px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}
.bay--testing { --bay-bg: var(--raised); --bay-fg: var(--ink); }
.bay--done { --bay-bg: var(--good-soft); --bay-fg: var(--good); }
.bay-name {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}
.bay-state {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bay-fg);
  white-space: nowrap;
  overflow: hidden;
}
.bay-state::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--bay-fg);
}
.bay--working .bay-state::before { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.tally {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.tally b { font-weight: 600; }
.tally .working { color: var(--accent-strong); }
.tally .testing { color: var(--ink); }
.tally .done { color: var(--good); }

/* Compare */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.panel--on { background: var(--surface); border-color: var(--accent); }
.panel .h3 { margin-bottom: 12px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.panel:not(.panel--on) .rows li { color: var(--muted); }

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 16px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-no { font-family: var(--mono); font-size: 12px; color: var(--accent); }

/* Features: a ruled table of cells */
.cells {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.cell {
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Pricing */
.price-heading { display: flex; flex-direction: column; gap: 12px; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 24px 12px;
}
.currency {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  margin-bottom: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.currency button {
  min-width: 52px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font: 600 12px var(--sans);
  letter-spacing: 0.08em;
  cursor: pointer;
}
.currency button:hover { color: var(--ink); }
.currency button[aria-pressed="true"] { background: var(--raised); color: var(--ink); }
.prices { margin: 0; }
.prices div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 12px 0;
  font-size: 15px;
}
.prices div + div { border-top: 1px solid var(--line); }
.prices dt { color: var(--muted); }
.prices dd { margin: 0; font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; }

/* Early access */
.access { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.signup { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; width: 100%; max-width: 560px; }
.field { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); }
.field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: var(--canvas);
  color: var(--ink);
  border: 1px solid var(--field);
  border-radius: var(--radius-md);
  font: 400 16px var(--sans);
}
.field input::placeholder { color: var(--field); }
.field input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(92, 200, 255, 0.3); }
.form-note { min-height: 1.55em; font-size: 15px; }
.form-note[data-state="ok"] { color: var(--good); }
.form-note[data-state="error"] { color: var(--bad); }

/* Footer */
.site-footer .wrap {
  padding-block: 40px 56px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  font-size: 14px;
  color: var(--muted);
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 24px; height: 24px; display: block; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 24px; align-items: center; }

/* Two-column hero on a narrow desktop: tiles get tight, so shrink their labels to fit. */
@media (min-width: 641px) and (max-width: 1240px) {
  .bay { padding: 8px 6px 9px; }
  .bay-state { font-size: 9px; letter-spacing: 0.02em; }
  .bay-state::before { display: none; }
}

@media (max-width: 640px) {
  .wrap {
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
  }
  .band > .wrap { padding-block: 56px; }
  .hero > .wrap { padding-block: 40px 56px; gap: 32px; }
  .stack { gap: 28px; }

  /* Header: brand on the left, the one action on the right. Section links are a scroll away. */
  .site-header .wrap { flex-wrap: nowrap; justify-content: space-between; padding-block: 10px; }
  .nav { display: none; }

  .h1 { font-size: clamp(38px, 11vw, 48px); }
  .h2 { font-size: 28px; }
  .h2--big { font-size: 34px; }
  .lead { font-size: 17px; }
  .hero-copy { gap: 20px; }

  /* Buttons fill the row so they are easy to hit with a thumb. */
  .actions .btn { flex: 1 1 150px; }
  .signup .btn { flex: 1 1 100%; }

  .transcript { font-size: 12px; }
  .transcript dl { grid-template-columns: 60px minmax(0, 1fr); gap: 6px 10px; }
  .window-bar, .transcript, .bays { padding: 12px; }
  .tally { padding: 10px 12px 12px; }

  .bays { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .bay { padding: 7px 6px 8px; gap: 4px; }
  .bay-state { font-size: 9px; letter-spacing: 0.02em; gap: 4px; }

  .panel, .cell { padding: 20px; }
  .price-card { padding: 14px 16px 8px; }
  .prices dd { font-size: 13px; }

  .site-footer .wrap { padding-block: 32px 40px; flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bay--working .bay-state::before { animation: none; }
  .btn { transition: none; }
}
