/* blip.fly. Colours are BRAND.md's table, through the app's own tokens
   (src/design/tokens.ts). Nothing here uses a colour outside that table. */

:root {
  color-scheme: dark;
  --canvas: #06070A;
  --canvas-raised: #0B0E14;
  --surface: #11151C;
  --surface-raised: #181D26;
  --hairline: rgba(255,255,255,0.08);
  --hairline-strong: rgba(255,255,255,0.16);
  --stroke: rgba(255,255,255,0.09);
  --fill: rgba(160,176,200,0.12);
  --fill-strong: rgba(160,176,200,0.22);
  --track: rgba(160,176,200,0.14);
  --text: #F4F6F9;
  --text-2: #A0A8B3;
  --text-3: #6A727E;
  --accent: #3FE0C8;
  --accent-fill: #3FE0C8;
  --accent-ink: #04201C;
  --accent-dim: rgba(63,224,200,0.13);
  --accent-alt: #5AA9FF;
  --ontime: #2BD07E;
  --caution: #FEC201;
  --disrupt: #FF4D4F;
  --gate: #FEC201;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --r: 16px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --canvas: #F2F4F7;
    --canvas-raised: #FFFFFF;
    --surface: #FFFFFF;
    --surface-raised: #FFFFFF;
    --hairline: rgba(6,7,10,0.08);
    --hairline-strong: rgba(6,7,10,0.16);
    --stroke: rgba(6,7,10,0.08);
    --fill: rgba(80,92,112,0.09);
    --fill-strong: rgba(80,92,112,0.16);
    --track: rgba(80,92,112,0.12);
    --text: #0B0D12;
    --text-2: #5A6270;
    --text-3: #8A929E;
    --accent: #0B8C7C;
    --accent-fill: #0B8C7C;
    --accent-ink: #FFFFFF;
    --accent-dim: rgba(14,158,140,0.12);
    --accent-alt: #0A6FD1;
    --ontime: #007A3D;
    --caution: #8A6200;
    --disrupt: #C4000A;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 400 17px/1.5 var(--sans);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; }
.num, .clock, .stat-n, .t, .code, .iata, .gate-badge, .chip { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.muted { color: var(--text-2); }
.absent { color: var(--text-3); }
.caps { margin: 0; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); }
.eyebrow { margin: 0 0 12px; font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); }

/* ───────────── header and footer ───────────── */

.top, main, .foot { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.top nav { display: flex; gap: clamp(14px, 3vw, 28px); font-size: 15px; }
.top nav a { color: var(--text-2); white-space: nowrap; }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); text-decoration: none; }
.lockup { display: inline-flex; align-items: center; gap: 9px; color: var(--text); }
.lockup:hover { text-decoration: none; }
.lockup .mark { width: 28px; height: 28px; color: var(--accent); flex: none; }
.lockup .word { font-size: 23px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.lockup sup { font-size: 0.48em; font-weight: 600; letter-spacing: -0.01em; color: var(--accent); vertical-align: 0.95em; margin-left: 2px; }
.lockup.small .mark { width: 22px; height: 22px; }
.lockup.small .word { font-size: 18px; }

.foot { margin-top: 96px; padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--hairline); color: var(--text-2); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px; }
.foot-row p { margin: 0; max-width: 60ch; }
.foot-row.fine { margin-top: 18px; font-size: 13px; color: var(--text-3); }
.foot-row.fine a { color: var(--text-2); }

/* ───────────── front page ───────────── */

.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  grid-template-areas: "head globe" "rest globe"; column-gap: clamp(24px, 4vw, 56px); row-gap: 0;
  align-items: end; padding-top: clamp(16px, 4vw, 40px);
}
.hero-head { grid-area: head; }
.hero-rest { grid-area: rest; align-self: start; }
.hero-globe { grid-area: globe; align-self: center; }
.radar { display: block; }
.hero-radar { display: block; width: 128px; height: 128px; margin: 0 0 22px -14px; }
.hero-radar .radar { width: 100%; height: 100%; }
.hero h1 { margin: 0; font-size: clamp(38px, 5.6vw, 66px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; text-wrap: balance; }
.lede { margin: 22px 0 0; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--text-2); max-width: 56ch; text-wrap: pretty; }
.lookup-wrap { margin-top: 30px; }
#lookup { margin-top: 28px; }
.lookup { display: flex; gap: 8px; max-width: 460px; }
.lookup input, .waitlist input, .share input {
  flex: 1; min-width: 0; height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--stroke);
  background: var(--fill); color: var(--text); font: 600 18px/1 var(--mono); letter-spacing: 0.02em;
}
.lookup input::placeholder { color: var(--text-3); font-weight: 500; }
.lookup input:focus, .waitlist input:focus { outline: none; border-color: var(--accent); background: var(--fill-strong); }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 22px; border: 0; border-radius: 14px;
  background: var(--accent-fill); color: var(--accent-ink); font: 600 16px/1 var(--sans); letter-spacing: -0.01em; cursor: pointer; white-space: nowrap;
}
.button:hover, button:hover { text-decoration: none; filter: brightness(1.06); }
.hint { margin: 12px 0 0; font-size: 14px; color: var(--text-3); }

.hero-globe { position: relative; }
.globe { margin: 0; position: relative; aspect-ratio: 1 / 1; width: 100%; }
.globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.globe canvas:active { cursor: grabbing; }
.globe-caption { margin: -8% 0 0 auto; position: relative; max-width: 400px; padding: 16px 18px; border-radius: var(--r); background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid var(--stroke); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.cap-title { margin: 0; font-weight: 600; font-size: 15px; }
.cap-figs { display: flex; gap: 18px; margin: 6px 0 0; color: var(--text-2); font-size: 14px; }
.cap-figs b { color: var(--text); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-right: 5px; font-variant-numeric: tabular-nums; }
.cap-body { margin: 4px 0 0; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.cap-body .num { color: var(--text); font-weight: 600; }
.stamp { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 13px; color: var(--text-3); line-height: 1.4; flex-wrap: wrap; }
.stamp a { color: var(--text-2); }
.stamp time { color: var(--text-2); font-variant-numeric: tabular-nums; }
.stamp .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); flex: none; }

.band { margin-top: clamp(56px, 6vw, 88px); }
.band-head { max-width: 720px; margin-bottom: 24px; }
.band h2, .prose h2 { margin: 0; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
.band-head p { margin: 10px 0 0; color: var(--text-2); font-size: 16px; }
.more { margin: 18px 0 0; font-size: 15px; }
.more a::after, .days a::after { content: ""; }

/* ───────────── the board ───────────── */

.board { border: 1px solid var(--stroke); border-radius: var(--r); background: var(--surface); overflow-x: auto; }
.board table { width: 100%; border-collapse: collapse; font-size: 15px; }
.board th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); padding: 14px 16px 10px; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.board td { padding: 12px 16px; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.board tr:last-child td { border-bottom: 0; }
.board tbody tr:hover { background: var(--fill); }
.board .t { font-weight: 600; font-size: 16px; white-space: nowrap; width: 1%; }
.dayoff { margin-left: 3px; font-size: 11px; color: var(--text-3); vertical-align: super; }
.board .f { white-space: nowrap; width: 1%; }
.board .f a { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-family: var(--mono); font-size: 14px; letter-spacing: 0.02em; }
.board .city { color: var(--text); }
.iata { font-family: var(--mono); font-size: 13px; color: var(--text-3); letter-spacing: 0.04em; }
.board .tg { white-space: nowrap; color: var(--text-2); }
.term { margin-right: 8px; font-family: var(--mono); font-size: 13px; }
.gate, .gate-badge { display: inline-block; min-width: 30px; padding: 1px 6px; border-radius: 6px; background: var(--gate); color: #000; font: 700 13px/20px var(--mono); text-align: center; }
.gate-badge { font-size: 17px; line-height: 26px; padding: 2px 10px; border-radius: 8px; }
.status { font-weight: 600; }
.status.ontime { color: var(--ontime); }
.status.caution { color: var(--caution); }
.status.disrupt { color: var(--disrupt); }
.status.neutral { color: var(--text-2); }
.status-rest { color: var(--text-3); margin-left: 6px; font-size: 14px; }
.board .s { min-width: 180px; }

.cmark { display: inline-flex; width: 26px; height: 26px; border-radius: 7px; background: #FFFFFF; align-items: center; justify-content: center; overflow: hidden; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06); }
.cmark img { width: 20px; height: 20px; object-fit: contain; }
.cmark.pale { background: #181D26; }
.cmark.code { background: var(--fill-strong); color: var(--text-2); font: 700 10px/1 var(--mono); letter-spacing: 0.02em; }

/* ───────────── coverage, measured on the board ───────────── */

.band > h2 { margin-bottom: 20px; }
.band.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.band-note { margin: 10px 0 0; color: var(--text-2); font-size: 16px; max-width: 34ch; }
.coverage { display: grid; gap: 14px; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--stroke); }
.cov-row { display: grid; grid-template-columns: 12ch minmax(0, 1fr) 13ch; gap: 14px; align-items: center; font-size: 15px; }
.cov-label { color: var(--text); font-weight: 500; }
.cov-track { position: relative; height: 10px; border-radius: 5px; background: var(--track); overflow: hidden; }
.cov-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--share) * 100%); border-radius: 5px; background: var(--accent-fill); transform-origin: left center; animation: grow 900ms cubic-bezier(.2,.7,.2,1) both; }
.cov-row:nth-child(2) .cov-fill { animation-delay: 60ms; } .cov-row:nth-child(3) .cov-fill { animation-delay: 120ms; }
.cov-row:nth-child(4) .cov-fill { animation-delay: 180ms; } .cov-row:nth-child(5) .cov-fill { animation-delay: 240ms; }
@keyframes grow { from { transform: scaleX(0); } }
.cov-track.hatched { background: repeating-linear-gradient(135deg, var(--track) 0 4px, transparent 4px 8px); }
.cov-n { color: var(--text-2); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.cov-n b { color: var(--text); font-weight: 600; }
.absent-row .cov-label, .absent-row .cov-n { color: var(--text-3); }

/* ───────────── the phone ───────────── */

.phone-wrap { justify-self: center; }
.phone { display: block; width: 300px; height: 420px; padding: 12px; border-radius: 48px; background: #0B0E14; border: 1px solid var(--hairline-strong); box-shadow: 0 30px 80px -30px rgba(63,224,200,0.25), inset 0 0 0 6px #000; color: var(--text); transition: transform 300ms cubic-bezier(.2,.7,.2,1); }
.phone:hover { text-decoration: none; transform: translateY(-4px); }
.phone-screen { height: 100%; border-radius: 38px; background: #06070A; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; position: relative; overflow: hidden; --accent-fill: #3FE0C8; }
.phone-screen .radar { width: 132px; height: 132px; }
.phone-line { color: #A0A8B3; font-size: 13px; }
.phone-cta { position: absolute; bottom: 22px; left: 22px; right: 22px; height: 46px; border-radius: 14px; background: #3FE0C8; color: #04201C; font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; }

/* ───────────── ledger and limits ───────────── */

.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ledger-col { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r); padding: 22px 24px 8px; }
.ledger-col h3 { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }
.ledger-col:last-child h3 { color: var(--accent-alt); }
.ledger dl { margin: 0; }
.ledger dl > div { padding: 14px 0; border-top: 1px solid var(--hairline); }
.ledger dl > div:first-child { border-top: 0; }
.ledger dt { font-weight: 600; font-size: 16px; }
.ledger dd { margin: 3px 0 0; color: var(--text-2); font-size: 15px; line-height: 1.5; }

.limit-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--stroke); border-radius: var(--r); overflow: hidden; }
.limit-list li { background: var(--canvas-raised); padding: 20px 22px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.limit-list strong { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }

.get-inner { padding: clamp(28px, 5vw, 48px); border-radius: 24px; background: radial-gradient(120% 140% at 100% 0%, var(--accent-dim), transparent 60%), var(--surface); border: 1px solid var(--stroke); }
.get-inner p { color: var(--text-2); max-width: 56ch; margin: 12px 0 24px; }

/* ───────────── notices ───────────── */

.notice { border: 1px solid var(--stroke); background: var(--surface); border-radius: var(--r); padding: 18px 20px; color: var(--text-2); font-size: 15px; }
.notice.ok { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.notice-title { margin: 0 0 6px; color: var(--text); font-weight: 600; font-size: 16px; }
.notice p { margin: 0 0 6px; }
.notice ul { margin: 6px 0 0; padding-left: 20px; }

/* ───────────── flight ───────────── */

.page-head.narrow { max-width: 640px; padding-top: 24px; }
.code-title { font: 700 clamp(44px, 8vw, 72px)/1 var(--mono); letter-spacing: -0.02em; margin: 0 0 24px; }
.flight { padding-top: 16px; }
.flight-id { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--text-2); font-weight: 500; }
.flight-id span:nth-child(2) { font-family: var(--mono); font-weight: 700; color: var(--text); letter-spacing: 0.02em; }
.sep { color: var(--text-3); }
.route-title { margin: 6px 0 0; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 700; text-wrap: balance; }
.route-title .to { font-weight: 400; color: var(--text-2); }
.status-line { margin: 16px 0 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.status.big { font-size: 22px; letter-spacing: -0.02em; }
.status-line .status-rest { font-size: 17px; color: var(--text-2); margin: 0; }
.disruption { margin: 10px 0 0; color: var(--text-2); max-width: 70ch; }
.legs { margin-top: 24px; }
.legs ol { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.legs a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--fill); color: var(--text-2); font-size: 15px; }
.legs a[aria-current] { background: var(--fill-strong); color: var(--text); font-weight: 600; }

.flight-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; margin-top: 32px; align-items: start; }
.ends { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--stroke); border-radius: 20px; }
.end { padding: 22px 24px 18px; }
.end + .end { border-left: 1px solid var(--hairline); }
.end-place { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 0; flex-wrap: wrap; }
.iata-mark { font: 700 34px/1 var(--mono); letter-spacing: 0.01em; color: var(--text); }
a.iata-mark:hover { color: var(--accent); text-decoration: none; }
.end-city { font-size: 17px; font-weight: 600; }
.end-name { margin: 4px 0 0; font-size: 13px; color: var(--text-3); min-height: 2.6em; }
.clock { margin: 18px 0 0; font-size: clamp(40px, 5vw, 52px); line-height: 1; font-weight: 600; letter-spacing: -0.04em; }
.clock.ontime { color: var(--ontime); }
.clock.caution { color: var(--caution); }
.clock.disrupt { color: var(--disrupt); }
.clock.neutral .absent { font-size: 18px; letter-spacing: 0; font-weight: 500; }
.clock-note { margin: 8px 0 0; font-size: 14px; color: var(--text-2); }
.facts { margin: 18px 0 0; display: grid; gap: 0; }
.facts > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hairline); min-height: 46px; }
.facts dt { color: var(--text-2); font-size: 15px; }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.facts .absent { font-weight: 400; font-size: 14px; }

.flight-side .globe { max-width: 440px; margin: -12px auto 0; }
.progress { margin-top: 4px; }
.track { height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.track .fill { height: 100%; border-radius: 3px; background: var(--accent); }
.progress-note { margin: 8px 0 0; font-size: 13px; color: var(--text-3); }

.details { margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--stroke); border-radius: var(--r); overflow: hidden; }
.details > div { background: var(--surface); padding: 16px 18px; }
.details dt { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); }
.details dd { margin: 6px 0 0; font-weight: 600; font-size: 16px; line-height: 1.6; }
.details .muted { font-weight: 400; font-size: 13px; }
.chip { display: inline-block; margin: 0 6px 4px 0; padding: 0 8px; border-radius: 6px; background: var(--fill); font: 600 13px/24px var(--mono); }

.missing { margin-top: 20px; color: var(--text-2); font-size: 15px; }
.missing ul { margin: 6px 0 0; padding-left: 20px; }
.receipt { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--hairline); }
.receipt .stamp { margin: 0; font-size: 14px; }
.receipt-note { margin: 6px 0 0 15px; font-size: 13px; color: var(--text-3); }
.share { display: flex; gap: 8px; max-width: 520px; margin-top: 18px; }
.share input { font: 500 14px/1 var(--mono); height: 44px; color: var(--text-2); }
.share button { height: 44px; background: var(--fill-strong); color: var(--text); }
.days { margin: 16px 0 0; font-size: 14px; color: var(--text-3); }

/* ───────────── airport ───────────── */

.airport { padding-top: 16px; }
.airport-head { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: center; }
.airport-head .globe { width: 260px; }
.iata-title { margin: 0; font: 700 clamp(72px, 13vw, 132px)/0.9 var(--mono); letter-spacing: -0.04em; }
.airport-name { margin: 14px 0 0; font-size: 19px; font-weight: 600; }
.airport-clock { margin: 6px 0 0; color: var(--text-2); font-size: 15px; }
.tabs { display: inline-flex; margin-top: 28px; padding: 4px; border-radius: 14px; background: var(--fill); gap: 4px; }
.tabs a { padding: 9px 18px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: 15px; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs a[aria-current] { background: var(--surface-raised); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,0.25); }
.window-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 22px 0 14px; color: var(--text-2); }
.window-bar p { margin: 0; }
.window-bar strong { color: var(--text); }
.window-nav { display: flex; gap: 18px; font-size: 15px; }
.pulse { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r); padding: 14px 16px; }
.stat-n { margin: 6px 0 0; font-size: 30px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.stat-n.ontime { color: var(--ontime); }
.stat-n.caution { color: var(--caution); }
.stat-n.disrupt { color: var(--disrupt); }
.stat-u { margin: 6px 0 0; font-size: 13px; color: var(--text-3); line-height: 1.35; }
.basis { margin: 12px 0 0; font-size: 14px; color: var(--text-3); max-width: 90ch; }
.airport .stamp { margin: 6px 0 18px; }
.notes { margin: 14px 0 0; padding-left: 20px; font-size: 14px; color: var(--text-2); }

/* ───────────── prose ───────────── */

.prose { max-width: 720px; padding-top: 24px; }
.prose h1 { margin: 0; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 700; text-wrap: balance; }
.prose h2 { margin-top: 48px; }
.prose p, .prose li { color: var(--text-2); }
.prose p strong, .prose li strong { color: var(--text); }
.prose ul { padding-left: 20px; }
.prose li { margin: 8px 0; }
.prose .lookup { margin-top: 16px; }
.waitlist { margin-top: 28px; padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--stroke); }
.waitlist label { display: block; font-weight: 600; margin-bottom: 10px; }
.waitlist .row { display: flex; gap: 8px; }
.waitlist input { font: 500 16px/1 var(--sans); }
.waitlist .fine { margin: 12px 0 0; font-size: 13px; color: var(--text-3); }
.hp { position: absolute; left: -9999px; }
.choices { list-style: none; padding: 0; margin: 20px 0; }
.choices li { margin: 0; border-top: 1px solid var(--hairline); }
.choices a { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; color: var(--text); }
.choices .iata-mark { font-size: 20px; width: 3.4ch; }

/* ───────────── small screens ───────────── */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "head" "globe" "rest"; }
  .hero-globe { max-width: 560px; margin: 0 auto; width: 100%; }
  .hero-radar { width: 120px; height: 120px; margin: 0 0 8px -12px; }
  .band.split { grid-template-columns: 1fr; }
  .globe-caption { margin: -10% 12px 0; max-width: none; }
  .ledger { grid-template-columns: 1fr; }
  .flight-grid { grid-template-columns: 1fr; }
  .flight-side .globe { max-width: 300px; margin: -8px auto -8px; }
  .details { grid-template-columns: 1fr 1fr; }
  .pulse { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .top { height: 60px; }
  .top nav { gap: 14px; font-size: 14px; }
  .top nav a:first-child { display: none; }
  .ends { grid-template-columns: 1fr; }
  .end + .end { border-left: 0; border-top: 1px solid var(--hairline); }
  .end-name { min-height: 0; }
  .details { grid-template-columns: 1fr; }
  .airport-head { grid-template-columns: 1fr; }
  .airport-head .globe { display: none; }
  .board .tg { display: none; }
  .board td, .board th { padding-left: 8px; padding-right: 8px; }
  .board td:first-child, .board th:first-child { padding-left: 12px; }
  .board .t { font-size: 15px; }
  .board .f a { gap: 7px; font-size: 13px; }
  .board .cmark { width: 22px; height: 22px; border-radius: 6px; }
  .board .cmark img { width: 17px; height: 17px; }
  .board .p { font-size: 14px; line-height: 1.3; }
  .board .s { min-width: 0; }
  .status-rest { display: block; margin: 2px 0 0; font-size: 13px; }
  .board .p .iata { display: none; }
  .lookup button { padding: 0 16px; }
  .share { flex-direction: column; }
  .waitlist .row { flex-direction: column; }
  .waitlist .row input { flex: none; width: 100%; }
}

@media (max-width: 600px) {
  .cov-row { grid-template-columns: 9ch minmax(0, 1fr) auto; gap: 10px; font-size: 14px; }
  .coverage { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .cov-fill, .phone { animation: none; transition: none; }
}
.times .stamp { margin: 12px 0 0 4px; }

/* ───────────── the phone running Blip ───────────── */

.hero-stage { grid-area: globe; position: relative; min-height: 640px; }
.hero-stage .hero-globe { position: absolute; top: 0; right: -40px; width: 92%; }
.device { position: relative; z-index: 2; width: 320px; aspect-ratio: 9 / 19.2; padding: 10px; border-radius: 54px; background: linear-gradient(160deg, #2A303A, #0B0E14 40%, #1A1F28); box-shadow: 0 0 0 1px rgba(255,255,255,0.10), 0 40px 90px -30px rgba(0,0,0,0.9), 0 0 120px -40px rgba(63,224,200,0.35); margin-top: 120px; }
.device-screen { position: relative; height: 100%; border-radius: 44px; overflow: hidden; background: #06070A; color: #F4F6F9; --accent-fill: #3FE0C8; }
.device-screen .globe { position: absolute; top: -6%; left: -18%; width: 136%; }
.d-island { position: absolute; top: 11px; left: 50%; width: 96px; height: 28px; margin-left: -48px; border-radius: 16px; background: #000; z-index: 3; }
.d-card { position: absolute; left: 6px; right: 6px; bottom: 8px; padding: 16px 16px 12px; border-radius: 32px; background: rgba(17,21,28,0.94); border: 1px solid rgba(255,255,255,0.09); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.d-card p { margin: 0; }
.d-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #A0A8B3; }
.d-meta .cmark { width: 20px; height: 20px; border-radius: 5px; }
.d-meta .cmark img { width: 15px; height: 15px; }
.d-num { font: 700 12px/1 var(--mono); color: #F4F6F9; letter-spacing: 0.03em; }
.d-route { margin-top: 8px !important; font-size: 19px; line-height: 1.15; letter-spacing: -0.02em; color: #A0A8B3; }
.d-route b { color: #F4F6F9; font-weight: 600; }
.d-state { display: flex; gap: 8px; align-items: baseline; margin-top: 6px !important; font-size: 14px; color: #A0A8B3; }
.d-state .status { font-size: 14px; }
.d-ends { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.08); }
.d-end { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.d-code { font: 600 11px/1 var(--mono); color: #6A727E; letter-spacing: 0.06em; }
.d-clock { font-size: 32px; line-height: 1; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: #F4F6F9; margin: 2px 0 3px; }
.d-clock.ontime { color: #2BD07E; } .d-clock.caution { color: #FEC201; } .d-clock.disrupt { color: #FF4D4F; }
.d-sub { font-size: 11px; color: #A0A8B3; }
.d-sub.absent { color: #6A727E; }
.d-gate { font-size: 14px; line-height: 22px; padding: 0 8px; margin-top: 3px; }
.d-read { display: flex; align-items: center; gap: 6px; margin-top: 12px !important; font-size: 11px; color: #6A727E; }
.d-read .dot { width: 6px; height: 6px; border-radius: 50%; background: #3FE0C8; box-shadow: 0 0 0 3px rgba(63,224,200,0.15); }

.flight-id .airline { color: var(--text-2); }
.flight-date { margin: 2px 0 0; color: var(--text-2); font-size: 15px; }

/* hero: the words, and the phone running Blip */
.hero { grid-template-areas: none; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; min-height: 720px; padding-top: 8px; }
.hero-copy { max-width: 560px; }
.hero-copy #lookup { margin-top: 30px; }
.hero-phone { display: flex; justify-content: center; position: relative; }
.hero-phone::before { content: ""; position: absolute; inset: 8% -10% 8% -10%; background: radial-gradient(closest-side, rgba(63,224,200,0.16), transparent); z-index: 0; }
.hero-phone .device { margin: 0; width: 320px; }

/* tour: more of the app, on the same read */
.tour-row { display: flex; justify-content: center; gap: clamp(24px, 5vw, 72px); }
.tour-item { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tour-item .device { width: 280px; margin: 0; }
.tour-item figcaption { color: var(--text-2); font-size: 15px; }
.s-head { position: absolute; top: 56px; left: 18px; right: 18px; display: flex; align-items: baseline; justify-content: space-between; }
.s-title { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; color: #F4F6F9; }
.s-iata { font: 700 13px/1 var(--mono); color: #3FE0C8; letter-spacing: 0.06em; }
.s-rows { position: absolute; top: 100px; left: 8px; right: 8px; list-style: none; margin: 0; padding: 0; }
.s-rows li { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 10px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.s-count { display: flex; flex-direction: column; align-items: center; }
.s-count b { font-size: 19px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: #F4F6F9; line-height: 1.05; }
.s-count small { font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; color: #6A727E; }
.s-mid { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.s-flight { display: flex; align-items: center; gap: 6px; font: 700 11px/1 var(--mono); color: #F4F6F9; }
.s-flight .cmark { width: 16px; height: 16px; border-radius: 4px; }
.s-flight .cmark img { width: 12px; height: 12px; }
.s-city { font-size: 13px; color: #A0A8B3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-st { text-align: right; font-size: 12px; }
.s-st .status-rest { display: block; margin: 1px 0 0; font-size: 10px; }
.s-foot { position: absolute; bottom: 18px; left: 18px; }
.s-big { position: absolute; top: 120px; left: 18px; right: 18px; display: flex; flex-direction: column; }
.s-big b { font-size: 84px; line-height: 0.9; font-weight: 600; letter-spacing: -0.05em; color: #2BD07E; font-variant-numeric: tabular-nums; }
.s-big b small { font-size: 34px; margin-left: 2px; }
.s-big span { color: #A0A8B3; font-size: 14px; margin-top: 6px; }
.s-split { position: absolute; top: 250px; left: 18px; right: 18px; display: flex; gap: 3px; height: 10px; }
.s-split span { border-radius: 3px; min-width: 3px; }
.s-split .ontime { background: #2BD07E; } .s-split .disrupt-bar { background: #FF4D4F; } .s-split .cancel { background: #6A727E; }
.s-stats { position: absolute; top: 280px; left: 18px; right: 18px; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.s-stats div { background: rgba(255,255,255,0.05); border-radius: 14px; padding: 10px 12px; }
.s-stats dt { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: #6A727E; }
.s-stats dd { margin: 4px 0 0; font-size: 24px; font-weight: 600; letter-spacing: -0.03em; color: #F4F6F9; font-variant-numeric: tabular-nums; }
.s-stats dd.ontime { color: #2BD07E; } .s-stats dd.disrupt { color: #FF4D4F; }
.s-basis { position: absolute; bottom: 18px; left: 18px; margin: 0; font-size: 11px; color: #6A727E; }

/* the night: the board's routes on the Earth */
.night { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.night-copy .cap-figs { margin-top: 16px; }
.night-copy .cap-figs b { font-size: 40px; }
.night-globe { max-width: 620px; width: 100%; justify-self: end; }
.night .stamp { white-space: nowrap; flex-wrap: nowrap; }

/* the get panel: radar, one line, the form */
.get-panel { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; min-height: 360px; padding: clamp(24px, 4vw, 48px); border-radius: 28px; background: radial-gradient(90% 120% at 0% 50%, var(--accent-dim), transparent 60%), var(--surface); border: 1px solid var(--stroke); }
.get-radar { display: block; width: 260px; height: 260px; justify-self: center; }
.get-radar .radar { width: 100%; height: 100%; }
.get-copy h2 { margin: 0; }
.waitlist.inline { margin: 22px 0 0; padding: 0; background: none; border: 0; max-width: 480px; }
.get-copy .fine { margin: 10px 0 0; font-size: 13px; }
.get-copy .fine a { color: var(--text-3); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 32px; }
  .hero-phone .device { width: 300px; aspect-ratio: auto; height: 600px; }
  .tour-row { flex-direction: column; align-items: center; }
  .night { grid-template-columns: 1fr; }
  .night-globe { justify-self: center; }
  .get-panel { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .get-radar { width: 180px; height: 180px; }
  .waitlist.inline { margin-left: auto; margin-right: auto; }
}

/* phones: the board as the app's rows, nothing clipped */
@media (max-width: 600px) {
  .board { overflow: visible; }
  .board table, .board tbody { display: block; width: 100%; }
  .board thead { display: none; }
  .board tr { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; grid-template-areas: "t f s" "t p s"; column-gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--hairline); }
  .board tr:last-child { border-bottom: 0; }
  .board td { display: block; padding: 0; border: 0; }
  .board td:first-child { padding-left: 0; }
  .board .t { grid-area: t; align-self: center; }
  .board .f { grid-area: f; }
  .board .p { grid-area: p; color: var(--text-2); margin-top: 3px; }
  .board .p .city { color: var(--text-2); }
  .board .s { grid-area: s; text-align: right; min-width: 0; }
  .board .status-rest { margin: 2px 0 0; }
  .night .stamp { white-space: normal; flex-wrap: wrap; }
}

.d-gate-row { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.d-gate-row .d-gate { margin: 0; }
@media (max-width: 600px) {
  .hero { gap: 24px; }
  .hero-phone .device { height: 450px; }
  .hero-phone .device .globe { top: -30%; }
}
html { overflow-x: clip; }
@media (max-width: 900px) { .hero-phone::before { inset: 8% 0; } }

/* /app: one action on the left, the app running on the right */
.app-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-top: 24px; min-height: 640px; }
.app-copy h1 { margin: 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 700; text-wrap: balance; }
.app-copy .lede { max-width: 44ch; }
.app-copy .waitlist.inline { margin-top: 28px; }
.app-copy .fine { margin: 10px 0 0; font-size: 13px; color: var(--text-3); }
.app-alt { margin: 28px 0 0; font-size: 15px; color: var(--text-2); }
.app-phone { display: flex; justify-content: center; position: relative; }
.app-phone::before { content: ""; position: absolute; inset: 8% 0; background: radial-gradient(closest-side, rgba(63,224,200,0.16), transparent); }
.app-phone .device { width: 320px; margin: 0; }
@media (max-width: 900px) {
  .app-hero { grid-template-columns: 1fr; min-height: 0; }
  .app-phone .device { width: 300px; aspect-ratio: auto; height: 600px; }
}

/* airport: a compact title block, and the window by half hour beside it */
@media (min-width: 901px) {
  .airport-head { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: end; gap: 48px; }
  .iata-title { font-size: clamp(72px, 8vw, 104px); }
}
.hours { margin: 0; padding: 18px 20px 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--stroke); }
.hours figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hours-key { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.hours-key i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: -6px; }
.k-on { background: var(--ontime); } .k-late { background: var(--disrupt); } .k-out { background: var(--text-3); } .k-open { background: var(--fill-strong); }
.hours-plot { position: relative; height: 150px; display: flex; align-items: flex-end; gap: 6px; }
.hours-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; }
.hours-n { text-align: center; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.hours-stack { display: flex; flex-direction: column; border-radius: 6px; overflow: hidden; min-height: 2px; transform-origin: bottom; animation: rise 800ms cubic-bezier(.2,.7,.2,1) both; }
.hours-stack i { display: block; min-height: 3px; }
@keyframes rise { from { transform: scaleY(0); } }
.hours-now { position: absolute; top: -6px; bottom: 0; width: 0; border-left: 1.5px dashed var(--accent); }
.hours-now b { position: absolute; top: -14px; left: 4px; font-size: 11px; font-weight: 600; color: var(--accent); }
.hours-axis { position: relative; height: 18px; margin-top: 6px; }
.hours-axis span { position: absolute; transform: translateX(0); font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .hours-stack { animation: none; } }
@media (max-width: 600px) { .hours-plot { height: 120px; gap: 4px; } }

/* real app captures */
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--stroke); box-shadow: 0 24px 60px -30px rgba(0,0,0,0.9); background: #06070A; }
.shot figcaption { margin-top: 10px; font-size: 14px; color: var(--text-2); }
.prose.how { max-width: none; }
.how > *:not(.how-open) { max-width: 720px; }
.how-open { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 5vw, 72px); align-items: start; }
.how-shot { margin: 0; }
.how-shot img { display: block; width: 100%; height: auto; border-radius: 26px; border: 1px solid var(--stroke); box-shadow: 0 30px 70px -30px rgba(0,0,0,0.9); }
.how-shot figcaption { margin-top: 10px; font-size: 13px; color: var(--text-2); }
@media (max-width: 900px) {
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-open { grid-template-columns: 1fr; }
  .how-shot { max-width: 300px; }
}
.band-note.quiet { margin-top: 4px; font-size: 14px; }
/* wraps happen between groups, never inside one */
.stamp .st { white-space: nowrap; }
.stamp { column-gap: 6px; }
.hours-key > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.hours-key i { margin-right: 0; }
.iata { color: var(--text-2); }
