/* PullCord landing page.
   One accent (lamp-light saffron), cool neutrals, Apple's system font.
   Radius rule: interactive controls are full pills; cards, tiles and images are 28px (16px when small). */

:root {
  --accent: #f5a524;
  --accent-ink: #1c1608;
  --radius: 28px;
  --radius-small: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --font-display: ui-rounded, -apple-system, "SF Pro Rounded", "SF Pro Display", system-ui, sans-serif;
}

:root[data-theme="light"] {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eceef2;
  --text: #16171b;
  --text-2: #565b66;
  --line: rgb(22 23 27 / 0.08);
  --glow: rgb(245 165 36 / 0.22);
  --glass: rgb(255 255 255 / 0.62);
  --glass-line: rgb(255 255 255 / 0.7);
  --shadow: 0 24px 60px -24px rgb(40 48 70 / 0.28);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0d0e12;
  --surface: #16181e;
  --surface-2: #1d2027;
  --text: #ecedef;
  --text-2: #a3a8b3;
  --line: rgb(255 255 255 / 0.08);
  --glow: rgb(120 140 255 / 0.12);
  --glass: rgb(20 22 28 / 0.6);
  --glass-line: rgb(255 255 255 / 0.1);
  --shadow: 0 24px 60px -24px rgb(0 0 0 / 0.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
}

h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; color: var(--text-2); max-width: 60ch; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
}
.skip:focus { top: 12px; }

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

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 17px/1 var(--font); text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, box-shadow 0.25s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 10px 30px -12px rgb(245 165 36 / 0.7), inset 0 1px 0 rgb(255 255 255 / 0.35);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-small { height: 38px; padding: 0 18px; font-size: 15px; }

/* ---------- Nav: a small centred glass pill (a web approximation, not Apple's Liquid Glass) ---------- */

.nav {
  position: sticky; top: 0; z-index: 20;
  height: var(--nav-h); padding: 0 16px;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;           /* only the pill catches clicks; the cord behind stays pullable */
}
.nav-inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: 30px;
  height: 52px; padding: 0 7px 0 16px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 var(--glass-line), 0 8px 24px -16px rgb(30 40 70 / 0.3);
  transition: box-shadow 0.4s var(--ease), background-color 0.4s var(--ease);
}
.nav.scrolled .nav-inner { box-shadow: inset 0 1px 0 var(--glass-line), 0 14px 36px -14px rgb(30 40 70 / 0.38); }
:root[data-theme="dark"] .nav.scrolled .nav-inner { box-shadow: inset 0 1px 0 var(--glass-line), 0 14px 36px -12px rgb(0 0 0 / 0.7); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 17px/1 var(--font-display); text-decoration: none; letter-spacing: -0.01em;
}
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { font-size: 15px; color: var(--text-2); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* Download buttons carry a little Mac. */
.btn-download { gap: 9px; }
.mac-glyph { width: 20px; height: 20px; flex: none; fill: currentColor; margin-top: -1px; }
.btn-small .mac-glyph { width: 17px; height: 17px; }
.requires { margin-top: 14px; font-size: 14px; color: var(--text-2); }
.requires a { color: inherit; }

@media (prefers-reduced-transparency: reduce) {
  .nav-inner { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

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

.hero {
  position: relative;
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  min-height: calc(100dvh - var(--nav-h));
  overflow-x: clip;
  display: grid; grid-template-columns: 5fr 7fr; grid-template-rows: 1fr auto;
  align-items: center; column-gap: 24px;
}
.hero-copy { padding: 48px 0 40px; }
.hero-icon {
  display: block; width: clamp(112px, 12vw, 168px); height: auto; margin: 0 0 18px -12px;
  filter: drop-shadow(0 18px 28px rgb(30 40 70 / 0.22)) drop-shadow(0 3px 6px rgb(30 40 70 / 0.12));
}
:root[data-theme="dark"] .hero-icon { filter: drop-shadow(0 18px 30px rgb(0 0 0 / 0.5)) drop-shadow(0 3px 6px rgb(0 0 0 / 0.3)); }
.hero h1 {
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.lede { margin-top: 22px; font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.45; max-width: 30ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-stage { position: relative; align-self: stretch; min-height: 560px; margin-top: calc(-1 * var(--nav-h)); }
.cord-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  touch-action: pan-y;
}
.lamp-glow {
  position: absolute; left: var(--cord-x, 50%); top: 18%;
  width: 560px; height: 560px; margin-left: -280px;
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
  transition: background 0.6s var(--ease);
}
.pull-hint {
  position: absolute; left: calc(50% + 46px); top: 352px;
  opacity: 0;
  font: 500 15px/1.2 var(--font-display); color: var(--text-2);
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
}
.pull-hint::before {
  content: ""; display: inline-block; width: 22px; height: 1px; margin-right: 8px;
  vertical-align: middle; background: currentColor; opacity: 0.6;
}
.hint-ready .pull-hint { opacity: 1; }
.hint-hidden .pull-hint { opacity: 0; }

/* Cord picker: a strip of cords along the bottom of the hero. The middle one hangs above;
   the strip fades out at both ends. */
.hero-picker {
  grid-column: 1 / -1;
  display: grid; justify-items: center; gap: 6px;
  padding-bottom: 32px;
}
.picker-track {
  --tile: 92px;
  position: relative;
  width: min(100%, 900px); height: 148px;
  overflow-x: clip; overflow-y: visible;
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}
.picker-track.dragging { cursor: grabbing; }
.picker-track:focus-visible { outline: none; }
.picker-track:focus-visible .picker-item[aria-selected="true"] { outline: 3px solid var(--accent); outline-offset: 2px; }
/* Each tile is placed by script: --x is its distance from the middle, --s and --o its scale and opacity. */
.picker-item {
  position: absolute; left: 50%; top: 12px;
  width: var(--tile); height: 112px; margin-left: calc(var(--tile) / -2);
  display: grid; place-items: center;
  border-radius: var(--radius-small);
  cursor: pointer;
  transform: translateX(var(--x, 0)) scale(var(--s, 1));
  opacity: var(--o, 1);
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.picker-item img { max-height: 92px; width: auto; pointer-events: none; -webkit-user-drag: none; }
.picker-item[aria-selected="true"] {
  background: radial-gradient(circle at 50% 30%, var(--glow), transparent 75%), var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 10px 24px -12px rgb(40 48 70 / 0.35);
}
.picker-caption { display: flex; align-items: center; gap: 14px; }
.picker-name {
  min-width: 13ch; text-align: center;
  font: 600 17px/1.2 var(--font-display); color: var(--text);
}
.picker-arrow {
  width: 36px; height: 36px; padding: 0 0 2px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: 400 22px/1 var(--font); cursor: pointer;
  transition: background-color 0.2s, transform 0.2s var(--ease);
}
.picker-arrow:hover { background: var(--surface-2); }
.picker-arrow:active { transform: scale(0.94); }
.picker-swatches { display: flex; gap: 8px; min-height: 22px; }
.picker-swatches .swatch { border-color: var(--bg); }

.sr-pull, .sr-status {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.sr-pull:focus {
  width: auto; height: auto; clip: auto; left: 50%; bottom: 24px; transform: translateX(-50%);
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: 600 15px var(--font);
}

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

section { max-width: 1240px; margin: 0 auto; padding: 120px 24px 0; }
.section-head { display: grid; gap: 14px; }

/* ---------- Mac pieces shared by the menu bar scene and the MacBook ----------
   A web mock-up of macOS, drawn with the site's own art. Glyphs are SF Symbols rendered to PNG and
   used as masks, so they take the menu bar's text colour. */

.glyph {
  display: inline-block; flex: none; width: 16px; height: 16px;
  background: currentColor;
  -webkit-mask: var(--g) center / contain no-repeat; mask: var(--g) center / contain no-repeat;
}
.g-lamp { --g: url(assets/img/ui/menubar-light.png); width: 18px; height: 18px; }
:root[data-theme="dark"] .g-lamp { --g: url(assets/img/ui/menubar-dark.png); }
.g-battery { --g: url(assets/img/ui/sym-battery-100percent.png); width: 25px; }
.g-wifi { --g: url(assets/img/ui/sym-wifi.png); }
.g-search { --g: url(assets/img/ui/sym-magnifyingglass.png); width: 15px; }
.g-cc { --g: url(assets/img/ui/sym-switch-2.png); width: 15px; }
.g-moon { --g: url(assets/img/ui/sym-moon.png); }
:root[data-theme="dark"] .g-moon { --g: url(assets/img/ui/sym-sun-max.png); }
.g-gear { --g: url(assets/img/ui/sym-gearshape.png); }
.g-switch-on { --g: url(assets/img/ui/sym-lightswitch-on.png); }
.g-switch-off { --g: url(assets/img/ui/sym-lightswitch-off.png); }
.g-taut { --g: url(assets/img/ui/sym-arrow-down-to-line.png); }
.g-dock { --g: url(assets/img/ui/sym-arrow-up-to-line.png); }
.g-hand { --g: url(assets/img/ui/sym-hand-draw.png); }

/* Wallpaper: cool sky with a warm lamp-light corner; night version for dark. */
.desk, .mb-screen {
  --ink: rgb(0 0 0 / 0.86);
  --bar: rgb(255 255 255 / 0.3);
  --pill: rgb(0 0 0 / 0.1);
  background:
    radial-gradient(70% 90% at 88% 0%, rgb(255 203 140 / 0.95), transparent 60%),
    radial-gradient(80% 90% at 0% 100%, rgb(126 176 245 / 0.95), transparent 62%),
    radial-gradient(60% 60% at 45% 55%, rgb(214 226 250 / 0.9), transparent 70%),
    linear-gradient(165deg, #dfe8f8, #f4e6ea);
  transition: background 0.6s var(--ease);
}
:root[data-theme="dark"] :is(.desk, .mb-screen) {
  --ink: rgb(255 255 255 / 0.92);
  --bar: rgb(0 0 0 / 0.16);
  --pill: rgb(255 255 255 / 0.2);
  background:
    radial-gradient(60% 80% at 88% 0%, rgb(140 92 40 / 0.55), transparent 60%),
    radial-gradient(80% 90% at 0% 100%, rgb(30 66 128 / 0.9), transparent 62%),
    radial-gradient(60% 60% at 45% 55%, rgb(40 48 92 / 0.7), transparent 70%),
    linear-gradient(165deg, #0e1428, #1a1424);
}
.mac-bar {
  position: absolute; inset: 0 0 auto; z-index: 2;
  height: 30px; padding: 0 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  color: var(--ink); font: 500 13.5px/1 var(--font);
  background: var(--bar);
  -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
}
.mac-menus, .mac-status { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.mac-menus b { font-weight: 700; }
.mac-status { gap: 16px; }
.mac-lamp { display: grid; place-items: center; height: 22px; padding: 0 7px; margin-right: -4px; border-radius: 6px; }
.mac-lamp.is-open { background: var(--pill); }

/* ---------- Menu bar scene ---------- */

.desk {
  position: relative; margin-top: 48px;
  height: 540px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.desk .mac-bar { height: 32px; }
.desk-cord { position: absolute; top: 29px; width: 360px; height: calc(100% - 29px); touch-action: pan-y; }

.swatches { display: flex; gap: 8px; margin-top: 8px; }
.swatch {
  width: 22px; height: 22px; padding: 0; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.swatch:hover { transform: scale(1.12); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--text); }

/* ---------- How it works: a big typographic list ---------- */

.moves {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; gap: 0;
}
.moves li {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: baseline;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.moves h3 {
  font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.035em;
}
.moves p { font-size: 18px; }

/* ---------- The app, open on a MacBook ----------
   The screen is laid out on a 1512 x 945 point grid (a 14-inch MacBook Pro) and scaled with
   container units, so the whole Mac shrinks as one piece. */

.macbook { margin: 56px auto 0; width: min(100%, 1120px); container-type: inline-size; }
.mb-lid {
  margin: 0 6.5cqw;
  padding: 1.25cqw 1.25cqw 1.6cqw;
  border-radius: 2.6cqw 2.6cqw 1cqw 1cqw;
  background: #0a0a0c;
  box-shadow: 0 0 0 0.12cqw #9a9ca3, 0 0 0 0.3cqw #2b2c30, 0 4cqw 7cqw -3cqw rgb(20 24 40 / 0.45);
}
.mb-screen {
  --u: calc(100cqw / 1512);
  position: relative; overflow: hidden;
  aspect-ratio: 1512 / 945; container-type: inline-size;
  border-radius: 1.4cqw 1.4cqw 0 0;
}
.mb-screen .mac-bar { height: calc(37 * var(--u)); padding: 0 calc(16 * var(--u)); font-size: calc(13.5 * var(--u)); }
.mb-screen .mac-menus { gap: calc(20 * var(--u)); }
.mb-screen .mac-status { gap: calc(17 * var(--u)); }
.mb-screen .glyph { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }
.mb-screen .g-lamp { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
.mb-screen .g-battery { width: calc(25 * var(--u)); }
.mb-screen .mac-lamp { height: calc(24 * var(--u)); padding: 0 calc(7 * var(--u)); }
.mb-notch {
  position: absolute; z-index: 3; left: 50%; top: 0;
  width: calc(196 * var(--u)); height: calc(33 * var(--u)); margin-left: calc(-98 * var(--u));
  background: #0a0a0c; border-radius: 0 0 calc(11 * var(--u)) calc(11 * var(--u));
}
.mb-base {
  position: relative; height: 2.1cqw;
  border-radius: 0.3cqw 0.3cqw 2.2cqw 2.2cqw / 0.3cqw 0.3cqw 1.8cqw 1.8cqw;
  background: linear-gradient(180deg, #e9eaee 0%, #c9cbd1 38%, #9fa2aa 100%);
  box-shadow: 0 1.4cqw 2.4cqw -1cqw rgb(20 24 40 / 0.4);
}
.mb-base::before {      /* the thumb scoop for opening the lid */
  content: ""; position: absolute; left: 50%; top: 0;
  width: 14cqw; height: 0.75cqw; margin-left: -7cqw;
  border-radius: 0 0 1cqw 1cqw;
  background: linear-gradient(180deg, #a9acb3, #c8cad0);
}
:root[data-theme="dark"] .mb-base { background: linear-gradient(180deg, #5d6068 0%, #3d3f45 40%, #26272b 100%); }
:root[data-theme="dark"] .mb-base::before { background: linear-gradient(180deg, #2a2b2f, #3a3c41); }

/* PullCord's main window, after the SwiftUI layout: headline left, cord right, shelf below. */
.win {
  --wink: #16171b; --wink-2: rgb(22 23 27 / 0.6); --wline: rgb(0 0 0 / 0.08); --glassbg: rgb(255 255 255 / 0.55);
  position: absolute; left: calc(186 * var(--u)); top: calc(92 * var(--u));
  width: calc(1140 * var(--u)); height: calc(760 * var(--u));
  border-radius: calc(26 * var(--u)); overflow: hidden;
  color: var(--wink);
  background:
    radial-gradient(60% 70% at 78% 25%, rgb(255 214 160 / 0.55), transparent 70%),
    radial-gradient(60% 60% at 10% 90%, rgb(190 210 245 / 0.7), transparent 70%),
    linear-gradient(160deg, #f3f5fa, #ece9f1);
  box-shadow: 0 0 0 calc(1 * var(--u)) rgb(0 0 0 / 0.12),
              0 calc(30 * var(--u)) calc(80 * var(--u)) calc(-10 * var(--u)) rgb(10 14 30 / 0.45);
  transition: background 0.6s var(--ease), color 0.6s var(--ease);
}
:root[data-theme="dark"] .win {
  --wink: #f2f3f6; --wink-2: rgb(242 243 246 / 0.62); --wline: rgb(255 255 255 / 0.1); --glassbg: rgb(255 255 255 / 0.1);
  background:
    radial-gradient(60% 70% at 78% 25%, rgb(70 60 120 / 0.45), transparent 70%),
    radial-gradient(60% 60% at 10% 90%, rgb(40 50 100 / 0.6), transparent 70%),
    linear-gradient(160deg, #1b2038, #241c34);
  box-shadow: 0 0 0 calc(1 * var(--u)) rgb(255 255 255 / 0.14),
              0 calc(30 * var(--u)) calc(80 * var(--u)) calc(-10 * var(--u)) rgb(0 0 0 / 0.6);
}
.win .glyph { width: calc(17 * var(--u)); height: calc(17 * var(--u)); }
.win-toolbar {
  position: absolute; z-index: 2; inset: 0 0 auto; height: calc(62 * var(--u));
  display: flex; align-items: center; padding: 0 calc(20 * var(--u));
}
.win-lights { display: flex; gap: calc(9 * var(--u)); }
.win-lights i { width: calc(13 * var(--u)); height: calc(13 * var(--u)); border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 calc(0.6 * var(--u)) rgb(0 0 0 / 0.12); }
.win-lights i:nth-child(2) { background: #febc2e; }
.win-lights i:nth-child(3) { background: #28c840; }
.win-seg {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; padding: calc(3 * var(--u)); border-radius: 999px;
  background: var(--glassbg); box-shadow: inset 0 0 0 calc(1 * var(--u)) var(--wline);
  font: 500 calc(13 * var(--u))/1 var(--font); white-space: nowrap;
}
.win-seg > * { padding: calc(7 * var(--u)) calc(14 * var(--u)); border-radius: 999px; }
.win-seg b { font-weight: 600; background: var(--glassbg); box-shadow: 0 calc(1 * var(--u)) calc(4 * var(--u)) rgb(0 0 0 / 0.12); }
.win-actions {
  margin-left: auto; display: flex; gap: calc(16 * var(--u)); align-items: center;
  padding: calc(9 * var(--u)) calc(15 * var(--u)); border-radius: 999px;
  background: var(--glassbg); box-shadow: inset 0 0 0 calc(1 * var(--u)) var(--wline);
}
.win-head {
  position: absolute; left: calc(64 * var(--u)); top: calc(150 * var(--u)); width: calc(440 * var(--u));
  display: grid; justify-items: start;
}
.win-head p { margin: 0; max-width: none; color: inherit; }
.win-cat { font: 700 calc(12 * var(--u))/1 var(--font); letter-spacing: 0.14em; color: var(--wink-2) !important; }
.win-name { margin-top: calc(14 * var(--u)) !important; font: 700 calc(60 * var(--u))/1 var(--font-display); letter-spacing: -0.02em; }
.win-tag { margin-top: calc(14 * var(--u)) !important; font-size: calc(17 * var(--u)); line-height: 1.35; color: var(--wink-2) !important; }
.win-meters { display: flex; gap: calc(28 * var(--u)); margin-top: calc(26 * var(--u)); }
.win-meter { display: grid; gap: calc(7 * var(--u)); font: 500 calc(11.5 * var(--u))/1 var(--font); color: var(--wink-2); }
.win-meter span { display: flex; gap: calc(3 * var(--u)); }
.win-meter i { width: calc(14 * var(--u)); height: calc(5 * var(--u)); border-radius: 99px; background: currentColor; opacity: 0.18; }
.win-meter i.on { opacity: 1; color: var(--wink); }
.win-colors { margin-top: calc(22 * var(--u)); min-height: calc(26 * var(--u)); }
.win-colors .swatches { margin: 0; gap: calc(10 * var(--u)); }
.win-colors .swatch { width: calc(26 * var(--u)); height: calc(26 * var(--u)); border-width: calc(2 * var(--u)); border-color: transparent; }
.win-colors .swatch[aria-pressed="true"] { box-shadow: 0 0 0 calc(2 * var(--u)) var(--wink); }
.win-sounds { display: flex; gap: calc(10 * var(--u)); margin-top: calc(22 * var(--u)); }
.win-sounds span {
  display: grid; place-items: center; width: calc(36 * var(--u)); height: calc(36 * var(--u)); border-radius: 50%;
  background: var(--glassbg); box-shadow: inset 0 0 0 calc(1 * var(--u)) var(--wline);
}
.win-sounds .glyph { width: calc(15 * var(--u)); height: calc(15 * var(--u)); }
.win-try { display: flex; align-items: center; gap: calc(7 * var(--u)); margin-top: calc(26 * var(--u)) !important; font-size: calc(13 * var(--u)); color: var(--wink-2) !important; }
.win-cord { position: absolute; left: calc(560 * var(--u)); top: 0; width: calc(560 * var(--u)); height: calc(560 * var(--u)); touch-action: pan-y; }
.win-shelf {
  position: absolute; inset: auto 0 0; height: calc(196 * var(--u));
  display: flex; justify-content: space-between; padding: 0 calc(34 * var(--u)) calc(26 * var(--u));
}
.shelf-item {
  width: calc(112 * var(--u)); padding: calc(10 * var(--u)) 0 calc(12 * var(--u));
  display: grid; justify-items: center; align-content: start; gap: calc(5 * var(--u));
  border-radius: calc(18 * var(--u)); cursor: pointer;
  transition: background-color 0.3s var(--ease);
}
.shelf-item img { height: calc(98 * var(--u)); width: auto; margin-bottom: calc(6 * var(--u)); pointer-events: none; }
.shelf-item b { font: 600 calc(12.5 * var(--u))/1.1 var(--font); white-space: nowrap; }
.shelf-item small { font: 400 calc(11 * var(--u))/1.1 var(--font); color: var(--wink-2); white-space: nowrap; }
.shelf-item:hover { background: var(--glassbg); }
.shelf-item[aria-selected="true"] { background: var(--glassbg); box-shadow: inset 0 0 0 calc(1 * var(--u)) var(--wline); }

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

.faq-list { margin-top: 40px; display: grid; gap: 12px; max-width: 820px; }
.faq details {
  border-radius: var(--radius-small); background: var(--surface); border: 1px solid var(--line);
  padding: 4px 24px;
}
.faq summary {
  list-style: none; cursor: pointer;
  padding: 18px 0; font: 600 17px/1.3 var(--font);
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--text-2);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; }

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

.get { padding-bottom: 120px; }
.get-card {
  border-radius: var(--radius); padding: 64px 32px;
  display: grid; justify-items: center; text-align: center; gap: 16px;
  background:
    radial-gradient(60% 80% at 50% 0%, var(--glow), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
}
.get-card img { width: 96px; height: 96px; margin-bottom: 8px; }
.get-card .btn { margin-top: 12px; }
.install {
  margin: 14px 0 0; padding: 0; list-style: none; counter-reset: step;
  display: grid; gap: 10px; text-align: left; max-width: 520px;
}
.install li {
  counter-increment: step; position: relative; padding-left: 38px;
  font-size: 16px; color: var(--text-2);
}
.install li::before {
  content: counter(step); position: absolute; left: 0; top: -1px;
  width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center;
  font: 700 13px/1 var(--font); color: var(--accent-ink); background: var(--accent);
}
.install b { color: var(--text); font-weight: 600; }

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

.footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 1240px; margin: 0 auto; padding: 32px 24px 48px;
  display: grid; gap: 10px;
}
.footer p { font-size: 13px; }

/* ---------- Reveal on scroll ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-inner { gap: 18px; }
  .hero { grid-template-columns: 1fr; grid-template-rows: none; min-height: auto; gap: 0; }
  .hero-stage { order: -1; min-height: 430px; margin-top: -12px; }   /* hangs from the bottom of the pill */
  .hero-picker { order: 0; padding-bottom: 24px; }
  .picker-track { --tile: 80px; height: 136px; }
  .picker-item { height: 100px; }
  .picker-item img { max-height: 80px; }
  .hero-copy { order: 1; padding: 24px 0 56px; }
  .pull-hint { top: 300px; left: calc(50% + 36px); }
  .lamp-glow { width: 380px; height: 380px; margin-left: -190px; }
  section { padding-top: 88px; }
  .desk { height: 460px; margin-top: 36px; }
  .desk .mac-bar { padding: 0 12px; }
  .desk .wide { display: none; }
}
@media (max-width: 520px) {
  .desk .mac-menus span:nth-of-type(n+3), .desk .clock-date { display: none; }
  .desk .mac-menus, .desk .mac-status { gap: 14px; }
  .macbook { margin-top: 40px; }
  .moves li { grid-template-columns: 1fr; gap: 10px; }
  .get-card { padding: 48px 24px; }
}
