/* lords-bot.com: the Lords Bot app design system (installer / Monitor), carried onto the web.
   Slate ground, hairline structure, cyan for action only, status colours for state only. */

/* ── Fonts (self-hosted, same files as the apps) ─────────────────────── */
@font-face {
  font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/app/schibsted-grotesk.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/app/schibsted-grotesk-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ── Tokens ──────────────────────────────────────────────────────────── */
:root {
  --ui: "Schibsted Grotesk", system-ui, "Segoe UI", sans-serif;
  --bg: #111318;
  --panel: #171a20;
  --inset: #1c212b;
  --line: #242832;
  --line2: #333947;
  --text: #e4e7ed;
  --dim: #99a1b1;
  --label: #8b93a4;      /* micro-labels: dimmer than body, still >= 4.5:1 on --bg */
  --faint: #5c6473;      /* decoration only, never text you must read */
  --accent: #3aa8d8;
  --accent-hi: #4eb6e2;
  --accent-deep: #2b86b0;
  --on-accent: #04222e;
  --good: #4fb98a;
  --warn: #d1a24a;
  --bad: #d9695c;
  --r: 7px;
  --r-sm: 5px;
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

/* ── Base ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--ui); font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hi); }
::selection { background: rgba(58, 168, 216, .32); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--line2) var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 10px; border: 2px solid var(--bg); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 12px; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.brand { fill: currentColor; stroke: none; }
/* The Discord mark keeps its brand colour everywhere it appears. */
.nav-discord .icon.brand, .foot-discord .icon.brand, .mn-discord .icon.brand, .route > .icon.brand, .route:hover > .icon.brand { color: #5865f2; }
.nav-discord, .foot-discord, .mn-discord { display: inline-flex; align-items: center; gap: 7px; }
.nav-discord .icon, .foot-discord .icon, .mn-discord .icon { width: 17px; height: 17px; }
.route .icon.brand { width: 20px; height: 20px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.mono { font-variant-numeric: tabular-nums; }

h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5vw, 4.1rem); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: 1.1rem; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }
.lede { color: var(--dim); font-size: clamp(1.02rem, 1.4vw, 1.18rem); max-width: 60ch; text-wrap: pretty; }
.micro { font: 600 11px/1.2 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--label); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 20px; border-radius: var(--r);
  font: 600 15px/1 var(--ui); text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; transition: background-color .18s, border-color .18s, color .18s, transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hi); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line2); }
.btn-ghost:hover { color: var(--text); border-color: #4a5266; background: var(--panel); }
.btn-sm { min-height: 34px; padding: 0 13px; font-size: 13.5px; gap: 7px; border-radius: 6px; }
.btn-sm .icon { width: 15px; height: 15px; }

/* ── Header ──────────────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 40; background: rgba(17, 19, 24, .94);
  border-bottom: 1px solid transparent; transition: border-color .25s;
}
.site-head.scrolled { border-bottom-color: var(--line); }
@supports (backdrop-filter: blur(1px)) { .site-head { background: rgba(17, 19, 24, .82); backdrop-filter: saturate(1.4) blur(12px); } }
.head-row { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 32px; }
.brand:hover { color: var(--text); }
.nav { display: flex; gap: 2px; margin-left: 6px; }
.nav a { color: var(--dim); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 6px; transition: color .15s, background-color .15s; }
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a { position: relative; }
.nav a[aria-current] { color: var(--text); }
.nav a[aria-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -13px; height: 2px; border-radius: 2px; background: var(--accent); }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.head-actions .login { color: var(--dim); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 10px; display: inline-flex; gap: 7px; align-items: center; }
.head-actions .login:hover { color: var(--text); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line2); color: var(--text); width: 42px; height: 42px; border-radius: 6px; align-items: center; justify-content: center; cursor: pointer; }
.mobile-nav { display: none; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 7vw, 96px); position: relative; }
.hero-copy { max-width: 860px; position: relative; }
.hero h1 { max-width: 14ch; font-size: clamp(2.35rem, 4.6vw, 3.8rem); }
.hero .lede { margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.req { margin-top: 18px; font-size: 12.5px; color: var(--label); display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ── Hero layout ─────────────────────────────────────────────────────── */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(40px, 6vw, 96px); align-items: end; }

/* ── Customer routes (text-only top panel) ─────────────────────────────── */
.routes { border-top: 1px solid var(--line2); }
.routes-title { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--label); padding: 18px 0 8px; }
.route {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) 18px; gap: 16px; align-items: center;
  padding: 18px 4px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none;
  transition: background-color .18s, padding .3s var(--ease);
}
.route:hover { color: var(--text); background: var(--panel); padding-left: 12px; padding-right: 10px; }
.route > .icon { color: var(--label); width: 20px; height: 20px; transition: color .18s; }
.route:hover > .icon { color: var(--text); }
.route b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.route b + span { display: block; margin-top: 3px; color: var(--dim); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route .go { width: 16px; height: 16px; color: var(--label); transition: transform .3s var(--ease), color .18s; }
.route:hover .go { color: var(--accent); transform: translateX(3px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; display: inline-block; }

/* Latest-version bar under the hero (live from notes.json) */
.latest-strip {
  margin-top: clamp(48px, 7vw, 88px); display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border: 1px solid var(--line2); border-radius: 9px; background: var(--panel);
  color: var(--dim); text-decoration: none; font-size: 15px; transition: border-color .2s, background-color .2s;
}
.latest-strip:hover { border-color: #4a5266; color: var(--dim); background: #191c23; }
.ls-ver { color: var(--text); font-weight: 600; white-space: nowrap; }
.ls-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; white-space: nowrap; }
.ls-more .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.latest-strip:hover .ls-more .icon { transform: translateX(3px); }
.dot.live { animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(79, 185, 138, .45); } 80%, 100% { box-shadow: 0 0 0 7px rgba(79, 185, 138, 0); } }

/* What's new: version list + notes grouped by area (rendered from notes.json) */
.releases { margin-top: 44px; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.rel-meta { position: sticky; top: 88px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 22px; border-top: 1px solid var(--line2); }
.rel-meta .rv { font: 700 clamp(48px, 5.4vw, 64px)/1 var(--ui); letter-spacing: -0.035em; color: var(--text); margin: 6px 0 4px; }
.rel-meta .rmeta { font: 500 14.5px/1.4 var(--ui); color: var(--dim); }
.latest { display: inline-flex; align-items: center; gap: 8px; color: var(--good); font: 600 14px/1 var(--ui); }
.rpanel { border-top: 1px solid var(--line2); padding-top: 6px; }
.rn-group { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.rn-group:first-child { border-top: 0; }
.rn-group.plain { grid-template-columns: minmax(0, 1fr); }
.rn-cat { font: 600 15.5px/1.55 var(--ui); color: var(--text); letter-spacing: 0; text-transform: none; }
.rn-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.rn-group li { color: var(--dim); font-size: 15.5px; line-height: 1.55; max-width: 68ch; }
.rn-body.collapsed .more { display: none; }
.rn-toggle {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 14px; border-radius: 7px;
  border: 1px solid var(--line2); background: transparent; color: var(--text); font: 600 14.5px/1 var(--ui); cursor: pointer;
}
.rn-toggle:hover { border-color: #4a5266; background: var(--panel); }
.rn-toggle .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.rn-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.rn-toggle[aria-expanded="true"] .when-closed, .rn-toggle[aria-expanded="false"] .when-open { display: none; }

/* Features: tabs over the groups (JS on); every group listed in turn without JS */
.features { margin-top: 44px; }
.ftabs { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line2); }
.ftab {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 7px;
  border: 1px solid var(--line2); background: transparent; color: var(--dim);
  font: 600 14.5px/1 var(--ui); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.ftab:hover { color: var(--text); border-color: #4a5266; }
.ftab[aria-selected="true"] { background: var(--inset); border-color: var(--line2); color: var(--text); }
.ftab .n { font: 600 12.5px/1 var(--ui); color: var(--label); font-variant-numeric: tabular-nums; }
.ftab[aria-selected="true"] .n { color: var(--accent); }
.fpanel { padding-top: 6px; }
.fpanel + .fpanel { margin-top: 28px; }
.fpanel-title { font-size: 17px; padding: 10px 0 12px; }
.fpanel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3.5vw, 48px); }
.fpanel li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 15.5px; }
/* Tabbed mode: vertical tab list beside the active group */
.features.tabbed { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.features.tabbed .ftabs { flex-direction: column; flex-wrap: nowrap; gap: 2px; padding: 0; border-bottom: 0; }
.features.tabbed .ftab { justify-content: space-between; width: 100%; padding: 12px 14px; border-color: transparent; font-size: 15px; }
.features.tabbed .ftab:hover { border-color: transparent; background: var(--panel); }
.features.tabbed .ftab[aria-selected="true"] { background: var(--inset); border-color: var(--line2); }
.features.tabbed .fpanel-title { display: none; }
.features.tabbed .fpanel { padding-top: 0; border-top: 1px solid var(--line2); }
.features.tabbed .fpanel + .fpanel { margin-top: 0; }
.features.tabbed .fpanel ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Real installer capture beside the facts */
.shot { margin: 0; }
.shot img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: left top; border: 1px solid var(--line2); border-radius: 10px; background: var(--bg); box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .7); }
.shot figcaption { margin-top: 12px; font-size: 14px; color: var(--dim); }
.shot figcaption b { color: var(--text); font-weight: 600; }
.side-shot { margin-top: 36px; }
/* Installer mockup (HTML, so it stays sharp and shows the live release notes) */
.mock { border: 1px solid var(--line2); border-radius: 12px; background: var(--bg); overflow: hidden; box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .7); user-select: none; }
.mock-bar { display: flex; align-items: center; gap: 9px; height: 38px; padding-left: 14px; background: #0d0f13; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--dim); }
.mock-bar img { width: 15px; height: 17px; }
.mock-win { margin-left: auto; display: flex; height: 100%; }
.mock-win .icon { width: 44px; height: 100%; padding: 12px 15px; color: var(--label); }
.mock-body { padding: 22px 24px 20px; }
.mock-st { display: flex; align-items: center; gap: 14px; }
.mock-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line2); }
.mock-icon img { width: 26px; height: 30px; }
.mock-st b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); line-height: 1.2; }
.mock-st b + span { display: block; margin-top: 3px; font-size: 14px; color: var(--dim); }
.mock-wn, .mock-field { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.mock-lbl { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 600; color: var(--dim); }
.mock-lbl span + span { font-weight: 500; }
.mock-wn ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mock-wn li { display: flex; gap: 11px; font-size: 14px; line-height: 1.45; color: #c0cad9; }
.mock-wn li::before { content: ""; flex: none; width: 9px; height: 1.5px; margin-top: 10px; background: var(--faint); }
.mock-wn li span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mock-more { margin-top: 10px; padding-left: 20px; font-size: 13px; color: var(--label); }
.mock-more:empty { display: none; }
.mock-row { display: flex; gap: 8px; margin-top: 9px; }
.mock-input, .mock-ib { height: 38px; border: 1px solid var(--line2); border-radius: 7px; background: var(--panel); display: flex; align-items: center; }
.mock-input { flex: 1; min-width: 0; padding: 0 12px; font-size: 14px; color: var(--text); }
.mock-ib { width: 38px; justify-content: center; color: var(--dim); }
.mock-ib .icon { width: 16px; height: 16px; }
.mock-foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px 12px 24px; background: var(--panel); border-top: 1px solid var(--line); }
.mock-foot > span:first-child { margin-right: auto; font-size: 13px; color: var(--label); }
.mbtn { padding: 9px 15px; border-radius: 7px; border: 1px solid var(--line2); font-size: 13.5px; font-weight: 600; color: var(--text); }
.mbtn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ── Sections ────────────────────────────────────────────────────────── */
.section { padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--line); }
.sec-head { max-width: 720px; }
.sec-head .lede { margin-top: 18px; }

/* Facts: Monitor-style label/value rows */
.facts-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.facts-wrap .sec-head { position: sticky; top: 108px; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.facts .micro { padding-top: 5px; }
.facts p { color: var(--text); font-size: 16.5px; max-width: 58ch; }
.facts p span { color: var(--dim); }

/* Pricing */
.price-top { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.billing { display: inline-flex; padding: 4px; border: 1px solid var(--line2); border-radius: 9px; background: var(--panel); }
.billing input { position: absolute; opacity: 0; pointer-events: none; }
.billing label { padding: 9px 16px; border-radius: 6px; font-size: 14.5px; font-weight: 600; color: var(--dim); cursor: pointer; transition: background-color .15s, color .15s; display: inline-flex; gap: 8px; align-items: center; }
.billing input:checked + label { background: var(--inset); color: var(--text); }
.billing input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 1px; }
.billing .save { font: 600 12.5px/1 var(--ui); color: var(--good); }
.plans { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.plan { padding: clamp(24px, 3.4vw, 40px); display: flex; flex-direction: column; border: 1px solid var(--line2); border-radius: 12px; background: var(--panel); }
.plan.full { background: var(--inset); border-color: #3a4152; }
.plan-name { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.plan-for { color: var(--dim); margin-top: 6px; font-size: 15.5px; }
.amount { margin-top: 26px; display: flex; align-items: baseline; gap: 8px; }
.amount .cur { font-size: 18px; color: var(--dim); font-weight: 600; }
.amount .val { font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: lining-nums proportional-nums; }
.amount .per { color: var(--dim); font-size: 15px; }
.billed { margin-top: 10px; font-size: 13.5px; color: var(--label); min-height: 1.4em; }
.slots { margin-top: 26px; padding: 18px 0; border-top: 1px solid var(--line); }
.slot-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 12px; }
.slot-marks { display: inline-flex; gap: 6px; }
.slot-marks i { width: 20px; height: 20px; border-radius: 5px; background: rgba(79, 185, 138, .16); border: 1px solid rgba(79, 185, 138, .55); }
.slot-marks i.add { display: grid; place-items: center; background: transparent; border: 1px dashed var(--label); color: var(--label); font: 600 13px/1 var(--ui); font-style: normal; }
.slot-text { color: var(--dim); font-size: 15.5px; }
.slot-text b { color: var(--text); font-weight: 700; }
.incl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.incl li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.incl .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--good); flex: none; }
.incl li.no { color: var(--label); }
.incl li.no .icon { color: var(--faint); }
.both { margin-top: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 36px; padding: 18px clamp(24px, 3.4vw, 40px); border: 1px solid var(--line2); border-radius: 12px; }
.both ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 30px; }
.both li { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 15.5px; }
.both .icon { width: 18px; height: 18px; color: var(--good); }
.price-note { margin-top: 18px; font-size: 14px; color: var(--label); }

/* Close + footer */
.close { padding: clamp(72px, 10vw, 120px) 0; border-top: 1px solid var(--line); }
.close-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.close h2 { max-width: 16ch; }
.close-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--dim); }
.foot-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot nav { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.foot nav a { color: var(--dim); text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot .copy { color: var(--label); }
.disclaimer { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--label); font-size: 13px; }

/* Back to top */
.to-top {
  position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 30;
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--line2); color: var(--text); cursor: pointer;
  box-shadow: 0 16px 32px -14px rgba(0, 0, 0, .7);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), border-color .15s, background-color .15s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--accent); background: var(--inset); }
.to-top .icon { width: 20px; height: 20px; }

/* ── Legal pages ───────────────────────────────────────────────────────── */
.legal-wrap { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(64px, 9vw, 112px); }
.legal { display: grid; grid-template-columns: 230px minmax(0, 1fr); column-gap: clamp(32px, 5vw, 72px); }
.legal-head { grid-column: 1 / -1; max-width: 760px; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.legal-head h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.legal-meta { margin-top: 14px; font-size: 13px; color: var(--label); }
.legal-head .lede { margin-top: 18px; }
.legal-toc { grid-row: span 99; align-self: start; position: sticky; top: 96px; }
.legal-toc ol { list-style: none; margin: 12px 0 0; padding: 0; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: grid; grid-template-columns: 26px 1fr; padding: 7px 0; color: var(--dim); text-decoration: none; font-size: 14.5px; }
.legal-toc a::before { content: counter(toc) "."; font-variant-numeric: tabular-nums; font-size: 13.5px; color: var(--label); padding-top: 2px; }
.legal-toc a:hover { color: var(--text); }
.legal section { max-width: 72ch; padding: 6px 0 22px; }
.legal section + section { border-top: 1px solid var(--line); padding-top: 26px; }
.legal h2 { font-size: 1.4rem; letter-spacing: -0.02em; margin-bottom: 14px; }
.legal h3 { font-size: 1.05rem; margin: 18px 0 8px; }
.legal p, .legal li { color: var(--dim); font-size: 16px; line-height: 1.7; }
.legal p + p { margin-top: 10px; }
.legal section ul { margin: 10px 0; padding-left: 20px; }
.legal section li + li { margin-top: 6px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.legal th { text-align: left; font: 600 11px/1.3 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--label); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line2); }
.legal td { color: var(--dim); padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.55; }
.legal td:first-child { color: var(--text); }
@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; }
  .legal-toc { position: static; grid-row: auto; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal thead { display: none; }
  .legal tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .legal td { border: 0; padding: 2px 0; }
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav, .head-actions { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav { display: block; border-top: 1px solid var(--line); background: var(--bg); padding: 10px var(--gut) 18px; }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav a { display: flex; align-items: center; justify-content: space-between; color: var(--text); text-decoration: none; padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .mobile-nav a[aria-current] { color: var(--accent-hi); box-shadow: inset 2px 0 0 var(--accent); padding-left: 12px; }
  .mobile-nav .btn { margin-top: 16px; width: 100%; border-bottom: 0; justify-content: center; color: var(--on-accent); }
  .hero-grid { grid-template-columns: 1fr; }
  .routes { max-width: 560px; }
  .facts-wrap { grid-template-columns: 1fr; }
  .fpanel ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features.tabbed { grid-template-columns: 1fr; gap: 0; }
  .releases { grid-template-columns: 1fr; gap: 0; }
  .rel-meta { position: static; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 18px 0 14px; }
  .rel-meta .latest { flex-basis: 100%; }
  .rel-meta .rv { font-size: 40px; margin: 4px 6px 0 0; }
  .features.tabbed .ftabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 6px; padding: 0 var(--gut) 14px; margin: 0 calc(var(--gut) * -1); }
  .features.tabbed .ftabs::-webkit-scrollbar { display: none; }
  .features.tabbed .ftab { width: auto; flex: none; border-color: var(--line2); padding: 9px 14px; font-size: 14.5px; }
  .features.tabbed .fpanel { border-top: 1px solid var(--line2); }
  .facts-wrap .sec-head { position: static; }
  .side-shot { max-width: 560px; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .req { font-size: 12px; }
  .facts li { grid-template-columns: 1fr; gap: 6px; }
  .ls-text { display: none; }
  .latest-strip { justify-content: space-between; }
  .fpanel ul, .features.tabbed .fpanel ul { grid-template-columns: 1fr; }
  .rn-group { grid-template-columns: 1fr; gap: 8px; }
  .shot img { aspect-ratio: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
