/* Panespace site. Dark only, on pure black. Tokens: OKLCH, a 4px grid, one accent (the violet of the app icon). */

:root {
  color-scheme: dark;

  /* Surfaces */
  --bg: oklch(0 0 0);
  --bg-surface: oklch(0.145 0 0);   /* panels, mocks */
  --bg-raised: oklch(0.19 0 0);     /* things on a panel */
  --bg-hover: oklch(0.22 0 0);

  /* Text on black: 18.6:1, 8.1:1, 5.1:1 */
  --text: oklch(0.97 0 0);
  --text-secondary: oklch(0.72 0 0);
  --text-tertiary: oklch(0.58 0 0);

  /* Lines */
  --border-subtle: oklch(1 0 0 / 0.07);
  --border: oklch(1 0 0 / 0.1);
  --border-strong: oklch(1 0 0 / 0.16);

  /* Accent: white. The primary button is the brightest thing on screen; black on it is 19.3:1. */
  --accent: oklch(0.97 0 0);
  --accent-hover: oklch(0.88 0 0);
  --on-accent: oklch(0.13 0 0);
  --accent-subtle: oklch(1 0 0 / 0.16);
  --focus: oklch(0.86 0 0);

  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --page-pad: 20px;
  --section-y: 80px;
  --container: 1180px;
}
@media (min-width: 640px) { :root { --page-pad: 32px; --section-y: 104px; } }
@media (min-width: 1024px) { :root { --page-pad: 40px; --section-y: 128px; } }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.5 var(--font-sans); letter-spacing: -0.006em; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, dt, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent-subtle); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-xs); }

code {
  font: 0.8125em/1 var(--font-mono);
  padding: 2px 6px; border-radius: var(--radius-xs);
  color: var(--text); background: var(--bg-raised); box-shadow: 0 0 0 1px var(--border-subtle);
  white-space: nowrap;
}
kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--radius-xs);
  font: 500 0.75rem/1 var(--font-sans); color: var(--text-secondary);
  background: var(--bg-raised); box-shadow: inset 0 -1px 0 var(--border), 0 0 0 1px var(--border);
  font-variant-numeric: tabular-nums; white-space: nowrap; vertical-align: 1px;
}
kbd + kbd { margin-inline-start: 4px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--page-pad)); margin-inline: auto; padding-inline: max(var(--page-pad), env(safe-area-inset-left)) max(var(--page-pad), env(safe-area-inset-right)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 16px; top: -48px; z-index: 50; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--bg-raised); }
.skip:focus { top: 12px; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--radius-md);
  font: 500 0.875rem/1 var(--font-sans); white-space: nowrap; user-select: none;
  transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out), scale 120ms var(--ease-out);
}
.btn:active { scale: 0.97; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-lg { height: 48px; padding: 0 22px; border-radius: 10px; font-size: 0.9375rem; }
.btn-lg:has(> svg:first-child) { padding-inline-start: 20px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-secondary { background: var(--bg-raised); color: var(--text); box-shadow: 0 0 0 1px var(--border); }
.btn-ghost { color: var(--text-secondary); box-shadow: 0 0 0 1px var(--border); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-hover); }
  .btn-secondary:hover { background: var(--bg-hover); }
  .btn-ghost:hover { color: var(--text); background: var(--bg-surface); }
}
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9375rem; color: var(--text-secondary); transition: color 150ms var(--ease-out); }
.text-link svg { width: 16px; height: 16px; }
.text-link .arrow { width: 14px; height: 14px; color: var(--text-tertiary); }
@media (hover: hover) and (pointer: fine) { .text-link:hover { color: var(--text); } }

/* Header */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: oklch(0 0 0 / 0.72);
  backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px);
  box-shadow: 0 1px 0 transparent; transition: box-shadow 150ms var(--ease-out);
}
@media (prefers-reduced-transparency: reduce) { .nav { background: var(--bg); } }
.nav[data-scrolled] { box-shadow: 0 1px 0 var(--border-subtle); }
.nav-inner { display: flex; align-items: center; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.01em; }
.brand img { border-radius: 5px; }
.tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: var(--radius-xs);
  font: 500 0.6875rem/1 var(--font-sans); letter-spacing: 0.02em; color: var(--text-secondary);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.final .fine a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: from-font; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: var(--radius-sm);
  font-size: 0.8125rem; color: var(--text-secondary); transition: color 150ms var(--ease-out);
}
.nav-links .stars svg { width: 13px; height: 13px; }
.nav-links .stars [data-stars] { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--text); } }
@media (max-width: 559px) { .nav-links .hide-sm { display: none; } }

/* Hero */
.hero { position: relative; padding-block-start: 72px; overflow: clip; }
@media (min-width: 1024px) { .hero { padding-block-start: 104px; } }
.hero-copy { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
h1 {
  max-width: 15ch;
  font-size: clamp(2rem, 6.4vw, 4.75rem);
  line-height: 1.05; font-weight: 600; letter-spacing: -0.03em;
  text-wrap: balance;
}
.lede { max-width: 54ch; margin-block: 24px 36px; font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); line-height: 1.55; color: var(--text-secondary); text-wrap: pretty; }
.hero-copy .text-link { margin-block-start: 20px; }
.meta { margin-block-start: 12px; font-size: 0.8125rem; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }


/* Demo */
.demo-wrap { position: relative; margin-block-start: 64px; }
@media (min-width: 1024px) { .demo-wrap { margin-block-start: 80px; } }
.demo {
  --chrome: oklch(0.175 0 0);
  position: relative; overflow: hidden;
  border-radius: 14px; aspect-ratio: 16 / 9.4;
  background: oklch(0.115 0 0);
  box-shadow: 0 0 0 1px var(--border-strong), 0 40px 80px -24px oklch(0 0 0 / 0.9);
  color: oklch(0.93 0 0); cursor: default;
}
.demo:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 14px; }
.mac-bar {
  position: absolute; inset: 0 0 auto; z-index: 2;
  display: flex; align-items: center; gap: 16px; height: 26px; padding: 0 14px;
  font-size: 12px; color: oklch(0.9 0 0);
  background: oklch(0.07 0 0 / 0.7);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.mac-app { font-weight: 600; }
.mac-bar .spacer { flex: 1; }
.mac-clock { font-variant-numeric: tabular-nums; }
.ws-indicator { display: inline-flex; gap: 3px; }
.ws-indicator span {
  display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 4px;
  font: 600 10.5px/1 var(--font-sans); font-variant-numeric: tabular-nums;
  color: oklch(0.82 0 0); box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.22);
}
.ws-indicator span.on { background: oklch(0.96 0 0); color: oklch(0.15 0 0); box-shadow: none; }
.ws-indicator span.empty { opacity: 0.45; }
.screen { position: absolute; inset: 26px 0 0; overflow: hidden; }
.ws-strip { position: absolute; inset: 0; display: flex; transition: transform 300ms var(--ease-in-out); }
.ws { position: relative; flex: 0 0 100%; height: 100%; }
.win {
  position: absolute; left: 0; top: 0; display: flex; flex-direction: column;
  border-radius: 10px; overflow: hidden; background: oklch(0.135 0 0);
  box-shadow: 0 0 0 1px oklch(1 0 0 / 0.1), 0 16px 32px -12px oklch(0 0 0 / 0.7);
  transition: transform 220ms var(--ease-out), width 220ms var(--ease-out), height 220ms var(--ease-out), opacity 180ms var(--ease-out);
}
.win::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.28); opacity: 0; transition: opacity 120ms var(--ease-out); }
.win.focused .win-bar { color: oklch(0.9 0 0); }
.win.focused::after { opacity: 1; }
.win.entering { opacity: 0; }
.win-bar { flex: none; display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; background: var(--chrome); border-bottom: 1px solid oklch(1 0 0 / 0.06); font-size: 11px; color: oklch(0.72 0 0); }
.lights { display: flex; gap: 6px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: oklch(0.36 0 0); }
.win.focused .lights i:nth-child(1), .term .lights i:nth-child(1) { background: oklch(0.68 0.2 25); }
.win.focused .lights i:nth-child(2), .term .lights i:nth-child(2) { background: oklch(0.82 0.16 85); }
.win.focused .lights i:nth-child(3), .term .lights i:nth-child(3) { background: oklch(0.72 0.18 145); }
.win-title { flex: 1; text-align: center; margin-inline-end: 42px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-body { flex: 1; min-height: 0; overflow: hidden; padding: 10px 12px; font: 11px/1.65 var(--font-mono); color: oklch(0.82 0 0); }
.win-body p { white-space: pre; }
.t-dim { color: oklch(0.58 0 0); }
.t-acc { color: oklch(0.95 0 0); font-weight: 600; }
.t-grn { color: oklch(0.78 0.13 155); }
.t-yel { color: oklch(0.84 0.11 85); }
.t-blu { color: oklch(0.82 0.06 240); }
.win-body.doc { font: 11.5px/1.55 var(--font-sans); color: oklch(0.8 0 0); white-space: normal; }
.win-body.doc h4 { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: oklch(0.95 0 0); letter-spacing: -0.01em; }
.win-body.doc h5 { margin: 10px 0 4px; font-size: 12px; font-weight: 600; color: oklch(0.9 0 0); }
.win-body.doc p { white-space: normal; margin-block: 0 6px; }
.win-body.doc code { font-size: 10.5px; padding: 1px 4px; background: oklch(1 0 0 / 0.07); box-shadow: none; color: oklch(0.88 0 0); }
.win-body.doc b { color: oklch(0.92 0 0); font-weight: 600; }
.win-body.files { font: 11.5px/1 var(--font-sans); padding: 6px; }
.win-body.files p { display: flex; justify-content: space-between; height: 24px; align-items: center; padding: 0 8px; border-radius: 5px; white-space: nowrap; }
.win-body.files p:nth-child(odd) { background: oklch(1 0 0 / 0.03); }
.win-body.files span:last-child { color: oklch(0.58 0 0); font-variant-numeric: tabular-nums; }
.ws-empty { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; text-align: center; font-size: 13px; color: oklch(0.72 0 0); }

.demo-keys { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 6px; margin-block-start: 20px; font-size: 0.8125rem; }
.demo-hint { color: var(--text-tertiary); margin-inline-end: 6px; }
.demo-keys button {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 6px;
  border: 0; border-radius: var(--radius-sm); background: none; cursor: pointer;
  font: 400 0.8125rem/1 var(--font-sans); color: var(--text-secondary);
  transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out), scale 120ms var(--ease-out);
}
.demo-keys button kbd { min-width: 20px; height: 20px; font-size: 0.6875rem; }
.demo-keys button kbd + kbd { margin-inline-start: -2px; }
.demo-keys button:active { scale: 0.97; }
@media (hover: hover) and (pointer: fine) { .demo-keys button:hover { color: var(--text); background: var(--bg-surface); } }
@media (pointer: coarse) { .demo-keys button { height: 44px; } .demo-hint { width: 100%; text-align: center; } }
@media (max-width: 639px) {
  .demo { aspect-ratio: 4 / 5; border-radius: 12px; }
  .mac-menu, .mac-clock { display: none; }
  .demo-hint { width: 100%; text-align: center; margin: 0 0 4px; }
}

/* Sections: full-bleed hairlines between them, content left-aligned */
.section { padding-block: var(--section-y); border-top: 1px solid var(--border-subtle); }
.hero { padding-block-end: var(--section-y); }
h2 { max-width: 20ch; font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
h2.center { max-width: 22ch; }
.section-lede { max-width: 58ch; margin-block-start: 20px; font-size: 1.0625rem; line-height: 1.6; color: var(--text-secondary); text-wrap: pretty; }
h3 { font-size: 1rem; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }

/* i3 syntax strip */
.strip {
  display: grid; grid-template-columns: repeat(2, 1fr); margin-block-start: 48px;
  border-radius: var(--radius-lg); overflow: hidden; background: var(--border-subtle); gap: 1px;
  box-shadow: 0 0 0 1px var(--border-subtle);
}
@media (min-width: 720px) { .strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .strip { grid-template-columns: repeat(6, 1fr); } }
.strip li { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: var(--bg); }
.strip b { font: 500 0.875rem/1.3 var(--font-mono); color: var(--text); }
.strip code { padding: 0; background: none; box-shadow: none; font: 400 0.8125rem/1.3 var(--font-sans); color: var(--text-tertiary); white-space: normal; }

/* Check lists */
.checks { display: grid; gap: 12px; margin-block-start: 28px; }
.checks li { position: relative; padding-inline-start: 26px; font-size: 0.9375rem; line-height: 1.5; color: var(--text-secondary); text-wrap: pretty; }
.checks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 4px; width: 15px; height: 15px;
  background: var(--text-tertiary);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 4.5' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.checks b { color: var(--text); font-weight: 500; }
.checks.inline { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-block-start: 24px; }
.checks.inline li { font-size: 0.875rem; }
.checks kbd { height: 20px; min-width: 20px; font-size: 0.6875rem; }

/* Splits: a product mock beside its copy */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; gap: 80px; }
  .split.reverse .panel { order: 2; }
}
.split-copy h2 { max-width: 14ch; }
.split-copy > p { max-width: 46ch; margin-block-start: 20px; font-size: 1.0625rem; line-height: 1.6; color: var(--text-secondary); text-wrap: pretty; }
.panel {
  display: grid; place-items: center; min-height: 360px; padding: clamp(20px, 5vw, 40px) clamp(12px, 4vw, 32px);
  border-radius: var(--radius-xl); background: var(--bg-surface); box-shadow: 0 0 0 1px var(--border-subtle);
  overflow: hidden;
}

/* Switcher mock: the palette Panespace ships */
.palette { width: 100%; max-width: 460px; border-radius: 16px; overflow: hidden; background: oklch(0.1 0 0); box-shadow: 0 0 0 1px var(--border), 0 24px 48px -16px oklch(0 0 0 / 0.8); font-size: 13px; }
.palette-search { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 20px; font-size: 16px; }
.palette-search svg { width: 16px; height: 16px; color: var(--text-tertiary); }
.caret { width: 1.5px; height: 18px; margin-inline-start: -10px; background: var(--text); }
@media (prefers-reduced-motion: no-preference) { .caret, .cursor { animation: blink 1.1s steps(1) infinite; } }
@keyframes blink { 50% { opacity: 0; } }
.palette-label { padding: 4px 20px 8px; font-size: 12px; font-weight: 500; color: var(--text-tertiary); }
.palette-list { padding: 0 8px 8px; }
.palette-list li { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 12px; border-radius: 10px; }
.palette-list li.sel { background: oklch(1 0 0 / 0.075); }
.app-ico { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 7px; color: var(--text-secondary); background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--border-subtle); }
.app-ico svg { width: 16px; height: 16px; }
.row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-title { color: var(--text-secondary); font-size: 14px; }
.row-title, .row-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-title b { color: var(--text); font-weight: 600; }
.row-text small { font-size: 12px; color: var(--text-tertiary); }
.palette kbd, .palette .chip { color: var(--text-secondary); background: oklch(1 0 0 / 0.08); box-shadow: none; }
.palette .chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.palette-foot { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border-top: 1px solid var(--border-subtle); font-size: 12px; color: var(--text-tertiary); }
.palette-foot kbd { height: 20px; min-width: 20px; font-size: 10.5px; margin: 0; }
.palette-foot span { margin-inline-end: 10px; }

/* Displays mock */
.displays { display: flex; align-items: flex-end; gap: 16px; width: 100%; }
.display { display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; background: oklch(0.09 0 0); box-shadow: 0 0 0 1px var(--border), 0 20px 40px -16px oklch(0 0 0 / 0.8); }
.display.laptop { flex: 4; aspect-ratio: 16 / 10.4; }
.display.monitor { flex: 6; aspect-ratio: 16 / 9.4; }
.d-bar { display: flex; justify-content: flex-end; height: 18px; padding: 0 8px; align-items: center; background: oklch(0.14 0 0); }
.d-ws { display: inline-flex; gap: 2px; }
.d-ws i { display: grid; place-items: center; width: 12px; height: 11px; border-radius: 3px; font: 600 8px/1 var(--font-sans); font-style: normal; color: oklch(0.7 0 0); }
.d-ws i.on { background: oklch(0.95 0 0); color: oklch(0.15 0 0); }
.d-tiles { flex: 1; display: grid; gap: 4px; padding: 4px; }
.d-tiles i { border-radius: 4px; background: oklch(0.17 0 0); box-shadow: 0 0 0 1px oklch(1 0 0 / 0.07); }
.d-tiles i.focus { background: oklch(0.21 0 0); box-shadow: 0 0 0 1px oklch(1 0 0 / 0.24); }
.d-tiles.t2 { grid-template-columns: 1fr 1fr; }
.d-tiles.t3 { grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; }
.d-tiles.t3 i:first-child { grid-row: span 2; }

/* CLI */
.cli { display: grid; gap: 24px; margin-block-start: 56px; align-items: stretch; }
@media (min-width: 960px) { .cli { grid-template-columns: 7fr 5fr; } }
.term { border-radius: var(--radius-xl); overflow: hidden; background: oklch(0.08 0 0); box-shadow: 0 0 0 1px var(--border); }
.term-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--border-subtle); font: 12px/1 var(--font-mono); color: var(--text-tertiary); }
.term-bar span:last-child { flex: 1; text-align: center; margin-inline-end: 48px; }
.term pre { margin: 0; padding: 20px 24px 24px; overflow-x: auto; font: 13px/1.75 var(--font-mono); color: var(--text); }
.term pre code { padding: 0; background: none; box-shadow: none; font: inherit; white-space: pre; }
.term .p { color: var(--text-tertiary); }
.term .o { color: var(--text-tertiary); }
.cursor { display: inline-block; width: 7px; height: 15px; vertical-align: -2px; background: var(--text-secondary); }
.under { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-xl); background: var(--bg-surface); box-shadow: 0 0 0 1px var(--border-subtle); }
.under .checks { margin-block: 20px 28px; gap: 14px; }
.under .btn { align-self: flex-start; margin-block-start: auto; }

/* Keys */
.keys { display: grid; gap: 0 64px; margin-block-start: 48px; }
@media (min-width: 840px) { .keys { grid-template-columns: repeat(2, 1fr); } }
.keys div { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding-block: 10px; border-bottom: 1px solid var(--border-subtle); }
.keys dt { font-size: 0.9375rem; color: var(--text-secondary); }
.keys dd { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px; color: var(--text-tertiary); font-size: 0.75rem; }
.keys dd kbd + kbd { margin: 0; }
.keys dd span { padding-inline: 2px; }

/* Final */
.final { padding-block: calc(var(--section-y) * 1.15); border-top: 1px solid var(--border-subtle); }
.final-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.final h2 { max-width: 14ch; font-size: clamp(2.5rem, 6.4vw, 4.75rem); line-height: 1.05; }
.final p { max-width: 48ch; margin-block-start: 20px; font-size: 1.0625rem; color: var(--text-secondary); text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-block-start: 36px; }
.final .fine { margin-block-start: 20px; font-size: 0.8125rem; color: var(--text-tertiary); }

/* Footer */
.footer { border-top: 1px solid var(--border-subtle); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; min-height: 72px; padding-block: 20px; font-size: 0.8125rem; color: var(--text-tertiary); }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer nav a { color: var(--text-secondary); transition: color 150ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .footer nav a:hover { color: var(--text); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .win { transition: opacity 120ms linear !important; }
}
