/* CrateEdit Pro — "Booth dark". The page is a mixer faceplate: charcoal, four channels, legends, lamps, one lit key. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* faceplate: the app's own greys */
  --plate: #1c1c1c;
  --plate-lo: #141414;
  --panel: #262626;
  --panel-2: #303030;
  --hair: rgba(255, 255, 255, 0.085);
  --hair-2: rgba(255, 255, 255, 0.2);
  /* legends */
  --ink: #ededed;
  --ink-2: #b6b6b6;
  --ink-3: #969696;
  /* colour is data: the app's lamps and readouts */
  --ok: #28cf4d;
  --review: #fec20b;
  --poor: #ff4b57;
  --bpm: #ff862d;
  --cyan: #4cc2ea;
  /* the one lit key */
  --lit: #b78bff;
  --lit-ink: #17101f;

  --pad: clamp(20px, 4.2vw, 56px);
  --max: 1280px;
  --in: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; scrollbar-color: #4d4d4d var(--plate); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--plate);
  color: var(--ink-2);
  font: 400 1.0625rem/1.6 "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--lit);
}
::selection { background: var(--lit); color: var(--lit-ink); }
:focus-visible { outline: 2px solid var(--lit); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: #fff; }
.num { font-variant-numeric: tabular-nums; }

/* nameplate type */
h1, h2 { color: var(--ink); font-stretch: 125%; text-wrap: balance; }
h1 .s { display: block; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.35rem, 5.6vw, 5.1rem); line-height: 1.02; letter-spacing: -0.022em; }
@media (min-width: 1101px) { h1 .s { white-space: nowrap; } }
h2 { font-weight: 760; font-size: clamp(1.7rem, 3.3vw, 2.85rem); line-height: 1.05; letter-spacing: -0.016em; }
h3 { color: var(--ink); font-weight: 680; font-stretch: 110%; font-size: 1.14rem; line-height: 1.35; }
.lead { color: var(--ink); font-size: clamp(1.1rem, 1.45vw, 1.28rem); line-height: 1.5; max-width: 34em; }
/* silk-screen legend */
.lg, dt, .writes, .fine, figcaption { font-size: 0.82rem; }
.lg, dt { font-weight: 640; font-stretch: 70%; letter-spacing: 0.075em; text-transform: uppercase; color: var(--ink-3); }
.fine, figcaption { color: var(--ink-3); line-height: 1.5; }

/* the four channels, behind everything */
body { position: relative; }
.channels { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.channels > div, .wrap { max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.channels > div { height: 100%; }
.channels > div::before {
  content: ""; display: block; height: 100%;
  border-inline: 1px solid var(--hair);
  background:
    linear-gradient(var(--hair), var(--hair)) 25% 0 / 1px 100% no-repeat,
    linear-gradient(var(--hair), var(--hair)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(var(--hair), var(--hair)) 75% 0 / 1px 100% no-repeat;
}
.top, main, .foot { position: relative; z-index: 1; }

.row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cell { padding-inline: var(--in); }
/* a channel line stops behind text that spans more than one channel, and shows in the gutters and the rests */
.deck-head h1, .deck-head .claim, .pitch, .tour, .wide-h, .grids-lead, .sheet-lead, .full, .half, .ab, #gain .copy, .backup, .price, .own, .foot-menu, .foot-legal, .suite article, .chain li, .rail, .doc-lead, .prose, .side { background: var(--plate); background-clip: content-box; }

[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--pad); top: 10px; z-index: 30; padding: 8px 12px; border-radius: 4px; background: var(--lit); color: var(--lit-ink); }

/* keys */
.key {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 20px; border-radius: 4px;
  border: 1px solid var(--hair-2); background: var(--panel); color: var(--ink);
  font: 660 0.95rem/1 "Archivo", system-ui, sans-serif; font-stretch: 104%;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.08s;
}
.key:hover { background: var(--panel-2); }
.key:active { transform: translateY(1px); }
.key[disabled] { opacity: 0.6; cursor: default; }
.key-lit { border-color: transparent; background: var(--lit); color: var(--lit-ink); }
.key-lit:hover { background: #c8a6ff; color: var(--lit-ink); }
.key-sm { height: 32px; padding: 0 12px; font-size: 0.8rem; }

/* lamps */
.lamp { display: inline-block; flex: none; width: 0.6em; height: 0.6em; margin-right: 0.6em; border-radius: 50%; background: #6b6b6b; }
.lamp.ok { background: var(--ok); }
.lamp.review { background: var(--review); }
.lamp.poor { background: var(--poor); }

/* top strip */
.top { position: sticky; top: 0; z-index: 10; background: var(--plate); border-bottom: 1px solid var(--hair-2); }
.top-in { display: flex; align-items: center; gap: 30px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 740; font-stretch: 112%; font-size: 1.02rem; text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 7px; }
.menu { display: flex; gap: 28px; margin-left: auto; }
.menu a { color: var(--ink-2); font-size: 0.95rem; text-decoration: none; }
.menu a:hover, .menu a[aria-current] { color: var(--ink); text-decoration: underline; }
.top .key { height: 40px; padding: 0 16px; font-size: 0.9rem; }

/* 1. the deck */
.deck-head { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; padding-top: clamp(36px, 5.4vw, 80px); padding-bottom: clamp(26px, 3vw, 44px); }
.deck-head h1 { grid-column: 1 / span 3; padding-inline: var(--in); }
/* Home: the claim stands under the headline, and the sign-up beside both, at their foot */
.deck-head .claim { grid-column: 1 / span 3; margin-top: 20px; padding-inline: var(--in); }
.deck-head .claim ~ .launch { grid-column: 4; grid-row: 1 / span 2; }
.deck-head .launch { padding-inline: var(--in); padding-bottom: 6px; }

.launch .lg { display: block; margin-bottom: 9px; }
.deck-head .launch { background: var(--plate); background-clip: content-box; }
.launch-row { display: flex; gap: 8px; }
.launch .buy { display: flex; width: 100%; margin-bottom: 18px; }
.deck-head .launch-row { flex-direction: column; }
.launch input[type="email"] { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 14px; border-radius: 4px; border: 1px solid var(--hair-2); background: var(--plate-lo); color: var(--ink); font: inherit; }
.launch input::placeholder { color: #8f8f8f; }
.launch input[type="email"]:focus-visible { outline-offset: 0; }
.launch-msg { min-height: 1.5em; margin-top: 8px; font-size: 0.9rem; }
.launch-msg.ok { color: var(--ok); }
.launch-msg.err { color: #ff8a92; }
/* Paste 43: on a phone or tablet, the forms beside Buy offer to email the link for a Mac (booth.js asks the same question). */
.on-phone { display: none; }
@media (pointer: coarse) { .on-phone { display: inline; } .on-desk { display: none; } }
html.pc .on-phone { display: inline; } html.pc .on-desk { display: none; } /* paste 46: a computer that isn't a Mac */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.wave { position: relative; background: var(--plate); border-block: 1px solid var(--hair-2); }
.wave-in { position: relative; height: clamp(150px, 16vw, 318px); overflow: hidden; }
.wave-strip { position: relative; height: 100%; min-width: 100%; aspect-ratio: 2968 / 318; }
.wave-strip img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* one line per beat (4.6101% apart), a brighter one per bar (every fourth): the positions measured in the app's own Grid view of this track.
   Cyan is the app's locked grid, amber a grid flagged for review, plain ink a grid nobody has checked. */
.grid {
  position: absolute; inset: 0; transform-origin: 0 50%;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(10.226% - 1px), var(--bar) calc(10.226% - 1px) calc(10.226% + 1px), transparent calc(10.226% + 1px) 18.4404%),
    repeating-linear-gradient(90deg, transparent 0 1.0006%, var(--beat) 1.0006% calc(1.0006% + 1px), transparent calc(1.0006% + 1px) 4.6101%);
}
.grid-on { --bar: rgba(110, 214, 247, 0.95); --beat: rgba(76, 194, 234, 0.5); }
.grid-off { opacity: 0; --bar: rgba(254, 194, 11, 0.95); --beat: rgba(254, 194, 11, 0.5); }
.grid-raw { --bar: rgba(237, 237, 237, 0.9); --beat: rgba(237, 237, 237, 0.42); }
.sweep { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: #fff; opacity: 0; }
/* the lock: a grid that is late and a little too slow slides onto the kicks, then turns from amber to the app's cyan */
.is-checking .grid-on { opacity: 0; }
.is-checking .grid-off { opacity: 1; transform: translateX(12px) scaleX(1.012); }
.is-locking .grid-off { opacity: 0; transform: translateX(0) scaleX(1); transition: transform 1.3s var(--ease), opacity 0.3s linear 1.1s; }
.is-locking .grid-on { opacity: 1; transition: opacity 0.3s linear 1.1s; }
.is-locking .sweep { animation: sweep 1.3s var(--ease) both; }
@keyframes sweep { 0% { opacity: 0.85; transform: translateX(0); } 92% { opacity: 0.85; } 100% { opacity: 0; transform: translateX(100vw); } }

.wave-cap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px 22px; margin-top: 0; padding-block: 12px; }
.readout { display: flex; flex-wrap: wrap; gap: 6px 26px; padding-inline: var(--in); }
.readout div { display: flex; align-items: baseline; gap: 9px; }
.readout dd { color: var(--ink); font-weight: 600; font-size: 0.92rem; }
.readout .c-bpm { color: var(--bpm); }
.readout .c-key { color: var(--cyan); }
.wave-src { grid-column: 1; padding-inline: var(--in); }
#rerun { grid-column: 2; grid-row: 1 / span 2; margin-right: var(--in); }
html:not(.js) #rerun { display: none; }
/* the state word keeps the room of its longer form, so the row does not re-wrap when the grid locks */
#grid-state { display: inline-block; min-width: 4.6em; }
/* a replay dims what has not happened yet and lights it in its turn: for a few seconds the values of the read-out;
   in the session the socket, the rail and the numeral of a step, never its words, which wait off screen */
.readout > div > *, .jack, .chain li::after, .chain h3::before { transition: opacity 0.35s linear; }
.readout .wait > *, .wait .jack, .chain .wait::after, .chain .wait h3::before { opacity: 0.28; }

.deck-foot { padding-top: clamp(28px, 4vw, 60px); padding-bottom: clamp(56px, 8vw, 112px); align-items: start; }
.pitch, .tour { grid-column: span 2; }
.pitch .fine { margin-top: 18px; }
/* the tour: six crops of the app in one frame, a small key for each over it; the frames follow one another until a key is pressed */
.shot.tour-frames { display: grid; }
.tour-frames img { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.3s linear, visibility 0s linear 0.3s; }
.tour-frames img.on { opacity: 1; visibility: visible; transition-delay: 0s; }
.tour-keys { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tour figcaption { display: flex; align-items: flex-start; gap: 16px; min-height: 2.6rem; }
#tour-hold { margin-left: auto; }
html:not(.js) .tour-keys, html:not(.js) #tour-hold, html:not(.js) .tour-frames img:not(.on) { display: none; }
@media (prefers-reduced-motion: reduce) { .tour-frames img { transition: none; } }

/* pictures of the app */
.shot { display: block; overflow: hidden; border: 1px solid var(--hair-2); border-radius: 6px; background: #111; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.95); }
figcaption { margin-top: 10px; }
figcaption p { max-width: 75ch; }
/* a picture shown at its own size and never larger: --w is its width in pixels; its place is held before it loads */
.fit { max-width: calc(var(--w) * 1px + 2px); }
.fit > img { width: 100%; }
/* a clip: the poster is a lazy picture that gives the frame its shape; the video lies on top of it and is clear until it plays.
   The video tag carries a one-pixel clear poster, because Chrome paints a grey plate over a video with controls and no poster.
   Under the picture the frame keeps a strip for the player's own controls, so they never cover the app's screen.
   Of the two versions only the one on screen is laid out, so only its poster is fetched.
   The frame is as wide as its column. The picture in it (--w by --h, its own size) is centred and is as wide as the
   frame allows, never wider than itself, and never so tall that picture and controls do not fit in the window together
   (65px of top strip, 72px of controls and 24px of air are taken off the window's height). */
.clip { position: relative; padding-bottom: 72px; --pw: min(100%, calc(var(--w) * 1px), calc(max(320px, 100svh - 161px) * var(--w) / var(--h))); }
.clip .poster { width: var(--pw); margin-inline: auto; }
.clip video { position: absolute; inset: 0; width: var(--pw); height: 100%; margin-inline: auto; object-position: 50% 0; }
.clip video:fullscreen { object-position: 50% 50%; }
.clip video:-webkit-full-screen { object-position: 50% 50%; }
/* Chrome lays a dark gradient under its controls. Here they sit on the strip, not on the picture, and the gradient
   would make the strip darker than the frame beside it. (A browser that does not know this name skips the rule.) */
.clip video::-webkit-media-controls-panel { background-image: none; }
.phone-only { display: none; }

/* a tutorial: our own picture of the film, a socket on it like the session's, its length in the corner. It is a link to the
   film on YouTube; a click puts YouTube's player in its place (booth.js, part 8), so until then nothing on the page comes
   from YouTube. The frame holds 16:9 before the picture loads, and the player fills the same frame. */
.tube { position: relative; display: block; aspect-ratio: 16 / 9; color: var(--ink); }
.tube img, .tube iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tube img { object-fit: cover; }
.tube .play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 72px; height: 72px; margin: -36px 0 0 -36px; border: 1px solid var(--ink-2); border-radius: 50%; background: rgba(20, 20, 20, 0.88); transition: background-color 0.15s, border-color 0.15s; }
.tube .play svg { width: 28px; height: 28px; margin-left: 4px; fill: currentColor; }
.tube:hover .play, .tube:focus-visible .play { border-color: var(--ink); background: var(--panel-2); }
.tube .len { position: absolute; right: 10px; bottom: 10px; padding: 3px 7px; border-radius: 3px; background: rgba(0, 0, 0, 0.82); font-size: 0.8rem; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .tube .play { width: 56px; height: 56px; margin: -28px 0 0 -28px; } .tube .play svg { width: 22px; height: 22px; margin-left: 3px; } }
/* its words: beside it on Features (its legend, its name, a sentence), under it in a reading column; and the words of the
   film itself, folded under a legend that opens them */
.film-text h3 { margin-top: 8px; }
.prose > * + .film, .prose > .film + .qa { margin-top: 1.6em; }
.script { margin-top: 16px; border-top: 1px solid var(--hair); }
.script summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; list-style: none; }
.script summary::-webkit-details-marker { display: none; }
.script summary::before { content: ""; flex: none; width: 7px; height: 7px; margin: 0 12px 0 3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform 0.15s; }
.script[open] summary::before { transform: rotate(45deg); }
.script summary:hover { color: var(--ink); }
.script p { max-width: 75ch; color: var(--ink-2); font-size: 0.97rem; line-height: 1.55; }
.script p:last-child { padding-bottom: 14px; }
@media (prefers-reduced-motion: reduce) { .script summary::before { transition: none; } }

/* bands */
.band { padding-block: 96px; padding-block: clamp(60px, 8.5vw, 124px); border-top: 1px solid var(--hair); }
.wide-h { grid-column: 1 / -1; max-width: 75%; }
.wide-h .lead { margin-top: 20px; }
.band p + p { margin-top: 0.9em; }

/* 2a. the crate */
.grids-lead { grid-column: span 2; margin-top: 22px; }
.full { grid-column: 1 / -1; margin-top: 44px; }
.spec { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; margin-top: 34px; }
.spec dd { margin-top: 4px; color: var(--ink-2); font-size: 0.97rem; line-height: 1.45; }
.lamps { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.lamps span { display: inline-flex; align-items: center; }
.full img { width: 100%; }

/* 2b. the gain knob: each picture in its own channel, at its own size. The two crops differ by one pixel each way,
   so both sit in one box (185 by 150) on their own ground and their captions line up. */
.knob { margin-top: 44px; }
.knob img { width: 185px; aspect-ratio: 185 / 150; object-fit: contain; object-position: 0 0; background: #222; border: 1px solid var(--hair-2); border-radius: 4px; }
.knob figcaption { display: flex; align-items: baseline; color: var(--ink-2); }
#gain .copy { grid-column: span 2; margin-top: 44px; }
.claim { margin-top: 26px; color: var(--ink); font-weight: 760; font-stretch: 122%; font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.15; letter-spacing: -0.012em; text-wrap: balance; }
.claim .s { display: inline-block; }

/* 3. A / B */
.ab { grid-column: span 2; margin-top: 44px; }
.ab h3 { padding-bottom: 14px; }
/* over each list, the same beats of one waveform: left, a grid that drifts and that nobody has flagged; right, the lock */
.strip { margin-bottom: 20px; }
.strip .wave-in { height: clamp(96px, 9.5vw, 128px); }
.strip .wave-strip { transform: none; }
.strip .grid-raw, .strip.is-checking .grid-off { transform: scaleX(1.04); }
.strip figcaption { min-height: 2.5rem; }
.strip b { margin-right: 0.7em; color: var(--ink); font-weight: 600; white-space: nowrap; }
.ab li { position: relative; padding: 14px 0 14px 28px; border-top: 1px solid var(--hair); line-height: 1.5; }
.ab li::before { content: ""; position: absolute; left: 2px; top: 1.72em; width: 11px; height: 2px; background: var(--ink-3); }
.ab-us li { color: var(--ink); }
.ab-us li::before { top: 1.42em; width: 9px; height: 9px; background: var(--ink); }

/* 4. the suite */
.suite { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 52px; margin-top: 46px; }
.suite article { padding-inline: var(--in); }
.suite .shot { aspect-ratio: 3 / 1; }
.suite .shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.suite .wheel img { object-position: center 48%; }
.suite h3 { margin-top: 18px; }
.suite p { margin-top: 4px; max-width: 34em; }
.writes { display: flex; align-items: baseline; color: var(--ink-3); }
.backup { grid-column: span 3; margin-top: 46px; max-width: 62ch; }

/* 5. the session: a signal chain. Each step is a socket on a rail with its numeral, its name and its sentence;
   seven abreast, the rail running from socket to socket. */
#session .wide-h::after { content: ""; display: block; height: 44px; }
.chain { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); counter-reset: step; }
.chain li { counter-increment: step; position: relative; padding-inline: var(--in); font-size: 0.95rem; line-height: 1.45; }
.jack { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid var(--ink-2); border-radius: 50%; background: var(--plate-lo); color: var(--ink); }
.jack svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.chain li:not(:last-child)::after { content: ""; position: absolute; top: 32px; left: calc(var(--in) + 64px); right: calc(-1 * var(--in)); height: 1px; background: var(--ink-2); }
.chain h3 { margin-top: 18px; }
.chain h3::before { content: counter(step); display: block; margin-bottom: 8px; font-weight: 800; font-stretch: 125%; font-size: 2.1rem; line-height: 1; font-variant-numeric: tabular-nums; }
.chain p { margin-top: 4px; }
.chain-more { margin-top: 34px; }
.chain-more a { margin-left: var(--in); }

/* 6. master out */
.price, .own { grid-column: span 2; }
.price h2 { font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 0.97; }
.price .lead { margin-top: 18px; }
.price .launch { margin-top: 30px; max-width: 31rem; }
.own { align-self: end; }
.own li { position: relative; padding: 13px 0 13px 26px; border-top: 1px solid var(--hair); color: var(--ink); }
.own li::before { content: ""; position: absolute; left: 2px; top: 1.45em; width: 9px; height: 9px; background: var(--ink); }
.own .vs { padding-left: 0; color: var(--ink-2); }
.own .vs::before { content: none; }

/* foot */
.foot { padding-block: 56px 44px; border-top: 1px solid var(--hair-2); font-size: 0.92rem; }
.foot .row { row-gap: 30px; }
.foot-menu { grid-column: span 3; display: flex; flex-wrap: wrap; gap: 12px 28px; align-content: start; }
.foot-menu a { color: var(--ink-2); text-decoration: none; }
.foot-menu a:hover { color: var(--ink); text-decoration: underline; }
.foot-legal { grid-column: span 3; color: var(--ink-3); font-size: 0.82rem; line-height: 1.55; max-width: 75ch; }
.foot-copy { color: var(--ink-3); font-size: 0.82rem; }

/* narrower desktops */
@media (max-width: 1100px) {
  .deck-head h1, .deck-head .claim { grid-column: 1 / -1; }
  .deck-head .launch, .deck-head .claim ~ .launch { grid-column: 1 / span 2; grid-row: auto; margin-top: 28px; }
  .deck-head .launch-row { flex-direction: row; }
  .wave-cap .readout { column-gap: 20px; }
  .grids-lead, .pitch, .tour { grid-column: 1 / -1; }
  .tour { margin-top: 32px; }
  /* the chain turns: two columns of steps, each step a row, the rail running down through the sockets */
  .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); grid-auto-flow: column; }
  .chain li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 18px; align-content: start; }
  .chain p { padding-bottom: 26px; }   /* the gap between two steps lies inside the step */
  .jack { grid-row: 1 / span 2; width: 48px; height: 48px; }
  .jack svg { width: 24px; height: 24px; }
  .chain h3 { margin-top: 1px; }
  .chain h3::before { display: inline; margin: 0 0.55em 0 0; font-size: 1.25rem; }
  .chain li:not(:last-child)::after { top: 48px; bottom: 0; left: calc(var(--in) + 24px); right: auto; width: 1px; height: auto; }
  .chain li:nth-child(4)::after { content: none; }
  .chain-more { margin-top: 8px; }
}
/* a narrow strip's caption runs to three lines: both captions keep that room, so the two lists start level and nothing moves when the grid locks */
@media (max-width: 920px) { .strip figcaption { min-height: 3.75rem; } }
/* between a phone and a narrow desktop the tour's frame is at its own size, with its keys in a column beside it */
@media (min-width: 921px) and (max-width: 1100px) {
  #tour-cap { min-height: 3.75rem; }
  .tour { display: grid; grid-template-columns: minmax(0, 602px) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 24px; align-items: start; }
  .tour-frames { grid-column: 1; grid-row: 1 / span 2; }
  .tour-keys { grid-column: 2; grid-row: 1; flex-direction: column; margin-bottom: 0; }
  .tour-keys .key { justify-content: flex-start; height: 40px; }
  .tour figcaption { grid-column: 2; grid-row: 2; flex-direction: column; gap: 12px; }
  #tour-hold { margin-left: 0; }
}

/* phones: two channels */
@media (max-width: 760px) {
  .channels > div::before { background: none; }
  .wide-h { max-width: none; }
  .wide-only { display: none; }
  .phone-only { display: block; }
  #gain .full { margin-top: 32px; }
  .row, .deck-head { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row > .cell, .deck-head h1, .deck-head .claim, .deck-head .launch, .deck-head .claim ~ .launch, #gain .copy, .ab, .backup, .price, .own, .foot-menu, .foot-legal { grid-column: 1 / -1; }
  .row > .knob { grid-column: auto; }
  .knob img { width: 100%; max-width: 185px; }
  .spec { row-gap: 22px; }
  .spec > .cell { grid-column: auto; }
  .suite { grid-template-columns: minmax(0, 1fr); }
  .top { top: -44px; }
  .top-in { flex-wrap: wrap; gap: 0 16px; height: auto; }
  .menu { order: -1; width: 100%; height: 44px; align-items: center; justify-content: space-between; gap: 0; margin: 0; border-bottom: 1px solid var(--hair); }
  .menu a { padding: 10px 0; }
  .brand { height: 56px; margin-right: auto; }
  .top .key { padding: 0 12px; font-size: 0.84rem; }
  .deck-head .launch-row { flex-direction: column; }
  .wave-strip { transform: translateX(-30%); }
  /* the read-out becomes a panel of six, legend over value, two abreast; the source line and the replay key follow */
  .wave-cap { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .wave-cap .readout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  .wave-cap .readout div { display: block; }
  #rerun { grid-column: 1; grid-row: auto; justify-self: start; margin-left: var(--in); }
  .deck-head .claim { margin-top: 16px; font-size: min(1.25rem, 4.4vw); }
  .tour-keys .key, #tour-hold, #rerun { height: 44px; }
  .tour-keys .key { flex: 1 1 30%; }
  .tour figcaption { flex-direction: column; gap: 10px; min-height: 0; }
  #tour-cap { min-height: 2.5rem; }
  #tour-hold { margin-left: 0; }
  .chain { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  .chain li:nth-child(4)::after { content: ""; }
  .launch-row { flex-direction: column; }
  .own { margin-top: 36px; }
  .foot-copy { grid-column: 1 / -1; }
}

/* small phones: a taller crop of each tool picture; a table is anchored on its result columns */
@media (max-width: 600px) {
  .suite .shot { aspect-ratio: 3 / 2; }
  .suite .cols img { object-position: 78% top; }
}

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

/* the lamp keys beside the headline: each one leaves only the jobs of its kind in the sheet; without JavaScript they are a plain legend */
.filter { align-self: end; padding-inline: var(--in); padding-bottom: 6px; background: var(--plate); background-clip: content-box; }
.filter .lg { display: block; margin-bottom: 3px; }
.filter .key { display: flex; justify-content: flex-start; width: 100%; height: 36px; margin-top: 6px; font-size: 0.9rem; }
.filter .key .num { margin-left: auto; color: var(--ink-3); font-weight: 400; }
/* a pressed key is sunk and ringed; the other two step back; a line under them says what is showing and how to undo it */
.key[aria-pressed="true"] { background: var(--plate-lo); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.filter:has(.key[aria-pressed="true"]) .key[aria-pressed="false"] { color: var(--ink-2); }
.filter-state { min-height: 1.5em; margin-top: 8px; }
.filter-legend li { display: flex; align-items: center; padding-block: 4px; color: var(--ink); font-size: 0.92rem; }
html:not(.js) .filter .key, html:not(.js) .filter-state, html.js .filter-legend { display: none; }

/* the sheet: one row per job, one cell per channel, so the channel lines rule its columns */
.sheet-lead { grid-column: span 2; }
.sheet { margin-top: clamp(30px, 4vw, 56px); padding-bottom: clamp(30px, 4vw, 56px); }
.sheet-head, .job { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sheet-head > *, .job > * { padding-inline: var(--in); }
.sheet-head { padding-bottom: 10px; border-bottom: 1px solid var(--hair-2); }
.sheet h2 { padding: 36px var(--in) 12px; color: var(--ink-2); }
.sheet-head + .group h2 { padding-top: 22px; }
.job { align-items: start; padding-block: 15px; border-top: 1px solid var(--hair); }
.job h3 a { text-decoration-color: var(--hair-2); }
.job h3 a:hover { text-decoration-color: currentColor; }
.job p { font-size: 0.97rem; line-height: 1.45; }
.touch { padding-left: calc(var(--in) + 1.2em); text-indent: -1.2em; color: var(--ink); }
.touch small { display: block; margin-top: 1px; text-indent: 0; color: var(--ink-3); font-size: 0.82rem; line-height: 1.4; }
/* a display window: a crop of the app's own screen at its own size */
.job > .win { box-sizing: content-box; padding: 0; margin-inline: var(--in); max-width: calc(100% - 2 * var(--in) - 2px); border: 1px solid var(--hair-2); border-radius: 4px; }
/* a lamp key is pressed: only the jobs of that kind stay in the sheet, and a group left empty goes with its heading */
.sheet[data-show="tags"] .job:not([data-writes="tags"]),
.sheet[data-show="audio"] .job:not([data-writes="audio"]),
.sheet[data-show="none"] .job:not([data-writes="none"]) { display: none; }
.sheet[data-show="tags"] .group:not(:has([data-writes="tags"])),
.sheet[data-show="audio"] .group:not(:has([data-writes="audio"])),
.sheet[data-show="none"] .group:not(:has([data-writes="none"])) { display: none; }

/* a two-channel block under a clip: notes, or a picture at its own size */
.half { grid-column: span 2; margin-top: 44px; }
.half h3 { padding-bottom: 12px; }
.half .marks + h3 { margin-top: 30px; }
.half .writes { margin-top: 14px; }
.marks li { position: relative; padding: 11px 0 11px 26px; border-top: 1px solid var(--hair); line-height: 1.5; }
.marks li::before { content: ""; position: absolute; left: 2px; top: 1.5em; width: 11px; height: 2px; background: var(--ink-3); }
/* the app's own words on the left, as it writes them, and what they mean on the right */
.notes > div { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 2px 20px; padding-block: 11px; border-top: 1px solid var(--hair); }
.notes dt { color: var(--ink); font-weight: 600; font-stretch: 100%; font-size: 0.97rem; letter-spacing: 0; text-transform: none; }
.notes dd { font-size: 0.97rem; line-height: 1.45; }
.print { row-gap: 30px; margin-top: 44px; }

@media (max-width: 1100px) {
  .filter { grid-column: span 2; margin-top: 28px; }
  .sheet-lead { grid-column: 1 / -1; }
  .sheet-head > :last-child { display: none; }
  .sheet-head > :nth-child(2) { grid-column: span 2; }
  /* the display window moves under "what it does"; the name and the lamp span both lines so the window follows its sentence */
  .job > h3 { grid-column: 1; grid-row: 1 / span 2; }
  .job > p:not(.touch) { grid-column: 2 / span 2; grid-row: 1; }
  .job > .touch { grid-column: 4; grid-row: 1 / span 2; }
  .job > .win { grid-column: 2 / span 2; grid-row: 2; margin-top: 10px; }
  /* three columns now: the middle channel line would run through the second one, so the sheet covers it */
  .sheet { background: linear-gradient(var(--plate), var(--plate)) 50% 0 / 5px 100% no-repeat; }
}
@media (max-width: 760px) {
  .filter { grid-column: 1 / -1; }
  .filter .key { height: 44px; }
  .spec.sentences > .cell { grid-column: 1 / -1; }
  .sheet-head { display: none; }
  .job { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: baseline; padding-block: 13px; }
  .job > h3 { grid-row: 1; }
  .job > .touch { grid-column: 2; grid-row: 1; }
  .job > p:not(.touch) { grid-column: 1 / -1; grid-row: 2; margin-top: 4px; font-size: 0.92rem; }
  .job > .win { grid-column: 1 / -1; grid-row: 3; margin-top: 10px; }
  .half { grid-column: 1 / -1; margin-top: 32px; }
  .notes > div { grid-template-columns: minmax(0, 1fr); }
}

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

/* the terms beside the lead, under the price: their first lines share a baseline, and they stay side by side down to 761px */
.deck-foot .pitch:has(+ .own), .deck-foot .own { align-self: baseline; }
.deck-foot .pitch:has(+ .own) .fine { text-wrap: pretty; }
@media (min-width: 761px) and (max-width: 1100px) { .deck-foot .pitch:has(+ .own) { grid-column: span 2; } }

/* the bill: one row per job across the four channels; the price sits at the right edge of its channel in tabular figures,
   so the figures stand under one another and the sum under them */
.bill { margin-top: clamp(30px, 4vw, 56px); }
.bill-head, .line { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: baseline; }
.bill-head > *, .line > * { padding-inline: var(--in); }
.bill-head { padding-bottom: 10px; border-bottom: 1px solid var(--hair-2); }
.bill-head > :nth-child(3), .amount { text-align: right; }
.line { padding-block: 15px; border-top: 1px solid var(--hair); }
.bill li:first-child { border-top: 0; }
.line p { font-size: 0.97rem; line-height: 1.45; }
.line small { display: block; color: var(--ink-3); font-size: 0.82rem; line-height: 1.4; }
.line .amount { color: var(--ink); font-weight: 600; }
.line .key { justify-self: start; margin-inline: var(--in); }
/* a tool the visitor owns is struck off: its figure is crossed out and the row steps back */
.line.off h3, .line.off p { color: var(--ink-3); }
.line.off .amount { text-decoration: line-through; }
/* the sum, and the app's own line under it: the figures in the claim's voice */
.sum { border-top-color: var(--hair-2); }
.sum .amount, .ours .amount { font-weight: 760; font-stretch: 122%; font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.15; letter-spacing: -0.012em; }
.ours h3, .ours p { color: var(--ink); }
.ours .once { color: var(--ink-2); }
.half .more { margin-top: 14px; }
html:not(.js) .line .key, html:not(.js) .bill-head > :last-child, html:not(.js) .js-only { display: none; }

@media (max-width: 760px) {
  /* the price headline stays on two lines on a phone: its second sentence is the longest in the build */
  #notify h1 { font-size: min(2.35rem, 7.6vw); }
  .bill-head { display: none; }
  .line { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; padding-block: 13px; }
  .line > h3 { grid-column: 1; grid-row: 1; }
  .line > .amount { grid-column: 2; grid-row: 1; }
  .line > p:not(.amount) { grid-column: 1; grid-row: 2; }
  .line > .key { grid-column: 2; grid-row: 2; justify-self: end; height: 44px; }
  .line > p.once { grid-column: 2; grid-row: 2; text-align: right; }
}

/* ---------- Reading pages (guides, FAQ, Help and contact, Terms, Privacy, 404) ---------- */

/* a document's title takes the headline size; a short page name keeps the nameplate size */
.deck-head .doc-title { font-weight: 760; font-size: clamp(1.7rem, 3.3vw, 2.85rem); line-height: 1.05; letter-spacing: -0.016em; }
.deck-head .readout { padding-bottom: 8px; }

/* the body of a document: channel one is its index card (a read-out over the list of sections),
   channels two and three hold the reading column between two channel lines, channel four is a rest */
.doc-body { align-items: start; padding-bottom: clamp(56px, 8vw, 112px); }
.rail .readout { padding-inline: 0; }
.rail nav { margin-top: 22px; }
.rail .lg { display: block; padding-bottom: 8px; }
.rail li { border-top: 1px solid var(--hair); break-inside: avoid; }
.rail li a { display: block; padding-block: 8px; color: var(--ink-2); font-size: 0.92rem; line-height: 1.4; text-decoration: none; }
.rail li a:hover { color: var(--ink); text-decoration: underline; }
.rail .up { margin-top: 18px; font-size: 0.92rem; }

.doc-body .rail { grid-column: 1; grid-row: 1 / span 2; }
.doc-lead { grid-column: 2 / span 2; grid-row: 1; }
/* the gap under the opening paragraph lies inside it, so no piece of a channel line shows between it and the text */
.doc-lead::after { content: ""; display: block; height: 0.75em; }
.doc-body .prose { grid-column: 2 / span 2; grid-row: 2; }
.prose > * + * { margin-top: 0.9em; }
.prose > h2:first-child { margin-top: 1.1em; }
.prose > h2 { margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--hair); font-weight: 680; font-stretch: 110%; font-size: 1.14rem; line-height: 1.35; letter-spacing: 0; text-wrap: wrap; }
.prose > h2 + * { margin-top: 0.55em; }
.prose > .note + h2 { padding-top: 0; border-top: 0; }
.prose b, .prose strong { color: var(--ink); font-weight: 600; }
.prose em { color: var(--ink); font-style: normal; }
.prose code { color: var(--ink); font: 0.9em ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.prose .marks, .prose .count { margin-top: 1.1em; }
/* a numbered list: hairline rows, the number in tabular figures */
.count { counter-reset: n; }
.count li { counter-increment: n; position: relative; padding: 11px 0 11px 2.2em; border-top: 1px solid var(--hair); line-height: 1.5; }
.count li::before { content: counter(n); position: absolute; left: 2px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
/* a note: a ruled paragraph in ink */
.note { padding-block: 14px; border-block: 1px solid var(--hair-2); color: var(--ink); }
/* a group legend over a list of entries, and an entry: a question with its answer, or a guide with what it covers */
.prose > h2.lg { margin-top: 3em; padding: 0 0 10px; border-top: 0; color: var(--ink-2); font-weight: 640; font-stretch: 70%; font-size: 0.82rem; line-height: 1.6; letter-spacing: 0.075em; }
.prose > .qa { margin-top: 0; padding-block: 16px; border-top: 1px solid var(--hair); }
.doc-lead + .prose > .qa:first-child { margin-top: 0.7em; }
/* the way on, at the end of a legal page */
.prose > .up { margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--hair); }
.qa h2, .qa h3 { font-weight: 680; font-stretch: 110%; font-size: 1.14rem; line-height: 1.35; letter-spacing: 0; text-wrap: wrap; }
.qa h2 a { text-decoration-color: var(--hair-2); }
.qa h2 a:hover { text-decoration-color: currentColor; }
.qa p { margin-top: 6px; }
.qa .fine { margin-top: 2px; }

/* the closing band of a guide: the launch form under an ordinary headline */
.price.plain h2 { font-size: clamp(1.7rem, 3.3vw, 2.85rem); line-height: 1.05; }
.go { margin-top: 26px; }
.pitch .go + .fine { margin-top: 22px; }

/* Help and contact: the form's fields are the launch field's kin */
form.contact { margin-top: 26px; max-width: 34rem; }
.field { margin-bottom: 18px; }
.field .lg { display: block; margin-bottom: 8px; }
.field input, .field select, .field textarea { display: block; width: 100%; height: 48px; padding: 0 14px; border-radius: 4px; border: 1px solid var(--hair-2); background: var(--plate-lo); color: var(--ink); font: inherit; }
.field textarea { height: auto; min-height: 9.5em; padding-block: 12px; line-height: 1.5; resize: vertical; }
.field ::placeholder { color: #8f8f8f; }
.field :focus-visible { outline-offset: 0; }
.select { position: relative; }
.select select { -webkit-appearance: none; appearance: none; padding-right: 40px; }
.select::after { content: ""; position: absolute; right: 17px; top: 50%; width: 8px; height: 8px; margin-top: -7px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); pointer-events: none; }
form.contact .launch-msg { margin-top: 12px; }
.side { grid-column: span 2; }

@media (max-width: 1100px) {
  .deck-head .readout { grid-column: 1 / -1; margin-top: 18px; padding-bottom: 0; }
  /* the index card goes above the column, its sections two abreast; then the opening paragraph and the text, held to the
     same measure. The gaps between these blocks lie inside them, so no short piece of a channel line shows between two blocks. */
  .doc .deck-head { padding-bottom: 0; }
  .doc-body .rail, .doc-lead, .doc-body .prose { grid-column: 1 / -1; grid-row: auto; }
  .rail::before { content: ""; display: block; height: clamp(26px, 3vw, 44px); }
  .rail::after { content: ""; display: block; height: 34px; }
  .rail ul { columns: 2; column-gap: 40px; }
  .doc-lead, .doc-body .prose { max-width: calc(37.5rem + 2 * var(--in)); }
  .side { grid-column: 1 / -1; margin-top: 40px; }
}
@media (max-width: 760px) {
  /* a phone reads the title, the opening paragraph, then the index card, then the text */
  .doc .deck-head { padding-bottom: 22px; }
  .doc-lead { order: -1; }
  .doc-lead::after { height: 28px; }
  .rail::before { content: none; }
  .prose > h2.lg:first-child { margin-top: 0; }   /* the index card's closing gap is the gap */
  .rail ul { columns: 1; }
  .rail li a { padding-block: 12px; }   /* a section link is 44px tall on a phone */
  form.contact .key { width: 100%; }
}

