/* Seatpocket website. Colors and type follow brand/ (tokens.json); light and dark follow prefers-color-scheme.
   Bricolage Grotesque and DM Mono are self-hosted from assets/fonts (SIL Open Font License), so the site loads nothing from other hosts. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('assets/fonts/bricolage-grotesque-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/dm-mono-500-latin.woff2') format('woff2');
}
:root {
  color-scheme: light;
  --display: 'Bricolage Grotesque', 'Avenir Next', system-ui, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --serif: ui-serif, 'New York', 'Iowan Old Style', Georgia, serif; /* only for replicas of a saved page's own text */
  --label: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* brand colors */
  --livery-orange: #e0662b;
  --livery-deep: #b8461a;
  --mustard: #e8b23a;
  --espresso: #2a1c14;
  --cream: #f7efe1;
  --cocoa: #6e5a4b;

  --ground: var(--cream);
  --surface: #fff8ee;
  --surface-2: #f0e6d4;
  --ink: var(--espresso);
  --muted: var(--cocoa);
  --muted-strong: #5a4839;
  --rule: rgba(42, 28, 20, 0.12);
  --accent: var(--livery-deep);
  --accent-ink: #a63f16;
  --accent-soft: rgba(184, 70, 26, 0.1);
  --on-accent: #fff8ee;
  --accent-glow: rgba(184, 70, 26, 0.45);
  --mark: rgba(232, 178, 58, 0.45);
  --warn: #8a5a00;
  --danger: #9e1f1f;
  --window: #fff8ee;
  --window-edge: rgba(42, 28, 20, 0.14);
  --window-shadow: 0 1px 2px rgba(42, 28, 20, 0.08), 0 30px 60px -14px rgba(42, 28, 20, 0.34);
  --band: linear-gradient(180deg, #f7efe1 0%, #efe4d1 100%);
  --field: linear-gradient(180deg, #e8733a 0%, #c9521c 100%);
  --privacy: var(--espresso);
  --pocket: var(--espresso);
  --band-empty: #6b4a2a;
  --focus: 0 0 0 3px rgba(184, 70, 26, 0.5);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --ground: #1e1510;
    --surface: #251a13;
    --surface-2: #33251b;
    --ink: var(--cream);
    --muted: #bba894;
    --muted-strong: #cdbba7;
    --rule: rgba(247, 239, 225, 0.12);
    --accent: #f08a4b;
    --accent-ink: #f59a62;
    --accent-soft: rgba(240, 138, 75, 0.14);
    --on-accent: #1e1510;
    --accent-glow: rgba(0, 0, 0, 0.5);
    --mark: rgba(232, 178, 58, 0.35);
    --warn: #e8b23a;
    --danger: #ff8f80;
    --window: #1e1510;
    --window-edge: rgba(247, 239, 225, 0.14);
    --window-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 30px 60px -10px rgba(0, 0, 0, 0.6);
    --band: linear-gradient(180deg, #1e1510 0%, #251a13 100%);
    --field: linear-gradient(180deg, #c9521c 0%, #a6421a 100%);
    --privacy: #140e0a;
    --pocket: #5a4232;
    --band-empty: #7a5a3c;
    --focus: 0 0 0 3px rgba(240, 138, 75, 0.6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
code, kbd { font-family: var(--mono); font-size: 0.86em; }
code { background: var(--surface-2); border: 1px solid var(--rule); border-radius: 5px; padding: 0.05em 0.35em; overflow-wrap: anywhere; }
kbd { border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 5px; padding: 0 0.35em; background: var(--surface); white-space: nowrap; }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h3 { font-size: 1.06rem; font-weight: 600; margin: 0; letter-spacing: -0.005em; }
p { margin: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { top: 12px; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 24px; }
@media (max-width: 600px) { .wrap { padding-inline: 16px; } }
.eyebrow { font: 500 0.76rem/1.3 var(--label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); }
.lede { font-size: 1.18rem; color: var(--muted-strong); max-width: 40em; text-wrap: pretty; }
.section { padding-block: clamp(56px, 7vw, 88px); }
.section-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 2.9rem); line-height: 1.04; }
.rule-top { border-top: 1px solid var(--rule); }

/* ---------- buttons ---------- */
.button {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 20px; border-radius: 10px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 0; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 8px 20px -8px var(--accent-glow);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.button:hover { filter: brightness(1.08); }
.button:active { transform: translateY(1px); }
.button svg { flex: none; }
.button.small { min-height: 36px; padding: 0 16px; border-radius: 8px; font-size: 0.9rem; box-shadow: none; }
.button.large { min-height: 52px; padding: 0 24px; font-size: 1.06rem; border-radius: 10px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
/* Lockup (brand/README.md): 36px icon, Bricolage Grotesque 800 at 22px, 10px gap. */
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 22px/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -0.015em; }
.brand img { width: 36px; height: 36px; }
.site-nav { display: flex; gap: 24px; margin-left: auto; font-size: 0.93rem; }
.site-nav a { color: var(--muted-strong); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .site-nav { display: none; } .site-header .button { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 72px); background: var(--band); overflow: hidden; }
.hero-copy { display: grid; gap: 22px; max-width: 50rem; }
/* All espresso: the Download button is the view's one orange moment (brand/README.md, Color). */
.hero h1 { font-size: clamp(2.6rem, 1.4rem + 4.4vw, 4.5rem); line-height: 1; letter-spacing: -0.025em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.cta-meta { font-size: 0.9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; }
.cta-meta span + span::before { content: '·'; margin-right: 8px; opacity: 0.7; }
.cta-reassure { font-size: 0.9rem; color: var(--muted); }
.hero .cta-reassure { margin-top: -10px; }
/* The reader screenshot comes up out of the Livery Orange field, the page's one big block of brand color. */
.stage { position: relative; max-width: 1000px; margin: clamp(36px, 5vw, 56px) auto 0; }
.stage::before { content: ''; position: absolute; inset: 22% -48px -1px; border-radius: 28px 28px 0 0; background: var(--field); }
.stage .mac-window { border-radius: 12px 12px 0 0; margin-bottom: -1px; }
.offline-chip {
  position: absolute; right: 24px; top: -20px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 11px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--rule); box-shadow: 0 10px 30px -10px rgba(42, 28, 20, 0.35);
  font-size: 0.85rem; color: var(--muted-strong); white-space: nowrap;
}
.offline-chip b { color: var(--ink); font-weight: 600; }
.offline-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--mustard); box-shadow: 0 0 0 3px rgba(232, 178, 58, 0.25); }
@media (max-width: 700px) {
  .stage::before { inset: 28px -16px -1px; border-radius: 20px 20px 0 0; }
  .offline-chip { right: auto; left: 12px; top: -18px; }
}

/* Phones and iPads (flagged by the inline script in index.html's head) can't run the app: they get Share Link…
   in place of the disk image. */
.handheld-note { display: none; }
.handheld .handheld-note { display: grid; gap: 14px; justify-items: start; flex-basis: 100%; }
.handheld .handheld-note p { color: var(--muted-strong); }
.handheld a[data-release='download'], .handheld .site-header .button, .handheld .cta-reassure { display: none; }

/* macOS window frame around a screenshot. Traffic lights are drawn here because capturePage can't see them;
   positions match trafficLightPosition in src/main (x 14, y 16 main / 18 reader) on a 1200px-wide window. */
.mac-window {
  position: relative; container-type: inline-size;
  border-radius: 12px; overflow: hidden;
  background: var(--window);
  box-shadow: 0 0 0 1px var(--window-edge), var(--window-shadow);
}
.mac-window img { width: 100%; }
.mac-window .lights { position: absolute; left: 1.1667cqw; top: 1.3333cqw; display: flex; gap: 0.6667cqw; }
.mac-window.reader .lights { top: 1.5cqw; }
.mac-window .lights i { width: 1cqw; height: 1cqw; min-width: 5px; min-height: 5px; border-radius: 50%; background: #ff5f57; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.18) inset; }
.mac-window .lights i:nth-child(2) { background: #febc2e; }
.mac-window .lights i:nth-child(3) { background: #28c840; }

/* ---------- ideas ---------- */
.ideas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.idea { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.idea h3 { font-size: 1.02rem; }
.idea p { color: var(--muted); font-size: 0.9rem; }
/* Phones and small tablets: one row to swipe through, with the next card peeking in, instead of eight stacked cards. */
@media (max-width: 760px) {
  .ideas {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(200px, 64%);
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-inline: -24px; padding: 4px 24px 8px; scroll-padding-inline: 24px;
  }
  .ideas::-webkit-scrollbar { display: none; }
  .idea { scroll-snap-align: start; }
}
@media (max-width: 600px) { .ideas { margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; } }
/* Phones: say the row scrolls sideways, and fade its right edge until the end (the script toggles .at-end). */
.swipe-hint { display: none; }
@media (max-width: 760px) {
  .swipe-hint { display: block; margin-top: 14px; font: 500 0.72rem/1.3 var(--label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
  .swipe-hint span { display: inline-block; margin-left: 4px; }
  .ideas { -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent); mask-image: linear-gradient(90deg, #000 78%, transparent); }
  .ideas.at-end { -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .swipe-hint span { animation: nudge 1.6s ease-in-out infinite; }
  @keyframes nudge { 50% { transform: translateX(4px); } }
}

/* The seat pocket from the icon: the site's icon (its own favicon, as the app's sidebar shows it) on a white tile,
   tucked behind an espresso pocket with a mustard band, tilted like the card in the logo. */
.pocket { position: relative; width: 84px; height: 76px; margin-bottom: 12px; flex: none; }
.pocket .tile {
  position: absolute; left: 12px; top: 0; z-index: 1; width: 60px; height: 60px; border-radius: 14px;
  display: grid; place-items: center; background: #fff; color: var(--espresso);
  box-shadow: 0 0 0 1px rgba(42, 28, 20, 0.1), 0 3px 8px -3px rgba(42, 28, 20, 0.35);
  transform: rotate(-5deg);
  transition: transform 0.6s cubic-bezier(0.34, 1.5, 0.5, 1);
}
.pocket .tile img, .pocket .tile svg { width: 38px; height: 38px; }
.pocket-front { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 28px; border-radius: 5px 5px 16px 16px; background: var(--pocket); }
/* The mustard band doubles as the progress bar: an empty track, filled left to right while the site packs. */
.pocket-front::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 5px; background: var(--band-empty); }
.pocket-front .band { position: absolute; left: 0; right: 0; top: 6px; height: 5px; background: var(--mustard); transform-origin: left; transition: transform 1.3s cubic-bezier(0.3, 0.6, 0.3, 1); }

/* Bottom left of each card, under the text: the live page count while packing, then a luggage-tag stamp, each at its
   own small offset and angle (--tag-r, --tag-x, --tag-y on the card) so no two look alike. The stamp is the section's
   one orange. The card keeps room for it, so nothing moves when it lands. */
.idea { position: relative; padding-bottom: 62px; }
.pack-count, .idea .pack-tag { position: absolute; left: 22px; bottom: 22px; margin: 0; transform-origin: left center; }
.idea .pack-count { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; transition: opacity 0.2s ease; }
.pack-count b { font-weight: inherit; }
.idea .pack-tag {
  font: 500 0.68rem/1 var(--label); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
  color: var(--accent-ink); border: 1.5px solid currentColor; border-radius: 6px; padding: 6px 8px;
  transform: translate(var(--tag-x, 0), var(--tag-y, 0)) rotate(var(--tag-r, -5deg));
  transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1) 0.15s, opacity 0.2s ease 0.15s;
}
.idea:not(.packing) .pack-count, .idea.packed .pack-count { opacity: 0; }

/* Animated packing (html.pack-anim, set only when motion is welcome): cards wait with the tile raised and the band
   empty; .packing fills the band while the count runs, and .packed drops the tile in and stamps the tag. */
.pack-anim .idea:not(.packed) .tile { transform: translateY(-20px) rotate(4deg); }
.pack-anim .idea:not(.packing):not(.packed) .band { transform: scaleX(0); }
.pack-anim .idea:not(.packed) .pack-tag { opacity: 0; transform: translate(var(--tag-x, 0), var(--tag-y, 0)) rotate(var(--tag-r, -5deg)) scale(1.6); }

/* ---------- how it works ---------- */
.how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; counter-increment: step; }
.steps li::before {
  content: counter(step); grid-row: span 2;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font: 800 1.1rem var(--display); color: var(--espresso); background: var(--mustard);
}
.steps p { color: var(--muted); }
.how figure { margin: 0; }
figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 14px; }
@media (max-width: 900px) { .how { grid-template-columns: minmax(0, 1fr); } }

/* ---------- presets ---------- */
.presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.preset { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 18px; display: grid; gap: 6px; align-content: start; }
.preset.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.preset h3 { font-size: 1rem; }
.preset p { font-size: 0.9rem; color: var(--muted); }
.preset dl { margin: 8px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 0.82rem; }
.preset dt { color: var(--muted); }
.preset dd { margin: 0; font-variant-numeric: tabular-nums; }
.note { margin-top: 18px; font-size: 0.92rem; color: var(--muted); max-width: 48rem; }
@media (max-width: 900px) { .presets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .presets { grid-template-columns: 1fr; } }

/* ---------- replay spotlights ---------- */
.spotlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.spotlight { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 14px; }
.spotlight > p { color: var(--muted); }
.demo { flex: 1; background: var(--surface-2); border-radius: 12px; padding: 22px; display: grid; gap: 18px; justify-items: center; align-content: center; margin-top: 6px; }
@media (max-width: 820px) { .spotlights { grid-template-columns: 1fr; } }

/* Replica of the reader's Live / Snapshot control (src/renderer/src/styles.css .segmented) */
.segmented { display: inline-flex; background: rgba(127, 127, 127, 0.16); border-radius: 8px; padding: 2px; font-size: 0.85rem; font-weight: 500; }
.segmented span { padding: 4px 14px; border-radius: 6px; color: var(--muted); }
.segmented span.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18); }
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: 100%; font-size: 0.9rem; }
.modes div { display: grid; gap: 4px; }
.modes b { font-weight: 600; }
.modes span { color: var(--muted); }
@media (max-width: 420px) { .modes { grid-template-columns: 1fr; } }

/* Replica of how the reader marks links that aren't archived (src/main/replay/link-marker.ts): faded, dashed underline */
.link-demo { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 22px 22px 44px; font: 1.05rem/1.75 var(--serif); color: var(--ink); }
.link-demo .ok, .link-demo .missing { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link-demo .missing { position: relative; text-decoration-style: dashed; }
.link-demo .missing::before { content: ''; position: absolute; inset: -2px -3px; border-radius: 4px; background: var(--surface); opacity: 0.5; }
.link-demo .tip { position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap; font: 500 0.75rem/1 var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 6px 8px; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.3); text-decoration: none; }

/* Replica of the missing-page screen (src/main/replay/not-archived.ts), with Seatpocket's words (brand/components.md, MissingPage) */
.na-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 22px; text-align: center; display: grid; gap: 10px; justify-items: center; font-size: 0.88rem; }
.na-card svg { color: var(--accent-ink); }
.na-card h3 { font-size: 1.05rem; text-wrap: balance; }
.na-card p { color: var(--muted); }
.na-card code { display: block; width: 100%; text-align: left; font-size: 0.72rem; padding: 8px 10px; border-radius: 8px; }
.na-card .na-button { display: inline-block; padding: 6px 14px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-weight: 500; }
.na-card small { color: var(--muted); font-size: 0.75rem; }
.reading-more { margin-top: clamp(32px, 4vw, 48px); }

/* ---------- privacy band ---------- */
.privacy { background: var(--privacy); color: var(--cream); }
.privacy .eyebrow { color: var(--mustard); }
.privacy h2 { color: var(--cream); }
.privacy .lede { color: #d8c8b4; }
.privacy .section-head { margin-bottom: 0; }
.privacy a { color: var(--mustard); }

/* ---------- download, install ---------- */
.download { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.download-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: clamp(22px, 3vw, 32px); display: grid; gap: 20px; }
.download-card .head { display: flex; align-items: center; gap: 14px; }
.download-card .head img { width: 64px; height: 64px; }
.download-card .head p { color: var(--muted); font-size: 0.92rem; }
.release { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; font-size: 0.9rem; }
.release dt { color: var(--muted); }
.release dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.release .sha { font-family: var(--mono); font-size: 0.78rem; overflow-wrap: anywhere; }
.install { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; counter-reset: step; }
.install > li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 14px; counter-increment: step; }
.install > li::before {
  content: counter(step); grid-row: span 3;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font: 800 0.95rem var(--display); color: var(--espresso); background: var(--mustard);
}
.install p, .install li li { color: var(--muted); }
.install ul { margin: 6px 0 0; padding-left: 1.1em; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.install strong { color: var(--ink); font-weight: 600; }
.cmd { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 10px; background: var(--surface-2); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.cmd pre { margin: 0; flex: 1; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 0.8rem/1.5 var(--mono); color: var(--ink); }
.copy { flex: none; font: 500 0.78rem var(--sans); color: var(--accent-ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 7px; padding: 4px 10px; cursor: pointer; }
.copy[hidden] { display: none; }
@media (max-width: 900px) { .download { grid-template-columns: minmax(0, 1fr); } }
.install-page > * { max-width: 44rem; }
.install-cta { margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq-layout .section-head { position: sticky; top: 96px; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: minmax(0, 1fr); } .faq-layout .section-head { position: static; } }
.faq { display: grid; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font-weight: 600; font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 0 22px; color: var(--muted); display: grid; gap: 12px; max-width: 44rem; }
.faq .answer ul { margin: 0; padding-left: 1.15em; display: grid; gap: 8px; }
.faq .answer strong { color: var(--ink); font-weight: 600; }

.faq-more { padding-top: 22px; color: var(--muted); font-size: 0.96rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding-block: 36px 48px; font-size: 0.88rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.site-footer .brand { font-size: 18px; gap: 8px; }
.site-footer .brand img { width: 30px; height: 30px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- technical details page ---------- */
.page-head { background: var(--band); padding-block: clamp(48px, 7vw, 80px) 0; border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 3.6rem); line-height: 1.04; }
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 40px; }
.points li { display: grid; gap: 6px; align-content: start; padding-top: 18px; border-top: 1px solid var(--rule); }
.points p { color: var(--muted); font-size: 0.96rem; }
.points strong { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) { .points { grid-template-columns: 1fr; } }
.checklist { margin: 0; padding-left: 1.15em; display: grid; gap: 12px; color: var(--muted); max-width: 44rem; }
.checklist strong { color: var(--ink); font-weight: 600; }

/* ---------- prose page (privacy) ---------- */
.prose { max-width: 42rem; padding-block: clamp(48px, 8vw, 88px); display: grid; gap: 18px; }
.prose h1 { font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3rem); line-height: 1.08; }
.prose h2 { font-size: 1.5rem; line-height: 1.2; margin-top: 18px; }
.prose p, .prose li { color: var(--muted); }
.prose .eyebrow { color: var(--accent-ink); }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
