/* Landing page. The animated demonstration has its own demo.css, which relies on these tokens. */

@font-face { font-family: 'Manrope Variable'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/static/fonts/manrope-cyrillic-wght-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope Variable'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/static/fonts/manrope-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded Variable'; font-style: normal; font-weight: 200 900; font-display: swap; src: url('/static/fonts/unbounded-cyrillic-wght-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded Variable'; font-style: normal; font-weight: 200 900; font-display: swap; src: url('/static/fonts/unbounded-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  --bg: #14110f;
  --bg-deep: #0f0c0a;
  --panel: #1d1815;
  --panel-2: #2b221c;
  --line: #342b25;
  --line-2: #5a4a3f;
  --text: #f6eee6;
  --text-2: #d6cabe;
  --text-3: #bdafa2;
  --accent: #ff7a2f;
  --accent-text: #1a0e05;
  --count: #ffa366;
  --info: #cfe8ff;

  --ok: #b4e6bd;
  --ok-bg: #16291c;
  --bad: #ffb199;
  --bad-bg: #3b1a14;
  --wait: #ffd29a;
  --wait-bg: #3b2410;

  --font-title: 'Unbounded Variable', 'Segoe UI', sans-serif;
  --font-text: 'Manrope Variable', 'Segoe UI', sans-serif;
  --gutter: 20px;
  --header: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-text);
  overflow-wrap: break-word;
}
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; }
a { color: var(--count); }
a:hover { color: var(--text); }
code { font: .92em/1.5 Consolas, 'Cascadia Mono', monospace; }
:focus-visible { outline: 2px solid var(--info); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 40;
  padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--bg);
}
.skip-link:focus { top: 12px; color: var(--bg); }

.eyebrow {
  margin-bottom: 14px;
  color: var(--count);
  font: 600 13px/1.4 var(--font-title);
  letter-spacing: .04em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 18px;
  border: 1px solid transparent; border-radius: 10px;
  font: 700 15px/1.2 var(--font-text); text-align: center; text-decoration: none;
  cursor: pointer;
  transition: transform .16s var(--ease), background-color .16s, border-color .16s, box-shadow .2s;
}
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: #ff8f4f; color: var(--accent-text); box-shadow: 0 8px 36px -8px rgba(255, 122, 47, .8); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn-large { min-height: 62px; padding: 16px 30px; font: 700 17px/1.2 var(--font-title); }
.btn-small { min-height: 38px; padding: 7px 14px; font-size: 14px; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-3); color: var(--text); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--text); font-weight: 700; text-underline-offset: 4px; }
.link-arrow::after { content: '↓'; color: var(--count); }

/* ---------- Header ---------- */

.banner {
  position: relative; z-index: 31;
  padding: 9px var(--gutter);
  background: var(--accent); color: var(--accent-text);
  font-weight: 700; font-size: 14px; text-align: center;
}

.site-header {
  position: sticky; top: 0; z-index: 30;
  height: var(--header); margin-bottom: calc(var(--header) * -1);
  border-bottom: 1px solid transparent;
  transition: background-color .25s, border-color .25s;
}
.site-header.scrolled { background: rgba(15, 12, 10, .98); border-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; height: 100%; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font: 700 15px/1 var(--font-title); letter-spacing: .06em;
}
.brand:hover { color: var(--text); }
.header-nav { display: flex; gap: 22px; margin-left: auto; }
.header-nav a, .header-account { padding-block: 10px; color: var(--text-2); font-weight: 600; font-size: 15px; text-decoration: none; }
.header-nav a:hover, .header-account:hover { color: var(--text); }
.header-nav a[aria-current="page"], .header-account[aria-current="page"] { color: var(--count); }

/* Only the landing page lets the first screen show through. Elsewhere the page starts below it. */
.site-header-solid {
  margin-bottom: 0;
  background: var(--bg-deep); border-bottom-color: var(--line);
}
.site-header-solid.scrolled { background: var(--bg-deep); }

.brand span { max-width: 14em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-side { display: flex; align-items: center; gap: 16px; min-width: 0; }
.header-side > .header-account { max-width: 11em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-side > .header-login { flex: none; max-width: none; }

/* A plain details element, so the menu opens without any script. */
.header-menu { display: none; position: relative; }
.header-menu summary {
  display: grid; place-items: center;
  width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--bg-deep); cursor: pointer; list-style: none;
}
.header-menu summary::-webkit-details-marker { display: none; }
.menu-icon { display: grid; gap: 4px; width: 18px; }
.menu-icon i { display: block; height: 2px; background: var(--text); }
.header-menu[open] summary { border-color: var(--text-3); }
.header-menu-panel {
  position: absolute; top: calc(100% + 8px); right: 0;
  display: grid; width: min(250px, calc(100vw - 2 * var(--gutter))); padding: 6px;
  border: 1px solid var(--line-2); border-radius: 16px;
  background: var(--panel); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8);
}
.header-menu-panel a {
  display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 10px;
  color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none;
  overflow-wrap: anywhere;
}
.header-menu-panel a:hover { background: var(--panel-2); color: var(--text); }
.header-menu-panel a[aria-current="page"] { color: var(--count); }
.header-menu-panel .header-account { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }

@media (max-width: 1080px) {
  .header-nav { display: none; }
  .header-row { justify-content: space-between; }
  .header-menu { display: block; }
}
@media (max-width: 480px) {
  /* The account link is in the menu: a long nickname would not fit beside the button. */
  .header-side > .header-account:not(.header-login) { display: none; }
  /* The sign-in link and the page itself lead to registration, and three controls do not fit. */
  .header-register { display: none; }
  .header-side { gap: 10px; }
  .brand span { max-width: 7em; }
}

/* ---------- First screen ---------- */

.hero {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-start;
  min-height: min(100svh, 920px);
  background: linear-gradient(180deg, var(--bg-deep), #2a1712 72%, #3a1f15);
}
#hero-scene {
  position: absolute; inset: 0; z-index: 0;
  display: block; width: 100%; height: 100%;
  image-rendering: pixelated;
}
.scene-tag {
  position: absolute; top: 0; left: 0; z-index: 1;
  padding: 3px 9px; border-radius: 6px;
  background: rgba(15, 12, 10, .86); border: 1px solid var(--line-2);
  color: var(--text); font: 700 12px/1.3 var(--font-text); white-space: nowrap;
  pointer-events: none;
  visibility: hidden; /* Stays hidden until scene.js has positioned it. */
}
.scene-tag[style*="transform"] { visibility: visible; }
.hero-copy {
  position: relative; z-index: 2;
  padding-top: calc(var(--header) + clamp(40px, 9vh, 96px));
  padding-bottom: clamp(240px, 36vh, 360px);
}
.hero h1 {
  max-width: 13em;
  font: 700 clamp(31px, 4.5vw, 58px)/1.14 var(--font-title);
  text-wrap: balance;
}
.hero-text { max-width: 36em; margin-top: 22px; color: var(--text-2); font-size: clamp(17px, 1.6vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 32px; }
.hero-meta { margin-top: 14px; color: var(--text-2); font-size: 14px; }
.hero .eyebrow { font-size: 15px; }
.hero-pause {
  position: absolute; right: var(--gutter); bottom: 16px; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line-2); border-radius: 10px; background: rgba(15, 12, 10, .72); color: var(--text); cursor: pointer;
}
.hero-pause[hidden] { display: none; }
.hero-pause:hover { background: var(--panel-2); }
.hero-pause svg { width: 12px; height: 12px; fill: currentColor; }
.hero-pause .hero-icon-pause { display: none; }
.hero-pause.is-playing .hero-icon-pause { display: inline; }
.hero-pause.is-playing .hero-icon-play { display: none; }

@media (min-width: 900px) {
  .hero-copy > * { max-width: 620px; }
}

/* ---------- The band of popular mods ---------- */

.top-mods { padding-block: 22px; background: var(--bg-deep); border-bottom: 1px solid var(--line); overflow: hidden; }
.top-mods-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 12px; }
.top-mods-head h2 { font: 700 15px/1.3 var(--font-title); }
.top-mods-source { color: var(--text-3); font-size: 13px; }
.top-mods-all { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; font-size: 14px; font-weight: 700; text-underline-offset: 4px; }
.top-mods-pause { min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: transparent; color: var(--text-2); font: 700 13px/1 var(--font-text); cursor: pointer; }
.top-mods-pause[hidden] { display: none; }
.top-mods-pause:hover { color: var(--text); border-color: var(--text-3); }
.top-mods-window { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.top-mods-track { display: flex; width: max-content; animation: top-mods-move 70s linear infinite; }
.top-mods:hover .top-mods-track, .top-mods:focus-within .top-mods-track, .top-mods.is-paused .top-mods-track { animation-play-state: paused; }
@keyframes top-mods-move { to { transform: translateX(-50%); } }
.top-mods-row { display: flex; flex: none; gap: 10px; padding-right: 10px; }
.top-mod {
  display: flex; align-items: center; gap: 10px; width: 236px; min-height: 64px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); text-decoration: none;
}
.top-mod:hover { border-color: var(--line-2); color: var(--text); }
.top-mod img { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--bg-deep); object-fit: cover; }
.top-mod-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.top-mod-title { overflow: hidden; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.top-mod-count { color: var(--text-3); font-size: 12px; white-space: nowrap; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 9vw, 120px); }
.section-tint { background: var(--bg-deep); border-block: 1px solid var(--line); }
/* The landing page alternates these, so its sections can be told apart. */
.section-deep { background: var(--bg-deep); }
.section-warm { background: #1c1510; border-block: 1px solid var(--line); }
/* Follows a section with the same background, whose bottom padding is space enough. */
.section-join { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { font: 700 clamp(26px, 3.4vw, 42px)/1.18 var(--font-title); text-wrap: balance; }
.lead { margin-top: 16px; color: var(--text-2); font-size: 18px; }

/* Armed by site.js and only below the fold, so without the script nothing is ever hidden. */
.js .reveal.armed {
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js .reveal.armed.in { opacity: 1; transform: none; }

/* ---------- Comparison ---------- */

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.compare-before, .compare-after { padding: clamp(22px, 3vw, 38px); border-radius: 16px; }
.compare-before { border: 1px solid var(--line); background: var(--bg-deep); }
.compare-after {
  border: 1px solid rgba(255, 122, 47, .55);
  background: radial-gradient(120% 90% at 0% 0%, rgba(255, 122, 47, .2), transparent 62%), var(--panel);
}
.compare h3 { font: 700 18px/1.3 var(--font-title); }

.strike-list { counter-reset: step; display: grid; gap: 16px; margin-top: 24px; }
.strike-list li {
  counter-increment: step;
  position: relative; padding-left: 30px;
  color: var(--text-3);
}
.strike-list li::before {
  content: counter(step);
  position: absolute; left: 0; top: .4em;
  color: var(--text-3); font: 700 13px/1 var(--font-title);
}
/* A background line rather than a pseudo-element, so that it follows text wrapped to two lines. */
.strike-list span {
  background: linear-gradient(var(--accent), var(--accent)) 0 56% / 100% 2px no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.strike-list.armed span { transition: background-size .55s var(--ease), color .4s; }
.strike-list.armed:not(.in) span { background-size: 0 2px; color: var(--text); }
.strike-list.armed li:nth-child(1) span { transition-delay: .15s; }
.strike-list.armed li:nth-child(2) span { transition-delay: .55s; }
.strike-list.armed li:nth-child(3) span { transition-delay: .95s; }
.strike-list.armed li:nth-child(4) span { transition-delay: 1.35s; }
.strike-list.armed li:nth-child(5) span { transition-delay: 1.75s; }

.code-big { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.code-big span {
  display: grid; place-items: center;
  width: clamp(38px, 5vw, 56px); aspect-ratio: 4 / 5;
  border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--bg-deep); color: var(--count);
  font: 700 clamp(18px, 2.4vw, 26px)/1 var(--font-title);
}
.compare-note { margin-top: 18px; color: var(--text-2); }

/* ---------- Features ---------- */

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cell {
  grid-column: span 2;
  display: flex; flex-direction: column;
  padding: 24px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--panel);
}
.cell-wide { grid-column: span 3; }
.cell-long { grid-column: span 6; }
.cell h3 { font: 700 18px/1.3 var(--font-title); }
.cell p { margin-top: 10px; color: var(--text-2); font-size: 15px; }

.mini { margin-top: auto; padding-top: 20px; }

.chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 700; white-space: nowrap;
}
.chip-fabric { background: #2f2a1c; color: #eadcae; }
.chip-neo { background: #3a2114; color: #ffc9a3; }
.chip-forge { background: var(--panel-2); color: var(--text-2); }
.chip-ok { background: var(--ok-bg); color: var(--ok); }

.pack-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-top: 1px solid var(--line);
}
.pack-row:first-child { border-top: 0; }
.pack-name { min-width: 0; font-weight: 700; font-size: 15px; }

.cell-link { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; margin-top: 8px; font-weight: 700; text-underline-offset: 4px; }

.mini-sources { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.source { color: var(--text-2); font: 700 14px/1.2 var(--font-title); }

.mini-status { display: grid; gap: 6px; }
.mini-status li {
  padding: 6px 12px; border-radius: 10px;
  font-size: 13px; font-weight: 700;
  animation: status-turn 9s infinite;
}
.status-ok { background: var(--ok-bg); color: var(--ok); }
.status-bad { background: var(--bad-bg); color: var(--bad); animation-delay: 3s !important; }
.status-wait { background: var(--wait-bg); color: var(--wait); animation-delay: 6s !important; }
@keyframes status-turn {
  0%, 33%, 100% { transform: none; }
  6%, 27% { transform: translateX(6px); }
}

.field-label { display: block; margin-bottom: 6px; color: var(--text-2); font-size: 13px; }
.field-fake { font: 700 15px/1 var(--font-title); letter-spacing: .08em; color: var(--count); }

.mini-friends { display: grid; gap: 8px; }
.mini-friends li { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; }
.mini-friends span { margin-left: auto; color: var(--text-3); font-size: 13px; font-weight: 600; }
.dot { flex: none; width: 10px; height: 10px; background: var(--line-2); }
.dot-on { background: var(--accent); animation: dot-pulse 2.4s ease-in-out infinite; }
@keyframes dot-pulse { 50% { box-shadow: 0 0 0 4px rgba(255, 122, 47, .28); } }

.mini-server {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-top: 20px; padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-deep);
}
.server-mark { flex: none; width: 34px; height: 34px; background: linear-gradient(#123f4a 70%, #1f6f7a 70%); }
.server-name { font-weight: 700; }
.bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; margin-left: auto; }
.bars i { width: 5px; background: var(--ok); animation: bar-level 3.6s ease-in-out infinite; }
.bars i:nth-child(1) { height: 30%; }
.bars i:nth-child(2) { height: 55%; animation-delay: .25s; }
.bars i:nth-child(3) { height: 78%; animation-delay: .5s; }
.bars i:nth-child(4) { height: 100%; animation-delay: .75s; }
@keyframes bar-level { 50% { opacity: .45; } }

/* ---------- News ---------- */

.news-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.news-item { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.news-item time { color: var(--count); font-size: 13px; font-weight: 700; }
.news-item h3 { margin-top: 8px; font: 700 18px/1.3 var(--font-title); }
.news-item p { margin-top: 10px; color: var(--text-2); font-size: 15px; white-space: pre-line; }

/* ---------- Download ---------- */

.download-panel {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px);
  padding: clamp(24px, 5vw, 64px);
  border: 1px solid rgba(255, 122, 47, .55); border-radius: 24px;
  background:
    radial-gradient(90% 80% at 12% 0%, rgba(255, 122, 47, .3), transparent 65%),
    radial-gradient(70% 70% at 100% 100%, rgba(255, 122, 47, .1), transparent 70%),
    var(--panel);
}
.download-main { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.download-flame { filter: drop-shadow(0 0 24px rgba(255, 122, 47, .7)); animation: flame-breathe 3.2s ease-in-out infinite; }
@keyframes flame-breathe { 50% { filter: drop-shadow(0 0 40px rgba(255, 122, 47, .95)); } }
.download-main h2 { margin: 20px 0 26px; font: 700 clamp(28px, 4vw, 48px)/1.12 var(--font-title); }
.download-wait { color: var(--text-2); }
.download-action { margin-top: 22px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 16px; width: 100%; margin-top: 28px; }
.facts dt { color: var(--text-3); font-size: 13px; }
.facts dd { font-weight: 800; }

.checksum { width: 100%; margin-top: 24px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg-deep); }
.checksum-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: var(--text-3); font-size: 13px; font-weight: 700; }
.checksum code { display: block; color: var(--text-2); overflow-wrap: anywhere; }
.copy-button { display: none; }
.js .copy-button { display: inline-flex; }

.download-main:only-child { grid-column: 1 / -1; }
.download-side { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.note-block h3 { font-size: 16px; font-weight: 800; }
.note-block p { margin-top: 6px; color: var(--text-2); font-size: 15px; white-space: pre-line; }
.note-warn { padding: 16px 18px; border-radius: 16px; background: var(--wait-bg); }
.note-warn h3 { color: var(--wait); }
.note-warn p { color: var(--text); }
.command {
  display: block; margin-top: 10px; padding: 10px 12px; border-radius: 10px;
  background: var(--bg-deep); color: var(--text); overflow-wrap: anywhere;
}
.publisher { color: var(--text-2); font-size: 14px; }

/* ---------- Questions ---------- */

.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; align-items: start; }
.faq-wrap .section-head { margin: 0; }
.faq details { border-top: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 18px 2px; font-weight: 800; font-size: 17px; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex: none; color: var(--count);
  font: 700 20px/1.2 var(--font-title);
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--count); }
.faq details p { padding: 0 2px 20px; color: var(--text-2); }
.faq code { padding: 1px 5px; border-radius: 4px; background: var(--panel-2); color: var(--text); }

/* ---------- Footer ---------- */

.site-footer { padding-block: 44px; background: var(--bg-deep); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.footer-brand p { margin-top: 10px; color: var(--text-2); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- Narrow screens ---------- */

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell, .cell-wide { grid-column: span 1; }
  .cell-long { grid-column: span 1; }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; --header: 58px; }
  .btn-small { min-height: 44px; }
  .hero { min-height: 0; }
  .hero-copy { padding-bottom: max(300px, 72vw); }
  .compare, .download-panel, .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .cell, .cell-wide, .cell-long { grid-column: span 1; }
  .btn-large { width: 100%; padding-inline: 18px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .link-arrow { align-self: flex-start; }
}

/* ---------- Calm mode ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn-primary:hover { transform: none; }
  /* Without movement the band is a row to scroll by hand, and the copy would only repeat it. */
  .top-mods-window { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; -webkit-mask-image: none; mask-image: none; }
  .top-mods-copy, .top-mods-pause { display: none; }
}

@media (forced-colors: active) {
  .dot, .server-mark { background: CanvasText; }
  .strike-list span { text-decoration: line-through; background: none; }
}
