/* SubCommander site styles. Fonts are in assets/fonts; nothing is loaded from other sites. */
@font-face { font-family: "Big Shoulders Display"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/big-shoulders-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #EDF2F3;
  --paper: #FFFFFF;
  --text: #102A38;
  --muted: #4A626E;
  --line: #C8D5D9;
  --line-soft: #DDE6E8;
  --accent: #0F5E6B;
  --accent-strong: #0B4954;
  --on-accent: #FFFFFF;
  --water: #1B8A9A;
  --deep: #0C2D3F;
  --deep-2: #0A2433;
  --deep-line: #24495C;
  --on-deep: #E9F2F4;
  --on-deep-muted: #A9C0C9;
  --signal: #F2B134;
  --signal-ink: #33260A;
  --signal-soft: #FFF3D6;
  --signal-text: #6E4A00;
  --tank: #0A2636;
  --shadow: 0 1px 2px rgba(12, 45, 63, .06), 0 8px 24px rgba(12, 45, 63, .07);
  --font-display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #06171F;
    --paper: #0C2532;
    --text: #E3EEF1;
    --muted: #9DB4BE;
    --line: #21465A;
    --line-soft: #173644;
    --accent: #67C9D6;
    --accent-strong: #93DDE7;
    --on-accent: #06202B;
    --deep: #0A2838;
    --deep-2: #081F2C;
    --deep-line: #24495C;
    --signal-soft: #2A2311;
    --signal-text: #F3CB73;
    --tank: #04121A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
:root[data-theme="dark"] {
  --bg: #06171F;
  --paper: #0C2532;
  --text: #E3EEF1;
  --muted: #9DB4BE;
  --line: #21465A;
  --line-soft: #173644;
  --accent: #67C9D6;
  --accent-strong: #93DDE7;
  --on-accent: #06202B;
  --deep: #0A2838;
  --deep-2: #081F2C;
  --deep-line: #24495C;
  --signal-soft: #2A2311;
  --signal-text: #F3CB73;
  --tank: #04121A;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--signal); color: var(--signal-ink); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }

/* ---- display type: tall condensed capitals, like the depth marks painted on a hull ---- */
.display, h1, h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: .95; }
h1 { font-size: clamp(46px, 8.4vw, 104px); }
h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 700; }
h3 { font-family: var(--font-body); font-weight: 600; font-size: 19px; line-height: 1.3; }
.eyebrow { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; max-width: 34em; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: .92em; }
.small { font-size: 14.5px; line-height: 1.5; }

/* ---- status strip and header ---- */
.strip { background: var(--signal); color: var(--signal-ink); font-size: 14px; line-height: 1.4; }
.strip .wrap { padding-top: 8px; padding-bottom: 8px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.strip b { font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.strip a { color: inherit; font-weight: 600; }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 27px; letter-spacing: .02em; line-height: 1; color: var(--text); text-decoration: none; text-transform: uppercase; display: inline-flex; align-items: center; gap: 9px; margin-right: auto; }
.brand:hover { color: var(--text); }
.brand b { color: var(--accent); font-weight: 800; }
.brand svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; gap: 2px; align-items: center; order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); width: calc(100% + var(--gutter) * 2); }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 11px; border-radius: 6px; }
.nav a:first-child { margin-left: -11px; }
.nav a:hover { background: var(--line-soft); }
.nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 6px 6px 0 0; }
@media (min-width: 900px) {
  .nav { order: 0; width: auto; margin: 0; padding: 0; overflow: visible; }
  .nav a:first-child { margin-left: 0; }
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 8px; border: 1.5px solid transparent; font: 600 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--signal); color: var(--signal-ink); }
.btn-primary:hover { background: #FFC24D; color: var(--signal-ink); }
.btn-ghost { background: transparent; color: var(--on-deep); border-color: var(--deep-line); }
.btn-ghost:hover { border-color: var(--on-deep-muted); color: #fff; }
.btn-line { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-line:hover { background: var(--accent); color: var(--on-accent); }
.btn-solid { background: var(--accent); color: var(--on-accent); }
.btn-solid:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: 15px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---- hero: below the waterline ---- */
.hero { background: var(--deep); color: var(--on-deep); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 68px; background: linear-gradient(180deg, rgba(27, 138, 154, .28), rgba(27, 138, 154, 0)); border-top: 2px solid var(--water); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: clamp(44px, 7vw, 84px); padding-bottom: clamp(36px, 6vw, 72px); align-items: center; }
@media (min-width: 940px) { .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; } }
.hero h1 { color: #fff; }
.hero .lede { color: var(--on-deep); margin: 22px 0 28px; }
.hero .eyebrow { color: var(--signal); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-family: var(--font-mono); font-size: 13px; color: var(--on-deep-muted); margin: 22px 0 0; }
.draught { position: absolute; right: 0; top: 0; bottom: 0; width: 46px; display: none; flex-direction: column; justify-content: space-between; padding: 76px 0 20px; font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1; color: rgba(233, 242, 244, .2); text-align: right; pointer-events: none; }
.draught span { border-top: 2px solid rgba(233, 242, 244, .2); padding: 4px 8px 0 0; }
@media (min-width: 1280px) { .draught { display: flex; } }
.page-hero h1 { font-size: clamp(44px, 7vw, 88px); }
.price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 22px; }
.price b { font-family: var(--font-display); font-weight: 800; font-size: 54px; line-height: 1; color: #fff; }
.price span { font-size: 14.5px; color: var(--on-deep-muted); max-width: 22em; line-height: 1.4; }

/* ---- 3D board viewer ---- */
.board3d { position: relative; }
.board3d > img { width: 100%; height: auto; }
.board3d-stage { aspect-ratio: 4 / 3; width: 100%; border-radius: 12px; background: radial-gradient(120% 90% at 50% 35%, #12405A 0%, var(--tank) 75%); border: 1px solid var(--deep-line); overflow: hidden; touch-action: pan-y; }
.hero .board3d-stage { background: none; border: 0; aspect-ratio: 5 / 4; }
.board3d-stage canvas { width: 100%; height: 100%; display: block; cursor: grab; outline-offset: -3px; }
.board3d-stage canvas:active { cursor: grabbing; }
.board3d-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.board3d-bar button { font: 500 14px/1 var(--font-body); min-height: 38px; min-width: 40px; padding: 8px 12px; border-radius: 7px; border: 1px solid var(--line); background: var(--paper); color: var(--text); cursor: pointer; }
.board3d-bar button:hover { border-color: var(--accent); color: var(--accent); }
.hero .board3d-bar { justify-content: center; }
.hero .board3d-bar button { background: transparent; color: var(--on-deep); border-color: var(--deep-line); }
.hero .board3d-bar button:hover { border-color: var(--on-deep-muted); color: #fff; }
.board3d-hint { font-size: 13.5px; color: var(--muted); margin: 8px 0 0; }
.hero .board3d-hint { color: var(--on-deep-muted); text-align: center; }
.board3d-note { font-size: 13px; line-height: 1.45; color: var(--on-deep-muted); margin: 12px auto 0; max-width: 36em; text-align: center; }
.figure-note { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; max-width: 60em; }

/* ---- sections ---- */
.band { padding: clamp(48px, 7vw, 88px) 0; }
.band + .band { border-top: 1px solid var(--line); }
.band-paper { background: var(--paper); }
.band-head { max-width: 44em; margin-bottom: clamp(24px, 4vw, 40px); }
.band-head h2 + p { margin-top: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } .split.wide-right { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }

.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.band-paper .card { background: var(--bg); box-shadow: none; }
.card .pic { background: radial-gradient(120% 90% at 50% 35%, #12405A 0%, var(--tank) 75%); border-radius: 8px; margin: -6px -6px 18px; aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 12px; overflow: hidden; }
.card .pic img { max-height: 100%; width: auto; object-fit: contain; }
.card .pic.diagram { color: var(--on-deep); font-family: var(--font-mono); font-size: 12px; }
.card h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 32px; line-height: 1; letter-spacing: .01em; }
.card .tag { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); margin: 8px 0 12px; }
.card p { font-size: 16px; }
.card .foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card .cost { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1; }
.card .cost small { display: block; font: 400 12.5px/1.3 var(--font-body); color: var(--muted); margin-top: 4px; text-transform: none; letter-spacing: 0; }
.card .foot a { font-weight: 600; white-space: nowrap; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 14px; height: 2px; background: var(--water); }
.ticks b { font-weight: 600; }

/* numbered functions list */
.functions { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.functions li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .functions li { grid-template-columns: minmax(0, 15em) minmax(0, 1fr); } }
.functions b { font-weight: 600; }
.functions span { color: var(--muted); }

/* phone screenshots */
.phones { display: flex; gap: 18px; overflow-x: auto; padding: 4px var(--gutter) 18px; margin: 0 calc(var(--gutter) * -1); scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.phone { flex: 0 0 auto; width: min(64vw, 250px); scroll-snap-align: start; margin: 0; }
.phone .frame { border-radius: 26px; padding: 7px; background: #0A1B24; border: 1px solid #2A4656; box-shadow: var(--shadow); }
.phone img { border-radius: 20px; width: 100%; }
.phone figcaption { font-size: 14px; line-height: 1.4; color: var(--muted); margin-top: 10px; }
.phone figcaption b { color: var(--text); font-weight: 600; display: block; }

/* connection map */
.map { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--tank); }
.map img { width: 100%; }
.map i { position: absolute; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; background: var(--signal); color: var(--signal-ink); font: 600 13px/26px var(--font-mono); text-align: center; font-style: normal; box-shadow: 0 0 0 2px rgba(10, 36, 51, .85); }
@media (max-width: 520px) { .map i { width: 20px; height: 20px; font-size: 11px; line-height: 20px; } }
.legend { list-style: none; counter-reset: n; margin: 18px 0 0; padding: 0; display: grid; gap: 8px 28px; font-size: 15.5px; }
@media (min-width: 700px) and (max-width: 1039px) { .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(8, auto); } }
.mapwrap { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1040px) { .mapwrap { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; align-items: start; } .mapwrap .legend { margin-top: 0; font-size: 15px; gap: 7px; } }
.legend li { counter-increment: n; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; }
.legend li::before { content: counter(n); width: 24px; height: 24px; border-radius: 50%; background: var(--signal); color: var(--signal-ink); font: 600 12.5px/24px var(--font-mono); text-align: center; margin-top: 1px; }
.legend b { font-weight: 600; }
.legend span { color: var(--muted); }

/* specification tables */
.table-scroll { overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
table.spec { border-collapse: collapse; width: 100%; font-size: 16px; }
table.spec caption { text-align: left; font-weight: 600; padding: 0 0 10px; }
table.spec th, table.spec td { text-align: left; vertical-align: top; padding: 11px 16px 11px 0; border-bottom: 1px solid var(--line); }
table.spec thead th { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); border-bottom: 2px solid var(--text); white-space: nowrap; }
table.spec tbody th { font-weight: 500; color: var(--muted); width: 32%; min-width: 9.5em; }
table.spec td { font-family: var(--font-mono); font-size: 14.5px; line-height: 1.55; }
table.spec td.no { color: var(--muted); }
table.compare { min-width: 620px; }
table.compare tbody th { width: 24%; }
table.spec tr.group th { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 21px; letter-spacing: .02em; color: var(--text); padding-top: 28px; border-bottom: 2px solid var(--line); }

/* notices */
.notice { border: 1px solid var(--signal); border-left-width: 5px; background: var(--signal-soft); color: var(--text); border-radius: 8px; padding: 16px 18px; font-size: 16px; }
.notice b:first-child { color: var(--signal-text); font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; display: block; margin-bottom: 6px; }
.notice p:last-child { margin-bottom: 0; }

/* progress: where the project stands */
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.stages li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding-bottom: 22px; position: relative; }
.stages li::before { content: ""; width: 16px; height: 16px; margin: 5px 0 0 6px; border-radius: 50%; border: 2px solid var(--muted); background: var(--bg); position: relative; z-index: 1; }
.band-paper .stages li::before { background: var(--paper); }
.stages li::after { content: ""; position: absolute; left: 13px; top: 12px; bottom: -6px; width: 2px; background: var(--line); }
.stages li:last-child::after { display: none; }
.stages li.done::before { background: var(--water); border-color: var(--water); }
.stages li.next::before { border-color: var(--signal); background: var(--signal); }
.stages b { font-weight: 600; display: block; }
.stages span { color: var(--muted); font-size: 15.5px; }
.stages em { font: 500 12px/1 var(--font-mono); font-style: normal; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-left: 8px; }
.stages li.next em { color: var(--signal-text); }
.stages li.todo em { color: var(--muted); }

/* failsafe table */
.grid-table { display: grid; gap: 0; border-top: 2px solid var(--text); }
.grid-table > div { display: grid; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .grid-table > div { grid-template-columns: minmax(0, 13em) minmax(0, 1fr) minmax(0, 1fr); } }
.grid-table .head { font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 10px 0; display: none; }
@media (min-width: 820px) { .grid-table .head { display: grid; } }
.grid-table b { font-weight: 600; }
.grid-table p { margin: 0; font-size: 16px; }
.grid-table p[data-l]::before { content: attr(data-l) ": "; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
@media (min-width: 820px) { .grid-table p[data-l]::before { display: none; } }

/* receiver block diagram */
.chain { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: c; }
@media (min-width: 760px) { .chain { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.chain li { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 16px; position: relative; font-size: 15px; line-height: 1.45; }
.band-paper .chain li { background: var(--bg); }
.chain li b { display: block; font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.chain li::before { counter-increment: c; content: counter(c, decimal-leading-zero); font: 500 12px/1 var(--font-mono); color: var(--accent); display: block; margin-bottom: 8px; letter-spacing: .1em; }
.chain li.side { border-style: dashed; }
.sheet { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; overflow-x: auto; }
.sheet img { min-width: 760px; }

/* questions */
.faq { border-top: 2px solid var(--text); max-width: 52em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 600; font-size: 18px; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font: 400 28px/1.2 var(--font-mono); color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq .a { padding: 0 0 20px; max-width: 46em; }
.faq .a p:last-child { margin-bottom: 0; }
.faq-group { margin: 44px 0 14px; font-size: clamp(26px, 3.4vw, 34px); }
.faq-group:first-of-type { margin-top: 0; }

/* waiting-list form */
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: 16px; padding: 0; }
.field .hint { font-size: 14px; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  font: 400 17px/1.4 var(--font-body); color: var(--text); background: var(--paper); border: 1.5px solid var(--line); border-radius: 8px; padding: 11px 12px; width: 100%; min-height: 48px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--signal); outline-offset: 1px; border-color: var(--accent); }
.field .err { color: #B3261E; font-size: 14.5px; font-weight: 500; }
:root[data-theme="dark"] .field .err { color: #FF9C94; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field .err { color: #FF9C94; } }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.pick { display: grid; gap: 10px; margin-top: 4px; }
.pick-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.pick-row b { font-weight: 600; display: block; }
.pick-row span { color: var(--muted); font-size: 14.5px; font-weight: 400; display: block; }
label.pick-row { cursor: pointer; min-height: 68px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg); }
.qty button { width: 42px; height: 42px; border: 0; background: transparent; color: var(--text); font: 500 20px/1 var(--font-mono); cursor: pointer; }
.qty button:hover { background: var(--line-soft); }
.qty output { min-width: 34px; text-align: center; font: 500 17px/1 var(--font-mono); }
.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; }
.check input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--accent); }
.summary { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.summary h3 { margin-bottom: 12px; }
.summary dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; font-size: 16px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-family: var(--font-mono); text-align: right; }
.summary .total { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 600; color: var(--text); }
.result { border: 2px solid var(--accent); border-radius: 12px; padding: 22px; background: var(--paper); }
.result pre { font: 400 14px/1.55 var(--font-mono); white-space: pre-wrap; word-break: break-word; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin: 12px 0; max-height: 340px; overflow: auto; }
.result .addr { font-family: var(--font-mono); font-size: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; user-select: all; display: inline-block; word-break: break-all; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.said { font-size: 14.5px; color: var(--accent); font-weight: 500; min-height: 1.4em; }

/* closing call and footer */
.call { background: var(--deep); color: var(--on-deep); }
.call .wrap { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 820px) { .call .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; } }
.call h2 { color: #fff; }
.call p { margin: 12px 0 0; color: var(--on-deep-muted); max-width: 40em; }
footer.foot { background: var(--deep-2); color: var(--on-deep-muted); font-size: 14.5px; border-top: 1px solid var(--deep-line); }
footer.foot .wrap { padding-top: 32px; padding-bottom: 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 820px) { footer.foot .wrap { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); } }
footer.foot a { color: var(--on-deep); }
footer.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer.foot .brand { color: #fff; font-size: 23px; margin-bottom: 10px; }
footer.foot .brand b { color: #67C9D6; }
footer.foot h4 { font: 500 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-deep-muted); margin: 4px 0 12px; }

@media (max-width: 899px) { .order-split > :first-child { order: 2; } }

/* ---- campaign pages ---- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; border-top: 1px solid var(--deep-line); margin-top: 30px; padding-top: 18px; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.facts b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1; color: #fff; text-transform: uppercase; letter-spacing: .01em; }
.facts span { display: block; margin-top: 6px; font: 400 12.5px/1.35 var(--font-mono); color: var(--on-deep-muted); }
.tiers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 700px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tier { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; box-shadow: var(--shadow); }
.band-paper .tier { background: var(--bg); box-shadow: none; }
.tier .amt { font-family: var(--font-display); font-weight: 800; font-size: 42px; line-height: 1; }
.tier h3 { font-size: 18px; }
.tier p { margin: 0; font-size: 15.5px; color: var(--muted); }
.tier .lim { font: 500 12px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--signal-text); background: var(--signal-soft); border: 1px solid var(--signal); border-radius: 999px; padding: 4px 10px; justify-self: start; }
.tier .lim.open { color: var(--muted); background: transparent; border-color: var(--line); }
.budget { border-top: 2px solid var(--text); }
.budget > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.budget small { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; }
.budget b { font-family: var(--font-mono); font-weight: 500; font-size: 16px; }
.budget i { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--water); display: block; min-width: 3px; }
.budget .sum { border-bottom: 2px solid var(--text); }
.budget .sum span, .budget .sum b { font-weight: 600; }
.stages time { font: 500 12px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 5px; }
.mapwrap.tall .map { max-width: 400px; }
@media (min-width: 760px) { .mapwrap.tall { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 36px; align-items: start; } .mapwrap.tall .legend { margin-top: 0; grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; grid-template-rows: none; } }
.mapgap { margin-top: 40px; }
h3.sub { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 26px; line-height: 1; letter-spacing: .01em; margin: 0 0 14px; }
footer.foot .legal { grid-column: 1 / -1; border-top: 1px solid var(--deep-line); padding-top: 18px; font-size: 13.5px; line-height: 1.5; }
footer.foot .legal p { margin: 0 0 6px; max-width: 70em; }

/* ---- the Commander first, the others later ---- */
.nav small { font: 500 10px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-left: 5px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 6px; vertical-align: 1px; }
.card .cost.soon { font-size: 22px; color: var(--muted); }
.card.soon .pic { opacity: .8; }
@media (min-width: 820px) { .grid-table.two > div { grid-template-columns: minmax(0, 20em) minmax(0, 1fr); } }
