/* Any Command — shared stylesheet.
   Palette is sampled from the app icon: #121212 ground, #55698a panes, #60a5fa cursor. */

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Newsreader:ital,opsz,wght@0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,500;1,6..72,600&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  --bg: #121416;
  --bg-deep: #0c0e10;
  --surface: #181b1f;
  --surface-2: #1d2126;
  --surface-3: #24282e;

  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);
  --line-accent: rgba(96, 165, 250, 0.32);

  --text: #f1f2f4;
  --muted: #9aa3ae;
  --dim: #6e7680;

  --accent: #60a5fa;
  --accent-deep: #3b82f6;
  --accent-wash: rgba(96, 165, 250, 0.09);
  --slate: #55698a;
  --ok: #56b98c;
  --warn: #d9a441;

  --display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --shell: 1120px;
  --nav-h: 64px;
  --r: 8px;
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* The accent hairline at the very top mirrors the social card. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
  z-index: 200;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(96, 165, 250, 0.28);
}

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 300;
  background: var(--text);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
}

/* ---------- Type ---------- */

.display,
h1,
h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.1rem);
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
}

h3 {
  font-family: var(--body);
  font-size: 1.18rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.28;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--muted);
  line-height: 1.55;
  max-width: 52ch;
  text-wrap: pretty;
}

.kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--slate);
}

.eyebrow::before {
  content: none;
}

.muted {
  color: var(--muted);
}

.dim {
  color: var(--dim);
}

.accent {
  color: var(--accent);
}

.section {
  padding-block: clamp(64px, 9vw, 116px);
  position: relative;
}

.section + .section {
  border-top: 1px solid var(--line-soft);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 44px;
  max-width: 68ch;
}

.section-head p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.section-head cite {
  font-style: normal;
  color: var(--text);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding-inline: 22px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-primary {
  background: var(--accent);
  color: #0a1220;
  font-weight: 600;
}

.btn-primary:hover {
  background: #7cb6fb;
}

.btn-secondary {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--surface-3);
  border-color: var(--line-accent);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--line-accent);
}

.btn-sm {
  height: 38px;
  padding-inline: 16px;
  font-size: 0.88rem;
}

/* Underline that grows on hover — used for inline text links. */
.link {
  color: var(--accent);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 0.24s;
}

.link:hover {
  background-size: 100% 1px;
}

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

.header {
  position: fixed;
  top: 3px;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 150;
  background: rgba(18, 20, 22, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s;
}

.header.is-scrolled {
  background: rgba(10, 10, 10, 0.93);
  border-bottom-color: var(--line-soft);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  flex: none;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--line);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin-left: auto;
  font-size: 0.93rem;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.18s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-cta {
  flex: none;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(92svh, 860px);
  padding-top: calc(var(--nav-h) + clamp(36px, 6vw, 72px));
  padding-bottom: clamp(48px, 8vw, 88px);
}

.hero > .shell {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-intro {
  max-width: 40rem;
}

.hero-intro .kicker {
  margin-bottom: 14px;
  color: #8aa4c7;
}

.hero h1 {
  text-shadow: 0 2px 28px rgba(12, 14, 16, 0.55);
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
}

.hero .lead {
  margin-top: 18px;
  color: #d7dce3;
  text-shadow: 0 1px 18px rgba(12, 14, 16, 0.5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
  container-type: size;
}

.hero-video::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12, 14, 16, 0.88) 0%, rgba(12, 14, 16, 0.55) 42%, rgba(12, 14, 16, 0.22) 100%),
    linear-gradient(180deg, rgba(12, 14, 16, 0.5) 0%, transparent 38%, rgba(12, 14, 16, 0.82) 100%);
}

.hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100cqw, calc(100cqh * 16 / 9));
  height: max(100cqh, calc(100cqw * 9 / 16));
  border: 0;
  transform: translate(-50%, -50%) scale(1.28);
  pointer-events: none;
}

.hero-video-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: opacity 0.7s ease;
}

.hero-video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video.is-live .hero-video-poster {
  opacity: 0;
  pointer-events: none;
}

.hero-video-play {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
}

.hero-video-play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: opacity 0.2s;
}

.hero-video-play:hover img,
.hero-video-play:focus-visible img {
  opacity: 1;
}

.hero-video-cap {
  margin-top: 22px;
  font-size: 0.88rem;
  color: rgba(241, 242, 244, 0.62);
  max-width: 46ch;
}

.hero-video-cap cite {
  font-style: normal;
  color: var(--text);
}

.hero-video-cap .link {
  margin-left: 0.35em;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.86rem;
  color: var(--dim);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--slate);
}

/* ---------- Interactive touchpad demo ---------- */

.demo {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.demo-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-deep);
}

.demo-modes {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.demo-mode,
.demo-os button {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dim);
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 5px 11px;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}

.demo-mode:hover,
.demo-os button:hover {
  color: var(--muted);
}

.demo-mode[aria-pressed="true"],
.demo-os button[aria-pressed="true"] {
  color: var(--text);
  border-color: var(--line);
  background: var(--surface-3);
}

.demo-hint {
  font-size: 0.78rem;
  color: var(--slate);
}

.demo-os {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.demo-os[hidden] {
  display: none;
}

.demo-stage {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 0;
  min-height: 360px;
}

.demo-phone {
  border-right: 1px solid var(--line-soft);
  padding: 16px 14px 14px;
  background: #0e1012;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-notch {
  width: 42px;
  height: 5px;
  margin: 0 auto 4px;
  border-radius: 99px;
  background: #2a2e34;
}

.demo-pad {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(96, 165, 250, 0.08), transparent 55%),
    #161a1f;
  position: relative;
  cursor: crosshair;
  touch-action: none;
  display: grid;
  place-items: center;
}

.demo-pad-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dim);
  pointer-events: none;
  transition: opacity 0.25s;
}

.demo-pad.is-live .demo-pad-label {
  opacity: 0;
}

.demo-clicks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.demo-clicks span {
  height: 28px;
  border-radius: 8px;
  background: #1c2127;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--dim);
  font-size: 0.68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.demo-keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.demo-keys i {
  height: 17px;
  border-radius: 4px;
  background: var(--surface-3);
}

.demo-screen {
  position: relative;
  overflow: hidden;
}

.demo-screen[data-os="win"] .os-mac,
.demo-screen[data-os="mac"] .os-win {
  display: none;
}

.os-win,
.os-mac {
  position: absolute;
  inset: 0;
}

.os-win {
  background:
    radial-gradient(90% 70% at 18% 88%, #1a4d8f 0%, transparent 52%),
    radial-gradient(70% 55% at 88% 12%, #4a2a78 0%, transparent 48%),
    linear-gradient(180deg, #0d1a30, #071018);
}

.win-desk,
.mac-desk {
  position: absolute;
  inset: 0;
}

.demo-win {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(32, 36, 42, 0.92);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.demo-win-bar {
  height: 22px;
  border-bottom: 1px solid var(--line-soft);
  background: #2a3038;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-inline: 8px;
  color: #c5ccd4;
  font-size: 0.62rem;
}

.demo-win-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6b7280;
}

.demo-win-bar i:first-child { background: #e57373; }
.demo-win-bar i:nth-child(2) { background: #e0b44a; }
.demo-win-bar i:nth-child(3) { background: #6dbf8a; }

.demo-win-bar span {
  margin-left: 6px;
  opacity: 0.75;
}

.demo-win-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.demo-win-body i {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.win-explorer-body {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px;
}

.win-explorer-body b {
  aspect-ratio: 1;
  border-radius: 6px;
  background: rgba(96, 165, 250, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.18);
}

.win-taskbar {
  position: absolute;
  inset: auto 12% 8px 12%;
  height: 28px;
  border-radius: 8px;
  background: rgba(18, 22, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.win-taskbar span {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
}

.win-start {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background:
    linear-gradient(#60a5fa, #60a5fa) 0 0 / 45% 45% no-repeat,
    linear-gradient(#7cb6fb, #7cb6fb) 100% 0 / 45% 45% no-repeat,
    linear-gradient(#3b82f6, #3b82f6) 0 100% / 45% 45% no-repeat,
    linear-gradient(#93c5fd, #93c5fd) 100% 100% / 45% 45% no-repeat;
}

.os-mac {
  background:
    radial-gradient(70% 60% at 30% 82%, #c45c32 0%, transparent 55%),
    radial-gradient(50% 45% at 82% 18%, #5d7a62 0%, transparent 50%),
    linear-gradient(#3a4450, #1c2228);
}

.mac-menubar {
  height: 22px;
  background: rgba(20, 22, 24, 0.45);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline: 10px;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.82);
}

.mac-menubar b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f3f5f8;
}

.mac-menubar em {
  margin-left: auto;
  font-style: normal;
  opacity: 0.7;
  white-space: nowrap;
}

.mac-window {
  background: #ece7df;
  border-color: rgba(0, 0, 0, 0.12);
}

.mac-title {
  height: 22px;
  background: #e4ddd4;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-inline: 8px;
  font-size: 0.62rem;
  color: #5c564e;
}

.mac-title i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mac-title i:nth-child(1) { background: #ff5f57; }
.mac-title i:nth-child(2) { background: #febc2e; }
.mac-title i:nth-child(3) { background: #28c840; }

.mac-title span {
  margin-left: auto;
  margin-right: auto;
}

.mac-sheet {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mac-sheet i {
  height: 7px;
  border-radius: 3px;
  background: rgba(60, 50, 40, 0.16);
}

.mac-dock {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.mac-dock i {
  width: 16px;
  height: 16px;
  border-radius: 5px;
}

.mac-dock i:nth-child(1) { background: #5ac8fa; }
.mac-dock i:nth-child(2) { background: #ffcc00; }
.mac-dock i:nth-child(3) { background: #34c759; }
.mac-dock i:nth-child(4) { background: #ff375f; }
.mac-dock i:nth-child(5) { background: #bf5af2; }

.demo-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  color: var(--accent);
  pointer-events: none;
  transform: translate(52%, 44%);
  transition: transform 0.09s linear;
  z-index: 3;
}

.demo-cursor.is-clicking {
  color: #fff;
}

.demo-ring {
  position: absolute;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.demo-ring.is-on {
  animation: ring 0.42s ease-out;
}

@keyframes ring {
  from { opacity: 0.85; transform: scale(0.4); }
  to { opacity: 0; transform: scale(1.5); }
}

.demo-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-deep);
  font-size: 0.84rem;
  color: var(--muted);
  min-height: 44px;
}

.demo-foot strong {
  color: var(--text);
  font-weight: 600;
}

.demo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}

/* ---------- Homepage: proof, scenes, lists, paths ---------- */

.proof {
  margin-top: 0;
  border-block: 1px solid var(--line-soft);
  background: var(--bg-deep);
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
}

.proof-row p {
  flex: 1 1 220px;
  padding: 18px 20px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
  border-right: 1px solid var(--line-soft);
}

.proof-row p:last-child {
  border-right: none;
}

.proof-row cite,
.proof-row strong {
  color: var(--text);
  font-style: normal;
  font-weight: 650;
}

.scenes .section-head {
  margin-bottom: 8px;
}

.scene {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line-soft);
}

.scene-flip {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.05fr);
}

.scene-flip .scene-copy {
  order: 2;
}

.scene-copy h3 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 10px 0 14px;
  max-width: 24ch;
}

.scene-copy p {
  color: var(--muted);
  max-width: 52ch;
}

.scene-copy p + p {
  margin-top: 12px;
}

.scene-copy .link {
  display: inline-block;
  margin-top: 16px;
}

.scene-shot {
  max-width: 320px;
  margin-inline: auto;
}

.scene-shot figcaption {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--dim);
}

.scene-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.mac-card {
  width: min(100%, 340px);
  border-radius: 12px;
  background: #e8e4dc;
  color: #2c2a26;
  padding: 16px 18px 18px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}

.mac-card-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.mac-card-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mac-card-bar i:nth-child(1) { background: #ff5f57; }
.mac-card-bar i:nth-child(2) { background: #febc2e; }
.mac-card-bar i:nth-child(3) { background: #28c840; }

.mac-card p {
  font-size: 0.82rem;
  color: #6a655c;
}

.mac-card-device {
  margin-top: 10px;
  font-size: 1.02rem !important;
  font-weight: 650;
  color: #1d1b18 !important;
}

.mac-card-ok {
  margin-top: 6px;
  color: #1f7a46 !important;
  font-weight: 650;
}

.scene-panel-note {
  font-size: 0.88rem;
  color: var(--dim);
  max-width: 36ch;
}

.also {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 64px);
}

.also h3 {
  margin-bottom: 16px;
  font-size: 0.92rem;
  color: var(--slate);
}

.also-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.also-list div {
  display: grid;
  grid-template-columns: minmax(9.5rem, 32%) 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.also-list dt {
  font-weight: 650;
}

.also-list dd {
  color: var(--muted);
  font-size: 0.94rem;
}

.also-foot {
  margin-top: 28px;
  color: var(--muted);
}

.links-table {
  border-top: 1px solid var(--line);
}

.link-row {
  display: grid;
  grid-template-columns: 8rem 1fr 14rem;
  gap: 20px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}

.link-row h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
}

.link-row p {
  color: var(--muted);
}

.link-need {
  text-align: right;
  color: var(--dim) !important;
  font-size: 0.88rem;
}

.link-row.is-mac h3 {
  color: var(--text);
}

.featured-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.featured-split .feature-video {
  max-width: none;
}

.paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.path {
  padding: 28px 26px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--surface);
}

.path-mac {
  background: #ece7df;
  border-color: transparent;
  color: #2c2a26;
}

.path-mac .kicker,
.path-mac p,
.path-mac li {
  color: #5c564e;
}

.path-mac h3,
.path-mac strong {
  color: #1d1b18;
}

.path-mac .link {
  color: #1a4d8f;
  background-image: linear-gradient(#1a4d8f, #1a4d8f);
}

.path h3 {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 8px 0 18px;
}

.path ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: path;
}

.path li {
  counter-increment: path;
  padding-left: 2rem;
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
}

.path li::before {
  content: counter(path);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--slate);
}

.path-mac li::before {
  color: #8a8276;
}

.path li .link,
.path > .link {
  display: inline-block;
  margin-top: 4px;
}

.path > .link {
  margin-top: 18px;
}

/* ---------- Hairline grid (the structural motif) ---------- */

.hair {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
}

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

.cell {
  background: var(--bg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.2s;
}

a.cell:hover,
.cell.is-hoverable:hover {
  background: var(--surface);
}

.cell p {
  color: var(--muted);
  font-size: 0.94rem;
}

.cell-index {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--slate);
}

.cell-icon {
  width: 34px;
  height: 34px;
  color: var(--accent);
}

.cell-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
}

.cell-tag {
  align-self: flex-start;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--dim);
}

.cell-tag.is-free {
  color: var(--ok);
  border-color: rgba(86, 185, 140, 0.3);
}

.cell-tag.is-premium {
  color: var(--accent);
  border-color: var(--line-accent);
}

.cell-tag.is-new {
  color: #0a1220;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}

/* Highlighted cell spanning the row — used for the Bluetooth pitch. */
.cell-wide {
  grid-column: 1 / -1;
  background: var(--surface);
  padding: 34px;
}

/* ---------- Connection modes ---------- */

.modes .cell {
  gap: 12px;
  padding: 30px 26px;
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}

.mode-need {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.84rem;
  color: var(--dim);
}

/* ---------- Steps ---------- */

.steps {
  counter-reset: step;
}

.steps .cell {
  padding-top: 30px;
}

.steps .cell::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}

/* ---------- Screenshot strip ---------- */

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}

.shot {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* The captures start partway down the screen, so the bezel deliberately has no
   notch or status bar -- it reads as a device edge without implying a full screen. */
.shot-device {
  position: relative;
  padding: 7px;
  border-radius: 30px;
  background: linear-gradient(160deg, #34363c, #17181b 42%, #0c0d0f);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 26px 50px -18px rgba(0, 0, 0, 0.85);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.shot-device::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 24px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.shot:hover .shot-device {
  transform: translateY(-6px);
}

.shot-device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  background: var(--bg-deep);
}

.shot figcaption {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
  padding-inline: 2px;
}

.shot figcaption b {
  display: block;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}

@media (max-width: 860px) {
  .shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  /* Third screenshot centres itself under the pair above. */
  .shot:last-child {
    grid-column: 1 / -1;
    max-width: 320px;
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  .shots {
    grid-template-columns: minmax(0, 1fr);
    max-width: 320px;
    margin-inline: auto;
  }

  .shot:last-child {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shot-device,
  .shot:hover .shot-device {
    transition: none;
    transform: none;
  }
}

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 18px;
  align-items: start;
}

.plan {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg);
}

.plan.is-featured {
  border-color: var(--line-accent);
  background: var(--surface);
}

.plan-price {
  font-family: var(--display);
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-price small {
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--dim);
  letter-spacing: 0;
}

.plan ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.92rem;
  color: var(--muted);
}

.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.plan li::before {
  content: "";
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 3px;
  border-radius: 50%;
  border: 1px solid var(--line-accent);
  background:
    linear-gradient(var(--accent), var(--accent)) center / 6px 6px no-repeat;
  background-clip: content-box;
}

.plan .btn {
  margin-top: auto;
}

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

.table-wrap {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow-x: auto;
}

table.matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  min-width: 460px;
}

table.matrix th,
table.matrix td {
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
}

table.matrix thead th {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 400;
  background: var(--bg-deep);
}

table.matrix tbody tr:last-child td {
  border-bottom: none;
}

table.matrix td:not(:first-child),
table.matrix th:not(:first-child) {
  text-align: center;
  width: 118px;
}

table.matrix td:first-child {
  color: var(--text);
}

.yes {
  color: var(--ok);
  font-weight: 600;
}

.no {
  color: var(--dim);
}

/* ---------- Notes / callouts ---------- */

.note {
  display: flex;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--slate);
  border-radius: 0 12px 12px 0;
  background: var(--surface);
}

.note.is-accent {
  border-left-color: var(--accent);
}

.note.is-warn {
  border-left-color: var(--warn);
}

.note h3 {
  font-size: 1.02rem;
  margin-bottom: 5px;
}

.note p {
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------- Details / FAQ ---------- */

.faq {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
}

.faq details {
  border-bottom: 1px solid var(--line-soft);
}

.faq details:last-child {
  border-bottom: none;
}

.faq summary {
  padding: 18px 22px;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 0.18s;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  margin-left: auto;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--slate);
  border-bottom: 1.5px solid var(--slate);
  transform: rotate(45deg);
  transition: transform 0.22s;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
}

.faq summary:hover {
  background: var(--surface);
}

.faq .faq-body {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 74ch;
}

.faq .faq-body p + p {
  margin-top: 10px;
}

/* ---------- Media / video ---------- */

.media-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.82;
  transition: opacity 0.25s, transform 0.4s;
}

.media-frame:hover img {
  opacity: 1;
  transform: scale(1.015);
}

.media-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.media-play span {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
}

.media-play svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
  fill: #0a1220;
}

.feature-video {
  max-width: 860px;
}

.feature-video figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

.feature-video figcaption b {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.015em;
  color: var(--text);
}

/* ---------- Article cards ---------- */

.posts {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
}

.post {
  background: var(--bg);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: baseline;
  transition: background 0.2s;
}

a.post:hover {
  background: var(--surface);
}

.post-meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  flex: none;
  width: 92px;
}

.post h3 {
  margin-bottom: 6px;
}

.post p {
  color: var(--muted);
  font-size: 0.93rem;
  max-width: 70ch;
}

.post.is-soon {
  opacity: 0.5;
}

/* ---------- Prose (article bodies, privacy) ---------- */

.prose {
  max-width: 72ch;
  font-size: 1.02rem;
  color: #dde2e9;
}

.prose > * + * {
  margin-top: 18px;
}

.prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-top: 44px;
}

.prose h3 {
  font-size: 1.2rem;
  margin-top: 30px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prose li {
  color: var(--muted);
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 2px 6px;
}

.prose blockquote {
  border-left: 2px solid var(--slate);
  padding-left: 18px;
  color: var(--muted);
  font-style: italic;
}

.page-head {
  padding-top: calc(var(--nav-h) + clamp(44px, 6vw, 76px));
  padding-bottom: clamp(30px, 4vw, 48px);
  border-bottom: 1px solid var(--line-soft);
}

.page-head .lead {
  margin-top: 16px;
}

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

.studio {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-deep);
  padding-block: clamp(56px, 8vw, 96px);
}

.studio-work {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.studio-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 22px 20px 24px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--surface);
  color: inherit;
  transition: border-color 0.2s, background 0.2s, transform 0.3s;
}

.studio-card:hover {
  border-color: var(--line-accent);
  background: var(--surface-2);
  transform: translateY(-3px);
}

.studio-card img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
}

.studio-kind {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.studio-card h3 {
  font-family: var(--display);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-top: -4px;
}

.studio-card p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.studio-get {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

.studio-get::after {
  content: " \2192";
  display: inline-block;
  transition: transform 0.2s;
}

.studio-card:hover .studio-get::after {
  transform: translateX(3px);
}

.studio-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 32px;
}

.studio-mid {
  border-bottom: 1px solid var(--line-soft);
}

.studio-all {
  display: inline-block;
  margin-top: 28px;
}

@media (max-width: 980px) {
  .studio-work {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .studio-card,
  .studio-card:hover {
    transition: none;
    transform: none;
  }
}

.footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 52px 34px;
  background: var(--bg-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 36px;
}

.footer h4 {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 400;
  margin-bottom: 14px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 42ch;
  margin-top: 12px;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.92rem;
}

.footer ul a {
  color: var(--muted);
  transition: color 0.18s;
}

.footer ul a:hover {
  color: var(--text);
}

.footer-base {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--dim);
}

/* ---------- Long-form content components ----------
   These class names come from the original article pages. Restyling them here
   keeps every word of that content intact while it adopts the new design. */

/* Clears the fixed header on pages whose content supplies its own heading. */
.content-page {
  padding-top: calc(var(--nav-h) + clamp(34px, 5vw, 60px));
  padding-bottom: clamp(56px, 8vw, 96px);
}

.article-wrapper,
.main-content {
  padding-block: 0;
}

.article-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 30px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line-soft);
}

.article-header h1,
.page-title {
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
}

.article-category,
.article-meta,
.last-updated,
.news-date,
.page-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
}

.content-section + .content-section {
  margin-top: 40px;
}

.highlight-box,
.warning-box,
.step-box {
  padding: 20px 22px;
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--slate);
  border-radius: 0 12px 12px 0;
  background: var(--surface);
  margin-block: 24px;
}

.highlight-box {
  border-left-color: var(--accent);
}

.warning-box {
  border-left-color: var(--warn);
}

.highlight-box > *:first-child,
.warning-box > *:first-child,
.step-box > *:first-child {
  margin-top: 0;
}

.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  margin-bottom: 8px;
}

.app-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  background: var(--surface);
  margin-block: 22px;
}

.app-card > *:first-child {
  margin-top: 0;
}

.pros-cons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-block: 20px;
}

.pros,
.cons {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 18px 20px;
  background: var(--bg);
}

.pros h4,
.cons h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 10px;
}

.pros h4 { color: var(--ok); }
.cons h4 { color: var(--warn); }

.check,
.partial,
.cross {
  font-weight: 600;
}

.check { color: var(--ok); }
.partial { color: var(--warn); }
.cross { color: var(--dim); }

.app-badge,
.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--dim);
  vertical-align: middle;
}

.badge-free,
.badge.live {
  color: var(--ok);
  border-color: rgba(86, 185, 140, 0.32);
}

.badge-premium {
  color: var(--accent);
  border-color: var(--line-accent);
}

.badge.soon {
  color: var(--warn);
  border-color: rgba(217, 164, 65, 0.32);
}

.news-item {
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
}

.news-item:last-child {
  border-bottom: none;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.news-features {
  margin-top: 12px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
  margin-block: 26px;
}

.benefit-card {
  background: var(--bg);
  padding: 26px 24px;
}

.benefit-card > *:first-child {
  margin-top: 0;
}

.benefit-icon {
  display: block;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.bonus-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.patreon-wordmark {
  max-width: 190px;
  filter: invert(1);
  opacity: 0.85;
}

/* Tables inside long-form content. */
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  margin-block: 24px;
  display: block;
  overflow-x: auto;
}

.prose th,
.prose td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.prose thead th {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 400;
  background: var(--bg-deep);
  white-space: nowrap;
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .hair-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .scene,
  .scene-flip {
    grid-template-columns: 1fr;
  }

  .scene-flip .scene-copy { order: 0; }

  .featured-split,
  .paths,
  .also {
    grid-template-columns: 1fr;
  }

  .link-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .link-need { text-align: left; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: calc(var(--nav-h) + 3px) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 24px 20px;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-cta {
    display: none;
  }

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

  .demo-stage {
    grid-template-columns: 120px 1fr;
    min-height: 280px;
  }

  .also-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .post {
    flex-direction: column;
    gap: 10px;
  }

  .post-meta { width: auto; }
}

@media (max-width: 620px) {
  .shell { padding-inline: 18px; }

  .hair-2,
  .hair-3,
  .hair-4 { grid-template-columns: minmax(0, 1fr); }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .hero-actions .btn { flex: 1 1 100%; }

  .hero {
    min-height: min(100svh, 760px);
    align-items: flex-end;
  }

  .hero-video::after {
    background:
      linear-gradient(180deg, rgba(12, 14, 16, 0.58) 0%, rgba(12, 14, 16, 0.62) 42%, rgba(12, 14, 16, 0.9) 100%);
  }

  .demo-modes { margin-left: 0; }

  .demo-hint { display: none; }

  .cell-wide { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
