/* Co-Buddy website: one stylesheet. "Flight deck" (owner-approved proposal P1, 2026-10-20).
   The same grounds, ink ranks and brand blue as the connector (design system A): light by default, dark follows the OS.
   One accent (brand blue) spent once per section; status is a word plus an 8px lamp; hairline cards; no blur, glow,
   gradient or lift. The video and the EFB are the only dark objects on a light page.
   No inline styles anywhere (the Content-Security-Policy forbids them): state is classes and the [hidden] attribute. */
@font-face { font-family: "IBM Plex Sans"; src: url("/launch/assets/plex-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/launch/assets/plex-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/launch/assets/plex-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/launch/assets/plex-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/launch/assets/plex-mono-400.woff2") format("woff2"); font-display: swap; }

:root {
  color-scheme: light dark;
  /* connector A, 1:1 */
  --bg: #f3f4f2; --panel: #ffffff; --elevated: #ffffff; --band: rgba(20, 24, 30, .05);
  --border: #e4e6e5; --border-2: #d1d5d4; --text: #161a1f; --dim: #5a626b; --mute: #5e6771;
  --accent: #1b5fa7; --accent-dim: #154b84; --accent-soft: rgba(27, 95, 167, .10); --accent-fill: #dbe7f5; --on-accent: #ffffff;
  --green: #127a3d; --amber: #8a5a00; --green-solid: #1a8f4c; --amber-solid: #c07600; --green-fill: #d9f0e2; --amber-fill: #fbeccd;
  /* site-only (stated in the proposal): the dark objects, one soft shadow, the error red */
  --deep: #0b0d10; --deep-2: #161b22; --shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 12px 32px rgba(16, 20, 26, .08);
  --danger: #b42318; --on-danger: #ffffff;
  /* names the older account, cart and live pages already use, mapped onto the tokens above */
  --ink: var(--text); --muted: var(--dim); --line: var(--border); --bg-2: var(--panel); --panel-2: var(--bg);
  --accent-ink: var(--on-accent); --ok: var(--green); --on-amber: #ffffff; --scrim: var(--bg); --frame: var(--deep);
  --deck-mono: "Plex Mono", Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216; --panel: #171b21; --elevated: #1f242b; --band: rgba(255, 255, 255, .05);
    --border: #242a32; --border-2: #313943; --text: #e7eaee; --dim: #9aa3ae; --mute: #8a939e;
    --accent: #4ea3ff; --accent-dim: #3e91ea; --accent-soft: rgba(78, 163, 255, .14); --accent-fill: #15324f; --on-accent: #06111d;
    --green: #46c46a; --amber: #e0a23a; --green-solid: #46c46a; --amber-solid: #e0a23a; --green-fill: #12301f; --amber-fill: #33260c;
    --deep: #06080b; --deep-2: #11151b; --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    --danger: #f0857a; --on-danger: #2b0d08; --on-amber: #1a1200;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-font-smoothing: antialiased; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 "IBM Plex Sans", "Segoe UI", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
p a, li a, dd a, .muted a, td a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button:hover:not(:disabled) { filter: brightness(1.06); }
input:hover:not(:disabled) { border-color: var(--border-2); }
img, video { max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.15; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
button:active:not(:disabled), a:active, summary:active { filter: brightness(.9); }
button:disabled { cursor: default; opacity: .65; }
summary:hover { color: var(--accent); }
main, section, article, form, fieldset, .page, .deck-copy { min-width: 0; }
input, select, textarea { min-width: 0; max-width: 100%; font-size: 16px; }
.page p, .page li, .page h1, .page h3 { overflow-wrap: anywhere; }
.icon { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--dim); }
.small { font-size: 13.5px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: 6px; z-index: 20; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

/* ── type scale: display 56 · h2 36 · h3 20 · lede 19 · section lede 17 · body 16 · secondary 14.5 · caption 13 ── */
.h-display { font-size: 56px; line-height: 1.08; letter-spacing: -.025em; font-weight: 600; text-wrap: balance; }
.h2 { font-size: 36px; line-height: 1.15; letter-spacing: -.02em; font-weight: 600; text-wrap: balance; }
.lede { font-size: 19px; line-height: 1.5; color: var(--dim); max-width: 62ch; }
.sec-lede { font-size: 17px; color: var(--dim); max-width: 60ch; }
.cap { font-size: 13px; color: var(--mute); }

/* ── header and footer ──────────────────────────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 10; height: 68px; background: var(--bg); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: flex; align-items: center; min-height: 44px; white-space: nowrap; flex: none; }
.brand img { height: 36px; width: auto; display: block; }
.site-header nav { display: flex; gap: 4px; margin-left: 8px; }
.site-header nav a { display: flex; align-items: center; height: 44px; padding: 0 12px; border-radius: 8px; color: var(--dim); font-weight: 500; font-size: 15px; }
.site-header nav a:hover { color: var(--text); background: var(--band); text-decoration: none; }
.site-header nav a[aria-current] { color: var(--text); background: var(--band); }
.hdr-space { flex: 1; }
.stage-pill { font-size: 13px; line-height: 1.5; color: var(--dim); background: var(--band); padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.head-actions { display: flex; align-items: center; gap: 8px; }
.head-actions > a { display: flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 15px; font-weight: 500; color: var(--dim); border-radius: 8px; }
.head-actions > a:hover { color: var(--text); text-decoration: none; background: var(--band); }
.icon-button { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; border: 0; background: transparent; color: var(--dim); cursor: pointer; }
.icon-button:hover { background: var(--band); color: var(--text); }
.badge { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.menu { display: none; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 8px; border: 0; box-shadow: 0 0 0 1px var(--border-2); background: transparent; font-size: 14px; font-weight: 500; cursor: pointer; }
.menu[aria-expanded="true"] { background: var(--band); }

.site-footer { border-top: 1px solid var(--border); padding: 48px 0 40px; background: var(--bg); }
.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .brand img { height: 30px; margin-bottom: 12px; }
.foot-cols h2 { font-size: 13px; color: var(--mute); font-weight: 600; margin-bottom: 8px; }
.foot-cols a { display: flex; align-items: center; min-height: 32px; font-size: 14.5px; color: var(--dim); }
.foot-cols a:hover { color: var(--text); }
.foot-about { font-size: 14.5px; color: var(--dim); max-width: 34ch; }
.social { gap: 8px; }
.icon.icon-fill { fill: currentColor; stroke: none; }
.foot-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.foot-legal small { font-size: 13px; color: var(--mute); max-width: 110ch; }
.foot-legal small a { color: var(--mute); text-decoration: underline; }
.social-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }

/* ── buttons, links, chips ──────────────────────────────────────────────────────────────────────────── */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 8px; font-weight: 600; font-size: 15.5px; line-height: 1.2; border: 0; cursor: pointer; background: var(--accent); color: var(--on-accent); }
.button:hover { background: var(--accent-dim); text-decoration: none; filter: none; }
.button:disabled { background: var(--panel); color: var(--mute); box-shadow: 0 0 0 1px var(--border-2); opacity: 1; }
.button.wide { width: 100%; }
.button.lg { min-height: 54px; padding: 0 26px; font-size: 16.5px; }
.button.danger { background: var(--danger); color: var(--on-danger); }
.secondary.lg { min-height: 54px; padding: 0 26px; font-size: 16.5px; }
.secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 8px; background: var(--panel); box-shadow: 0 0 0 1px var(--border-2); color: var(--text); cursor: pointer; font-size: 15.5px; font-weight: 600; }
.secondary:hover { background: var(--band); text-decoration: none; filter: none; }
.stage-actions .secondary { min-height: 44px; font-size: 14px; }
.link-button { background: none; border: 0; padding: 6px 0; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 14.5px; }
.danger-link { background: none; border: 0; color: var(--danger); text-decoration: underline; cursor: pointer; padding: 10px 0; font-size: 14.5px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); margin-top: 14px; font-size: 15px; font-weight: 500; min-height: 44px; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.state { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 12.5px; font-weight: 500; color: var(--dim); background: var(--band); white-space: nowrap; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mute); flex: none; }
.state.ready { color: var(--green); background: var(--green-fill); }
.state.ready::before { background: var(--green-solid); }
.state.wip { color: var(--amber); background: var(--amber-fill); }
.state.wip::before { background: var(--amber-solid); }
.card { background: var(--panel); border-radius: 12px; box-shadow: 0 0 0 1px var(--border); }
.dl-meta { color: var(--mute); font-size: 13px; margin-top: 4px; }
.pill { display: inline-block; font-size: 12px; line-height: 1.6; padding: 0 8px; border-radius: 6px; background: var(--band); margin-left: 6px; }
.aircraft-meta .pill { margin-left: 0; }
.pill-available { color: var(--green); background: var(--green-fill); }
.pill-wip { color: var(--amber); background: var(--amber-fill); }
.pill-coming { color: var(--dim); }

/* ── sections ───────────────────────────────────────────────────────────────────────────────────────── */
section.s { padding: 88px 0; }
section.s + section.s { border-top: 1px solid var(--border); }
.s-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.s-head .h2 { max-width: 17em; }
.s-head .sec-lede { max-width: 46ch; }
.cap-link { color: var(--accent); font-weight: 500; font-size: 15px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; min-height: 44px; }

/* hero */
.hero { padding: 72px 0 0; }
.hero-copy { max-width: 760px; display: flex; flex-direction: column; gap: 22px; }
.hero-platform { font-size: 14.5px; color: var(--mute); }
.hero .button-row { margin-top: 8px; }
.video { position: relative; margin: 56px 0 0; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--deep-2); box-shadow: var(--shadow); }
.video::before { content: ""; position: absolute; left: 0; right: 0; top: 58%; height: 1px; background: rgba(255, 255, 255, .08); }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; border: 0; background: #fff; color: #0b0d10; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 30px rgba(0, 0, 0, .4); }
.play svg { width: 30px; height: 30px; fill: #0b0d10; stroke: none; margin-left: 4px; }
.play:disabled { opacity: .35; cursor: default; }
.vcap { position: absolute; left: 24px; bottom: 20px; right: 24px; color: #fff; font-size: 15px; font-weight: 500; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.vcap small { color: #aab3bd; font-weight: 400; font-size: 13.5px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 28px 0 0; padding-bottom: 72px; }
.hero-facts > div { font-size: 15px; color: var(--dim); padding-top: 16px; border-top: 1px solid var(--border); }
.hero-facts b { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }

/* what it does */
.does { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.does article { display: flex; gap: 16px; padding: 22px 0; border-top: 1px solid var(--border); }
.does article:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.does .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.does .ic svg { width: 20px; height: 20px; }
.does h3 { font-size: 17.5px; margin-bottom: 4px; }
.does p { font-size: 15px; color: var(--dim); max-width: 46ch; }

/* three steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.steps li { padding: 28px 28px 30px; display: flex; flex-direction: column; gap: 12px; }
.steps .n { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .02em; }
.steps h3 { font-size: 20px; }
.steps p { font-size: 15px; color: var(--dim); }

/* the real EFB stage */
.stage-device { position: relative; }
.stage-frame { position: relative; border-radius: 16px; overflow: hidden; background: var(--deep); box-shadow: var(--shadow); }
.stage-viewport { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--deep) url("/launch/assets/real-app/checklist-poster.jpg") center / cover no-repeat; }
.stage-viewport iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; border: 0; transform-origin: 0 0; background: transparent; }
.stage-fallback { display: none; width: 100%; height: auto; }
.ghost { position: absolute; left: 0; top: 0; z-index: 2; width: 26px; height: 26px; margin: -3px 0 0 -4px; opacity: 0; pointer-events: none; transform: translate(40px, 40px); transition: transform .72s cubic-bezier(.22, 1, .36, 1), opacity .3s; }
.ghost.on { opacity: 1; }
.ghost.still { transition: none; }
.ghost svg { fill: #fff; stroke: #0b0d10; stroke-width: 1.4; stroke-linejoin: round; transition: transform .14s; transform-origin: 4px 3px; }
.ghost::after { content: ""; position: absolute; left: -10px; top: -10px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; transform: scale(.4); }
.ghost.tap svg { transform: scale(.82); }
.ghost.tap::after { animation: ripple .5s ease-out; }
@keyframes ripple { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: scale(1.5); } }
.stage-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding-top: 14px; }
.stage-status { color: var(--mute); font-size: 14px; }
.stage-note { margin-top: 6px; color: var(--mute); font-size: 13px; }
.stage-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stage-sound .sound-waves { opacity: .25; transition: opacity .2s; }
.stage-sound[aria-pressed="true"] { color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.stage-sound[aria-pressed="true"] .sound-waves { opacity: 1; }

/* aircraft */
.fleet-lead { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }
.hero-ac { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.hero-ac .top { display: flex; gap: 20px; align-items: center; }
.hero-ac h3 { font-size: 22px; margin-bottom: 6px; }
.hero-ac p { font-size: 15px; color: var(--dim); }
.hero-ac ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; font-size: 14.5px; color: var(--dim); }
.hero-ac li { display: flex; gap: 8px; align-items: flex-start; }
.hero-ac li svg { color: var(--green-solid); width: 16px; height: 16px; margin-top: 3px; }
.next { padding: 8px 0; }
.next .hd { padding: 16px 24px 8px; font-size: 13px; font-weight: 600; color: var(--mute); }
.next .row { display: flex; align-items: center; gap: 14px; padding: 12px 24px; min-height: 56px; }
.next .row + .row { border-top: 1px solid var(--border); }
.next .nm { flex: 1; font-weight: 500; min-width: 0; }
.next .nm small { display: block; color: var(--mute); font-weight: 400; font-size: 13px; }
.next .ft { padding: 12px 24px 14px; font-size: 14px; color: var(--dim); }
.plate { display: inline-flex; flex-direction: column; justify-content: center; width: 112px; height: 72px; padding: 0 14px; border-radius: 10px; background: var(--deep); color: #fff; flex: none; }
.plate b { font-size: 22px; letter-spacing: .02em; font-weight: 600; line-height: 1; }
.plate small { font-size: 10.5px; color: #aab3bd; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fleet-all { margin-top: 28px; }
.fleet-all > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--accent); font-weight: 500; font-size: 15px; }
.fleet-all > p { margin-top: 8px; }
.fleet { margin: 16px 0 0; }
.fleet-plan { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 8px; }
.fleet-plan > summary { cursor: pointer; font-size: 17px; font-weight: 500; display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; min-height: 44px; }
.fleet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.aircraft { padding: 18px; background: var(--panel); border-radius: 12px; box-shadow: 0 0 0 1px var(--border); overflow: hidden; }
.aircraft h4 { margin: 0 0 6px; font-size: 16px; }
.aircraft p { color: var(--dim); font-size: 13.5px; margin: 6px 0; }
.aircraft details { margin-top: 10px; font-size: 13.5px; }
.aircraft summary { cursor: pointer; color: var(--accent); }
.aircraft dl { display: grid; grid-template-columns: 1fr 1.1fr; gap: 6px 10px; font-size: 12.5px; }
.aircraft dl div { display: contents; }
.aircraft dt { color: var(--mute); }
.aircraft dd { margin: 0; }
.aircraft ul { padding-left: 18px; color: var(--dim); }
.aircraft-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

/* plans */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--panel); border-radius: 12px; box-shadow: 0 0 0 1px var(--border); }
.plan-card.pick { box-shadow: 0 0 0 2px var(--accent); }
.plan-tag { position: absolute; top: -12px; left: 28px; background: var(--accent); color: var(--on-accent); font-size: 12.5px; font-weight: 600; line-height: 1.5; padding: 3px 10px; border-radius: 6px; }
.plan-card h3 { font-size: 22px; }
.plan-card .price { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 0; font-size: 40px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.plan-card .price small { color: var(--mute); font-size: 14.5px; font-weight: 400; letter-spacing: 0; }
.plan-card .price.soon { font-size: 24px; color: var(--dim); }
.plan-fleet { font-size: 14px; color: var(--mute); }
.plan-hours { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 8px; background: var(--band); font-size: 14.5px; color: var(--dim); }
.plan-hours strong { font-size: 18px; color: var(--text); font-weight: 600; }
.plan-feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 15px; color: var(--dim); flex: 1; }
.plan-feature-list li { display: flex; gap: 10px; align-items: flex-start; }
.plan-feature-list li svg { color: var(--accent); margin-top: 4px; width: 16px; height: 16px; }
.plan-plugin { font-size: 14px; color: var(--dim); }
.plan-card .button, .plan-card .store-soon, .plan-card .secondary { width: 100%; }
.store-soon { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 8px; text-align: center; color: var(--mute); background: var(--band); font-weight: 500; font-size: 14.5px; cursor: default; }
.plan-row, .plan-card.plan-row { margin-top: 20px; display: flex; flex-direction: row; align-items: center; gap: 20px; padding: 20px 28px; background: var(--panel); border-radius: 12px; box-shadow: 0 0 0 1px var(--border); position: static; }
.plan-row .nm { font-weight: 600; font-size: 17px; white-space: nowrap; display: flex; align-items: center; gap: 12px; }
.plan-row p { flex: 1; font-size: 15px; color: var(--dim); }
.plan-row .button, .plan-row .store-soon, .plan-row .secondary { flex: none; width: auto; }
.plan-row .store-soon { margin: 0; width: auto; max-width: 280px; }
.plan-row ul { display: none; }
.plan-row .price { display: none; }
.plugin-card .price { display: none; }
.edition-notes { margin-top: 24px; display: flex; flex-direction: column; gap: 6px; }
.edition-note { font-size: 14px; color: var(--mute); max-width: 90ch; }
.edition-note a { color: var(--accent); }
.plan-includes { margin-top: 6px; }

/* faq teaser */
.faqs { columns: 2; column-gap: 56px; }
.faqs .q { break-inside: avoid; padding: 18px 0; border-top: 1px solid var(--border); }
.faqs .q b { display: block; font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.faqs .q p { font-size: 15px; color: var(--dim); }

/* download */
.dl { display: flex; align-items: center; gap: 28px; padding: 36px 40px; }
.dl img { width: 64px; height: 64px; border-radius: 14px; flex: none; }
.dl .t { flex: 1; }
.dl h2 { font-size: 22px; margin-bottom: 4px; }
.dl p { font-size: 15px; color: var(--dim); }
.dl .dl-meta { color: var(--mute); }
.community { margin-top: 20px; font-size: 14.5px; color: var(--dim); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.community .text-link, .community .social-row { margin-top: 0; }

/* inner pages: header block, faq, text pages */
.page { max-width: 1040px; margin: 48px auto 0; padding: 0 var(--gutter) 88px; }
.page h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -.025em; margin-bottom: 20px; }
.page-intro { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.page-intro h1 { margin-bottom: 0; }
.page-intro .lede { margin-top: 14px; }
.faq-page { max-width: 1120px; }
.faq-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0 0 8px; }
.faq-tools label { margin: 0; font-size: 14px; color: var(--dim); }
.faq-tools input { min-height: 48px; }
.faq-tools nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.faq-tools nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-size: 14.5px; font-weight: 500; }
.faq-cat { margin-top: 36px; }
.faq-cat h2 { font-size: 22px; margin-bottom: 8px; }
.faq-cat details { border-top: 1px solid var(--border); }
.faq-cat details:last-child { border-bottom: 1px solid var(--border); }
.faq-cat summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 0; font-weight: 600; font-size: 16.5px; cursor: pointer; }
.faq-cat summary::-webkit-details-marker { display: none; }
.faq-cat summary::after { content: "+"; flex: none; font-size: 22px; font-weight: 400; color: var(--mute); transition: transform .15s ease-out; }
.faq-cat details[open] > summary::after { transform: rotate(45deg); }
.faq-cat details p { color: var(--dim); padding-bottom: 16px; max-width: 72ch; }
.quiet { border-bottom: 1px solid var(--border); }
details > summary { cursor: pointer; }

/* ── responsive: tablet and phone ───────────────────────────────────────────────────────────────────── */
@media (min-width: 1000px) {
  .faq-page .faq-wrap { display: block; }
}
@media (max-width: 960px) {
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-cols > div:first-child { grid-column: 1 / -1; }
  .fleet-lead { grid-template-columns: 1fr; }
  .fleet-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: 1fr; max-width: 640px; }
  .steps { grid-template-columns: 1fr; }
  .stage-pill { display: none; }
}
@media (max-width: 719px) {
  .site-header { height: 60px; }
  .site-header .wrap { gap: 10px; }
  .brand img { height: 30px; }
  .site-header nav { display: none; }
  .site-header.open nav { display: flex; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg); padding: 8px var(--gutter) 16px; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--border); margin: 0; }
  .menu { display: inline-flex; }
  .head-actions { gap: 4px; }
  .head-actions > a { padding: 0 8px; font-size: 14px; }
  .h-display { font-size: 36px; }
  .h2 { font-size: 28px; }
  .lede { font-size: 17px; }
  .sec-lede { font-size: 15.5px; }
  section.s { padding: 56px 0; }
  .s-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 28px; }
  .hero { padding-top: 40px; }
  .hero-copy { gap: 16px; }
  .button-row .button, .button-row .secondary { width: 100%; }
  .video { margin-top: 32px; border-radius: 10px; }
  .play { width: 60px; height: 60px; }
  .play svg { width: 22px; height: 22px; }
  .vcap { left: 14px; right: 14px; bottom: 12px; font-size: 13px; }
  .vcap small { display: none; }
  .hero-facts { grid-template-columns: 1fr; gap: 12px; padding-bottom: 48px; margin-top: 20px; }
  .does { grid-template-columns: 1fr; }
  .does article:nth-child(2) { border-top: 1px solid var(--border); padding-top: 22px; }
  .stage-viewport { display: none; }
  .stage-fallback { display: block; }
  .stage-bar .stage-replay { display: none; }
  .hero-ac { padding: 22px; }
  .hero-ac .top { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-ac ul { grid-template-columns: 1fr; }
  .next .row, .next .hd, .next .ft { padding-inline: 18px; }
  .fleet-grid { grid-template-columns: 1fr; }
  .plan-card { padding: 24px; }
  .plan-row, .plan-card.plan-row { flex-direction: column; align-items: stretch; gap: 10px; padding: 20px; }
  .plan-row .nm { white-space: normal; }
  .faqs { columns: 1; }
  .dl { flex-direction: column; align-items: flex-start; padding: 24px; gap: 18px; }
  .dl .button { width: 100%; }
  .foot-cols { gap: 24px; }
  .page { margin-top: 28px; padding-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── text pages, forms, account, cart, live development: the retained structure, on the tokens above ── */
.page { max-width: 1040px; margin: 60px auto; padding: 0 var(--gutter) 80px; }
.page h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 22px; }
.legal-page { max-width: 820px; }
.legal-page h2 { font-size: 24px; margin: 36px 0 10px; }
.legal-page h3 { font-size: 19px; margin: 26px 0 8px; }
.legal-page p, .legal-page li { color: var(--muted); margin: 10px 0; max-width: 72ch; }
.legal-page strong { color: var(--ink); }
.legal-page blockquote { margin: 16px 0; padding: 4px 18px; background: var(--panel-2); border-radius: 8px; border: 1px solid var(--line); }
.table-wrap { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; font-size: 14px; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--ink); }
td { color: var(--muted); }
/* the company page's identity table (build-site.mjs puts .kv-table on it, nothing else): label above value on a phone */
@media (max-width: 640px) {
  .kv-table { min-width: 0; width: 100%; }
  .kv-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .kv-table tbody, .kv-table tr, .kv-table td, .kv-table th { display: block; }
  .kv-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .kv-table td { padding: 0; border-bottom: 0; }
  .kv-table td:first-child { margin-bottom: 4px; font-size: 13px; color: var(--muted); }
  .kv-table td + td { font-size: 16px; color: var(--ink); overflow-wrap: anywhere; }
}

/* ── forms ──────────────────────────────────────────────────────────────────────────────────────────── */
.form-card { max-width: 500px; margin: 0 auto; padding: 32px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.form-card h1 { font-size: 32px; margin-bottom: 8px; }
.form-card > p.muted { margin-bottom: 8px; }
label { display: block; margin: 16px 0 6px; font-size: 14px; }
input:not([type=checkbox]):not([type=radio]) { width: 100%; min-height: 46px; padding: 11px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; color: var(--ink); }
input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.stack { display: flex; flex-direction: column; gap: 4px; }
.stack > button { align-self: flex-start; margin-top: 10px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 18px 0; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.check small { display: block; margin-top: 6px; }
.message { min-height: 22px; margin: 10px 0; color: var(--amber); font-size: 14px; }
.message:empty { min-height: 0; margin: 0; }
.form-card .link-button { margin-top: 14px; }
.secret { font-family: var(--deck-mono); font-size: 17px; letter-spacing: 1px; padding: 10px 12px; background: var(--bg); border-radius: 6px; border: 1px solid var(--line); word-break: break-all; }

/* ── account ────────────────────────────────────────────────────────────────────────────────────────── */
.account-page { max-width: 1120px; }
.account-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 8px; }
.account-head h1 { margin-bottom: 4px; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.box { background: var(--panel); padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.box.wide-box { grid-column: 1 / -1; }
.box > h2 { font-size: 15px; font-weight: 600; color: var(--muted); margin: 0 0 12px; }
.box .big { font-size: 28px; line-height: 1.2; margin-bottom: 4px; }
.box details { margin-top: 14px; }
.box details > summary { color: var(--accent); font-size: 14px; }
.licence { display: flex; gap: 8px; align-items: flex-start; margin-top: 18px; font-size: 14px; color: var(--muted); }
.licence .icon { color: var(--ok); margin-top: 3px; }
.plain-list { list-style: none; padding: 0; margin: 10px 0 0; font-size: 14px; }
.plain-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.split-list { list-style: none; padding: 0; margin: 12px 0 0; font-size: 14px; }
.split-list li { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.split-list li:first-child { border-top: 0; }
.meter { height: 10px; border-radius: 5px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; margin: 12px 0 10px; }
.meter-fill { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 5px; transition: width .6s cubic-bezier(.16, 1, .3, 1); }
.meter.low .meter-fill { background: var(--amber); }
#crew-box .secondary { margin-top: 16px; }
.purchase-list { list-style: none; padding: 0; margin: 0; }
.purchase { display: grid; grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1.2fr); gap: 10px 22px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.purchase:first-child { border-top: 0; }
.purchase-amount { font-variant-numeric: tabular-nums; }
.withdraw-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; justify-self: end; }
.purchase > p { justify-self: end; text-align: right; }
.status-line { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ok); justify-self: end; }


/* ── dialogs: the cart drawer and the confirmation sheets ───────────────────────────────────────────── */
dialog { color: var(--ink); background: var(--panel); border: 1px solid var(--line); padding: 0; }
dialog::backdrop { background: rgba(0, 0, 0, .55); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 13px; border-radius: 19px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 13px; margin: 0; }
.chip.on { border-color: var(--accent); color: var(--accent); }
.chip-input .hours-input { width: 72px; min-height: 28px; padding: 3px 6px; }
.sheet { width: min(560px, calc(100vw - 32px)); border-radius: var(--radius); }
.sheet[open] { animation: rise .24s cubic-bezier(.16, 1, .3, 1); }
@keyframes rise { from { transform: translateY(10px); opacity: .5; } to { transform: none; opacity: 1; } }
.sheet-body { padding: 26px 28px; }
.sheet-body h2 { font-size: 24px; margin-bottom: 14px; }
.sheet-body > p { margin: 10px 0; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 14px; font-size: 14px; }
.facts div { display: contents; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 20px; }


.check a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
#security > .secondary { margin-top: 18px; }
.store-soon { display: flex; align-items: center; justify-content: center; min-height: 48px; margin: 6px 0 0; padding: 12px 22px; border: 1px solid var(--line); border-radius: 8px; text-align: center; color: var(--muted); font-weight: 600; font-size: 14px; cursor: default; }

/* ── account, authentication and commerce — scoped; the home page is frozen ──
   Label/input 8; field/field 16; primary action 24; secondary action 12.
   These tokens live on these surfaces only, never on :root or home components. */
:is(.account-page, .auth-page, .checkout-page, .account-sheet) {
  --form-label-gap: 8px;
  --form-field-gap: 16px;
  --form-action-gap: 24px;
  --form-secondary-gap: 12px;
  overflow-wrap: anywhere;
}
:is(.account-page, .auth-page, .checkout-page) { padding-inline: 16px; margin-block: clamp(32px, 6vw, 72px); }
:is(.account-page, .auth-page, .checkout-page) .form-card { max-width: 520px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 0 0 1px var(--border); }
:is(.account-page, .auth-page, .checkout-page) .form-card h1 { font-size: clamp(28px, 4vw, 36px); letter-spacing: -.025em; margin-bottom: 12px; }
:is(.account-page, .auth-page) .form-card p.muted { margin-bottom: 0; }
:is(.account-page, .auth-page) .form { display: flex; flex-direction: column; gap: var(--form-field-gap); margin-top: 24px; }
:is(.account-page, .auth-page) .field { display: flex; flex-direction: column; gap: var(--form-label-gap); }
:is(.account-page, .auth-page) .form label { margin: 0; }
:is(.account-page, .auth-page) .form .form-action { margin-top: calc(var(--form-action-gap) - var(--form-field-gap)); }
:is(.account-page, .auth-page) .form > :is(.message:empty, div:empty) { display: none; }
:is(.account-page, .auth-page) .field .small { font-size: 13px; }
:is(.account-page, .auth-page) .form-card > .link-button { width: 100%; margin-top: var(--form-secondary-gap); min-height: 44px; text-align: center; }
:is(.account-page, .auth-page) .quiet { padding-block: 0; margin-top: 12px; border-top: 1px solid var(--line); border-bottom: 0; }
:is(.account-page, .auth-page) .quiet > summary { display: list-item; padding-block: 12px; min-height: 44px; font-size: 14px; }
:is(.account-page, .auth-page) .quiet .form { margin-top: 16px; }
:is(.account-page, .auth-page, .account-sheet) input:not([type=checkbox]):not([type=radio]) { min-height: 48px; border-radius: 8px; }
:is(.account-page, .auth-page, .account-sheet) input:focus-visible { outline-offset: 3px; }
:is(.account-page, .auth-page, .account-sheet) .check { margin: 0; padding-block: 8px; min-height: 44px; gap: 12px; line-height: 1.6; }
:is(.account-page, .auth-page, .account-sheet) .check input { margin: 4px 0 0; width: 20px; height: 20px; }
.account-page .check-title { display: block; color: var(--ink); font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.account-page #news-optin { appearance: none; width: 40px; height: 24px; border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(circle at 11px 50%, var(--ink) 7px, transparent 8px), var(--bg); cursor: pointer; }
.account-page #news-optin:checked { border-color: transparent; background: radial-gradient(circle at 27px 50%, var(--accent-ink) 7px, transparent 8px), var(--accent); }
:is(.account-page, .auth-page, .account-sheet) .message { color: var(--muted); margin: 0; min-height: 0; display: flex; align-items: baseline; gap: 8px; }
:is(.account-page, .auth-page, .account-sheet) .message:empty { display: none; }
:is(.account-page, .auth-page, .account-sheet) .message.is-error { color: var(--danger); }
:is(.account-page, .auth-page, .account-sheet) .message.is-error::before { content: "!"; display: inline-grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; width: 16px; height: 16px; flex: 0 0 16px; font-size: 12px; font-weight: 600; }
:is(.account-page, .auth-page, .account-sheet) :is(button, a).link-button { min-height: 44px; min-width: 44px; }
:is(.account-page, .auth-page, .account-sheet) button[aria-busy=true] { cursor: progress; opacity: .65; }
:is(.account-page, .auth-page) .stack { gap: 8px; margin-top: 16px; }
:is(.account-page, .auth-page) .stack label { margin: 8px 0 0; }
:is(.account-page, .auth-page) .stack > label:first-child { margin-top: 0; }
:is(.account-page, .auth-page) .stack > button { margin-top: 16px; }
.auth-page #set-done { margin-top: 24px; }
.auth-page :is(#set-message, #request-message):not(:empty) { margin-top: 16px; }
.auth-page #set-view:not([hidden]) + #request-view:not([hidden]) { margin-top: 32px; }
.account-page .account-head { align-items: center; gap: 16px; margin-bottom: 24px; }
.account-page .account-head > div { min-width: 0; }
.account-page .account-head h1 { margin-bottom: 8px; letter-spacing: -.035em; }
.account-plan-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; font-size: 14px; white-space: nowrap; }
.account-page .account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.account-page .box { padding: clamp(24px, 3vw, 32px); }
.account-page .box > h2 { font-size: 15px; color: var(--muted); margin-bottom: 24px; }
.account-page .box .big { font-size: clamp(28px, 3vw, 36px); letter-spacing: -.025em; margin-bottom: 12px; }
.account-page .box > p + p { margin-top: 16px; }
.account-page .box > .button { margin-top: 24px; }
.account-page .box details { margin-top: 16px; border-top: 1px solid var(--line); }
.account-page .box details > summary { color: var(--ink); padding-block: 12px; min-height: 44px; }
.account-page .licence { margin-top: 24px; }
.account-page .text-link { min-height: 44px; margin-top: 12px; }
.account-page .plain-list li { align-items: baseline; padding-block: 8px; }
.account-page .pill { border-color: var(--line); }
.account-page .split-list { margin-top: 16px; }
.account-page .split-list li > span:last-child { min-width: 0; }
.account-page .meter { height: 12px; margin-block: 16px; border-radius: 6px; }
.account-page .purchase { padding-block: 24px; gap: 16px 24px; }
.account-page .purchase:first-child { padding-top: 0; }
.account-page .purchase-amount { font-size: 18px; text-align: right; }
.account-page .withdraw-cell { gap: 8px; }
.account-page #purchases > p { margin-top: 16px; }
.account-page .account-settings { grid-column: 1 / -1; min-width: 0; margin-top: 8px; }
.account-page .account-settings > h2 { font-size: 24px; margin-bottom: 24px; }
.account-page .settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; }
.account-page .settings-column { display: grid; gap: 24px; min-width: 0; }
.account-page #news-box .message:not(:empty), .account-page #data-box .message:not(:empty) { margin-top: 16px; }
.account-page #security > .secondary { margin-top: 24px; }
.account-page .danger-link { min-height: 44px; }
.account-sheet { max-height: calc(100dvh - 32px); box-shadow: 0 12px 40px rgba(0, 0, 0, .35); }
.account-sheet .sheet-body { padding: clamp(24px, 4vw, 32px); }
.account-sheet form.sheet-body { display: flex; flex-direction: column; gap: 8px; }
.account-sheet .sheet-body > h2 { margin-bottom: 16px; }
.account-sheet .sheet-body > p { margin-block: 8px; }
.account-sheet label { margin: 16px 0 0; }
.account-sheet .stack { gap: 8px; }
.account-sheet .dialog-actions { margin-top: 16px; gap: 12px; }
.account-sheet .facts { grid-template-columns: minmax(64px, auto) minmax(0, 1fr); gap: 12px 16px; }
.account-sheet .button.danger { color: var(--ink); background: transparent; border: 1px solid var(--danger); }
.checkout-page .return-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 50%; font-size: 24px; color: var(--muted); }
.checkout-page .return-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 24px; }
.checkout-page .return-actions .secondary { justify-content: center; text-align: center; }
@media (max-width: 719px) {
  .account-page .account-head { align-items: flex-start; flex-direction: column; }
  .account-page :is(.account-grid, .settings-grid) { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .account-page .settings-column { gap: 16px; }
  .account-page .purchase { grid-template-columns: minmax(0, 1fr) auto; }
  .account-page .purchase > :last-child { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .account-page .purchase .secondary { white-space: normal; }
  .account-sheet .dialog-actions > * { flex: 1 1 100%; justify-content: center; text-align: center; }
}

/* ── Flight deck, pass 2. Aircraft / instrument / receipt: three distinct materials.
   Display 40–56, section 26, body 16, metadata 13. Space carries the bands;
   cyan means action, amber low time/work in progress, green confirmed state. ── */
:is(.account-page, .auth-page, .checkout-page) {
  --deck-display: clamp(40px, 4vw, 56px);
  --deck-section: 26px;
  --deck-band: clamp(64px, 7vw, 100px);
  --deck-mono: "Plex Mono", Consolas, monospace;
  font-size: 16px;
}
:is(.account-page, .auth-page, .checkout-page) { max-width: 1212px; padding: 0 16px 80px; margin-block: 48px 0; }
:is(.account-page, .auth-page) .auth-split { display: grid; grid-template-columns: 1.08fr 1fr; min-height: 680px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); box-shadow: none; }
.auth-scene { position: relative; min-width: 0; overflow: hidden; display: flex; align-items: flex-end; padding: 48px; }
.auth-scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 56% center; }
:is(.account-page, .auth-page) .auth-form-card { max-width: none; width: 100%; margin: 0; padding: 48px; border: 0; border-radius: 0; background: transparent; box-shadow: none; align-self: center; }
:is(.account-page, .auth-page) .auth-form-card h1 { font-size: 40px; letter-spacing: -.03em; margin-bottom: 16px; }
:is(.account-page, .auth-page) .auth-form-card > p.muted { font-size: 16px; max-width: 42ch; }
:is(.account-page, .auth-page) .field { position: relative; gap: 6px; }
:is(.account-page, .auth-page) .field label { font-size: 13px; color: var(--muted); }
:is(.account-page, .auth-page) input:not([type=checkbox]):not([type=radio]) { min-height: 52px; background: var(--bg); border-color: var(--border-2); padding: 12px 14px; }
.password-wrap { display: flex; position: relative; }
.password-wrap input { width: 100%; padding-right: 72px !important; }
.password-toggle { position: absolute; top: 4px; right: 4px; min-height: 44px; min-width: 60px; padding: 6px 10px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 13px; cursor: pointer; }
.password-toggle:hover { color: var(--accent); }
:is(.account-page, .auth-page) input::placeholder { color: var(--muted); opacity: 1; }
:is(.account-page, .auth-page) .button { font-size: 16px; min-height: 52px; }
:is(.account-page, .auth-page) button[aria-busy=true]::after { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: deck-spin .7s linear infinite; }
@keyframes deck-spin { to { transform: rotate(360deg); } }
.deck-hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 20px; min-height: 380px; background: var(--panel); }
.deck-hero .deck-copy { color: var(--ink); }
.deck-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 54%; z-index: -2; }
.deck-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--scrim) 96%, transparent) 0%, color-mix(in srgb, var(--scrim) 91%, transparent) 26%, color-mix(in srgb, var(--scrim) 40%, transparent) 78%), linear-gradient(0deg, color-mix(in srgb, var(--scrim) 40%, transparent), transparent); }
.account-page .account-head { display: block; margin: 0; }
.deck-copy { padding: 52px; max-width: 720px; }
.account-page .deck-copy h1, .checkout-page .deck-copy h1 { font-size: var(--deck-display); line-height: 1.06; letter-spacing: -.03em; margin: 24px 0 12px; max-width: 18ch; }
.deck-identity { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--dim); }
.account-page .account-plan-chip { background: var(--accent-soft); border-color: var(--border-2); color: var(--ink); }
.account-page #who { color: var(--dim); }
.account-page #deck-action { margin-top: 28px; }
.account-page #account-message:not(:empty) { margin-top: 24px; }
.account-page .account-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: 72px; row-gap: var(--deck-band); margin-top: 64px; align-items: start; }
.account-page .account-grid > .wide-box { grid-column: 1 / -1; }
.training-record { min-width: 0; }
.training-record > h2 { font-size: var(--deck-section); margin-bottom: 24px; }
#training-record-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.training-record-card { display: flex; align-items: center; gap: 24px; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.training-record-badge { width: 96px; height: 96px; flex: 0 0 96px; }
.training-record-pending { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 36px; }
.training-record-kicker { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.training-record-card h3 { margin: 7px 0; font-size: 19px; line-height: 1.25; }
.training-record-card p { margin-bottom: 12px; }
.training-certificate { width: min(96vw, 1000px); max-height: 96vh; padding: 16px; border: 0; border-radius: 12px; background: var(--bg-2); color: var(--ink); }
.training-certificate::backdrop { background: rgba(8, 12, 16, .8); }
.training-certificate > img { display: block; width: 100%; height: auto; }
.training-certificate-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-bottom: 12px; }
@media (max-width: 600px) { .training-record-card { gap: 14px; padding: 16px; } .training-record-badge { width: 72px; height: 72px; flex-basis: 72px; } }
@media print { body:has(.training-certificate[open]) > :not(.training-certificate) { display: none !important; } .training-certificate[open] { position: static; display: block; width: 100%; max-height: none; padding: 0; border: 0; } .training-certificate-actions { display: none; } }
.account-page :is(.deck-plan, .crew-instrument) { min-width: 0; padding: 0; }
.account-page :is(.deck-plan, .crew-instrument, .hangar) h2, .account-page .box > h2 { font-size: var(--deck-section); color: var(--ink); margin-bottom: 24px; letter-spacing: -.02em; }
.account-page .deck-plan .big { font-size: 32px; line-height: 1.2; margin-bottom: 10px; letter-spacing: -.025em; }
.account-page .fleet-count { margin-top: 28px; font-size: 16px; }
.account-page .order-founding { margin-top: 24px; }
.account-page .order-founding svg { display: block; width: 96px; height: 96px; margin-bottom: 8px; }
.cb-badge-founding text { font-variant-numeric: tabular-nums; }
.account-page .licence-note { margin-top: 24px; }
.account-page .licence-note summary { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); font-size: 14px; cursor: pointer; }
.account-page .licence-note p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.account-page .crew-instrument { padding-left: 48px; border-left: 1px solid var(--line); }
.instrument-body { display: flex; align-items: center; gap: 24px; }
.crew-gauge { position: relative; width: 220px; height: 220px; flex: 0 0 220px; }
.crew-gauge svg { width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.crew-gauge circle { fill: none; stroke-width: 7; }
.gauge-track { stroke: var(--line); }
.gauge-plan { stroke: var(--ink); stroke-dasharray: var(--gauge-plan) 100; }
.gauge-refill { stroke: var(--accent-dim); stroke-dasharray: var(--gauge-refill) 100; stroke-dashoffset: var(--gauge-offset); }
.crew-gauge.low .gauge-plan { stroke: var(--amber); }
.crew-gauge .gauge-ticks { stroke: var(--line); stroke-width: 3; stroke-dasharray: .25 4.75; }
.gauge-readout { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--deck-mono); font-variant-numeric: tabular-nums; }
.gauge-readout strong { font-size: 36px; line-height: 1.2; font-weight: 400; letter-spacing: -.03em; }
.gauge-readout span { font-size: 13px; color: var(--muted); margin-top: 8px; }
.gauge-readout small { font-size: 12px; letter-spacing: .14em; margin-top: 18px; color: var(--muted); }
.instrument-meta { flex: 1; min-width: 0; font-size: 14px; }
.gauge-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; margin-bottom: 10px; }
.gauge-legend span { display: inline-flex; align-items: center; gap: 7px; }
.gauge-legend span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.gauge-legend .legend-refill::before { background: var(--accent-dim); }
.crew-instrument details { margin-top: 12px; }
.crew-instrument summary { min-height: 44px; cursor: pointer; }
.crew-instrument > .secondary { margin-top: 20px; }
.hangar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 24px; }
.account-page .hangar-head h2 { margin-bottom: 0; }
.hangar-head > span { font-size: 14px; }
.hangar-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 0 16px; margin: 0; list-style: none; scrollbar-color: var(--line) var(--bg); }
.hangar-tile { scroll-snap-align: start; min-width: 0; background: var(--bg-2); border-radius: 12px; overflow: hidden; position: relative; }
.hangar-photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.hangar-caption { padding: 20px; }
.hangar-caption h3 { font-size: 18px; line-height: 1.3; margin-bottom: 12px; }
.account-page .hangar-caption .pill { margin: 0; display: inline-flex; align-items: center; font-size: 12px; padding: 2px 9px; }
.hangar-tile.is-locked .hangar-photo { opacity: .45; }
.hangar-upgrade { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; margin: 0 20px 16px; color: var(--accent); font-size: 14px; }
.account-page .box { background: transparent; border: 0; border-radius: 0; padding: 0; }
.account-page #offers { padding-block: 24px; border-block: 1px solid var(--line); }
.account-page #offers h2 { margin-bottom: 8px; font-size: 22px; }
.account-page #offers .split-list { margin: 0; }
.account-page #offers .split-list li { border: 0; padding: 8px 0; }
.account-page .purchase-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.account-page .purchase, .account-page .purchase:first-child { grid-template-columns: minmax(0, 1fr) auto; align-items: start; padding: 28px; gap: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.receipt-product strong { font-size: 22px; line-height: 1.3; font-weight: 600; }
.receipt-product > p { margin-top: 10px; }
.order-ref { font-family: var(--deck-mono); font-size: 12px; color: var(--muted); }
.account-page .purchase-amount { font-size: 24px; font-family: var(--deck-mono); }
.account-page .receipt-status { justify-self: start; margin: 0; font-size: 12px; }
.account-page .purchase > :last-child { grid-column: 1 / -1; border-top: 1px dashed var(--line); padding-top: 20px; justify-self: stretch; text-align: left; }
.account-page .withdraw-cell { align-items: flex-start; }
.account-page .account-settings { margin: 0; }
.account-page .account-settings > h2 { font-size: var(--deck-section); margin-bottom: 32px; }
.account-page .settings-grid { gap: 32px; }
.account-page .settings-grid .box { padding: 28px; background: var(--bg-2); border-radius: 12px; }
.account-page .settings-grid .box > h2 { font-size: 20px; margin-bottom: 24px; }
.setting-head { display: flex; align-items: center; gap: 12px; }
.setting-head .icon { color: var(--muted); }
.account-page .settings-grid .split-list { font-size: 14px; }
.account-page .settings-grid .split-list li { gap: 20px; align-items: flex-start; }
.account-page .settings-grid .split-list li > span:last-child { text-align: right; }
.account-page .settings-grid .check { align-items: start; }
.account-page #news-optin { flex: 0 0 40px; }
.account-page .data-danger { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.account-page .data-danger .danger-link { color: var(--muted); }
.account-page .data-danger .danger-link:hover { color: var(--danger); }
.refill-thumbnail { display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); background: var(--panel); }
.checkout-page .return-hero { min-height: 380px; }
.checkout-page .return-icon { color: var(--ink); margin-bottom: 24px; }
.checkout-page .deck-copy h1 { margin-top: 0; }
.checkout-page .deck-copy > p { max-width: 48ch; color: var(--muted); }
.checkout-page .return-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.return-card { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 20px; row-gap: 12px; padding: 32px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); min-height: 156px; }
.return-card > .icon { color: var(--accent); grid-row: 1 / 3; }
.return-card > span { font-size: 22px; line-height: 1.3; }
.return-card > .muted { font-size: 14px; }
.return-card:hover { border-color: var(--accent); text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
  .motion .auth-scene img { animation: scene-arrival .9s cubic-bezier(.16, 1, .3, 1); }
  .instrument-arrival svg { animation: instrument-sweep .9s cubic-bezier(.16, 1, .3, 1); }
  .motion .hangar-tile { animation: deck-arrival .65s cubic-bezier(.16, 1, .3, 1) both; }
  .motion .hangar-tile:nth-child(2) { animation-delay: .06s; }
  .motion .hangar-tile:nth-child(3) { animation-delay: .12s; }
}
@keyframes scene-arrival { from { transform: scale(1.06); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes instrument-sweep { from { transform: rotate(-210deg); opacity: .25; } to { transform: rotate(-90deg); opacity: 1; } }
@keyframes deck-arrival { from { transform: translateY(12px); opacity: .3; } to { transform: none; opacity: 1; } }
@media (max-width: 1000px) {
  :is(.account-page, .auth-page) .auth-form-card { padding: 32px; }
  .auth-scene { padding: 32px; }
  .account-page .account-grid { column-gap: 32px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .account-page .crew-instrument { padding-left: 24px; }
  .instrument-body { flex-direction: column; align-items: flex-start; }
  .instrument-meta { width: 100%; }
  .hangar-row { grid-auto-columns: calc((100% - 24px) / 2); }
  .account-page .purchase-list { grid-template-columns: 1fr; }
}
@media (max-width: 719px) {
  :is(.account-page, .auth-page, .checkout-page) { margin-top: 24px; padding-bottom: 56px; }
  :is(.account-page, .auth-page) .auth-split { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 14px; }
  .auth-scene { min-height: 176px; padding: 24px; }
  .auth-scene img { object-position: 50% 42%; }
  :is(.account-page, .auth-page) .auth-form-card { padding: 28px 24px; }
  :is(.account-page, .auth-page) .auth-form-card h1 { font-size: 34px; }
  .deck-hero { min-height: 380px; border-radius: 14px; }
  .deck-copy { padding: 32px 24px; }
  .deck-photo { object-position: 62% center; }
  .deck-hero::after { background: linear-gradient(90deg, color-mix(in srgb, var(--scrim) 95%, transparent), color-mix(in srgb, var(--scrim) 60%, transparent)), linear-gradient(0deg, color-mix(in srgb, var(--scrim) 60%, transparent), transparent); }
  .deck-identity { gap: 12px; font-size: 13px; }
  .account-page .account-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; margin-top: 40px; }
  .account-page .crew-instrument { border-left: 0; border-top: 1px solid var(--line); padding: 32px 0 0; }
  .instrument-body { flex-direction: row; align-items: center; gap: 16px; }
  .crew-gauge { width: 188px; height: 188px; flex-basis: 188px; }
  .gauge-readout strong { font-size: 32px; }
  .hangar-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .hangar-row { grid-auto-columns: 84%; gap: 16px; }
  .account-page .settings-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .account-page .settings-column { gap: 20px; }
  .account-page .settings-grid .box { padding: 24px; }
  .account-page .purchase, .account-page .purchase:first-child { padding: 24px; gap: 16px; }
  .account-page .purchase-amount { font-size: 20px; }
  .receipt-product strong { font-size: 20px; }
  .checkout-page .return-actions { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .return-card { padding: 24px; min-height: 132px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.account-page, .auth-page, .checkout-page) *, :is(.account-page, .auth-page, .checkout-page) *::after { animation: none !important; transition: none !important; }
}

/* ── live development (launch/live.html, built by launch/build-live-dev.mjs) ───────────────────────────
   Readiness bars are <progress> elements (no inline width: the CSP forbids inline style). Status is a word
   plus a dot, never a colour alone. The heatmap cells carry data-level 0-4. */
.live-page h1 { margin-bottom: 14px; }
.live-page .lede { color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); max-width: 60ch; }
.live-page > .small { margin-top: 8px; }
.live-section { margin-top: 52px; }
.live-section h2 { font-size: 24px; margin-bottom: 8px; }
.live-section > .small { margin-bottom: 14px; }
.live-list, .live-unscored { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.live-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr) minmax(140px, 1fr) minmax(96px, auto); gap: 10px 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.live-name, .live-state, .live-score { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.live-name strong { font-weight: 600; }
.live-meta { color: var(--muted); font-size: 13px; }
.live-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.live-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.live-chip[data-state="available"] { color: var(--ok); }
.live-chip[data-state="wip"] { color: var(--amber); }
.live-bar { display: block; width: 100%; height: 8px; border: 0; border-radius: 4px; background: var(--panel); -webkit-appearance: none; appearance: none; }
.live-bar::-webkit-progress-bar { background: var(--panel); border-radius: 4px; }
.live-bar::-webkit-progress-value { background: var(--accent); border-radius: 4px; }
.live-bar::-moz-progress-bar { background: var(--accent); border-radius: 4px; }
.live-score { align-items: flex-end; text-align: right; }
.live-pct { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.live-unscored-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 4px 20px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.live-heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 14px); grid-auto-columns: 14px; gap: 3px; overflow-x: auto; padding-bottom: 4px; }
.hm { display: block; width: 14px; height: 14px; border-radius: 3px; background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
.hm[data-level="1"] { background: color-mix(in srgb, var(--accent) 28%, var(--panel)); }
.hm[data-level="2"] { background: color-mix(in srgb, var(--accent) 50%, var(--panel)); }
.hm[data-level="3"] { background: color-mix(in srgb, var(--accent) 75%, var(--panel)); }
.hm[data-level="4"] { background: var(--accent); }
.hm-pad { background: transparent; }
.live-legend { display: flex; align-items: center; gap: 4px; margin-top: 12px; }
.live-legend span:not(.hm) { margin: 0 4px; }
.live-legend .hm { width: 12px; height: 12px; }
@media (max-width: 760px) {
  .live-row { grid-template-columns: minmax(0, 1fr) auto; }
  .live-state { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
  .live-meter { grid-column: 1 / -1; }
  .live-score { flex-direction: row; align-items: baseline; gap: 10px; }
  .live-unscored-row { grid-template-columns: 1fr; gap: 2px; }
}
/* ── live development: focus view, feature requests, owner queue (launch/js/requests*.js) ───────────────
   Colour is meaning, never decoration: the focus cells are one hue ramp (a share, not a status); request stages carry a
   word and a dot; buttons are the site's own .secondary and .button. Nothing here uses an inline style. */
.live-focus { display: grid; gap: 8px; margin-top: 12px; }
.fx-row { display: grid; grid-template-columns: minmax(96px, 1.2fr) repeat(8, minmax(14px, 1fr)) minmax(44px, auto); gap: 6px; align-items: center; }
.fx-head { font-size: 12px; color: var(--muted); }
.fx-week { text-align: center; white-space: nowrap; overflow: hidden; text-overflow: clip; font-variant-numeric: tabular-nums; }
.fx-m { margin-left: 4px; color: var(--muted); }
.fx-area { font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-share { font-size: 13px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.fx-cell { display: block; height: 22px; border-radius: 4px; background: color-mix(in srgb, var(--accent) 8%, var(--panel)); min-width: 0; }
.fx-cell[data-level="none"] { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.fx-cell[data-level="1"] { background: color-mix(in srgb, var(--accent) 28%, var(--panel)); }
.fx-cell[data-level="2"] { background: color-mix(in srgb, var(--accent) 50%, var(--panel)); }
.fx-cell[data-level="3"] { background: color-mix(in srgb, var(--accent) 75%, var(--panel)); }
.fx-cell[data-level="4"] { background: var(--accent); }
.live-legend-note { margin-left: 8px; }
.live-legend .fx-cell { width: 14px; height: 14px; flex: none; }
.live-section > p.small:not(.muted) { margin-top: 14px; }

.req-mine { margin: 6px 0 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); }
.req-mine-head { margin-bottom: 8px; }
.req-mine-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.req-mine-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.req-mine-title { font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
.req-mine > .secondary { margin-top: 10px; }
.req-note { color: var(--muted); }
.req-note[data-kind="error"] { color: var(--danger); }
.req-note[data-kind="ok"] { color: var(--ok); }
.req-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.req-item { display: grid; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.req-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.req-title { font-size: 18px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.req-votes { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.req-count { font-weight: 600; }
.req-count-label { color: var(--muted); }
.req-stage { margin: 0; }
.req-body { color: var(--muted); max-width: 70ch; white-space: pre-line; overflow-wrap: anywhere; }
.req-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.req-empty { padding: 18px 0; border-bottom: 1px solid var(--line); list-style: none; }
.req-report { font-size: 14px; color: var(--muted); }
.req-report summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.req-report summary:hover { color: var(--accent); }
.req-report-body { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 6px 0 4px; }
.req-report select, .req-form input, .req-form textarea, .admin-item select, .admin-item input { min-height: 44px; background: var(--bg); border: 1px solid var(--border-2); border-radius: 8px; padding: 10px 12px; }
.req-form { display: grid; gap: 14px; margin-top: 22px; max-width: 70ch; }
.req-field { display: grid; gap: 6px; }
.req-field span { font-size: 13px; color: var(--muted); }
.req-form textarea { resize: vertical; }
.req-form .button { justify-self: start; }

.admin-page { max-width: 1040px; }
.admin-page h1 { margin-bottom: 10px; }
.admin-list { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); }
.admin-item { display: grid; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.admin-item[data-flagged="true"] { border-left: 3px solid var(--amber); padding-left: 14px; }
.admin-item[data-moderation="hidden"] .admin-title, .admin-item[data-moderation="duplicate"] .admin-title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--mute); }
.admin-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline; }
.admin-title { font-size: 17px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.admin-votes { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.admin-body { color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; max-width: 72ch; }
.admin-meta { overflow-wrap: anywhere; }
.admin-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 16px; }
.admin-actions > .secondary { margin-top: 22px; }
.admin-field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.admin-field input { width: 220px; }
.admin-empty { padding: 18px 0; list-style: none; }

@media (max-width: 760px) {
  .fx-row { grid-template-columns: repeat(8, minmax(10px, 1fr)) minmax(40px, auto); }
  .fx-area { grid-column: 1 / -1; font-size: 15px; }
  .fx-head .fx-area { display: none; }
  .fx-share { text-align: right; }
  .fx-head .fx-share { visibility: hidden; }
  .fx-week { white-space: normal; line-height: 1.2; font-size: 12px; }
  .fx-m { display: block; margin: 0; font-size: 10px; }
  .admin-field input { width: 100%; }
}

.vote-h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.vote-top-wrap { margin: 18px 0 22px; }
.vote-top { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vote-top-col { min-width: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.vote-top-title { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.vote-top-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.vote-top-item { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; min-width: 0; font-size: 14px; }
.vote-top-name { min-width: 0; overflow-wrap: anywhere; }
.vote-top-item .vote-meta { flex: none; font-variant-numeric: tabular-nums; }
.vote-tools { display: grid; gap: 12px; margin-bottom: 12px; }
.vote-sims { display: flex; flex-wrap: wrap; gap: 8px; }
.vote-sim { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.vote-sim[aria-pressed="true"] { border-color: var(--accent); color: var(--ink); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--accent); }
.vote-search { display: grid; gap: 6px; min-width: 0; }
.vote-search span { font-size: 13px; color: var(--muted); }
.vote-note { min-height: 1.4em; margin: 0 0 10px; }
.vote-note[data-kind="error"] { color: var(--danger); }
.vote-note[data-kind="ok"] { color: var(--ok); }
.vote-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.vote-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.vote-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vote-name strong { font-weight: 600; overflow-wrap: anywhere; }
.vote-meta { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.vote-state { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; }
.vote-chip { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.vote-row[data-status="unverified"] .vote-chip { color: var(--amber); border-color: var(--amber); }
.vote-act { display: flex; justify-content: flex-end; }
.vote-btn { min-height: 44px; min-width: 44px; padding: 0 16px; cursor: pointer; }
.vote-empty { padding: 16px 0; }
@media (min-width: 720px) {
  .vote-tools { grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); align-items: end; }
}
@media (max-width: 719px) {
  .vote-top { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

/* Type plate (owner rule D11, 2026-10-08): an aircraft is shown by its ICAO type code and name, never by a picture.
   One size everywhere it stands for an aircraft; the code uses the site's mono face, the name the body face. */
.type-plate {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  box-sizing: border-box; width: 100%; aspect-ratio: 16 / 9; margin-bottom: 10px; padding: 16px;
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  background: linear-gradient(160deg, var(--panel) 0%, var(--panel-2) 100%); color: var(--ink);
}
.type-plate-code {
  font-family: var(--deck-mono); font-size: clamp(28px, 5vw, 42px); font-weight: 600; line-height: 1;
  letter-spacing: .06em; color: var(--accent);
}
.type-plate-name { font-size: 14px; line-height: 1.3; color: var(--muted); }
.plan-card .type-plate.plan-plate { border-radius: 0; border-width: 0 0 1px; margin: 0; aspect-ratio: 1.7; }
.aircraft > .type-plate.aircraft-plate { border-radius: 6px; }
.type-plate.deck-photo { margin: 0; border: 0; border-radius: 0; aspect-ratio: auto; padding: 28px; }
.type-plate.hangar-photo { margin: 0; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); aspect-ratio: 16 / 9; }

.live-page { max-width: 1120px; }
.live-section { padding-top: 32px; }
.live-list { background: var(--panel); padding: 0 24px; border-radius: 12px; }
.live-row { padding-block: 22px; }
.live-bar { accent-color: var(--accent); }

:is(.account-page, .auth-page) .auth-split { min-height: 580px; box-shadow: none; background: var(--panel); }
.auth-scene { align-items: center; background: var(--bg-2); }
.auth-intro h2 { font-size: clamp(32px, 3.4vw, 48px); letter-spacing: -.04em; }
.auth-intro p { margin-top: 24px; color: var(--muted); font-size: 18px; line-height: 1.6; letter-spacing: 0; font-weight: 400; max-width: 30ch; }
.auth-intro ul { list-style: none; margin: 36px 0 0; padding: 0; color: var(--muted); font-size: 14px; }
.auth-intro li { padding: 12px 0; border-top: 1px solid var(--line); }
.account-page .account-head { min-height: 0; background: transparent; border-radius: 0; overflow: visible; }
.account-page .account-head::after, .account-page #deck-photo { display: none; }
.account-page .deck-copy { max-width: none; padding: 16px 0 32px; color: var(--ink); }
.account-page .deck-copy h1 { max-width: none; }
.account-page #who, .account-page .deck-identity { color: var(--muted); }
.account-page .account-plan-chip { color: var(--accent); background: var(--soft-accent); border-color: var(--line); }
.account-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; border-block: 1px solid var(--line); padding-block: 8px; font-size: 14px; }
.account-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); }
.account-page .account-grid { gap: 48px 32px; margin-top: 32px; }
.account-page :is(.deck-plan, .crew-instrument) { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.account-page .deck-plan .big { font-family: inherit; }
.gauge-readout { font-family: inherit; }
.gauge-readout strong { font-size: 28px; }
.gauge-plan { stroke: var(--accent); }
.training-empty { padding: 32px; background: var(--bg-2); border-radius: 12px; }
.training-empty > .icon { color: var(--accent); margin-bottom: 16px; }
.training-empty h3 { font-size: 22px; margin-bottom: 12px; }
.training-empty p + p { margin-top: 12px; }
.account-page .purchase-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.account-page .purchase { background: var(--panel); }
.account-page .settings-grid .box { background: var(--panel); }
.account-page .settings-grid .split-list li { flex-wrap: wrap; }
#training-record-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.training-record-card > div { min-width: 0; }


/* account, auth and checkout: phone and tablet adjustments */
@media (max-width: 1000px) {
  .instrument-body { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 719px) {
  .live-list { padding-inline: 16px; }
  .account-page .account-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  :is(.account-page, .auth-page) .auth-split { min-height: 0; }
  .auth-scene { min-height: 0; padding: 28px; }
  .auth-intro h2 { font-size: 32px; }
  .auth-intro p, .auth-intro ul { display: none; }
  :is(.account-page, .auth-page) .auth-form-card { padding: 24px; }
  .account-page :is(.deck-plan, .crew-instrument) { padding: 20px; }
  .account-page .settings-grid .box, .account-page .purchase { padding: 20px; }
  .account-page .purchase { grid-template-columns: minmax(0, 1fr); }
  .account-page .purchase > * { min-width: 0; }
  .account-nav { gap: 4px 20px; }
  .hangar-row { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); grid-auto-columns: auto; overflow: visible; }
  .training-record-card { flex-wrap: wrap; }
}
/* Touch targets (DESIGN.md: 44 px on a coarse pointer): links and summaries reach 44 px through their own line box. */
@media (max-width: 719px), (pointer: coarse) {
  .foot-cols a, .foot-legal small a { display: inline-flex; align-items: center; min-height: 44px; }
  .foot-cols a { display: flex; }
  summary { min-height: 44px; padding-block: 10px; }
  .menu { min-height: 44px; }
}
.social-row a, .community a.social { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--dim); font-size: 14.5px; text-decoration: none; }
.social-row a:hover { color: var(--text); text-decoration: underline; }
.checkout-page .deck-photo, .checkout-page .deck-hero::after { display: none; }
.checkout-page .deck-hero { background: var(--panel); box-shadow: 0 0 0 1px var(--border); min-height: 0; }
.roles-line { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 15px; color: var(--dim); max-width: 80ch; }
.roles-line b { color: var(--text); font-weight: 600; }
video:focus, video:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
/* the account, sign-in and checkout pages and live development share the header's content edge */
:is(.account-page, .auth-page, .checkout-page, .live-page) { max-width: 1180px; padding-inline: var(--gutter); }

.roles { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.roles-intro { font-size: 15px; color: var(--dim); max-width: 80ch; }
.roles-intro b { color: var(--text); font-weight: 600; }
.roles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
.roles-grid h3 { font-size: 17px; margin-bottom: 4px; }
.roles-grid p { font-size: 14.5px; color: var(--dim); }
.roles-more { margin-top: 18px; font-size: 14.5px; color: var(--mute); }
@media (max-width: 960px) { .roles-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 719px) { .roles-grid { grid-template-columns: 1fr; gap: 14px; } .auth-scene { display: none; } }

/* ── /plans compare page (P1 flight deck): a table on wide screens, stacked rows under 720px ── */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.plans-page { padding-bottom: 88px; }
.page-h { padding: 64px 0 40px; }
.page-h .h-display { font-size: 48px; }
.page-h .lede { margin-top: 14px; }
.cmp { width: 100%; min-width: 0; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { text-align: left; padding: 14px 16px; border-top: 1px solid var(--border); vertical-align: top; }
.cmp thead th, .cmp thead td { border-top: 0; padding-top: 0; }
.cmp thead .nm { display: block; font-size: 19px; font-weight: 600; color: var(--text); }
.cmp thead .pr { display: block; margin: 6px 0 2px; font-size: 28px; font-weight: 600; letter-spacing: -.02em; color: var(--text); }
.cmp thead .pr small { font-size: 13px; color: var(--mute); font-weight: 400; letter-spacing: 0; }
.cmp thead .pr.soon { font-size: 20px; color: var(--dim); }
.cmp tbody th[scope="row"] { width: 26%; color: var(--text); font-weight: 500; }
.cmp td { color: var(--dim); }
.cmp td svg { color: var(--accent); width: 18px; height: 18px; }
.cmp td .no { color: var(--mute); font-size: 18px; line-height: 1; }
.cmp tr.grp th { padding-top: 28px; border-top: 0; font-size: 13px; font-weight: 600; color: var(--mute); }
.cmp .pickcol { background: var(--accent-soft); }
.cmp tbody tr:last-child td { border-bottom: 1px solid var(--border); }
.cmp .cta td { border-top: 0; padding-top: 20px; }
.cmp .cta .button, .cmp .cta .secondary, .cmp .cta .store-soon { width: 100%; }
.liveops-line { margin-top: 56px; max-width: 70ch; }
.liveops-line h2 { font-size: 22px; margin-bottom: 8px; }
.liveops-line p { color: var(--dim); margin-top: 8px; }
@media (max-width: 719px) {
  .page-h { padding: 40px 0 24px; }
  .page-h .h-display { font-size: 34px; }
  .cmp, .cmp tbody, .cmp tr, .cmp td, .cmp th { display: block; }
  .cmp thead { display: none; }
  .cmp tbody th[scope="row"] { width: auto; padding: 14px 0 6px; border-top: 1px solid var(--border); font-weight: 600; }
  .cmp td { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 7px 0; border: 0; font-size: 14.5px; text-align: right; }
  .cmp td::before { content: attr(data-plan); color: var(--mute); text-align: left; flex: none; }
  .cmp tr.grp th { padding: 28px 0 4px; }
  .cmp .pickcol { background: transparent; }
  .cmp tbody tr:last-child td { border-bottom: 0; }
  .cmp .cta td { padding: 8px 0 0; display: block; }
  .cmp .cta td:first-child { display: none; }
  .cmp .cta td { display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: left; }
}

.site-footer .social, .site-footer .social-row a { min-width: 44px; }

/* ── certificates (site wave B, 2026-10-22): the final course badge, the account list and /certificate ───────────────────────────
   The badge generator (training-badges.js, owner-approved 2026-10-17) reads --badge-* with light fallbacks; the dark set is
   TOKENS.css from the certificates design. Disc, inner, segment and ribbon colours never change. */
@media (prefers-color-scheme: dark) {
  :root { --badge-licence-edge: #3d7cc4; --badge-type-edge: #6b7682; --badge-diff-edge: #5f93c7; --badge-rim: rgba(255, 255, 255, .55);
    --badge-disc: #1f242b; --badge-inner: #171b21; --badge-line: #4a5563; --badge-ribbon: #0f1216; --badge-ink: #c5ced8; --badge-ink-soft: #8a939e; }
}
/* account list: one row per course, the 24 px mark, the name, one meta line, the actions that exist */
.cert-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 20px; }
.cert-row h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.cert-row .cert-main p { margin: 2px 0 0; font-variant-numeric: tabular-nums; }
.cert-mark { display: grid; place-items: center; width: 24px; height: 24px; }
.cert-mark svg { display: block; width: 24px; height: 24px; }
.cert-mark-none { border: 1px dashed var(--border-2); border-radius: 50%; }
.cert-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 12px; }
.cert-actions .secondary { min-height: 44px; padding: 0 16px; font-size: 14.5px; }
.cert-actions .text-link { margin-top: 0; min-height: 44px; }
.cert-pending { margin-bottom: 12px; }
.cert-dialog-verify { margin-top: 12px; }
#training-record-list:has(.cert-row) { grid-template-columns: 1fr; gap: 10px; }
@media (max-width: 720px) {
  .cert-row { grid-template-columns: 24px minmax(0, 1fr); padding: 14px 16px; }
  .cert-row .cert-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
/* the verify page */
.cert-page { padding-bottom: 72px; }
.cert-form { max-width: 640px; }
.cert-form label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 15px; }
.cert-form-row { display: flex; gap: 12px; }
.cert-form-row input { flex: 1 1 auto; min-width: 0; font-family: var(--deck-mono); letter-spacing: .02em; text-transform: uppercase; }
.cert-form-row input::placeholder { text-transform: none; color: var(--mute); }
.cert-form .cap { margin-top: 8px; }
.cert-result { margin-top: 32px; max-width: 880px; min-width: 0; }
.cert-body { min-width: 0; }
.cert-card { display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 32px; align-items: start; padding: 32px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; }
.cert-card.cert-miss { display: block; padding: 24px 28px; }
.cert-badge svg { display: block; width: 184px; height: 184px; }
.cert-badge-missing { display: block; width: 184px; height: 184px; border: 1px dashed var(--border-2); border-radius: 50%; }
.cert-status { display: flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.cert-status strong { font-weight: 700; color: var(--text); }
.cert-lamp { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--mute); }
.cert-lamp-valid { background: var(--green-solid); }
.cert-lamp-revoked, .cert-lamp-warn { background: var(--amber-solid); }
.cert-body h2 { margin: 10px 0 6px; font-size: 28px; line-height: 1.2; letter-spacing: -.01em; }
.cert-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 16px 24px; margin: 24px 0 0; }
.cert-fact dt { font-size: 13px; color: var(--mute); }
.cert-fact dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.cert-number dd, .cert-card .cert-number { font-family: var(--deck-mono); font-size: 15px; font-weight: 400; letter-spacing: .02em; }
.cert-papers { width: 100%; min-width: 0; margin-top: 28px; border-collapse: collapse; font-size: 15px; }
.cert-papers caption { text-align: left; font-size: 13px; color: var(--mute); padding-bottom: 6px; }
.cert-papers th, .cert-papers td { padding: 9px 0; border-top: 1px solid var(--border); text-align: left; font-weight: 400; }
.cert-papers thead th { font-size: 13px; color: var(--mute); border-top: 0; }
.cert-papers td, .cert-papers thead th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.cert-fine { max-width: 62ch; margin-top: 32px; }
.cert-wait { padding: 24px 0; }
@media (max-width: 720px) {
  .cert-form-row { flex-direction: column; }
  .cert-form-row .button { width: 100%; }
  .cert-card { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px 20px; }
  .cert-badge { display: flex; justify-content: center; }
  .cert-body h2 { font-size: 24px; }
}

/* ── THE PRODUCT TOUR (fable-site-demo/BUILD-SPEC-v2.md, js/demo-tabs.js): an upright tablet beside the tab list ─────────
   The clips are recordings of the real panel (apps/site/build-demo-captures.mjs). The tablet is a dark object in both themes,
   like the video frame. NO TILT, NO ZOOM (owner order 2026-10-27, demo v3; website.md: never tilt or cursor effects): the
   tablet sits flat at one size and the clip is shown whole. Effects: a two-layer shadow, a static glass highlight, the scene
   rise, the sliding accent rule. No blur, no glow, no particles. */
.tour-demo { display: grid; grid-template-columns: minmax(0, 520px) 1fr; gap: 64px; align-items: center; }
.tour-stage { display: flex; justify-content: center; padding: 24px 0; }
/* The screen is exactly the clip's ratio (864:1096, the panel's content without its own frame and home bar; apps/site/build-demo-captures.mjs
   CROP): the bezel is padding around it, so nothing is cropped and there is one home button (Fable spot-check fix 1). */
.tour-tablet { position: relative; width: 100%; max-width: 440px; padding: 16px 16px 44px; border-radius: 30px; background: #0a0c10; outline: none;
  box-shadow: 0 0 0 1px #262b33, inset 0 0 0 1px rgba(255, 255, 255, .06), 0 40px 80px -20px rgba(0, 0, 0, .55), 0 18px 32px -16px rgba(0, 0, 0, .4); }
.tour-tablet:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.tour-home { position: absolute; left: 50%; bottom: 14px; width: 18px; height: 18px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px #3a414b; transform: translateX(-50%); }
.tour-screen { position: relative; aspect-ratio: 864 / 1096; border-radius: 16px; overflow: hidden; background: #0a0f15; }
.tour-glare { position: absolute; inset: 0; pointer-events: none; z-index: 3; background: linear-gradient(115deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, 0) 38%); }
.tour-scene { position: absolute; inset: 0; opacity: 0; transform: translateY(16px); transition: opacity .32s, transform .32s cubic-bezier(.2, .7, .2, 1); }
.tour-scene.on { opacity: 1; transform: none; }
.tour-scene.out { opacity: 0; transform: translateY(-16px); }
.tour-media { position: absolute; inset: 0; }
.tour-media video, .tour-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: top center; max-width: none; }
.tour-media img { opacity: 0; transition: opacity .28s; }
.tour-media img.on { opacity: 1; }
.tour-side { display: flex; flex-direction: column; min-width: 0; }
.tour-tabs { display: flex; flex-direction: column; position: relative; border-left: 1px solid var(--border); }
.tour-ul { position: absolute; left: -1px; top: 0; width: 2px; height: 0; background: var(--accent);
  transition: top .28s cubic-bezier(.2, .7, .2, 1), height .28s cubic-bezier(.2, .7, .2, 1), left .28s cubic-bezier(.2, .7, .2, 1), width .28s cubic-bezier(.2, .7, .2, 1); }
.tour-tabs [role=tab] { text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 12px 20px; min-height: 52px; border: 0; background: none; cursor: pointer;
  color: var(--dim); font-size: 17px; font-weight: 500; border-radius: 0 8px 8px 0; transition: color .14s, background .14s; }
.tour-tabs [role=tab]:hover { color: var(--text); background: var(--band); filter: none; }
.tour-tabs [role=tab][aria-selected=true] { color: var(--text); }
.tour-tabs [role=tab]:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.tour-lab { display: none; font-size: 14.5px; font-weight: 400; color: var(--dim); max-width: 44ch; transition: opacity .16s; }
.tour-tabs [role=tab][aria-selected=true] .tour-lab { display: block; }
.tour-lab.swap { opacity: 0; }
.tour-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 6px; background: var(--band); color: var(--dim); font-size: 12.5px; font-weight: 500; white-space: nowrap; vertical-align: 1px; }
/* the track stands apart from the last tab row, so it never reads as that row's underline (fix 3) */
.tour-track { height: 2px; margin: 18px 0 0 20px; background: var(--band); border-radius: 1px; overflow: hidden; width: min(100%, 280px); }
.tour-track i { display: block; height: 100%; width: 0; background: color-mix(in srgb, var(--text) 40%, transparent); }
.tour-ctls { display: flex; gap: 8px; align-items: center; margin-top: 28px; padding-left: 20px; }
.tour-ctls button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 8px; border: 0; background: none; cursor: pointer;
  font-size: 14.5px; font-weight: 500; color: var(--dim); box-shadow: 0 0 0 1px var(--border-2); transition: background .12s, color .12s; }
.tour-ctls button:hover { background: var(--band); color: var(--text); filter: none; }
.tour-ctls button[aria-pressed=true] { color: var(--text); }
.tour-try { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 500; font-size: 14.5px; }
.tour-note { font-size: 13px; color: var(--mute); margin-top: 14px; padding-left: 20px; }
.tour-note + .tour-note { margin-top: 4px; }
.tour-mlab { display: none; }
/* the connector demo (CONNECTOR-DEMO-SPEC section 1): a flat laptop-screen card, 16:10, radius 12; the tablet's tilt is the tablet's only */
.tour-conn .tour-demo { grid-template-columns: minmax(0, 760px) 1fr; gap: 48px; }

.tour-tablet.tour-laptop { max-width: 760px; padding: 10px; border-radius: 12px; }
.tour-laptop .tour-screen { aspect-ratio: 1280 / 800; border-radius: 6px; }
/* the connector demo stacks below 1100 px: its 760 px screen + 48 px gap left the side column 0 px wide (sitewalk / site-launch, 768 + 820) */
@media (max-width: 1099px) {
  .tour-conn .tour-demo { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 719px) {
  .tour-demo { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .tour-tablet.tour-laptop { padding: 6px; border-radius: 10px; }
  .tour-stage { padding: 8px 0 0; }
  .tour-tablet { max-width: none; padding: 12px 12px 36px; border-radius: 24px; }
  .tour-screen { border-radius: 12px; }
  .tour-home { bottom: 10px; width: 16px; height: 16px; }
  .tour-tabs { flex-direction: row; border-left: 0; border-top: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .tour-tabs::-webkit-scrollbar { display: none; }
  .tour-ul { top: -1px; left: 0; height: 2px; width: 0; }
  .tour-tabs [role=tab] { padding: 0 12px; min-height: 48px; justify-content: center; font-size: 14.5px; white-space: nowrap; flex: none; scroll-snap-align: start; border-radius: 0 0 8px 8px; }
  .tour-tabs [role=tab] .tour-lab { display: none !important; }
  .tour-mlab { display: block; font-size: 14px; color: var(--dim); min-height: 42px; padding: 8px 0 0; }
  .tour-track { margin: 12px 0 0; width: 100%; }
  .tour-ctls { margin-top: 12px; padding: 0; }
  .tour-note { padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tour-scene, .tour-media img, .tour-ul, .tour-lab { transition: none; }
}
