/* Terminal Approach Control — site styles.
   Black and off-white. Scope colour only ever appears inside radar imagery.
   ATC (the STARS raster face) for the wordmark and scope-voice labels; Barlow,
   the DIN-like signage face, for headings and controls; Atkinson Hyperlegible
   for reading; Inconsolata for data, keys and phraseology. */

@font-face { font-family: 'ATC'; src: url('../fonts/ATC.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Inconsolata'; src: url('../fonts/Inconsolata.ttf') format('truetype'); font-weight: 200 900; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/Barlow-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/Barlow-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/Barlow-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('../fonts/AtkinsonHyperlegible-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('../fonts/AtkinsonHyperlegible-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
    --bg: #0a0b0c;
    --bg-raised: #111315;
    --bg-sunk: #070808;
    --text: #ecedeb;
    --text-2: rgba(236, 237, 235, 0.70);
    --text-3: rgba(236, 237, 235, 0.48);
    --line: rgba(236, 237, 235, 0.11);
    --line-2: rgba(236, 237, 235, 0.22);
    --ink: #0a0b0c;             /* text on light buttons */
    --warn: #ffb4a8;
    --ok: #cfe9da;

    --f-atc: 'ATC', 'Inconsolata', ui-monospace, monospace;
    --f-mono: 'Inconsolata', ui-monospace, 'SFMono-Regular', Consolas, monospace;
    --f-head: 'Barlow', 'Arial Narrow', system-ui, sans-serif;
    --f-body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --fs-hero: clamp(2.5rem, 1.2rem + 5.2vw, 5.4rem);
    --fs-h2: clamp(1.9rem, 1.2rem + 2.4vw, 3.1rem);
    --fs-h3: 1.3rem;
    --fs-lede: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
    --fs-body: 1.0625rem;
    --fs-small: 0.9rem;
    --fs-label: 0.8rem;

    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
    --section: clamp(88px, 12vw, 168px);
    --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 var(--fs-body)/1.6 var(--f-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
::selection { background: var(--text); color: var(--ink); }
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; letter-spacing: -0.01em; line-height: 1.02; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
kbd {
    font: 500 0.92em var(--f-mono);
    border: 1px solid var(--line-2);
    border-bottom-width: 2px;
    border-radius: 3px;
    padding: 0 0.35em;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Scope-voice label: the STARS face, small caps of the display world. */
.label {
    font: 400 var(--fs-label)/1.3 var(--f-atc);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
}

/* ── Header ── */
.site-head {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    background: linear-gradient(var(--bg) 0%, rgba(10, 11, 12, 0.88) 70%, rgba(10, 11, 12, 0));
}
.site-head .wrap { display: flex; align-items: center; gap: 32px; height: 72px; max-width: none; }
.wordmark {
    font: 400 0.95rem/1 var(--f-atc);
    letter-spacing: 0.1em;
    text-decoration: none;
    white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--text-2); font-size: var(--fs-small); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav-toggle { display: none; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 22px;
    font: 500 1rem/1 var(--f-head);
    letter-spacing: 0.02em;
    border-radius: var(--radius);
    border: 1px solid var(--line-2);
    background: transparent; color: var(--text);
    text-decoration: none; cursor: pointer;
    transition: background-color 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out;
}
.btn:hover { border-color: var(--text); }
.btn-primary { background: var(--text); color: var(--ink); border-color: var(--text); }
.btn-primary:hover { background: #fff; }
.btn-sm { min-height: 36px; padding: 0 14px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn .price { font-family: var(--f-mono); font-size: 1.05em; }

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 140px 0 clamp(56px, 9vh, 104px);
    isolation: isolate;
    overflow: hidden;
}
.hero canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    z-index: -2;
    opacity: 0.55;
}
.hero::after {   /* fade the scope into the page, and keep the headline legible */
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(ellipse 46% 42% at 50% 52%, rgba(10, 11, 12, 0.94) 0%, rgba(10, 11, 12, 0.72) 55%, rgba(10, 11, 12, 0.1) 100%),
        linear-gradient(0deg, var(--bg) 0%, rgba(10, 11, 12, 0) 30%);
}
.hero-inner { max-width: 1200px; margin: 0 auto; }   /* wide enough for the one-line title; the lede keeps its own 36em measure */
.hero .cta-row { justify-content: center; gap: 10px; }
.hero .cta-row .btn { min-height: 40px; padding: 0 16px; font-size: 0.9rem; gap: 8px; }
.hero .cta-row .soon-tag { font-size: 0.6rem; }
.hero .lede b { color: var(--text); font-weight: 500; }
.hero .lede:has(+ .lede) { margin-bottom: 14px; }
.hero h1 { font-size: var(--fs-hero); letter-spacing: -0.015em; line-height: 0.96; margin: 22px 0 28px; }
.hero .lede { font-size: var(--fs-lede); color: var(--text-2); max-width: 36em; margin: 0 auto 36px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 22px; font-size: var(--fs-small); color: var(--text-2); }
.replay-clock { display: flex; gap: 18px; flex-wrap: wrap; }
.replay-clock span { white-space: nowrap; }
.replay-clock .live::before {
    content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px; vertical-align: 2px;
    border-radius: 50%; background: var(--text);
}
.hero-stat {
    position: absolute; right: var(--gutter); bottom: clamp(56px, 9vh, 104px);
    text-align: right;
}
.hero-stat b { display: block; font: 400 clamp(2.4rem, 4vw, 3.4rem)/1 var(--f-mono); letter-spacing: -0.02em; margin-top: 8px; }

/* ── Sections ── */
.section { padding: var(--section) 0; border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: var(--fs-h2); margin: 18px 0 20px; }
.section-head p { font-size: var(--fs-lede); color: var(--text-2); }

/* The job: numbered steps along a rule. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); }
.steps li { padding: 24px 24px 0 0; position: relative; }
.steps li::before { content: ''; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--text); }
.steps .n { font: 400 var(--fs-label) var(--f-atc); color: var(--text-3); letter-spacing: 0.14em; }
.steps h3 { font-size: var(--fs-h3); margin: 12px 0 10px; }
.steps p { color: var(--text-2); font-size: var(--fs-small); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split-wide { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

/* Comms log, like the sim's: monospace, speaker column, quiet rules. */
.comms {
    font: 400 0.98rem/1.5 var(--f-mono);
    border: 1px solid var(--line);
    background: var(--bg-sunk);
    border-radius: var(--radius);
}
.comms-head { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.comms ol { list-style: none; margin: 0; padding: 8px 0; min-height: 360px; }
.comms li { display: grid; grid-template-columns: 4.6em 1fr; gap: 14px; padding: 7px 16px; color: var(--text-2); }
.comms li.you { color: var(--text); }
.comms li.alert { color: var(--warn); }
.comms .t { color: var(--text-3); }
.comms .who { display: block; font-size: 0.8rem; letter-spacing: 0.1em; color: var(--text-3); text-transform: uppercase; }
.comms li.is-new { animation: comms-in 0.35s ease-out both; }
@keyframes comms-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .comms li.is-new { animation: none; } }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 40px; }
.stats div { padding: 20px 16px 0 0; }
.stats b { display: block; font: 400 2.2rem/1 var(--f-mono); margin-top: 10px; }
.stats-note { margin-top: 14px; font-size: var(--fs-small); color: var(--text-3); }

/* Two scopes */
.scopes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.scope-card figure { margin: 0 0 28px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.scope-card figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scope-card h3 { font-size: 1.6rem; margin: 10px 0 12px; }
.scope-card > p { color: var(--text-2); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--line); }
.ticks li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); position: relative; color: var(--text-2); font-size: var(--fs-small); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: calc(12px + 0.8em); width: 8px; height: 1px; background: var(--text); }
.ticks b { color: var(--text); font-weight: 500; }

/* Feature grid */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid3 > div { background: var(--bg); padding: 32px 28px 28px; }
.grid3 h3 { font-size: 1.15rem; margin: 14px 0 10px; letter-spacing: -0.015em; }
.grid3 p { color: var(--text-2); font-size: var(--fs-small); margin: 0; }

/* Voice demo */
.ptt {
    border: 1px solid var(--line); background: var(--bg-sunk); border-radius: var(--radius);
    padding: 28px; font-family: var(--f-mono);
}
.ptt-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.ptt-key { min-width: 92px; text-align: center; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--radius); font-size: 0.9rem; letter-spacing: 0.1em; transition: background-color 0.15s, color 0.15s; }
.ptt-key.is-down { background: var(--text); color: var(--ink); }
.ptt-line { min-height: 3.2em; font-size: 1.12rem; line-height: 1.45; }
.ptt-line.you::before { content: '› '; color: var(--text-3); }
.ptt-line.pilot { color: var(--text-2); margin-top: 14px; }
.ptt-parsed { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 52px; }
.ptt-parsed .label { margin-right: 6px; }
.chip { font: 400 0.85rem/1 var(--f-mono); padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 2px; color: var(--text); }

/* Is / isn't */

/* FAQ */
.faq { border-top: 1px solid var(--line-2); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    list-style: none; cursor: pointer; font-family: var(--f-head); letter-spacing: 0.005em;
    display: flex; justify-content: space-between; gap: 24px; align-items: baseline;
    padding: 22px 0; font-size: 1.12rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 1.4rem/1 var(--f-mono); color: var(--text-3); transition: transform 0.2s ease-out; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 24px; color: var(--text-2); max-width: 62ch; }
.faq .a p:last-child { margin-bottom: 0; }

/* Pricing */
.price-card { border: 1px solid var(--line-2); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); background: var(--bg-raised); max-width: 560px; }
.price-amount { font: 400 clamp(3rem, 6vw, 4.4rem)/1 var(--f-mono); letter-spacing: -0.03em; margin: 18px 0 6px; }
.price-sub { color: var(--text-2); margin-bottom: 28px; }
.price-card form { margin-top: 28px; }
.price-card .fine { margin-top: 16px; font-size: var(--fs-small); color: var(--text-3); }
/* Where to buy: the steps on the left, the stores in the card */
.buy-intro h1 { margin-bottom: 14px; }
.buy-intro .lede-sm { max-width: 34ch; margin: 0 0 36px; }
.buy-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; max-width: 460px; }
.buy-steps li { counter-increment: step; position: relative; padding: 0 0 30px 56px; color: var(--text-2); font-size: 1.25rem; line-height: 1.4; }
.buy-steps li::before { content: counter(step); position: absolute; left: 0; top: -3px; width: 36px; height: 36px; border: 1px solid var(--line-2);
    border-radius: 50%; display: grid; place-items: center; font: 400 0.95rem/1 var(--f-mono); color: var(--text); }
.buy-steps b { display: block; color: var(--text); font-weight: 500; margin-bottom: 2px; }
.buy .price-card { max-width: 620px; }
.price-card .store-note { margin-top: 10px; }
/* Release sign-up (pre-release only): email + button on one row, wrapping on phones. */
.notify { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.notify-label { display: block; margin-bottom: 10px; color: var(--text-2); }
.notify-row { display: flex; flex-wrap: wrap; gap: 10px; }
.notify-row .input { flex: 1 1 220px; min-height: 48px; width: auto; }
.notify-row .btn { flex: none; }
.notify-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notify-msg { margin: 12px 0 0; color: var(--text); }
.notify-msg.is-error { color: var(--warn); }
/* "Check your email" popup after Notify me (site.js opens it as a modal; without
   script it shows in place, and its buttons still close it). */
.notify-dialog { position: relative; width: min(440px, calc(100vw - 32px)); margin: 16px 0 0; padding: 28px 28px 24px;
    border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-raised); color: var(--text); }
.notify-dialog:modal { position: fixed; inset: 0; margin: auto; height: fit-content; max-height: calc(100vh - 32px); overflow: auto; }
.notify-dialog::backdrop { background: rgba(5, 6, 7, 0.8); }
.notify-dialog h2 { margin: 0 32px 12px 0; font-size: 1.2rem; line-height: 1.3; }
.notify-dialog p { margin: 0 0 10px; color: var(--text-2); }
.notify-dialog .btn { margin-top: 10px; }
.notify-dialog-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 4px;
    background: transparent; color: var(--text-2); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.notify-dialog-x:hover, .notify-dialog-x:focus-visible { color: var(--text); background: var(--line); }
.buy-here { margin-top: 0 !important; margin-bottom: 14px; }
/* Store logos: a link once the store sells the game, a plain tile until then */
.store-tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.store-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 10px 14px; border: 1px solid var(--line);
    border-radius: var(--radius); font: 500 0.95rem/1.2 var(--f-head); color: var(--text); text-decoration: none; height: 100%; }
.store-tile img { width: 40px; height: 40px; object-fit: contain; }
a.store-tile.is-live { border-color: var(--line-2); transition: border-color 0.15s, background 0.15s; }
a.store-tile.is-live:hover, a.store-tile.is-live:focus-visible { border-color: var(--text-3); background: var(--bg); }
/* System requirements: a table, stacked per row on phones */
/* Store tiles sit close under the label when no price is set */
.price-card .label + .store-tiles, .price-card .label + .buy-here { margin-top: 26px; }
/* System requirements: its own card, full width under the steps and the stores */
.buy { row-gap: 44px; }
.buy .buy-intro { grid-column: 1; grid-row: 1; }
.buy .price-card { grid-column: 2; grid-row: 1; align-self: center; }
.buy .sysreq-card { grid-column: 1 / -1; grid-row: 2; max-width: none; }
.sysreq-card { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); max-width: 560px; }
.sysreq-card .label { margin: 0 0 14px; }
.sysreq { width: 100%; border-collapse: collapse; font-size: var(--fs-small); line-height: 1.45; }
.sysreq th, .sysreq td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); }
.sysreq thead th { font-weight: 500; color: var(--text-3); padding-top: 0; }
.sysreq tbody th { font-weight: 500; color: var(--text); width: 18%; }
.sysreq td { color: var(--text-2); width: 41%; }
.sysreq tr > :last-child { padding-right: 0; }
.sysreq-note { margin: 12px 0 0; font-size: var(--fs-small); color: var(--text-3); }
@media (max-width: 560px) {
  .sysreq thead { display: none; }
  .sysreq tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .sysreq th, .sysreq td { display: block; width: auto; padding: 2px 0; border: 0; }
  .sysreq tbody th { margin-bottom: 2px; }
  .sysreq td::before { content: attr(data-label) ": "; color: var(--text-3); }
}

.cta-band { text-align: left; }
.cta-band h2 { font-size: var(--fs-h2); max-width: 18ch; margin-bottom: 28px; }

/* ── Forms (sign-in) ── */
.narrow { max-width: 440px; margin: 0 auto; }
.page { padding: 152px 0 var(--section); }
.page h1 { font-size: var(--fs-h2); margin: 16px 0 18px; }
.page .lede { font-size: var(--fs-lede); color: var(--text-2); }
.field { display: block; margin: 22px 0 8px; font-size: var(--fs-small); color: var(--text-2); }
.input {
    width: 100%; min-height: 52px; padding: 0 16px;
    font: 400 1.05rem var(--f-body); color: var(--text);
    background: var(--bg-sunk); border: 1px solid var(--line-2); border-radius: var(--radius);
}
.input:focus { outline: none; border-color: var(--text); }
.input-code { font: 400 1.7rem var(--f-mono); letter-spacing: 0.4em; text-align: center; }
.stack > * + * { margin-top: 12px; }
.btn-block { width: 100%; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 18px; font-size: var(--fs-small); color: var(--text-2); line-height: 1.5; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--text); }
.input-key { font: 400 1.05rem var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.or { display: flex; align-items: center; gap: 14px; margin: 28px 0; color: var(--text-3); font-size: var(--fs-small); }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.notice { padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--radius); margin: 22px 0; font-size: var(--fs-small); }
.notice-error { border-color: rgba(255, 180, 168, 0.5); color: var(--warn); }
.notice-ok { border-color: rgba(207, 233, 218, 0.4); color: var(--ok); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); cursor: pointer; }
.linkish:hover { color: var(--text); }

/* ── Account ── */
.acct { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); margin-top: 48px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--bg-raised); }
.panel h2 { font-size: 1.25rem; letter-spacing: -0.015em; margin-bottom: 18px; }
.panel + .panel { margin-top: 24px; }
.key-row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.key { flex: 1 1 auto; min-width: 0; font: 400 clamp(1rem, 2.2vw, 1.3rem)/1 var(--f-mono); letter-spacing: 0.06em; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-sunk); overflow-wrap: anywhere; user-select: all; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-small); }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.status.revoked { color: var(--warn); }
.status.revoked::before { background: var(--warn); }
.machines { list-style: none; padding: 0; margin: 0; }
.machines li { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.machines .meta { font-size: var(--fs-small); color: var(--text-3); }
.dl { display: flex; flex-direction: column; gap: 10px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: var(--fs-small); margin: 0; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; }

/* ── Prose (legal, features detail) ── */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin: 48px 0 14px; letter-spacing: -0.02em; }
.prose h3 { font-size: 1.1rem; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose b, .prose strong { color: var(--text); font-weight: 500; }

/* Features page: long index of capability rows */

/* ── Footer ── */
.site-foot { border-top: 1px solid var(--line); padding: 64px 0 48px; font-size: var(--fs-small); color: var(--text-3); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-foot h2 { font: 400 var(--fs-label) var(--f-atc); letter-spacing: 0.14em; color: var(--text-3); margin-bottom: 14px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin: 8px 0; }
.site-foot a { color: var(--text-2); text-decoration: none; }
.site-foot a:hover { color: var(--text); }
.foot-legal { margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--radius); }
.social a:hover { border-color: var(--text); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* ── Responsive ── */
@media (max-width: 1020px) {
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
    .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .split, .split-wide, .scopes, .acct { grid-template-columns: minmax(0, 1fr); }
    .buy .buy-intro, .buy .price-card, .buy .sysreq-card { grid-column: 1; grid-row: auto; }
    .hero-stat { display: none; }
    .hero::after { background: linear-gradient(0deg, var(--bg) 10%, rgba(10, 11, 12, 0.65) 60%, rgba(10, 11, 12, 0.35)); }
    .nav-toggle {
        display: inline-flex; align-items: center; margin-left: auto; background: none; border: 1px solid var(--line-2);
        color: var(--text); border-radius: var(--radius); min-height: 40px; padding: 0 14px; font: 500 var(--fs-small) var(--f-body);
    }
    .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
        background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
    .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
    .nav .btn { margin-top: 16px; }
    .site-head.is-open .nav { display: flex; }
}
@media (max-width: 560px) {
    .steps, .grid3, .stats { grid-template-columns: minmax(0, 1fr); }
    .stats div { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
    .foot-grid { grid-template-columns: minmax(0, 1fr); }
    .comms li { grid-template-columns: 1fr; gap: 2px; }
}
.foot-about { margin-top: 16px; max-width: 34ch; }
.more-link { margin-top: 28px; }
.h2 { font-size: var(--fs-h2); margin: 18px 0 20px; }
.h3-lg { font-size: 1.75rem; letter-spacing: -0.02em; margin: 14px 0 14px; }
.muted { color: var(--text-2); }
.lede-sm { font-size: 1.12rem; color: var(--text-2); }
.fine-row { margin-top: 18px; font-size: var(--fs-small); color: var(--text-3); }
.kv-gap { margin-top: 20px; }
.faq-page { margin-top: 48px; }
.resend { margin-top: 8px; }
.nav a.btn-primary { color: var(--ink); }
.hero > .wrap { width: 100%; }
@media (max-width: 560px) {
    .site-head .wordmark { font-size: 0.72rem; letter-spacing: 0.08em; }
    .site-head .wrap { gap: 12px; }
    .hero canvas { opacity: 0.35; }
}

.scope-card h3 + .meta { margin: 6px 0 14px; font-size: var(--fs-small); color: var(--text-3); }
.grid3 h3 { margin-top: 0; }
.nav a { font-family: var(--f-head); font-size: 1rem; letter-spacing: 0.02em; }

.hero-stat .replay-clock { flex-direction: column; gap: 4px; align-items: flex-end; margin-bottom: 22px; }
.hero h1.hero-title { margin-top: 0; }
.hero-note { max-width: 62ch; margin-left: auto; margin-right: auto; font-size: 0.8rem; color: var(--text-3); }
.stats-note { max-width: 60ch; }
.page .lede { max-width: 58ch; }

/* ── Screenshots page ── */
.gallery { display: grid; gap: clamp(28px, 4vw, 56px); margin-top: 48px; }
.gallery .shot { margin: 0; }
.gallery .shot a { display: block; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); transition: border-color 0.2s; }
.gallery .shot a:hover { border-color: var(--text-3); }
.gallery .shot img { width: 100%; height: auto; display: block; }
.gallery figcaption { margin-top: 12px; font-size: var(--fs-small); color: var(--text-3); }
.disclaimer { margin-top: clamp(32px, 4vw, 48px); max-width: 80ch; font-size: 0.8rem; line-height: 1.6; color: var(--text-3); }

/* Product page ▸ Features: a numbered list of features on the left picks the panel on
   the right (a framed screenshot and four short points). site.js adds .is-tabbed and
   steps through on its own (.is-auto): the selected tab's line fills, then the next
   one is picked. Without JS every panel shows, stacked, with its own name. */
.showcase { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.showcase:not(.is-tabbed) { grid-template-columns: minmax(0, 1fr); }
.showcase:not(.is-tabbed) .showcase-tabs { display: none; }
.showcase:not(.is-tabbed) .showcase-panel + .showcase-panel { margin-top: 72px; }
.showcase.is-tabbed .showcase-name { display: none; }
.showcase .idx { display: block; margin-bottom: 8px; font: 400 0.72rem/1 var(--f-atc); letter-spacing: 0.14em; color: var(--text-3); }
.showcase-side { position: sticky; top: 120px; }
.showcase-tabs { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.showcase-more { margin-top: 28px; }
.showcase-tab {
    position: relative; padding: 20px 0 18px; border: 0; border-bottom: 1px solid var(--line); background: none;
    text-align: left; cursor: pointer; color: var(--text-3); font: 500 clamp(1.15rem, 0.9rem + 0.7vw, 1.45rem)/1.15 var(--f-head);
    letter-spacing: -0.01em; transition: color 0.25s ease;
}
.showcase-tab:hover { color: var(--text-2); }
.showcase-tab[aria-selected="true"] { color: var(--text); }
.showcase-tab[aria-selected="true"] .idx { color: var(--text-2); }
.showcase-tab:focus-visible { outline: 2px solid var(--text-3); outline-offset: 4px; }
.showcase-tab::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--text); }
.showcase-tab[aria-selected="true"]::after { width: 100%; }
.showcase.is-auto .showcase-tab[aria-selected="true"]::after { animation: showcase-fill 7s linear both paused; }
.showcase.is-auto.is-visible:not(:hover):not(:focus-within) .showcase-tab[aria-selected="true"]::after { animation-play-state: running; }
@keyframes showcase-fill { from { width: 0; } to { width: 100%; } }
.showcase-name { font-size: 1.6rem; margin: 0 0 24px; }
.showcase.is-tabbed .showcase-panel:not([hidden]) { animation: showcase-in 0.45s ease both; }
@keyframes showcase-in { from { opacity: 0; transform: translateY(10px); } }
/* The screenshot in a glass frame: frosted rim, a sheen, a deep shadow. */
.showcase-media {
    display: block; padding: 8px; border-radius: 14px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03) 40%, rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.showcase-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 7px; background: #000; }
a.showcase-media { cursor: zoom-in; }
.showcase-media.is-wide img { aspect-ratio: 21 / 9; }
.showcase-name + .showcase-lede { margin-top: 0; }
.showcase-lede + .showcase-lede { margin-top: 14px; }   /* a panel with no picture yet */
.showcase-note a { color: var(--text-2); }
.showcase-note { margin: 12px 0 0; font-size: 0.82rem; line-height: 1.5; color: var(--text-3); }
.showcase-lede { margin: 20px 0 0; max-width: 68ch; font-size: 1.08rem; line-height: 1.65; color: var(--text-2); }
.showcase-media.is-voice .ptt { aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: center; border: 0; border-radius: 7px; padding: clamp(20px, 4vw, 48px); }
.showcase-points { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 40px); }
.showcase-points li { position: relative; padding: 8px 0 8px 22px; color: var(--text-2); line-height: 1.5; }
.showcase-points li::before { content: ''; position: absolute; left: 2px; top: calc(8px + 0.75em - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
@media (max-width: 820px) {
    .showcase { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .showcase-side { display: contents; }
    .showcase-more { order: 2; margin-top: 0; justify-self: start; }
    .showcase-tabs { flex-direction: row; gap: 24px; overflow-x: auto; scrollbar-width: none; border-top: 0; border-bottom: 1px solid var(--line); }
    .showcase-tabs::-webkit-scrollbar { display: none; }
    .showcase-tab { flex: none; padding: 0 0 14px; border-bottom: 0; font-size: 1.05rem; }
    .showcase-media.is-voice .ptt { aspect-ratio: auto; }
    .showcase-points { grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) { .showcase.is-tabbed .showcase-panel:not([hidden]) { animation: none; } }
/* Features ▸ Scope and tools: a deck of tool cards. One card is in front; the next two
   fan out behind it like a hand of playing cards. site.js sets each card's data-pos
   (0 = front, 1–2 = behind, -1 = just played, hidden = the rest). */
#features { overflow-x: clip; }
.showcase-panel .deck { margin-top: 12px; }
.deck { position: relative; user-select: none; padding-right: 15%; }
/* All cards share one grid cell, so the stage is as tall as the tallest card at any width. */
.deck-stage { position: relative; display: grid; outline: none; touch-action: pan-y; cursor: grab; }
.deck-stage:active { cursor: grabbing; }
.deck-stage:focus-visible { outline: 2px solid var(--text-3); outline-offset: 8px; border-radius: 12px; }
.tool-card {
    position: relative; grid-area: 1 / 1; display: flex; flex-direction: column;
    border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--bg-sunk);
    transform-origin: 50% 110%;
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.35s ease;
    opacity: 0; pointer-events: none;
}
.tool-card[data-pos="0"] { opacity: 1; z-index: 4; pointer-events: auto; transform: none; }
.tool-card[data-pos="0"] { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
/* Cards behind are dimmed with an overlay, not a filter: a filter over a playing
   video forces it through an extra offscreen pass, which some GPUs choke on. */
.tool-card::after { content: ''; position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity 0.35s ease; }
.tool-card[data-pos="1"]::after { opacity: 0.3; }
.tool-card[data-pos="2"]::after { opacity: 0.45; }
.tool-card[data-pos="1"] { opacity: 0.9; z-index: 3; transform: translate(6%, -3%) rotate(4deg) scale(0.95); pointer-events: auto; cursor: pointer; }
.tool-card[data-pos="2"] { opacity: 0.6; z-index: 2; transform: translate(11%, -6%) rotate(8deg) scale(0.9); }
.tool-card[data-pos="-1"] { opacity: 0; z-index: 5; transform: translate(-60%, 4%) rotate(-12deg) scale(0.95); }
.tool-card figure { margin: 0; flex: none; aspect-ratio: 16 / 9; background: #000; overflow: hidden; border-bottom: 1px solid var(--line); }
.tool-card figure img, .tool-card figure video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.tool-card figure img { object-fit: contain; }
.tool-card figure video[controls] { pointer-events: auto; }   /* autoplay blocked or reduced motion: the player plays it */   /* screenshots keep their own shape; black bars blend into the scope */
.tool-card > div { padding: 18px 24px 20px; }
.tool-card h3 { font-size: 1.3rem; margin: 8px 0 6px; }
.tool-card p { margin: 0; color: var(--text-2); line-height: 1.55; }
.deck-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 26px; }
.deck-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent;
    color: var(--text); font-size: 1.1rem; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.deck-btn:hover { border-color: var(--text-3); background: rgba(255, 255, 255, 0.04); }
.deck-count { font: 400 0.85rem var(--f-mono); color: var(--text-3); min-width: 4.5em; text-align: center; letter-spacing: 0.08em; }
@media (prefers-reduced-motion: reduce) { .tool-card { transition: none; } }

/* Hero "video demo" button: a play triangle; until SITE_DEMO_VIDEO_URL is set it is
   inert and carries a "Coming soon" tag. */
.btn-play { display: inline-flex; align-items: center; gap: 10px; }
.btn-play .play { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.btn-play.is-soon { cursor: default; opacity: 0.85; }
.btn-play.is-soon:hover { transform: none; }
.soon-tag { font: 500 0.68rem/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3);
    border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 8px; margin-left: 2px; }

/* Hero title: "Terminal Approach Control" on one line, "Replay" below. The first line
   must fit the window, so the size follows the viewport width as well as the token. */
.hero h1.hero-title { font-size: min(var(--fs-hero), 6.4vw); }
.hero h1.hero-title .nowrap { white-space: nowrap; }
@media (max-width: 560px) { .hero h1.hero-title { font-size: 7vw; } }

/* ── Studio (HMI Simulations) ── */
/* The studio name is set in Barlow; the ATC raster face stays with the product. */
.studio-mark { font: 600 1rem/1 var(--f-head); letter-spacing: 0.22em; }
.nav a[aria-current="true"] { color: var(--text); }
.studio-hero { padding: 168px 0 clamp(48px, 6vw, 80px); }
.studio-hero h1 { font-size: var(--fs-h2); margin: 0; }
.product-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center;
    padding-bottom: clamp(48px, 6vw, 80px); }
.product-shot { display: block; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #000;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6); transition: border-color 0.2s; }
.product-shot:hover { border-color: var(--text-3); }
.product-shot img { width: 100%; height: auto; }
.product-copy :is(h1, h2), .product-copy h3 { font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.5rem); margin: 12px 0 16px; letter-spacing: -0.02em; }
.product-copy :is(h1, h2) a, .product-copy h3 a { text-decoration: none; }
.product-copy > p { color: var(--text-2); }
.product-copy .ticks { margin-bottom: 28px; }
.studio-next h3 { margin-top: 14px; }
@media (max-width: 820px) { .product-feature { grid-template-columns: minmax(0, 1fr); } }

/* ── Account: tabs. The side menu picks one panel; only that one shows (site.js). ── */
.acct-head { margin-bottom: 8px; }
.acct-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; margin-top: 40px; }
.acct-nav { position: sticky; top: 112px; display: flex; flex-direction: column; border-left: 1px solid var(--line-2); }
.acct-nav a { padding: 7px 0 7px 18px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none;
    color: var(--text-2); font: 500 0.98rem/1.35 var(--f-head); letter-spacing: 0.01em; }
.acct-nav a.sub { padding-left: 30px; font-size: 0.94rem; }
.acct-nav a:hover { color: var(--text); }
.acct-nav a[aria-current="true"] { color: var(--text); border-left-color: var(--text); background: var(--bg-raised); }
.acct-nav-group { padding: 22px 0 6px 18px; font: 500 0.72rem/1.3 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.acct-main { min-width: 0; }
.acct-sec { scroll-margin-top: 110px; }
.acct-tabs-on .acct-sec { scroll-margin-top: 0; }
.acct-sec + .acct-sec { margin-top: 56px; }
.acct-tabs-on .acct-sec + .acct-sec { margin-top: 0; }
.acct-sec > h2, .sec-head h2 { font-size: 1.6rem; letter-spacing: -0.015em; margin: 0 0 22px; }
.acct-sec h2 .count { font: 400 var(--fs-small) var(--f-mono); color: var(--text-3); margin-left: 10px; letter-spacing: 0.04em; }
.acct-eyebrow { margin: 0 0 6px; font: 500 0.75rem/1.3 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.acct-intro { color: var(--text-2); margin: -8px 0 24px; }
.acct-actions { margin-top: 20px; }
.sec-head { max-width: 560px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; }
.sec-link { font-size: var(--fs-small); color: var(--text-2); }
.acct-sec .panel { max-width: 760px; }
.acct-sec .panel + .panel { margin-top: 24px; }
.panel-narrow { max-width: 560px !important; }
.panel h3 { font-size: 1.1rem; letter-spacing: -0.01em; margin: 0 0 16px; }
.files { list-style: none; padding: 0; margin: 0; }
.files li { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.files li:first-child, .machines li:first-child { border-top: 0; padding-top: 0; }
.files .meta { font-size: var(--fs-small); color: var(--text-3); }
.files .btn { flex: none; }
.status-none { color: var(--text-3); }
.status-none::before { background: var(--text-3); }
.prod-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.prod-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    background: var(--bg-raised); color: var(--text); text-decoration: none; transition: border-color 0.15s; }
.prod-card:hover, .prod-card:focus-visible { border-color: var(--line-2); }
.prod-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.prod-card-other img { filter: grayscale(0.6); opacity: 0.7; }
.prod-card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.prod-card-name { font: 600 1.1rem/1.3 var(--f-head); letter-spacing: 0.005em; }
.prod-card-go { font-size: var(--fs-small); color: var(--text-2); }
.prod-card-go::after { content: ' →'; }
@media (max-width: 820px) {
    .acct-grid { grid-template-columns: minmax(0, 1fr); margin-top: 28px; gap: 28px; }
    .acct-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px 8px; border-left: 0; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
    .acct-nav-group { width: 100%; padding: 10px 0 0; }
    .acct-nav a, .acct-nav a.sub { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; margin: 0; font-size: 0.92rem; }
    .acct-nav a[aria-current="true"] { border-color: var(--text); }
}

/* ── Legal pages: a side index, then the document ── */
.legal-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.legal-nav { position: sticky; top: 112px; display: flex; flex-direction: column; border-left: 1px solid var(--line-2); }
.legal-nav .label { padding: 0 0 12px 18px; }
.legal-nav a { padding: 7px 0 7px 18px; margin-left: -1px; border-left: 1px solid transparent; text-decoration: none;
    color: var(--text-2); font: 500 0.98rem var(--f-head); letter-spacing: 0.01em; }
.legal-nav a:hover { color: var(--text); }
.legal-nav a[aria-current="page"] { color: var(--text); border-left-color: var(--text); }
.legal .prose { max-width: 74ch; }
.legal .prose h1 { margin: 14px 0 10px; }
.legal .prose h2 { scroll-margin-top: 110px; }
.legal .updated { font: 400 0.9rem var(--f-mono); color: var(--text-3); letter-spacing: 0.04em; }
.legal .lede { margin-top: 8px; }
.summary { margin: 36px 0 8px; padding: 24px 28px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-raised); }
.summary h2 { font-size: 1.1rem; margin: 0 0 10px; }
.summary ul { margin: 0 0 12px; }
.summary > p { margin: 0; font-size: var(--fs-small); color: var(--text-3); }
.prose .callout { border-left: 2px solid var(--text); padding: 4px 0 4px 18px; }
.prose ol { padding-left: 22px; }
.prose code { font: 400 0.92em var(--f-mono); color: var(--text); }
.prose a { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0 8px; font-size: var(--fs-small); }
.prose th { text-align: left; font: 500 var(--fs-small) var(--f-head); letter-spacing: 0.02em; color: var(--text); padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line-2); }
.prose td { color: var(--text-2); padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
@media (max-width: 820px) {
    .legal-grid { grid-template-columns: minmax(0, 1fr); }
    .legal-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 18px; border-left: 0; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
    .legal-nav .label { width: 100%; padding: 0; }
    .legal-nav a { padding: 4px 0; border: 0; margin: 0; }
    .prose table, .prose thead, .prose tbody, .prose tr, .prose th, .prose td { display: block; }
    .prose thead { display: none; }
    .prose tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
    .prose td { border: 0; padding: 2px 0; }
    .prose td:first-child { color: var(--text); }
}
.foot-legal { flex-direction: column; gap: 6px; }
.foot-legal p { margin: 0; max-width: 110ch; }
/* Products link in the header: land with the heading just under the fixed header. */
#products, #features { scroll-margin-top: 120px; }
.studio-hero .section-head { margin-bottom: clamp(32px, 4vw, 48px); }
/* Steam: "Wishlist on Steam" once SITE_STEAM_URL is set, an inert "Coming soon" tag until then. */
.btn-steam.is-soon { cursor: default; opacity: 0.85; }
.btn-steam.is-soon:hover { border-color: var(--line-2); }
.steam-row { margin-top: 12px; }
.steam-row .btn { width: 100%; }
/* Studio home product card: name, one line, price, two buttons. */
.product-feature { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
@media (max-width: 820px) { .product-feature { grid-template-columns: minmax(0, 1fr); } .studio-hero { padding-top: 120px; } }
/* Wide screens: the hero fills the first screen, so the footer never peeks in under it.
   Content is centred in the space below the fixed 72px header; a short window just grows the section. */
@media (min-width: 821px) {
    .studio-hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
        padding: 120px 0 72px; box-sizing: border-box; }
    .studio-hero > .wrap { width: 100%; max-width: 1600px; }
    .studio-hero .product-feature { padding-bottom: 0; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: stretch; }
    /* Title level with the top of the screenshot, buttons level with its bottom. */
    .studio-hero .product-shots { align-self: start; }
    .studio-hero .product-copy { display: flex; flex-direction: column; }
    .studio-hero .product-copy :is(h1, h2) { margin-top: -0.12em; }
    .studio-hero .product-copy .cta-row { margin-top: auto; }
}
/* Product name: "Terminal Approach Control" on one line, "Replay" under it. The size follows the
   column's width (cqi), so the first line always fits instead of wrapping. */
.studio-hero .product-copy { container-type: inline-size; }
.product-copy :is(h1, h2) .title-main { white-space: nowrap; }
/* The link shrinks to the first line's width, so "Replay" centres under it. */
.product-copy :is(h1, h2) a { display: inline-block; }
.product-copy :is(h1, h2) .title-line { display: block; text-align: center; }
.studio-hero .product-copy :is(h1, h2) { font-size: min(3.6rem, 8.3cqi); line-height: 1.05; margin-bottom: 22px; }
.studio-hero .product-copy > p { font-size: clamp(1.05rem, 0.7rem + 0.55vw, 1.3rem); line-height: 1.6; margin-bottom: 28px; }
.product-copy > p { font-size: 1.12rem; line-height: 1.55; margin-bottom: 20px; }
.product-copy .product-price { font: 400 1.6rem/1 var(--f-mono); color: var(--text); letter-spacing: -0.01em; margin: 0 0 26px; }
.product-price span { font: 400 var(--fs-small) var(--f-body); color: var(--text-3); letter-spacing: 0; }
.steam-note { margin: 18px 0 0; font: 400 0.72rem var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.steam-note a { color: var(--text-2); }
/* Airports: name over code and display, nothing else. */
/* Lightbox: an enlarged screenshot over a dimmed page (site.js, a[data-lightbox]). */
.product-shot, .gallery .shot a { cursor: zoom-in; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100vh;
    display: grid; place-items: center; cursor: zoom-out; }
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: rgba(5, 6, 7, 0.92); }
.lightbox img { max-width: 94vw; max-height: 90vh; width: auto; height: auto; border: 1px solid var(--line-2); border-radius: 8px;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8); background: #000; }
.lightbox-close { position: fixed; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2);
    background: rgba(10, 11, 12, 0.7); color: var(--text); font: 400 1.6rem/1 var(--f-body); cursor: pointer; }
.lightbox-close:hover { border-color: var(--text); }
.has-lightbox { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
    .lightbox[open] img { animation: lightbox-in 0.2s ease-out; }
    @keyframes lightbox-in { from { opacity: 0; transform: scale(0.97); } }
}
/* Screenshots page: three to a row (two on tablets, one on phones), each cropped to the
   same 16:9 frame so the rows line up; the lightbox shows the whole picture. */
.gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.gallery .shot a { aspect-ratio: 16 / 9; box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5); }
.gallery .shot img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { margin-top: 10px; font-size: 0.85rem; }
@media (max-width: 1020px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery { grid-template-columns: minmax(0, 1fr); } }
/* Screenshots page: one heading per group (STARS-style, ICAO, tools). */
.gallery-title { font-size: 1.35rem; letter-spacing: -0.01em; margin: clamp(48px, 6vw, 72px) 0 0; }
.gallery-title + .gallery { margin-top: 20px; }

/* Studio hero: the STARS shot with the ICAO shot behind it. Under the image, a quiet
   row of ‹ • • › switches between them (site.js). The row hangs below without taking
   layout room, so the image's bottom edge still lines up with the buttons beside it. */
.product-shots { min-width: 0; position: relative; }
.product-shots-stage { display: grid; }
.product-shots-stage > .product-shot { grid-area: 1 / 1; }
.product-shots-stage > .product-shot:not(.is-front) { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
    .product-shots-stage > .product-shot { transition: opacity 0.35s ease, visibility 0.35s, border-color 0.2s; }
}
.shots-nav { position: absolute; left: 0; right: 0; top: calc(100% + 10px); display: flex; justify-content: center; align-items: center; gap: 10px; }
.shots-nav[hidden] { display: none; }
.shots-dots { display: flex; gap: 8px; }
.shots-arrow { width: 28px; height: 28px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%;
    background: none; color: var(--text-3); cursor: pointer; transition: color 0.2s, background 0.2s; }
.shots-arrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.shots-arrow:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.shots-arrow:focus-visible { outline: 1px solid var(--text-2); outline-offset: 1px; color: var(--text); }
.shots-dot { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: var(--line-2); cursor: pointer;
    transition: background 0.2s; }
.shots-dot.is-on { background: var(--text-3); }
.shots-dot:hover { background: var(--text-2); }

/* Social icons in the top bar: smaller, borderless; in the mobile menu, a row of their own. */
.nav .social { margin-top: 0; gap: 4px; }
.nav .social a { width: 34px; height: 34px; padding: 0; border: 0; color: var(--text-2); }
.nav .social a:hover { color: var(--text); }
@media (max-width: 820px) {
    .nav .social { padding: 12px 0; gap: 10px; }
    .nav .social a { border: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); width: 40px; height: 40px; }
}
