/* DeXterous landing page.
   Direction: product shots on coloured studio paper. A red-orange "tomato" sweep for the hero,
   plum and butter as the supporting colours, warm cream paper in between, plum-black ink.
   Big, wide, heavy type (Archivo) over a friendly sans (Figtree). */

/* ------------------------------------------------------------------ */
/* Fonts: self-hosted, latin subset, variable. SIL OFL 1.1, see fonts/ */
/* ------------------------------------------------------------------ */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------ */
/* Tokens                                                             */
/* ------------------------------------------------------------------ */

:root {
  color-scheme: light dark;

  --font-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Palette */
  --tomato: oklch(56% 0.2 32);
  --tomato-ink: oklch(50% 0.19 30);
  --butter: oklch(90% 0.13 92);
  --butter-deep: oklch(84% 0.14 85);
  --plum: oklch(30% 0.08 345);
  --lilac: oklch(84% 0.06 335);
  --paper: oklch(96.8% 0.014 65);
  --paper-2: oklch(92.5% 0.02 60);
  --ink: oklch(21% 0.035 345);
  --cream: oklch(97% 0.014 75);

  /* Space */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --section-pad: clamp(72px, 9vw, 136px);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* Role tokens. Light is the default. The theme switch sets data-theme on <html>
   ("light" or "dark") and an explicit choice always wins. With no data-theme the
   system setting decides, through the media query. Keep both dark blocks identical. */

:root,
:root[data-theme="light"] {
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: oklch(42% 0.035 345);
  --line: oklch(84% 0.025 50);
  --link: var(--tomato-ink);
  --focus: var(--ink);

  /* Hero band: cream on the deeper tomato is 4.7:1. The selected switch segment is
     ink on butter, which reads on both the tomato and the brick band. */
  --hero-bg: var(--tomato);
  --hero-fg: var(--cream);
  --hero-line: color-mix(in oklch, var(--hero-fg) 82%, transparent);
  --hero-sel-bg: var(--butter);
  --hero-sel-fg: var(--ink);

  --code-bg: var(--ink);
  --code-fg: var(--cream);
  --code-dim: oklch(78% 0.03 345);
  --code-line: oklch(32% 0.04 345);
  --prompt: var(--butter);

  --feat-bg: var(--plum);
  --feat-fg: var(--cream);
  --feat-muted: oklch(85% 0.04 345);
  --feat-rule: var(--butter);

  --tile-1: var(--tomato);
  --tile-1-num: var(--cream);
  --tile-2: var(--butter);
  --tile-3: var(--lilac);
  --tile-num: var(--ink);

  --foot-bg: var(--ink);
  --foot-fg: var(--cream);
  --foot-muted: oklch(78% 0.03 345);

  /* Colours the 3D hero reads (js/hero.js). */
  --scene-floor: oklch(48% 0.19 30);
  --scene-track: oklch(96% 0.03 75);
  --scene-shadow: oklch(22% 0.1 28);
  --scene-sky: oklch(98% 0.02 80);
  --scene-ground: oklch(64% 0.17 33);
  --scene-rim: oklch(92% 0.1 90);

  /* One UI illustration */
  --oui-bg: oklch(96.5% 0.003 260);
  --oui-card: oklch(99.5% 0.002 260);
  --oui-fg: oklch(21% 0.006 260);
  --oui-sub: oklch(54% 0.01 260);
  --oui-press: oklch(92% 0.005 260);
  --oui-blue: oklch(60% 0.2 262);
  --oui-bezel: oklch(19% 0.01 300);
}

:root[data-theme="dark"] {
  --bg: oklch(17% 0.022 345);
  --fg: var(--cream);
  --muted: oklch(78% 0.025 345);
  --line: oklch(31% 0.03 345);
  --link: oklch(78% 0.13 40);
  --focus: var(--butter);

  --hero-bg: oklch(41% 0.14 31);
  --hero-fg: var(--cream);

  --code-bg: oklch(14% 0.02 345);
  --code-line: oklch(28% 0.035 345);

  --feat-bg: oklch(25% 0.065 345);

  --tile-1: oklch(45% 0.15 31);
  --tile-2: oklch(50% 0.12 72);
  --tile-3: oklch(36% 0.075 335);
  --tile-num: var(--cream);

  --foot-bg: oklch(12% 0.016 345);

  --scene-floor: oklch(35% 0.12 30);
  --scene-track: oklch(86% 0.1 80);
  --scene-shadow: oklch(15% 0.05 28);
  --scene-sky: oklch(90% 0.03 70);
  --scene-ground: oklch(42% 0.12 30);
  --scene-rim: oklch(85% 0.11 80);

  --oui-bg: oklch(13% 0.002 260);
  --oui-card: oklch(21% 0.004 260);
  --oui-fg: oklch(95% 0.003 260);
  --oui-sub: oklch(70% 0.006 260);
  --oui-press: oklch(28% 0.005 260);
  --oui-blue: oklch(66% 0.17 258);
  --oui-bezel: oklch(8% 0.005 300);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: oklch(17% 0.022 345);
    --fg: var(--cream);
    --muted: oklch(78% 0.025 345);
    --line: oklch(31% 0.03 345);
    --link: oklch(78% 0.13 40);
    --focus: var(--butter);

    --hero-bg: oklch(41% 0.14 31);
    --hero-fg: var(--cream);

    --code-bg: oklch(14% 0.02 345);
    --code-line: oklch(28% 0.035 345);

    --feat-bg: oklch(25% 0.065 345);

    --tile-1: oklch(45% 0.15 31);
    --tile-2: oklch(50% 0.12 72);
    --tile-3: oklch(36% 0.075 335);
    --tile-num: var(--cream);

    --foot-bg: oklch(12% 0.016 345);

    --scene-floor: oklch(35% 0.12 30);
    --scene-track: oklch(86% 0.1 80);
    --scene-shadow: oklch(15% 0.05 28);
    --scene-sky: oklch(90% 0.03 70);
    --scene-ground: oklch(42% 0.12 30);
    --scene-rim: oklch(85% 0.11 80);

    --oui-bg: oklch(13% 0.002 260);
    --oui-card: oklch(21% 0.004 260);
    --oui-fg: oklch(95% 0.003 260);
    --oui-sub: oklch(70% 0.006 260);
    --oui-press: oklch(28% 0.005 260);
    --oui-blue: oklch(66% 0.17 258);
    --oui-bezel: oklch(8% 0.005 300);
  }
}

/* ------------------------------------------------------------------ */
/* Base                                                               */
/* ------------------------------------------------------------------ */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.375rem, 1.3rem + 3.6vw, 4.25rem);
  font-stretch: 118%;
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.375rem;
  font-stretch: 106%;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p { margin: 0; }

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }

code, kbd, pre { font-family: var(--font-mono); }
code { font-size: 0.9em; }
:not(pre) > code {
  padding: 0.08em 0.36em;
  border-radius: 6px;
  background: color-mix(in oklch, var(--fg) 9%, transparent);
  white-space: nowrap;
}

em { font-style: normal; font-weight: 560; color: var(--fg); }

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

.wrap {
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
}

.section { padding-block: var(--section-pad); }

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

.skip {
  position: absolute;
  left: var(--space-md);
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: var(--space-md); }

main:focus { outline: none; }

.icon { width: 18px; height: 18px; flex: none; }

/* ------------------------------------------------------------------ */
/* Logo                                                               */
/* ------------------------------------------------------------------ */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 850;
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
}
/* The app icon (icon-*.png, made from brand/icon.png). Its orange is brighter than the hero's,
   so a soft shadow lifts it off the background. */
.logo-mark {
  display: block;
  flex: none;
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 1px 3px oklch(25% 0.1 30 / 0.35));
}

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

.site-head,
.hero {
  --focus: var(--hero-fg);
  background: var(--hero-bg);
  color: var(--hero-fg);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding-block: 20px;
}

.topbar-end { display: flex; align-items: center; gap: clamp(8px, 3vw, 32px); }
.nav { display: flex; gap: clamp(16px, 3vw, 32px); }
.nav a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  padding-block: 10px;
}
.nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
@media (max-width: 559px) {
  .nav a[href="#need"] { display: none; }
}
@media (max-width: 479px) {
  .nav { display: none; }
  .topbar { gap: var(--space-sm); }
  .topbar-end { gap: var(--space-sm); }
  .theme-opt { width: 32px; height: 32px; }
  .motion { min-height: 41px; padding: 0 8px; }
}
@media (max-width: 359px) {
  .topbar { flex-wrap: wrap; row-gap: var(--space-md); }
}

/* Theme switch: System, Light, Dark. One pill, one segment filled. */
.theme {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1.5px solid var(--hero-line);
  border-radius: 999px;
}
.theme[hidden] { display: none; }
.theme-opt {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.theme-opt:hover { background: color-mix(in oklch, var(--hero-fg) 18%, transparent); }
.theme-opt[aria-checked="true"] { background: var(--hero-sel-bg); color: var(--hero-sel-fg); }
.theme-opt:focus-visible { outline-offset: 1px; }
.theme-opt .icon { width: 16px; height: 16px; }

/* Animations switch: same pill as the theme switch. On is a butter track, off is an outline. */
.motion {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 43px;
  padding: 0 10px;
  border: 1.5px solid var(--hero-line);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: 600 0.9375rem/1 var(--font-body);
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.motion[hidden] { display: none; }
.motion:hover { background: color-mix(in oklch, var(--hero-fg) 18%, transparent); }
.motion:focus-visible { outline-offset: 2px; border-radius: 999px; }
.motion-label { display: none; }
.motion-track {
  position: relative;
  flex: none;
  width: 36px;
  height: 22px;
  border: 1.5px solid var(--hero-fg);
  border-radius: 999px;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.motion-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--hero-fg);
  transition: translate 0.25s var(--ease), background-color 0.2s var(--ease);
}
.motion[aria-checked="true"] .motion-track { border-color: var(--hero-sel-bg); background: var(--hero-sel-bg); }
.motion[aria-checked="true"] .motion-track::after { translate: 14px 0; background: var(--hero-sel-fg); }
@media (min-width: 640px) {
  .motion { padding: 0 12px 0 16px; }
  .motion-label { display: inline; }
}
/* Forced colours drop backgrounds: outline the selected theme and the switch when on,
   and keep the thumb in a system colour so its side shows. */
@media (forced-colors: active) {
  .theme-opt[aria-checked="true"],
  .motion[aria-checked="true"] .motion-track { outline: 2px solid CanvasText; outline-offset: 1px; }
  .motion[role="switch"] .motion-track::after { forced-color-adjust: none; background: CanvasText; }
}

.hero-grid {
  display: grid;
  gap: var(--space-lg);
  padding-block: clamp(16px, 4vw, 48px) 88px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
  min-width: 0;
}

/* The app icon beside the title: above it on narrow screens, as tall as its two lines on wide
   ones. Its orange is brighter than the hero's, so a soft shadow lifts it off. */
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}
.hero-icon {
  display: block;
  flex: none;
  width: 88px;
  height: 88px;
  filter: drop-shadow(0 4px 12px oklch(25% 0.1 30 / 0.4));
}
@media (min-width: 960px) {
  .hero-title {
    flex-direction: row;
    align-items: center;
    gap: clamp(20px, 2.4vw, 36px);
  }
  /* As tall as the title's two lines (1.9 × its font size, at line-height 0.95). */
  .hero-icon {
    width: calc(clamp(2.5rem, 0.2rem + 4.5vw, 5rem) * 1.9);
    height: calc(clamp(2.5rem, 0.2rem + 4.5vw, 5rem) * 1.9);
  }  /* Beside the icon, the title gets a little smaller so both fit on one row. */
  .hero .hero-title h1 { font-size: clamp(2.5rem, 0.2rem + 4.5vw, 5rem); }
}

.hero h1 {
  font-size: clamp(2.625rem, 0.9rem + 5.4vw, 5.75rem);
  font-stretch: 112%;
  font-weight: 880;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
@media (min-width: 960px) {
  .hero h1 .nowrap { white-space: nowrap; }
}

.lede {
  max-width: 30ch;
  font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.4375rem);
  line-height: 1.4;
  font-weight: 500;
}

/* Install command */
.cmd {
  width: 100%;
  max-width: 34rem;
  border-radius: 20px;
  background: var(--code-bg);
  color: var(--code-fg);
}
.cmd-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 8px 8px 0 8px;
}
.cmd-tabs { display: flex; gap: 2px; }
.cmd-tab {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--code-dim);
  font: 600 0.9375rem/1 var(--font-body);
  white-space: nowrap;
  cursor: pointer;
}
.cmd-tab:hover { color: var(--code-fg); }
.cmd-tab[aria-selected="true"] {
  background: color-mix(in oklch, var(--code-fg) 13%, transparent);
  color: var(--code-fg);
}
.cmd :focus-visible { outline-color: var(--butter); }

.copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--butter);
  color: var(--ink);
  font: 700 0.9375rem/1 var(--font-body);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.copy:hover { background: var(--butter-deep); }
.copy:active { transform: scale(0.96); }
.copy .icon { width: 16px; height: 16px; }
.copy .icon-check,
.copy[data-state="done"] .icon-copy { display: none; }
.copy[data-state="done"] .icon-check { display: block; }

.cmd pre {
  margin: 0;
  padding: 16px 20px 20px;
  overflow-x: auto;
  font-size: clamp(0.78rem, 0.7rem + 0.35vw, 0.98rem);
  line-height: 1.75;
}
.cmd .p { color: var(--prompt); user-select: none; -webkit-user-select: none; }
.copy[hidden] { display: none; }

/* "In your browser" panel: one line and one button instead of a command */
.cmd-panel-app {
  display: grid;
  justify-items: start;
  gap: var(--space-md);
  padding: 16px 20px 20px;
}
@media (max-width: 480px) {
  .cmd-bar { padding: 6px 6px 0; gap: 4px; }
  .cmd-tab { padding: 0 11px; }
}
/* Narrow phones: Copy shrinks to its icon so three tabs and the button fit one row.
   The label comes back for "Press Ctrl+C" when copying fails. */
@media (max-width: 420px) {
  .cmd-bar .copy { padding: 0 12px; }
  .cmd-bar .copy:not([data-state]) .copy-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
@media (max-width: 340px) {
  .cmd-tab { padding: 0 8px; font-size: 0.875rem; }
}
.cmd-panel-app[hidden] { display: none; }
.cmd-panel-app p {
  margin: 0;
  max-width: 44ch;
  color: var(--code-dim);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.open-app {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--butter);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.open-app .icon { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.open-app:hover { background: var(--butter-deep); }
.open-app:hover .icon { transform: translateX(3px); }
.open-app:active { transform: scale(0.97); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md) var(--space-lg);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid currentColor;
  border-radius: 999px;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { background: var(--hero-fg); color: var(--hero-bg); }

/* Stage */
.hero-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  min-width: 0;
  margin-inline: calc(var(--gutter) * -1);
}
.hero-stage picture { display: contents; }
.hero-poster,
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-poster { object-fit: contain; transition: opacity 0.5s 0.15s; }
.hero-canvas {
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  touch-action: pan-y;
  cursor: grab;
}
.hero-stage.is-dragging .hero-canvas { cursor: grabbing; }
.hero-stage[data-gl="on"] .hero-canvas { opacity: 1; }
.hero-stage[data-gl="on"] .hero-poster { opacity: 0; }

.hero-controls {
  position: absolute;
  left: 50%;
  top: calc(100% - 4px);
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-controls[hidden] { display: none; }
.hero-nav {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1.5px solid var(--hero-line);
  border-radius: 50%;
  background: transparent;
  color: var(--hero-fg);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.hero-nav:hover { background: var(--hero-fg); border-color: var(--hero-fg); color: var(--hero-bg); }
.hero-nav .icon { width: 16px; height: 16px; }
.hero-nav[hidden] { display: none; }
.hero-pause .icon-play,
.hero-pause[aria-pressed="true"] .icon-pause { display: none; }
.hero-pause[aria-pressed="true"] .icon-play { display: block; }
.hero-caption {
  min-width: 9.5em;
  margin-left: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
}

/* Entrance */
.hero-title,
.hero-copy > * { animation: rise 0.9s var(--ease) both; }
.hero-copy > :nth-child(1) { animation-delay: 0.08s; }
.hero-copy > :nth-child(2) { animation-delay: 0.16s; }
.hero-copy > :nth-child(3) { animation-delay: 0.24s; }
.hero-stage { animation: fade 1.2s 0.1s var(--ease) both; }
@keyframes rise {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-areas: "title title" "copy stage";
    column-gap: var(--space-xl);
    row-gap: 0;
    padding-bottom: 96px;
  }
  .hero-title { grid-area: title; }
  .hero-copy { grid-area: copy; align-self: start; padding-top: clamp(32px, 3.5vw, 48px); }
  .hero-stage { grid-area: stage; margin: 0 calc(var(--gutter) * -1) 0 0; }
}

/* ------------------------------------------------------------------ */
/* Get started                                                        */
/* ------------------------------------------------------------------ */

.start h2 { margin-bottom: clamp(32px, 5vw, 64px); }

.steps {
  display: grid;
  gap: var(--space-2xl);
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.step h3 { margin-top: 12px; }
.step p { max-width: 34ch; color: var(--muted); }

@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
}
@media (max-width: 859px) {
  .step { max-width: 460px; }
}

.step-art {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 28px;
  container-type: inline-size;
}
.step-art-1 { background: var(--tile-1); --tile-num: var(--tile-1-num); }
.step-art-2 { background: var(--tile-2); }
.step-art-3 { background: var(--tile-3); }

.step-num {
  position: absolute;
  top: 5cqi;
  left: 7cqi;
  z-index: 2;
  color: var(--tile-num);
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 22cqi;
  line-height: 0.8;
  letter-spacing: -0.04em;
}

/* Step 1: One UI-style settings, drawn in HTML and CSS.
   Everything is sized in cqi so the picture scales like an image. */
.oneui {
  position: absolute;
  inset: 0;
  font-family: var(--font-body);
  color: var(--oui-fg);
}
.oneui-phone {
  position: absolute;
  left: 28cqi;
  top: 12cqi;
  width: 60cqi;
  height: 140cqi;
  padding: 1.7cqi;
  border-radius: 9.5cqi;
  background: var(--oui-bezel);
}
.oneui-screen {
  height: 100%;
  padding: 3cqi 3.2cqi;
  border-radius: 8cqi;
  background: var(--oui-bg);
}
.oneui-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 2.4cqi;
  font-size: 2.6cqi;
  font-weight: 600;
}
.oneui-status svg { width: 6.4cqi; height: auto; }
.oneui svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.oneui svg .fill { fill: currentColor; stroke: none; }
.oneui svg .stroke { fill: none; stroke: currentColor; stroke-width: 1.4; }
.oneui-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 13cqi 2cqi 4.6cqi 2.4cqi;
}
.oneui-title {
  font-size: 7.2cqi;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
}
.oneui-search { width: 4.6cqi; height: 4.6cqi; }
.oneui-card {
  margin: 0 0 2.6cqi;
  padding: 1cqi 0;
  list-style: none;
  border-radius: 5.6cqi;
  background: var(--oui-card);
}
.oneui-card li {
  display: flex;
  align-items: center;
  gap: 3cqi;
  padding: 2.1cqi 3.2cqi;
}
.oneui-card li.is-hit {
  margin-inline: 1cqi;
  padding-inline: 2.2cqi;
  border-radius: 4cqi;
  background: var(--oui-press);
}
.oneui-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 6.6cqi;
  height: 6.6cqi;
  border-radius: 50%;
  color: oklch(99% 0 0);
}
.oneui-ic svg { width: 4.4cqi; height: 4.4cqi; stroke-width: 2.2; }
.ic-blue { background: oklch(63% 0.17 252); }
.ic-green { background: oklch(70% 0.17 150); }
.ic-grey { background: oklch(62% 0.012 260); }
.oneui-row { display: grid; min-width: 0; }
.oneui-row b {
  font-size: 3.3cqi;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.oneui-row small {
  overflow: hidden;
  color: var(--oui-sub);
  font-size: 2.5cqi;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.oneui-pop {
  position: absolute;
  left: 9cqi;
  right: 6cqi;
  bottom: 5cqi;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4cqi;
  padding: 4.6cqi 5.2cqi;
  border-radius: 6.4cqi;
  background: var(--oui-card);
  box-shadow: 0 3cqi 8cqi -2cqi oklch(22% 0.08 28 / 0.45);
}
.oneui-pop b { font-size: 4.7cqi; }
.oneui-pop small { font-size: 3.3cqi; }
.oneui-switch {
  position: relative;
  flex: none;
  width: 11.4cqi;
  height: 6.6cqi;
  border-radius: 999px;
  background: var(--oui-blue);
}
.oneui-switch::after {
  content: "";
  position: absolute;
  top: 1.1cqi;
  right: 1.1cqi;
  width: 4.4cqi;
  height: 4.4cqi;
  border-radius: 50%;
  background: oklch(99% 0 0);
}

/* Step 2: terminal */
.term {
  position: absolute;
  left: 7cqi;
  right: 7cqi;
  top: 34cqi;
  overflow: hidden;
  border-radius: 4.4cqi;
  background: var(--code-bg);
  color: var(--code-fg);
  box-shadow: 0 3cqi 8cqi -3cqi oklch(30% 0.08 70 / 0.5);
}
.term-bar { display: flex; gap: 1.6cqi; padding: 3.4cqi 4cqi 0; }
.term-bar i {
  width: 2.4cqi;
  height: 2.4cqi;
  border-radius: 50%;
  background: color-mix(in oklch, var(--code-fg) 28%, transparent);
}
.term pre {
  margin: 0;
  padding: 2.6cqi 5cqi 5cqi;
  font-size: 3.55cqi;
  line-height: 1.6;
  white-space: pre;
}
.term .p { color: var(--prompt); }
.term b { font-weight: 600; }
.term .dim { color: var(--code-dim); }
.term .url { color: oklch(82% 0.11 215); font-weight: 600; }
.term .ok { color: oklch(80% 0.15 150); }

/* Step 3: screenshot */
.shot {
  position: absolute;
  left: -25cqi;
  top: 36cqi;
  width: 150cqi;
  margin: 0;
  overflow: hidden;
  border-radius: 3cqi;
  box-shadow: 0 3cqi 10cqi -3cqi oklch(20% 0.06 340 / 0.55);
}
/* Crop off the screenshot's header so the picture starts at the connect card. */
.shot img { width: 100%; height: auto; margin-top: -28cqi; }

.also {
  display: grid;
  gap: 10px;
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.also a { font-weight: 600; }

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

.features {
  --focus: var(--butter);
  --link: var(--butter);
  background: var(--feat-bg);
  color: var(--feat-fg);
}
.features h2 { margin-bottom: clamp(40px, 6vw, 80px); }
.feature-list {
  display: grid;
  gap: var(--space-2xl) var(--space-xl);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 620px) {
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .feature-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 48px; }
}
.feature-list li {
  display: grid;
  gap: 10px;
  align-content: start;
  padding-top: 20px;
  border-top: 2px solid var(--feat-rule);
}
.feature-list p { max-width: 34ch; color: var(--feat-muted); line-height: 1.5; }

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.05em 0.35em;
  border: 1px solid color-mix(in oklch, currentColor 40%, transparent);
  border-bottom-width: 2px;
  border-radius: 6px;
  font-size: 0.85em;
  line-height: 1.3;
  text-align: center;
}
kbd + kbd { margin-left: 2px; }

/* ------------------------------------------------------------------ */
/* What you need                                                      */
/* ------------------------------------------------------------------ */

.need-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.need-grid .os { margin-top: var(--space-2xl); }
@media (min-width: 960px) {
  .need-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(48px, 7vw, 112px); align-items: start; }
  .need-grid h2 { grid-column: 1 / -1; }
  .need-grid .os { margin-top: 0; }
}

.reqs { margin: 0; }
.need-grid h2 { margin-bottom: clamp(32px, 4vw, 48px); }
.reqs div {
  display: grid;
  gap: 2px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.reqs div:first-child { border-top: 1px solid var(--line); }
.reqs dt { font-weight: 700; }
.reqs dd { margin: 0; color: var(--muted); }
@media (min-width: 560px) {
  .reqs div { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--space-lg); align-items: baseline; }
}

.os { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-md); min-width: 0; }
.os-tabs {
  display: inline-flex;
  justify-self: start;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: color-mix(in oklch, var(--fg) 8%, transparent);
}
.os-tab {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 600 0.9375rem/1 var(--font-body);
  cursor: pointer;
}
.os-tab:hover { color: var(--fg); }
.os-tab[aria-selected="true"] { background: var(--fg); color: var(--bg); }
.os-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.os-panel[hidden] { display: none; }

.cmd-flat { max-width: none; }
.cmd-static { display: flex; align-items: flex-start; }
.cmd-static pre { flex: 1; min-width: 0; padding: 18px 12px 18px 20px; }
.cmd-static .copy {
  flex: none;
  width: 40px;
  margin: 10px 10px 10px 0;
  padding: 0;
  justify-content: center;
}
.os-note { color: var(--muted); font-size: 0.9375rem; }

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

.faq-section { padding-top: 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4vw, 48px); }
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(48px, 7vw, 112px); }
}
.faq details { border-top: 2px solid var(--fg); }
.faq details:last-child { border-bottom: 2px solid var(--fg); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 20px 0;
  font-family: var(--font-display);
  font-stretch: 106%;
  font-weight: 750;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2.5px 100% no-repeat;
  transition: rotate 0.3s var(--ease);
}
.faq details[open] summary::after { rotate: 45deg; }
.faq summary:hover { color: var(--link); }
.faq details p { max-width: 60ch; padding-bottom: 22px; color: var(--muted); }

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

.footer {
  --focus: var(--butter);
  --link: var(--foot-fg);
  padding-block: 56px;
  background: var(--foot-bg);
  color: var(--foot-fg);
}
.footer-inner { display: grid; gap: var(--space-lg); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: inherit; font-weight: 600; text-decoration: none; padding-block: 6px; }
.footer-links a:hover { text-decoration: underline; }
.legal { max-width: 72ch; color: var(--foot-muted); font-size: 0.875rem; }
.legal + .legal { margin-top: calc(var(--space-lg) * -0.6); }
@media (min-width: 860px) {
  .footer-inner { grid-template-columns: auto 1fr; align-items: center; }
  .footer-links { justify-content: flex-end; }
  .legal { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------ */
/* Without JS: show every command, hide the controls that need JS      */
/* ------------------------------------------------------------------ */

html:not(.js) [role="tabpanel"][hidden] { display: block; }
html:not(.js) [role="tablist"],
html:not(.js) .copy { display: none; }
html:not(.js) .cmd-bar { padding: 0; }
html:not(.js) .cmd-panel + .cmd-panel { border-top: 1px solid var(--code-line); }
html:not(.js) .cmd-panel-app[hidden] { display: grid; }
html:not(.js) .os-panel[hidden] { display: grid; }
html:not(.js) .os-panel { margin-bottom: var(--space-md); }
.os-name { display: none; }
html:not(.js) .os-name { display: block; font-weight: 700; }

/* ------------------------------------------------------------------ */
/* Motion and print                                                   */
/* ------------------------------------------------------------------ */

/* data-motion on <html> is the one switch for motion. An inline script in <head> sets it
   from the saved choice, or from prefers-reduced-motion when nothing is saved. With "off",
   nothing animates or transitions. The media query only covers a page where that script
   did not run. */
:root[data-motion="off"] { scroll-behavior: auto; }
:root[data-motion="off"] *,
:root[data-motion="off"] *::before,
:root[data-motion="off"] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion]) { scroll-behavior: auto; }
  :root:not([data-motion]) *,
  :root:not([data-motion]) *::before,
  :root:not([data-motion]) *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .hero-stage, .copy, .nav { display: none; }
  .hero, .features, .footer { background: none; color: inherit; }
}
