/* Jukepod -- promo page.
   One bold thing: the iPod in the hero, with a click wheel that works.
   Everything around it is quiet: left-aligned type, white polycarbonate
   panels on a cool aluminium page, and the device's own blue selection
   gradient kept for things you can press or that are selected. Green (the
   iPod's battery) only ever means "passed". */

@font-face { font-family: "League Spartan"; font-weight: 500;
  src: url("../fonts/LeagueSpartan-Medium.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "League Spartan"; font-weight: 600;
  src: url("../fonts/LeagueSpartan-SemiBold.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "League Spartan"; font-weight: 700;
  src: url("../fonts/LeagueSpartan-Bold.woff2") format("woff2"); font-display: swap; }

:root {
  --page:   #ECEFF3;     /* aluminium */
  --panel:  #FFFFFF;     /* polycarbonate */
  --panel-2:#F5F7FA;
  --ink:    #0E1A2B;
  --muted:  #46536A;
  --faint:  #586377;     /* 4.5:1 on the page and the panels */
  --line:   #D3D9E1;
  --sel-a:  #6FB1F2;
  --sel-b:  #1F63C6;
  --sel:    linear-gradient(180deg, var(--sel-a), var(--sel-b));
  --focus:  #1F63C6;
  --signal: #237A36;     /* battery green: passed */
  --warn:   #8F5B0C;
  --bad:    #C2412D;
  --shadow: 0 1px 2px rgba(14,26,43,.06), 0 12px 32px rgba(14,26,43,.08);
  --display: "League Spartan", "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0E1520; --panel: #151E2B; --panel-2: #1A2433; --ink: #E9EEF5;
    --muted: #B3BECD; --faint: #8A97A9; --line: #2A3647; --focus: #6FB1F2;
    --signal: #4CC36A; --warn: #E0B341; --bad: #F07A63;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #0E1520; --panel: #151E2B; --panel-2: #1A2433; --ink: #E9EEF5;
  --muted: #B3BECD; --faint: #8A97A9; --line: #2A3647; --focus: #6FB1F2;
  --signal: #4CC36A; --warn: #E0B341; --bad: #F07A63;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink);
  font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--focus); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 8px 14px;
  background: var(--panel); border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }

/* ---- type: League Spartan for what you read first, set tight ---- */
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0;
  letter-spacing: -.015em; }
h1 { font-size: clamp(48px, 7.4vw, 92px); line-height: .95; font-weight: 700;
  letter-spacing: -.035em; }
h2 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.05; font-weight: 700; }
h3 { font-size: 24px; line-height: 1.15; font-weight: 600; }
p { margin: 0; }
.lede { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 34em;
  margin-top: 24px; }
.lede strong { color: var(--ink); font-weight: 650; }
.section-lede { color: var(--muted); max-width: 40em; margin-top: 14px; font-size: 18px; }
.fl-sub { margin-top: 32px; }

/* phones and narrow windows: every section title centred, like the hero's */
@media (max-width: 860px) { main h2 { text-align: center; } }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center;
  font: 600 16px/1 var(--body); padding: 13px 20px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  white-space: nowrap; transition: filter .12s, transform .06s; }
.btn:active { transform: translateY(1px); }
.btn-select { color: #fff; background: var(--sel); border-color: #1a56ad;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 2px 6px rgba(31,99,198,.28); }
.btn-select:hover { filter: brightness(1.07); }
.btn-wide { width: 100%; padding: 15px 20px; }

/* Join the beta, the page's one sign-up button: the iPod's selector blue as a
   wide glossy pill -- a deep three-stop gradient (white text at 4.5:1 or more
   everywhere it sits) under a glass top half, a
   lit top edge and a shaded bottom one, a blue glow, and an arrow that moves
   on hover. */
.btn-join { --join-edge: #174FA0; --join-glow: rgba(31, 99, 198, .35);
  gap: 10px; min-width: 176px; height: 44px; padding: 0 18px 0 24px;
  border-radius: 999px; border: 1px solid var(--join-edge); color: #fff;
  font-size: 16px; letter-spacing: .01em;
  text-shadow: 0 1px 1px rgba(10, 40, 90, .45);
  background:
    linear-gradient(180deg, rgba(255,255,255,.26) 0%, rgba(255,255,255,.05) 50%, rgba(255,255,255,0) 50%),
    linear-gradient(180deg, #3577CE 0%, #174EA4 55%, #123F88 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -1px 0 rgba(0,0,0,.18),
    0 6px 18px var(--join-glow), 0 1px 2px rgba(14, 26, 43, .2);
  transition: filter .15s, transform .15s, box-shadow .15s; }
.btn-join svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 1px 1px rgba(10, 40, 90, .45)); transition: transform .15s; }
.btn-join:hover { filter: brightness(1.06); transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -1px 0 rgba(0,0,0,.18),
    0 10px 26px var(--join-glow), 0 1px 2px rgba(14, 26, 43, .2); }
.btn-join:hover svg { transform: translateX(3px); }
.btn-join:active { transform: translateY(1px); filter: brightness(.97);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.25), 0 3px 8px var(--join-glow); }
.btn-join:focus-visible { border-radius: 999px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-join { --join-edge: #3D7FD8; --join-glow: rgba(70, 140, 235, .45); } }
:root[data-theme="dark"] .btn-join { --join-edge: #3D7FD8; --join-glow: rgba(70, 140, 235, .45); }
@media (prefers-reduced-motion: reduce) {
  .btn-join, .btn-join svg { transition: none; }
  .btn-join:hover, .btn-join:active, .btn-join:hover svg { transform: none; } }

/* ---- top bar ---- */
.top { position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--page) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.top-in { display: flex; align-items: center; gap: 24px; height: 80px; }
.brand { display: block; flex: none; }
.logo { height: 60px; width: auto; }
.logo-white, .logo-foot.logo-white { display: none; }
:root[data-theme="dark"] .logo-ink { display: none; }
:root[data-theme="dark"] .logo-white { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-ink { display: none; }
  :root:not([data-theme="light"]) .logo-white { display: block; }
}
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 550; font-size: 15.5px; }
.nav a:hover { color: var(--ink); }
/* the light/dark switch sits at the far right, just after Join the beta */
.themebtn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); cursor: pointer; display: grid;
  place-items: center; flex: none; margin-left: -10px; }
.themebtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.themebtn svg path { fill: currentColor; stroke: none; }
/* the menu button: phones and narrow windows only, where the links fold into a
   panel that drops from under the top bar */
.menubtn { display: none; width: 40px; height: 40px; border-radius: 10px; flex: none;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  cursor: pointer; place-items: center; padding: 0; }
.menubtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; }
.menubtn path { transition: transform .18s, opacity .18s; transform-origin: 12px 12px; }
.menubtn[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
.menubtn[aria-expanded="true"] .l2 { opacity: 0; }
.menubtn[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }
.navtheme { display: none; }
@media (max-width: 860px) {
  #joinBtn { margin-left: auto; }
  .menubtn { display: grid; order: 3; }   /* far right */
  .themebtn { display: none; }            /* it is in the menu instead */
  .navtheme { display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 14px 4px; border: 0; border-top: 1px solid var(--line); background: none;
    color: var(--ink); font: 550 18px/1.2 var(--body); text-align: left; cursor: pointer; }
  .navtheme svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor;
    stroke-width: 1.8; }
  .navtheme svg path { fill: currentColor; stroke: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 16px;
    background: var(--panel); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 32px rgba(14, 26, 43, .14); }
  .top.menu-open .nav { display: flex; }
  .nav a { padding: 14px 4px; font-size: 18px; color: var(--ink);
    border-bottom: 1px solid var(--line); }
  .nav a:last-of-type { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .menubtn path { transition: none; } }
/* phones: Join the beta fills the bar between the logo and the light/dark switch */
@media (max-width: 560px) { .top-in { gap: 16px; }
  .top .btn-join { flex: 1 1 auto; min-width: 0; max-width: 320px; margin-left: auto; }
  .themebtn, .menubtn { margin-left: 0; } }
@media (max-width: 420px) { .top .btn { padding: 11px 14px; font-size: 15px; }
  .logo { height: 42px; } }

/* ======================================================== hero */
/* The iPod IS the hero, as on Apple's iPod 25th-anniversary page: drawn big,
   standing on a reflective floor, and it works. The words sit beside it. */
.hero { padding: 40px 0 72px; overflow: hidden; min-height: calc(100vh - 80px);
  display: flex; align-items: center; }
.hero > .wrap { width: 100%; }
.hero-in { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 56px; align-items: center; }
.hero-device { order: -1; }
/* the words start level with the top of the iPod, not centred beside it */
@media (min-width: 901px) { .hero-in { align-items: start; } }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .hero-device { order: 0; } .hero { padding-top: 32px; min-height: 0; } }
/* one column: the title, the iPod under it, then the words.
   The words' box steps aside so its pieces can be ordered around the iPod. */
@media (max-width: 900px) {
  .hero-in { gap: 28px; }
  .hero-copy { display: contents; }
  .hero-copy h1 { order: 1; text-align: center; }
  .hero-device { order: 2; }
  .hero-copy .lede { order: 4; margin-top: -12px; }
  .hero-copy .lede ~ .lede { order: 5; }
}
input[type=email], select { font: 16px/1.3 var(--body); color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 14px; min-width: 0; }
input[type=email]::placeholder { color: var(--faint); }
input[aria-invalid="true"] { border-color: var(--bad); }
.form-note { flex-basis: 100%; font-size: 14.5px; color: var(--faint); }
.form-note.ok { color: var(--signal); font-weight: 600; }
.form-note.bad { color: var(--bad); font-weight: 600; }

/* ---- the iPod Colour (4th generation), to its measurements ----
   Body 61.8 x 104 mm. The 2" screen is 41 mm wide (66% of the body),
   10 mm from the top; the click wheel is 40 mm across (65%) with its
   centre 73 mm down; the stainless back shows as a thin silver rim round
   the white front. Everything below is a fraction of the width, --w. */
.hero-device { --w: clamp(260px, min(31vw, 52vh), 380px); margin: 0; display: flex;
  flex-direction: column; align-items: center; gap: 18px; position: relative; }
.ipod { width: var(--w); display: block;
  height: calc(var(--w) * 1.683); border-radius: calc(var(--w) * .135);
  padding: calc(var(--w) * .014); position: relative;
  user-select: none; -webkit-user-select: none;
  /* the polished steel rim */
  background: linear-gradient(135deg, #fdfdfe 0%, #aeb5be 22%, #f4f6f8 46%,
                                       #9ca4ae 70%, #e9ecef 100%);
  box-shadow: 0 1px 2px rgba(14,26,43,.25), 0 34px 60px -22px rgba(14,26,43,.45);
  -webkit-box-reflect: below 6px linear-gradient(transparent 76%, rgba(255,255,255,.22)); }
.ipod-face { position: relative; height: 100%; border-radius: calc(var(--w) * .123);
  background:
    radial-gradient(130% 60% at 25% 0%, rgba(255,255,255,1), rgba(255,255,255,0) 60%),
    linear-gradient(170deg, #ffffff 0%, #f3f5f7 55%, #e4e8ec 100%);
  box-shadow: inset 0 0 0 1px rgba(14,26,43,.10), inset 0 -16px 30px rgba(14,26,43,.06); }
/* a soft sheen across the polycarbonate */
.ipod-face::after { content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255,255,255,.7) 0%, rgba(255,255,255,0) 30%); }
/* the screen window: the LCD behind a dark edge, set into the face */
.ipod-screen { position: absolute; left: 17%; width: 66%; top: calc(var(--w) * .15);
  aspect-ratio: 226 / 182; padding: calc(var(--w) * .009); border-radius: calc(var(--w) * .02);
  background: linear-gradient(180deg, #3a3f47, #1d2025);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.55), 0 0 0 calc(var(--w) * .006) #e6e9ed,
              0 1px 0 calc(var(--w) * .006) rgba(255,255,255,.9); }
.lcd { width: 100%; height: 100%; overflow: hidden; border-radius: 1px; background: #fff;
  position: relative; }
/* the LCD: a 220x176 screen, scaled smoothly -- at the hero's 0.75x to 1.1x,
   "pixelated" drops whole pixel rows and breaks the anti-aliased letters */
.lcd > img { display: block; width: 100%; height: 100%; }
.lcd-scroll { position: absolute; overflow: hidden; background: #fff; }
.lcd-scroll img { display: block; height: 100%; max-width: none; }
/* a System page gliding between two of its frames: the content and the
   scroll bar's thumb, laid over the frame (js/site.js places them) */
.lcd-page { position: absolute; inset: 0; pointer-events: none; }
.lcd-page-view, .lcd-page-sb { position: absolute; overflow: hidden; background: #fff; }
.lcd-page-view img { display: block; width: 100%; height: auto; max-width: none;
  will-change: transform; }
.lcd-page-sb i { position: absolute; left: 0; right: 0; background: #000; }
/* the click wheel: matte, slightly darker than the face, labels in grey */
.wheel { position: absolute; left: 17.5%; width: 65%; aspect-ratio: 1; border-radius: 50%;
  top: calc(var(--w) * .855);
  background: radial-gradient(circle at 50% 35%, #f9fafb, #eceff2 62%, #e2e6ea);
  box-shadow: inset 0 0 0 1px rgba(14,26,43,.09), inset 0 3px 8px rgba(14,26,43,.07),
              0 1px 0 rgba(255,255,255,.9); }
.wk { position: absolute; padding: 6px; line-height: 1;
  color: #a7aeb8; font: 700 calc(var(--w) * .033) / 1 var(--body); letter-spacing: .08em; }
.wk svg { width: calc(var(--w) * .062); height: calc(var(--w) * .031); fill: currentColor;
  stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
/* the key the slideshow is pressing, and the wheel turning */
.wk { transition: color .2s ease, text-shadow .2s ease; }
.wk.press { color: #1F63C6; text-shadow: 0 0 10px rgba(31, 99, 198, .55); }
.wk.press svg { filter: drop-shadow(0 0 4px rgba(31, 99, 198, .6)); }
.wheel::before { content: ""; position: absolute; inset: 2%; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, rgba(31, 99, 198, 0) 0deg, rgba(31, 99, 198, .5) 50deg,
                             rgba(31, 99, 198, 0) 90deg);
  -webkit-mask: radial-gradient(closest-side, transparent 66%, #000 70%, #000 92%, transparent 96%);
          mask: radial-gradient(closest-side, transparent 66%, #000 70%, #000 92%, transparent 96%);
  opacity: 0; transition: opacity .25s ease; }
.wheel.turn::before { opacity: 1; animation: wheel-turn 1.1s linear infinite; }
@keyframes wheel-turn { to { transform: rotate(360deg); } }
.wk-menu { top: 8%; left: 50%; transform: translateX(-50%); }
.wk-prev { left: 6%; top: 50%; transform: translateY(-50%); }
.wk-next { right: 6%; top: 50%; transform: translateY(-50%); }
.wk-play { bottom: 7%; left: 50%; transform: translateX(-50%); }
.centre { position: absolute; left: 50%; top: 50%; width: 38%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #f0f2f5);
  box-shadow: inset 0 0 0 1px rgba(14,26,43,.09), 0 1px 1px rgba(14,26,43,.06); }
.hero-device figcaption { font-size: 15px; color: var(--muted); text-align: center;
  margin-top: calc(var(--w) * .3); display: grid; }
/* the usual caption and the slideshow's "how to" line share one cell, so
   swapping them never moves the page */
.hero-device figcaption > span { grid-area: 1 / 1; transition: opacity .3s ease; }
.hero-device .cap-sub { display: block; font-size: 13px; color: var(--faint); }
.hero-device .cap-hint { align-self: center; opacity: 0; color: var(--ink); font-weight: 600; }
.hero-device.hinting .cap-default { opacity: 0; }
.hero-device.hinting .cap-hint { opacity: 1; }
@supports not (-webkit-box-reflect: below 0) {
  .hero-device figcaption { margin-top: 8px; } }
:root[data-theme="dark"] .ipod { -webkit-box-reflect: below 6px linear-gradient(transparent 76%, rgba(255,255,255,.12)); }

/* ======================================================== why */
.why { padding: 24px 0 96px; }
.why-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  margin-top: 40px; border-top: 1px solid var(--line); }
/* each item: its picture at the start of its title, the words under both */
.why-item { padding: 32px 32px 8px 0; display: grid; grid-template-columns: auto minmax(0, 1fr);
  column-gap: 14px; align-items: center; align-content: start; }
.why-item + .why-item { padding-left: 32px; border-left: 1px solid var(--line); }
.why-ic { width: 38px; height: 38px; fill: none; stroke: var(--sel-b); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.why-item h3 { font-size: 22px; }
.why-item p { grid-column: 1 / -1; color: var(--muted); margin-top: 12px; max-width: 30em; }
@media (max-width: 860px) {
  .why-list { grid-template-columns: 1fr; }
  .why-item, .why-item + .why-item { padding: 28px 0; border-left: 0; }
  .why-item + .why-item { border-top: 1px solid var(--line); }
}

/* ======================================================== stability */
/* The most important message on the page, so it gets its own quiet band:
   a heading column, then six plain-English promises, each with a line icon. */
.stable { padding: 104px 0; border-top: 1px solid var(--line); }
.stable-in { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 64px; }
.stable-head .section-lede { font-size: 18.5px; }
.stable-list { list-style: none; padding: 0; margin: 0; display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 44px; }
.stable-list li { position: relative; padding-left: 52px; }
.stable-list svg { position: absolute; left: 0; top: 0; width: 36px; height: 36px; padding: 7px;
  border-radius: 10px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round;
  stroke-linejoin: round; background: var(--sel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 2px 6px rgba(31,99,198,.25); }
.stable-list h3 { font-size: 20px; }
.stable-list p { color: var(--muted); margin-top: 8px; font-size: 16.5px; }
@media (max-width: 1000px) { .stable-in { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 640px) { .stable-list { grid-template-columns: 1fr; } }

/* ======================================================== jukepod features */
.features { padding: 96px 0; background: var(--panel); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); }
.feat { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 64px;
  align-items: center; margin-top: 72px; }
.feat.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); }
.feat.flip .lcd-frame { order: 2; }
.feat-copy p { color: var(--muted); margin-top: 14px; max-width: 34em; font-size: 18px; }
.lcd-frame { padding: 14px; border-radius: 18px;
  background: linear-gradient(180deg, #2b2f36, #191c21);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.6), var(--shadow); }
.lcd-frame img { width: 100%; height: auto; border-radius: 4px; background: #fff;
  image-rendering: auto; }
@media (max-width: 820px) {
  .feat, .feat.flip { grid-template-columns: 1fr; gap: 28px; margin-top: 56px; }
  .feat.flip .lcd-frame { order: 0; }
  .lcd-frame { max-width: 440px; }
}

/* ======================================================== flasher */
.flasher { padding: 104px 0; background: var(--panel); }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px;
  margin-top: 44px; }
.step { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left;
  border-radius: 12px; border: 1px solid var(--line); background: var(--panel);
  color: var(--muted); font: 600 15.5px/1.2 var(--body); cursor: pointer; }
.step b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  flex: none; font: 700 15px/1 var(--display); color: var(--sel-b);
  border: 1.5px solid currentColor; }
.step:hover { color: var(--ink); }
.step[aria-selected="true"] { color: var(--ink); border-color: var(--sel-b);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sel-a) 30%, transparent); }
.step[aria-selected="true"] b { background: var(--sel); color: #fff; border-color: transparent; }
@media (max-width: 760px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* phones: the five steps as one row of numbered circles, the chosen step's
   name under it; the names stay in the buttons for screen readers */
.step-name { display: none; }
@media (max-width: 560px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 32px; }
  .step { justify-content: center; padding: 8px 0; min-height: 48px; border-radius: 12px; }
  .step span { position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; }
  .step-name { display: block; margin-top: 12px; text-align: center; font-weight: 600;
    color: var(--ink); font-size: 16px; }
}
.window { margin: 18px 0 0; border-radius: 14px; overflow: hidden; background: var(--panel);
  border: 1px solid var(--line); box-shadow: var(--shadow); }
.window-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px;
  background: var(--panel-2); border-bottom: 1px solid var(--line); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.window-bar span { margin-left: 10px; font-size: 13px; color: var(--faint); font-weight: 600; }
.window img { width: 100%; height: auto; }
.shot-caption { color: var(--muted); margin-top: 14px; font-size: 16px; max-width: 46em; }
.fl-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px;
  margin: 72px 0 0; }
.fl-list div { border-top: 2px solid var(--ink); padding-top: 14px; }
.fl-list dt { font: 600 20px/1.2 var(--display); }
.fl-list dd { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .fl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fl-list { grid-template-columns: 1fr; } }

/* ======================================================== fake cards */
.fake { padding: 104px 0; background: var(--ink); color: #E9EEF5; }
:root[data-theme="dark"] .fake { background: #080D14; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fake { background: #080D14; } }
.fake h2 { color: #fff; }
.fake-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px;
  align-items: center; }
.fake-copy > p { color: #B9C4D3; margin-top: 18px; font-size: 18px; max-width: 32em; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; }
.checks li { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); color: #B9C4D3; }
.checks b { color: #fff; font-weight: 650; }
.fake-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.sdc svg { width: 100%; max-width: 190px; margin: 0 auto;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); }
.sdc svg .n { font: 800 34px var(--display); fill: #fff; text-anchor: middle; }
.sdc svg .u { font: 700 14px var(--display); fill: #fff; text-anchor: middle; letter-spacing: .08em; }
.sdc.bad svg { transform: rotate(4deg); }
.sdc.ok svg { transform: rotate(-3deg); }
.verdict { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px;
  font-size: 15.5px; font-weight: 600; color: #fff; }
.verdict i { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid;
  place-items: center; font-style: normal; font-weight: 800; font-size: 13px; }
.verdict.ok i { background: #3fb54f; color: #fff; }
.verdict.bad i { background: #E5674F; color: #fff; }
@media (max-width: 860px) { .fake-in { grid-template-columns: 1fr; gap: 48px; } }

/* ======================================================== rebuild */
/* Two rows with the words between the pictures: the Flasher's album art step
   (with the card it writes) beside the artwork paragraph, then the iPod
   playing the result beside the paragraphs about the player. */
.rebuild { padding: 96px 0 72px; border-top: 1px solid var(--line); }
.rb-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 64px;
  align-items: center; margin-top: 56px; }
.rb-row-ipod { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); margin-top: 88px; }
.rb-text p { color: var(--muted); font-size: 18px; }
.rb-text p + p { margin-top: 18px; }
.rb-shot { position: relative; margin: 0; }
.rb-window { margin: 0; }
.rb-window img { display: block; }
.rb-window .rb-dark { display: none; }
:root[data-theme="dark"] .rb-light { display: none; }
:root[data-theme="dark"] .rb-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .rb-light { display: none; }
  :root:not([data-theme="light"]) .rb-dark { display: block; }
}
.rb-card { position: absolute; left: -3%; bottom: -6%; width: clamp(64px, 10vw, 120px);
  transform: rotate(-12deg); }
.rb-card svg { display: block; width: 100%; filter: drop-shadow(0 18px 26px rgba(14,26,43,.4)); }
.rb-card svg .n { font: 800 34px var(--display); fill: #fff; text-anchor: middle; }
.rb-card svg .u { font: 700 14px var(--display); fill: #fff; text-anchor: middle; letter-spacing: .08em; }
.rb-player { margin: 0; display: flex; justify-content: center; }
.rb-ipod { --w: clamp(180px, 20vw, 260px); }
:root .rb-ipod .ipod { -webkit-box-reflect: none;
  box-shadow: 0 1px 2px rgba(14,26,43,.25), 0 40px 70px -20px rgba(14,26,43,.55); }
.rb-close { margin-top: 72px; font: 600 clamp(22px, 2.6vw, 30px)/1.25 var(--display);
  color: var(--ink); max-width: 30em; }
@media (max-width: 860px) {
  .rebuild { padding: 64px 0 48px; }
  .rb-row, .rb-row-ipod { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 40px; }
  .rb-card { left: 0; }
  .rb-ipod { --w: 200px; }
  .rb-close { margin-top: 48px; text-align: center; }
}

/* ======================================================== mods */
.mods { padding: 96px 0 72px; border-top: 1px solid var(--line); }
.mods .section-lede + .section-lede { margin-top: 14px; }
.md-lead { margin-top: 22px; font: 600 clamp(20px, 2.2vw, 24px)/1.3 var(--display); color: var(--ink); }
.md-parts { list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.md-parts figure { margin: 0; }
/* the product photos sit on white, so the tile stays white in dark mode too */
.md-pic { aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; padding: 12px; }
.md-pic img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.md-parts figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); text-align: center; }
.md-sub { margin-top: 64px; }
@media (max-width: 860px) {
  .mods { padding: 64px 0 48px; }
  .md-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
  .md-sub { margin-top: 48px; }
}

/* ======================================================== ipods */
.ipods { padding: 104px 0; }
.table-wrap { margin-top: 40px; overflow-x: auto; border-radius: 14px;
  border: 1px solid var(--line); background: var(--panel); }
.models { width: 100%; border-collapse: collapse; min-width: 560px; }
.models th, .models td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line);
  vertical-align: middle; }
.models tbody tr:last-child th, .models tbody tr:last-child td { border-bottom: 0; }
.models thead th { font-size: 14px; color: var(--faint); font-weight: 600;
  background: var(--panel-2); }
.models tbody th { font-weight: 600; }
.models small { display: block; font-weight: 400; color: var(--faint); font-size: 14px; }
/* phones: the table fits the screen -- tighter cells, labels may wrap */
@media (max-width: 560px) {
  .models { min-width: 0; }
  .models th, .models td { padding: 12px 10px; }
  .models tbody th { font-size: 15px; }
  .models .pill { white-space: normal; font-size: 13px; padding: 4px 9px; text-align: center; }
}
.pill { display: inline-block; font-size: 14px; font-weight: 600; padding: 4px 11px;
  border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.pill.p-beta { color: #fff; background: var(--sel); border-color: transparent; }
.pill.p-yes { color: var(--signal); border-color: color-mix(in srgb, var(--signal) 45%, transparent); }
.pill.p-wip { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.pill.p-no { color: var(--faint); }

/* ======================================================== join pop-up */
/* It must stand clear of the page: a dark, blurred backdrop, a deep shadow, a
   ring and the selector's blue along the top. In dark mode the card is a step
   lighter than any surface on the page. */
.join { --join-bg: var(--panel); --join-ring: rgba(14, 26, 43, .14);
  width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: 18px; background: transparent; color: var(--ink);
  box-shadow: 0 0 0 1px var(--join-ring), 0 28px 80px rgba(0, 0, 0, .45); overflow: auto; }
.join::backdrop { background: rgba(6, 10, 18, .72); backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .join { --join-bg: #222E40; --join-ring: rgba(255, 255, 255, .16); } }
:root[data-theme="dark"] .join { --join-bg: #222E40; --join-ring: rgba(255, 255, 255, .16); }
.join .join-form { position: relative; background: var(--join-bg); border: 0; border-radius: 18px;
  border-top: 6px solid var(--sel-b); }
.join .join-form input[type=email], .join .join-form select { background: var(--panel); }
.join-form h2 { font-size: 30px; padding-right: 40px; }
.join-lede { color: var(--muted); font-size: 16px; margin: 4px 0 10px; }
.join-form .btn-wide { margin-top: 14px; }
.join-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px;
  display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%;
  background: var(--panel-2); color: var(--muted); cursor: pointer; }
.join-x svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; fill: none; }
.join-x:hover { color: var(--ink); }

/* ======================================================== the sign-up form (in the pop-up) */
.beta-form { display: flex; flex-direction: column; gap: 8px; padding: 28px;
  border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line); }
.beta-form label { font-size: 14.5px; font-weight: 600; color: var(--muted); margin-top: 8px; }
.beta-form label:first-child { margin-top: 0; }
.beta-form .consent { display: flex; gap: 10px; align-items: center; font-weight: 500;
  color: var(--ink); margin: 14px 0 8px; }
.beta-form .consent input { width: 18px; height: 18px; accent-color: var(--sel-b); }
select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%),
                    linear-gradient(135deg, var(--faint) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat; }

/* ======================================================== faq */
.faq { padding: 104px 0; }
.faq-in { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 64px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0;
  font: 600 20px/1.3 var(--display); position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 8px; top: 26px; width: 9px;
  height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .15s; }
.faq-list details[open] summary::after { transform: rotate(225deg); top: 30px; }
.faq-list p { color: var(--muted); padding: 0 0 22px; max-width: 40em; }
@media (max-width: 860px) { .faq-in { grid-template-columns: 1fr; gap: 28px; } }

/* ======================================================== footer */
.foot { padding: 56px 0 72px; }
.foot-in { display: flex; gap: 40px; align-items: flex-start; }
.logo-foot { width: 96px; height: auto; flex: none; }
:root[data-theme="dark"] .logo-foot.logo-ink { display: none; }
:root[data-theme="dark"] .logo-foot.logo-white { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-foot.logo-ink { display: none; }
  :root:not([data-theme="light"]) .logo-foot.logo-white { display: block; }
}
.legal p { color: var(--faint); font-size: 14.5px; max-width: 52em; }
.legal p + p { margin-top: 8px; }
@media (max-width: 560px) { .foot-in { flex-direction: column; gap: 20px; } .logo-foot { align-self: center; } }

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

/* the beta form's spam trap: off screen, only bots fill it */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ======================================================== sign-up confirmation */
.toast { position: fixed; z-index: 60; left: 50%; bottom: 24px; width: min(460px, calc(100% - 32px));
  display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px;
  background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(6, 10, 18, .35);
  transform: translate(-50%, 16px); opacity: 0; transition: transform .25s ease, opacity .25s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast[hidden] { display: none; }
.toast p { flex: 1; margin: 0; font-size: 15.5px; line-height: 1.4; }
.toast-ic { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--signal);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.toast-x { flex: none; width: 32px; height: 32px; padding: 6px; border: 0; border-radius: 8px;
  background: none; color: var(--muted); cursor: pointer; }
.toast-x svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.toast-x:hover { background: color-mix(in srgb, var(--line) 50%, transparent); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
