/* RailOxide website. Zenburn palette from crates/ui/src/theme.rs.
   Motion is limited to transform and opacity on small elements, and only runs
   when the reader has not asked for reduced motion. */

:root {
  --bg: #1f1f1f;
  --bg-alt: #262626;
  --surface: #2b2b2b;
  --raised: #333333;
  --app-bg: #3f3f3f;
  --border: #3f3f3f;
  --border-strong: #4f4f4f;
  --border-hover: #5f5f5f;
  --text: #dcdccc;
  --muted: #a8a89a;
  --subtle: #7f7f6f;
  --teal: #8cd0d3;
  --cyan: #93e0e3;
  --green: #7f9f7f;
  --green-light: #9fc59f;
  --yellow: #f0dfaf;
  --orange: #dfaf8f;
  --brand: #d9963d;
  --red: #cc9393;
  --magenta: #dc8cc3;
  --blue: #94bff3;
  --olive: #bfcf9f;
  --on-accent: #2b2b2b;
  --accent: var(--teal);
  --accent-glow: rgba(140, 208, 211, 0.16);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Ubuntu, Cantarell, "Noto Sans", "DejaVu Sans", sans-serif;
  --mono: ui-monospace, "DejaVu Sans Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --radius: 12px;
  --shadow-shot: 0 24px 60px rgba(0, 0, 0, 0.5), 0 4px 14px rgba(0, 0, 0, 0.35);
  --header-h: 60px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--cyan);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 680;
  line-height: 1.2;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

code {
  font-family: var(--mono);
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--teal);
  color: var(--on-accent);
  font-weight: 650;
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
  color: var(--on-accent);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 650;
  text-decoration: none;
  line-height: 1.2;
}

.btn-sm {
  min-height: 34px;
  padding: 0 14px;
  font-size: 0.9375rem;
}

.btn-primary,
.btn-primary:hover {
  background: var(--teal);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--cyan);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(31, 31, 31, 0.94);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wordmark:hover {
  color: var(--text);
}

.wordmark img {
  width: 30px;
  height: 30px;
  flex: none;
}

.ox {
  color: var(--brand);
}

.site-nav {
  min-width: 0;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 6px 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  white-space: nowrap;
  border-radius: 6px;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-short {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.socials {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  text-decoration: none;
  opacity: 0.75;
}

.social:hover,
.social:focus-visible {
  opacity: 1;
  background: var(--surface);
}

.social:focus-visible {
  outline-offset: 1px;
  border-radius: 8px;
}

.social img {
  width: 20px;
  height: 20px;
}

.header-divider {
  width: 1px;
  height: 22px;
  background: var(--border-strong);
}

/* Hero */

.hero {
  position: relative;
  padding: 28px 0 52px;
  background:
    radial-gradient(ellipse 55% 60% at 0% 0%, rgba(217, 150, 61, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 70% at 100% 35%, rgba(140, 208, 211, 0.11), transparent 70%),
    var(--bg);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(220, 220, 204, 0.07) 1px, transparent 1.5px);
  background-size: 22px 22px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-bottom: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(43, 43, 43, 0.8);
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.chip-tor {
  color: var(--green-light);
  border-color: rgba(159, 197, 159, 0.4);
}

.pulse {
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
}

.pulse svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 14px;
  height: 14px;
}

.pulse::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  background: var(--green-light);
  opacity: 0;
}

.hero h1 {
  font-size: clamp(2.1rem, min(4.2vw, 6.4vh), 3.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.grad {
  color: var(--yellow);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad {
    background: linear-gradient(95deg, var(--yellow) 0%, var(--orange) 45%, var(--brand) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.hero-sub {
  margin-top: 14px;
  max-width: 34em;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* Install card */

.install-card {
  position: relative;
  margin-top: 22px;
  padding: 16px 18px 16px;
  background: var(--raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.install-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--orange) 70%, var(--brand));
}

.platforms {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.install-title {
  float: left;
  padding: 0;
  margin: 0 16px 10px 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 34px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 12px;
  padding: 3px;
  width: fit-content;
  max-width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.tabs label {
  padding: 3px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  cursor: pointer;
  white-space: nowrap;
}

.tabs label:hover {
  color: var(--text);
}

.panel {
  display: none;
  clear: both;
}

#pf-flatpak:checked ~ .panel-flatpak,
#pf-source:checked ~ .panel-source,
#pf-windows:checked ~ .panel-windows {
  display: block;
}

#pf-flatpak:checked ~ .tabs label[for="pf-flatpak"],
#pf-source:checked ~ .tabs label[for="pf-source"],
#pf-windows:checked ~ .tabs label[for="pf-windows"] {
  background: var(--surface);
  color: var(--teal);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

#pf-flatpak:focus-visible ~ .tabs label[for="pf-flatpak"],
#pf-source:focus-visible ~ .tabs label[for="pf-source"],
#pf-windows:focus-visible ~ .tabs label[for="pf-windows"] {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.panel-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.hero-meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Command blocks */

.cmd {
  position: relative;
}

.cmd pre {
  margin: 0;
  padding: 11px 14px;
  background: #181818;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.js .cmd pre {
  padding-right: 76px;
}

.cmd .ln {
  display: block;
  padding-left: 2ch;
  text-indent: -2ch;
}

.cmd .ln::before {
  content: "$ ";
  content: "$ " / "";
  color: var(--green-light);
  user-select: none;
  -webkit-user-select: none;
}

.cmd-ps .ln {
  padding-left: 4ch;
  text-indent: -4ch;
}

.cmd-ps .ln::before {
  content: "PS> ";
  content: "PS> " / "";
  color: var(--blue);
}

.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  margin: 0 -0.8em 0 0.2em;
  vertical-align: -0.2em;
  background: var(--teal);
  opacity: 0.7;
  text-indent: 0;
}

.copy {
  position: absolute;
  top: 7px;
  right: 7px;
  min-width: 60px;
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text);
  font: 600 0.8125rem/1.4 var(--sans);
  cursor: pointer;
}

.copy[hidden] {
  display: none;
}

.copy:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.copy.is-copied {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--on-accent);
}

/* Hero visual */

.hero-stage {
  position: relative;
  padding: 0 0 36px 36px;
}

.shot-frame {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--app-bg);
  box-shadow: var(--shadow-shot);
}

.shot-frame:focus-visible {
  outline-offset: 4px;
  border-radius: var(--radius);
}

.hero-extension {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34%;
  max-width: 230px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.62), 0 6px 18px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.14);
  transform: perspective(1400px) rotateY(-8deg);
  transform-origin: 50% 50%;
  backface-visibility: hidden;
}

/* A transparent outline makes Firefox antialias the edges of the turned popup. */
.hero-extension:not(:focus-visible) {
  outline: 1px solid transparent;
}

.hero-caption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.8125rem;
  text-align: right;
}

/* Facts */

.facts {
  padding: 40px 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  list-style: none;
}

.fact p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.fact-title {
  margin: 12px 0 4px;
  font-size: 1.0625rem;
  letter-spacing: 0;
}

.icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  border: 1px solid currentColor;
  background: var(--surface);
  overflow: hidden;
}

.icon-tile svg {
  width: 20px;
  height: 20px;
}

.tile-teal { color: var(--teal); }
.tile-green { color: var(--green-light); }
.tile-orange { color: var(--orange); }
.tile-yellow { color: var(--yellow); }
.tile-magenta { color: var(--magenta); }

/* WalletConnect's mark keeps its own colours: white on WalletConnect blue,
   as the app draws it. */
.tile-wc {
  border-color: rgba(51, 150, 255, 0.55);
}

.wc-mark {
  display: flex;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #3396ff;
}

.icon-tile .wc-mark svg {
  width: 30px;
  height: 30px;
}

/* Feature rows */

.accent-teal { --accent: var(--teal); --accent-glow: rgba(140, 208, 211, 0.17); }
.accent-green { --accent: var(--green-light); --accent-glow: rgba(159, 197, 159, 0.17); }
.accent-cyan { --accent: var(--cyan); --accent-glow: rgba(147, 224, 227, 0.16); }
.accent-orange { --accent: var(--orange); --accent-glow: rgba(223, 175, 143, 0.17); }
.accent-blue { --accent: var(--blue); --accent-glow: rgba(148, 191, 243, 0.16); }
.accent-yellow { --accent: var(--yellow); --accent-glow: rgba(240, 223, 175, 0.14); --accent-2: rgba(220, 140, 195, 0.14); }

.feature {
  padding: 96px 0;
  overflow: hidden;
}

.feature + .feature {
  border-top: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 64px;
  align-items: center;
}

.feature-flip .feature-grid {
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
}

.feature-flip .feature-text {
  order: 2;
}

.feature-text > p,
.band-intro > p {
  margin-top: 16px;
  color: var(--muted);
}

.feature-text h2,
.band-intro h2 {
  margin-top: 10px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature-text > .kicker,
.band-intro > .kicker {
  margin-top: 0;
  color: var(--accent);
}

.kicker-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 8px;
  border: 1px solid currentColor;
  background: var(--surface);
  overflow: hidden;
}

.kicker-icon svg {
  width: 16px;
  height: 16px;
}

.bullets {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  list-style: none;
}

.bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 0.975rem;
  line-height: 1.55;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}

.more-link {
  display: inline-block;
  margin-top: 20px;
  font-weight: 650;
  color: var(--accent);
}

.more-link:hover {
  color: var(--text);
}

.callout {
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
}

.callout h3 {
  font-size: 1rem;
  color: var(--accent);
}

.callout p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Screenshot compositions */

figure {
  margin: 0;
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.shots {
  position: relative;
  isolation: isolate;
}

.shots::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -18% -14%;
  background: radial-gradient(closest-side, var(--accent-glow), transparent);
  pointer-events: none;
}

.accent-yellow .shots::before {
  background:
    radial-gradient(closest-side at 35% 45%, var(--accent-glow), transparent),
    radial-gradient(closest-side at 75% 70%, var(--accent-2), transparent);
}

.shot-main {
  width: 90%;
}

.shot-main figcaption {
  max-width: 48%;
}

.shot-over {
  position: relative;
  z-index: 1;
  width: 46%;
  margin: -18% -2% 0 auto;
}

.shot-over-narrow {
  width: 38%;
  margin-top: -22%;
}

.shot-over .shot-frame {
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6), 0 6px 16px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.14);
}

.feature-flip .shot-main {
  margin-left: auto;
}

.feature-flip .shot-over {
  margin-right: auto;
  margin-left: -2%;
}

.feature-flip .shot-main figcaption {
  margin-left: auto;
  text-align: right;
}

.shots-single .shot-main {
  width: 100%;
}

.shots-single .shot-main figcaption {
  max-width: none;
}

.shot-portrait {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}

/* Extension band */

.band {
  position: relative;
  padding: 96px 0 88px;
  background:
    radial-gradient(ellipse 60% 55% at 50% 62%, rgba(148, 191, 243, 0.1), transparent 70%),
    linear-gradient(180deg, #232830 0%, var(--bg-alt) 40%, var(--bg-alt) 100%);
  border-top: 1px solid rgba(148, 191, 243, 0.25);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.band-intro {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}

.band-intro .kicker {
  justify-content: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 18px 18px 18px 60px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9375rem;
  line-height: 1.55;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(148, 191, 243, 0.14);
  border: 1px solid var(--blue);
  color: var(--blue);
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 28px;
  text-align: center;
}

.ext-shots {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  margin-top: 56px;
}

.ext-shots figure {
  width: 260px;
  flex: none;
  text-align: center;
}

.ext-shots figure:nth-child(2) {
  margin-top: 44px;
}

.ext-shots .shot-frame {
  border-color: rgba(148, 191, 243, 0.2);
}

.band-details {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: end;
  max-width: 980px;
  margin: 48px auto 0;
}

.band-details .bullets {
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
  margin-top: 0;
}

.band-details .more-link {
  margin-top: 0;
}

/* Cards */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.more {
  padding: 88px 0;
  border-top: 1px solid var(--border);
}

.more h2 {
  text-align: center;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
  list-style: none;
}

.mini {
  padding: 20px;
}

.mini h3 {
  margin-top: 14px;
  font-size: 1.0625rem;
}

.mini p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Stack section */

.stack {
  padding: 88px 0;
  background:
    radial-gradient(ellipse 60% 70% at 100% 0%, rgba(217, 150, 61, 0.08), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--border);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
  list-style: none;
}

.stack-card {
  position: relative;
  overflow: hidden;
  padding: 26px 22px 24px;
}

.stack-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--stack-color);
}

.stack-rust { --stack-color: var(--brand); }
.stack-gpui { --stack-color: var(--blue); }
.stack-wasm { --stack-color: var(--magenta); }
.stack-arti { --stack-color: var(--green-light); }

.stack-card h3 {
  padding-right: 20px;
  font-size: clamp(1.375rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stack-card h3 a {
  color: var(--stack-color);
  text-decoration: none;
}

.stack-card h3 a::after {
  content: "\2197";
  content: "\2197" / "";
  position: absolute;
  top: 22px;
  right: 20px;
  color: var(--subtle);
  font-size: 1rem;
  font-weight: 600;
}

.stack-card h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.stack-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Install section */

.install {
  padding: 88px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.lead {
  margin-top: 12px;
  max-width: 44em;
  color: var(--muted);
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.install-option {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}

.install-option h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.install-wide {
  grid-column: 1 / -1;
}

.install-option > p:not(.cmd-label) {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.install-option strong {
  color: var(--text);
  font-weight: 650;
}

.install-option .more-link {
  margin-top: 0;
}

.install-option .note code {
  padding: 1px 5px;
  background: var(--bg);
  border-radius: 4px;
  color: var(--text);
  font-size: 0.85em;
}

.cmd-label {
  margin-bottom: -4px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge {
  padding: 1px 9px;
  border: 1px solid rgba(159, 197, 159, 0.45);
  border-radius: 999px;
  color: var(--green-light);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

details {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(31, 31, 31, 0.5);
}

summary {
  padding: 8px 12px;
  color: var(--teal);
  font-size: 0.9375rem;
  cursor: pointer;
}

details[open] summary {
  border-bottom: 1px solid var(--border);
}

details .cmd {
  padding: 10px;
}

details .copy {
  top: 17px;
  right: 17px;
}

/* Footer */

.site-footer {
  padding: 0 0 48px;
  background: #1a1a1a;
  border-top: 1px solid var(--border);
}

.disclaimer {
  padding: 28px 0 26px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.disclaimer h2 {
  margin-bottom: 6px;
  color: var(--subtle);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.disclaimer p {
  max-width: 62em;
}

.footer-inner {
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 40px;
  align-items: start;
}

.footer-brand p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-socials {
  margin: 12px 0 0 -8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  font-size: 0.9375rem;
}

/* Hover and motion */

@media (hover: hover) {
  .card:hover,
  .steps li:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .card,
  .steps li,
  .btn,
  .copy,
  .site-nav a,
  .social,
  .tabs label {
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
  }

  .hero-extension {
    will-change: transform;
    animation: turn 6.3s ease-in-out infinite alternate;
  }

  .pulse::after {
    animation: pulse 2.4s ease-out infinite;
  }

  .cursor {
    animation: blink 1.1s steps(1, end) infinite;
  }
}

@keyframes turn {
  from { transform: perspective(1400px) rotateY(-16deg); }
  to { transform: perspective(1400px) rotateY(12deg); }
}

@keyframes pulse {
  from { transform: scale(1); opacity: 0.55; }
  to { transform: scale(2.8); opacity: 0; }
}

@keyframes blink {
  0% { opacity: 0.7; }
  50% { opacity: 0; }
}

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

  .card:hover,
  .steps li:hover {
    transform: none;
  }
}

/* Responsive */

@media (max-width: 1179px) {
  .nav-wide,
  .nav-long {
    display: none;
  }

  .nav-short {
    display: inline;
  }
}

@media (max-width: 979px) {
  .nav-mid {
    display: none;
  }
}

@media (max-width: 1079px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .hero-text {
    max-width: 720px;
  }

  .hero-visual {
    max-width: 820px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, min(5.4vw, 5.6vh), 3.2rem);
  }

  .feature-grid,
  .feature-flip .feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .feature-flip .feature-text {
    order: 0;
  }

  .feature-text {
    max-width: 720px;
  }

  .shots,
  .shots-group {
    max-width: 760px;
  }

  .facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .more-grid,
  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }

  .band-details {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 759px) {
  :root {
    --header-h: 56px;
  }

  body {
    font-size: 1rem;
  }

  .container {
    padding: 0 16px;
  }

  .site-nav {
    display: none;
  }

  .header-inner {
    gap: 12px;
  }

  .header-actions {
    gap: 10px;
  }

  .wordmark {
    font-size: 0.9375rem;
    letter-spacing: 0.12em;
  }

  .wordmark img {
    width: 28px;
    height: 28px;
  }

  .hero {
    padding: 18px 0 44px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero-sub {
    margin-top: 10px;
    font-size: 0.975rem;
    line-height: 1.55;
  }

  .install-card {
    margin-top: 18px;
    padding: 14px;
  }

  .install-title {
    float: none;
    margin-bottom: 6px;
    line-height: 1.4;
  }

  .tabs {
    width: 100%;
  }

  .tabs label {
    flex: 1 1 auto;
    padding: 3px 8px;
    text-align: center;
    font-size: 0.8125rem;
  }

  .cmd pre {
    padding: 10px 12px;
    font-size: 0.78rem;
  }

  .js .cmd pre {
    padding-right: 12px;
    padding-top: 40px;
  }

  .hero-stage {
    padding: 0 0 24px 18px;
  }

  .hero-extension {
    width: 32%;
  }

  .hero-caption {
    text-align: left;
  }

  .facts-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .fact {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 14px;
  }

  .fact .icon-tile {
    grid-row: span 2;
  }

  .fact-title {
    margin-top: 0;
  }

  .feature,
  .band {
    padding: 64px 0;
  }

  .shot-main {
    width: 94%;
  }

  .shot-main figcaption {
    max-width: 44%;
  }

  .shot-over {
    width: 50%;
  }

  .shot-over-narrow {
    width: 42%;
  }

  .band-intro {
    text-align: left;
  }

  .band-intro .kicker {
    justify-content: flex-start;
  }

  .ext-shots {
    justify-content: flex-start;
    gap: 16px;
    margin: 40px -16px 0;
    padding: 0 16px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
  }

  .ext-shots figure {
    width: 220px;
    scroll-snap-align: start;
  }

  .ext-shots figure:nth-child(2) {
    margin-top: 0;
  }

  .band-details .bullets {
    grid-template-columns: minmax(0, 1fr);
  }

  .more-grid,
  .install-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .more,
  .stack,
  .install {
    padding: 64px 0;
  }

  .install-option {
    padding: 18px 16px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 599px) {
  .stack-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 479px) {
  .header-divider {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .socials {
    gap: 0;
  }

  .header-actions .social {
    width: 30px;
    height: 30px;
  }

  .header-actions .btn-sm {
    padding: 0 12px;
  }

  .wordmark {
    gap: 8px;
    letter-spacing: 0.1em;
  }
}
