/* Editorial mockup — branch site/editorial-mockup, never deployed.
   Built to mockup/DESIGN.md (branch site-mockup): one dark ground, four vivid
   accents that never blend, display type tight and uppercase, one italic
   serif line per section, numbered rows instead of feature cards.

   Loaded after styles.css and overrides it. The home page's own blocks use
   `ed-` classes; every other page picks up the tokens, type, buttons, header
   and footer from the rules below. */

:root {
  --bg: #0b0d12;
  --panel: #0e111a;
  --card: #121620;
  --line: #232a39;
  --line-strong: #2f3a4d;
  --text: #e8ecf4;
  --text-2: #9aa6bd;
  --dim: #5a6478;
  --ink: #07080c;

  --lav: #c2affc;
  --lime: #c6ff4d;
  --cyan: #26fff8;
  --indigo: #818cf8;

  /* styles.css reads these: the accent is lavender, and no surface takes a gradient. */
  --accent: var(--lav);
  --accent-bright: var(--lav);
  --gradient: var(--lav);
  --muted: var(--text-2);
  --radius: 16px;

  --display: 'Archivo', system-ui, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --gutter: 48px;
}

html {
  scroll-padding-top: 96px;
}

a:hover {
  color: var(--lav);
}

/* --- accents (DESIGN.md §2: lav → lime → cyan → indigo) ------------------ */

.c-lav { color: var(--lav); }
.c-lime { color: var(--lime); }
.c-cyan { color: var(--cyan); }
.c-indigo { color: var(--indigo); }
.c-dim { color: var(--dim); }
.bg-lav { background: var(--lav); }
.bg-lime { background: var(--lime); }
.bg-cyan { background: var(--cyan); }
.bg-indigo { background: var(--indigo); }
.bd-lav { border-top-color: var(--lav) !important; }
.bd-lime { border-top-color: var(--lime) !important; }
.bd-cyan { border-top-color: var(--cyan) !important; }
.bd-indigo { border-top-color: var(--indigo) !important; }

/* --- layout: sections run to the gutter, no fixed container -------------- */

.wrap {
  width: auto;
  margin-inline: 0;
  padding-inline: var(--gutter);
}

.narrow {
  width: auto;
  max-width: calc(820px + 2 * var(--gutter));
}

.ed-wrap {
  padding-inline: var(--gutter);
}

/* A .wrap inside a section that already has the gutter. */
.ed-wrap .wrap {
  padding-inline: 0;
}

.section {
  padding-block: 112px;
}

.section-alt,
.ed-band {
  background: var(--panel);
  border-block: 1px solid var(--line);
}

/* --- type: the grotesque states, the serif reflects --------------------- */

h1,
h2,
h3 {
  font-family: var(--display);
  text-align: start;
}

h1 {
  font-weight: 900;
  font-size: clamp(40px, 7.5vw, 112px);
  line-height: 0.82;
  letter-spacing: -0.07em;
  word-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.4em;
}

h2,
.section h2 {
  font-weight: 800;
  font-size: clamp(24px, 2.8vw, 40px);
  line-height: 1;
  letter-spacing: -0.045em;
  word-spacing: 0.08em;
  text-transform: uppercase;
  text-align: start;
}

h3 {
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Hebrew has no capitals and Heebo is wider: its own face, no tightening. */
:lang(he) :is(h1, h2, h3, .ed-hero-title, .ed-section-title, .ed-big) {
  font-family: 'Heebo', sans-serif;
  text-transform: none;
  letter-spacing: 0;
  word-spacing: normal;
}

.section-lead {
  text-align: start;
  max-width: 640px;
}

.eyebrow,
.badge {
  display: block;
  width: auto;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: start;
}

.gradient-text,
.hero-tagline {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--text);
}

/* --- buttons: one shape (DESIGN.md §6) ----------------------------------- */

.btn {
  min-height: 48px;
  padding: 15px 28px;
  border-radius: 999px;
  background: var(--lav);
  color: var(--ink);
  box-shadow: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: filter 0.15s ease;
}

.btn:hover {
  transform: none;
  box-shadow: none;
  color: var(--ink);
  filter: brightness(1.08);
}

.btn-ghost,
.btn-ghost:hover {
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--text);
  filter: none;
}

.btn-ghost:hover {
  border-color: var(--text-2);
}

.btn-light,
.btn-light:hover {
  background: var(--text);
  color: var(--bg);
}

.btn-dark,
.btn-dark:hover {
  background: var(--ink);
  color: var(--text);
}

.btn-small {
  min-height: 44px;
  padding: 12px 22px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

:lang(he) .btn {
  letter-spacing: 0;
}

.btn:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline-color: var(--lav);
}

/* --- header: as on the live site (the owner's choice); only its buttons are new --- */

.site-header .wrap {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
  padding-inline: 0;
}

/* The uppercase buttons are wider than the live site's: the logo never gives way to them. */
.site-header .brand {
  flex-shrink: 0;
}

/* Between phone and desktop the row is too narrow for the logo, seven links and
   two buttons (on the live site the logo squeezes to nothing at 760–1000px).
   Both buttons open the same sign-in page, so "Sign in" goes first; then the
   links, which the footer repeats. */
@media (max-width: 1140px) {
  .header-signin {
    display: none;
  }

  .header-actions .btn-small {
    padding-inline: 16px;
    letter-spacing: 0.05em;
  }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .header-row {
    justify-content: space-between;
  }
}

/* --- footer -------------------------------------------------------------- */

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 72px 0 40px;
}

.site-footer::before {
  display: none;
}

.footer-heading {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-2);
}

.footer-nav a {
  color: var(--text);
  font-size: 15px;
}

.footer-bottom {
  margin-top: 56px;
}

/* --- framed media: whole screenshots, no fade, no tint ------------------- */

.ed-frame,
.hero-art {
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: none;
}

.ed-frame .app-shot,
.hero-art .app-shot {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
  height: auto;
}

figcaption {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
  text-align: start;
}

/* --- home: hero ---------------------------------------------------------- */

/* Centred and at the live site's sizes (the owner's choice): the words in a
   760px column, the app under them at most 1180px wide. */
.ed-hero {
  padding-block: 72px 0;
}

.ed-hero-copy {
  max-width: 830px;
  margin-inline: auto;
  text-align: center;
}

.ed-hero-copy .ed-lead {
  margin-inline: auto;
}

.ed-hero-copy .ed-actions {
  justify-content: center;
  margin-top: 30px;
}

.ed-hero-copy .ed-demo-link {
  display: inline-block;
  margin-top: 18px;
}

.ed-dj {
  color: #c2fb48;
}

.ed-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 40px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
}

.ed-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lav);
}

.ed-hero-title,
.section .ed-hero-title {
  text-align: center;
  margin: 0 0 28px;
  font-family: var(--display);
  font-weight: 900;
  /* 80px on a desktop (the owner's choice); smaller screens scale down to the live site's 2.2rem. */
  font-size: clamp(2.2rem, 6.2vw, 80px);
  line-height: 0.92;
  letter-spacing: -0.06em;
  word-spacing: 0.12em;
  text-transform: uppercase;
}

/* The masked reveal (DESIGN.md §5.1): each line rises from behind its mask, 0.12s apart. */
.ed-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.09em;
  margin-bottom: -0.09em;
}

.ed-mask > span {
  display: block;
  transform: translateY(106%);
  /* Slower than DESIGN.md's 1s (the owner's choice): each line takes 1.6s, a quarter-second after the one above. */
  animation: ed-rise 1.6s cubic-bezier(0.16, 0.84, 0.44, 1) forwards;
}

.ed-d1 { animation-delay: 0.1s !important; }
.ed-d2 { animation-delay: 0.35s !important; }
.ed-d3 { animation-delay: 0.6s !important; }
.ed-d4 { animation-delay: 0.85s !important; }

@keyframes ed-rise {
  to {
    transform: translateY(0);
  }
}

.ed-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.ed-demo-link {
  flex-basis: 100%;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
}

.ed-lead {
  margin: 0 0 20px;
  max-width: 620px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-2);
}

.ed-serif {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.1vw, 30px);
  line-height: 1.26;
  letter-spacing: -0.02em;
  color: var(--text);
}

:lang(he) .ed-serif {
  font-family: 'Heebo', sans-serif;
  font-style: normal;
  letter-spacing: 0;
}

.ed-muted {
  color: var(--text-2);
}

.ed-hero-shot {
  max-width: 1180px;
  margin: 56px auto 0;
}

/* --- marquee (§5.4) ------------------------------------------------------ */

.ed-marquee {
  --marquee-edge: 20%;
  position: relative;
  margin-top: 96px;
  padding: 22px 0;
  overflow: hidden;
  background: var(--panel);
  border-block: 1px solid var(--line);
}

.ed-marquee-track {
  display: flex;
  width: max-content;
  /* 38s for each run of the words; three runs a half (home.tsx MARQUEE_RUNS_PER_HALF), so 114s keeps the speed. */
  animation: ed-slide 114s linear infinite;
}

/* The edges (the owner's choice): over the outer 20% at each side the words
   fade out (a mask on the track) and blur more the nearer the edge (four
   stacked backdrop blurs, each masked to a narrower band at the edge), so a
   word comes in blurred and fading in, and leaves blurring and fading out. */
.ed-marquee-track {
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 var(--marquee-edge),
    #000 calc(100% - var(--marquee-edge)),
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 var(--marquee-edge),
    #000 calc(100% - var(--marquee-edge)),
    transparent
  );
}

.ed-marquee-edge {
  position: absolute;
  inset-block: 0;
  width: var(--marquee-edge);
  pointer-events: none;
}

.ed-marquee-edge.is-left {
  left: 0;
}

.ed-marquee-edge.is-right {
  right: 0;
  transform: scaleX(-1);
}

.ed-marquee-edge i {
  position: absolute;
  inset: 0;
}

/* Drawn for the left edge (strongest at 0%); the right edge is its mirror. */
.ed-marquee-edge i:nth-child(1) {
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  -webkit-mask-image: linear-gradient(to right, #000, transparent 100%);
  mask-image: linear-gradient(to right, #000, transparent 100%);
}

.ed-marquee-edge i:nth-child(2) {
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  -webkit-mask-image: linear-gradient(to right, #000, transparent 75%);
  mask-image: linear-gradient(to right, #000, transparent 75%);
}

.ed-marquee-edge i:nth-child(3) {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  -webkit-mask-image: linear-gradient(to right, #000, transparent 50%);
  mask-image: linear-gradient(to right, #000, transparent 50%);
}

.ed-marquee-edge i:nth-child(4) {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(to right, #000, transparent 25%);
  mask-image: linear-gradient(to right, #000, transparent 25%);
}

@keyframes ed-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.ed-word {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-inline-end: 36px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
}

.ed-pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

/* --- sections and titles ------------------------------------------------- */

.ed-section {
  padding-block: 112px;
}

.ed-section-title,
.section .ed-section-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 84px);
  line-height: 0.85;
  letter-spacing: -0.06em;
  word-spacing: 0.08em;
  text-transform: uppercase;
}

.ed-measure {
  max-width: 1100px;
}

.ed-intro {
  max-width: 620px;
  margin: 20px 0 32px;
}

.ed-block {
  display: block;
}

/* --- a centred head in the hero's size and voice ------------------------ */

.ed-centre-head {
  max-width: 830px;
  margin-inline: auto;
  text-align: center;
}

.ed-centre-head .ed-serif {
  margin: 0;
}

.ed-centre-head .ed-lead {
  margin-inline: auto;
}

.ed-centre-head .ed-lead + .ed-serif {
  margin-top: 22px;
}

/* "Powerful Effects." and "Effortless Mixing." each need ~875px at 80px:
   a wider column here keeps the title on two lines (the owner's choice). */
#effects .ed-centre-head {
  max-width: 880px;
}

/* --- the effects showcase (home.tsx EffectShowcase, public/js/showcase.js) ---
   One wide panel: a step label per recording (Intro, Outro) with a thin
   progress line, a 16:9 stage where the looping effect-editor recordings
   crossfade (500 ms), and a heading and a line under them. Recordings are
   shown whole (contain) and do not zoom, so the editor's text stays sharp;
   a picture in a slide would still zoom slowly to 103 %. */

.ed-showcase {
  --showcase-ms: 10000ms;
  max-width: 1180px;
  margin: 56px auto 0;
}

.ed-showcase-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}

.ed-showcase-tab {
  --tab: var(--lav);
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--text-2);
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.ed-showcase-tab.tab-lime { --tab: var(--lime); }
.ed-showcase-tab.tab-cyan { --tab: var(--cyan); }
.ed-showcase-tab.tab-indigo { --tab: var(--indigo); }

.ed-showcase-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--tab);
}

.ed-showcase-word {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color 0.3s ease;
}

.ed-showcase-tab:hover .ed-showcase-word,
.ed-showcase-tab[aria-selected='true'] .ed-showcase-word {
  color: var(--text);
}

.ed-showcase-tab:focus-visible {
  outline: 2px solid var(--tab);
  outline-offset: 6px;
  border-radius: 4px;
}

/* The progress line: it fills while its picture shows; its end moves the panel on. */
.ed-showcase-progress {
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 2px;
  background: var(--tab);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

:dir(rtl) .ed-showcase-progress {
  transform-origin: 100% 50%;
}

.ed-showcase-tab[aria-selected='true'] .ed-showcase-progress {
  animation: ed-showcase-progress var(--showcase-ms) linear forwards;
}

@keyframes ed-showcase-progress {
  to {
    transform: scaleX(1);
  }
}

.ed-showcase-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  /* The screenshots' own background, so the margins around them blend in (the owner's choice). */
  background: #15171d;
}

.ed-showcase-slide {
  position: absolute;
  inset: 0;
  padding: 18px;
  opacity: 0;
  transition: opacity 500ms ease;
  /* A hidden step lies over the shown one: it must not take the clicks meant for the shown recording's controls. */
  pointer-events: none;
}

.ed-showcase-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.ed-showcase-slide video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: #15171d;
}

.ed-showcase-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transform-origin: 50% 50%;
}

.ed-showcase-slide.is-active img {
  animation: ed-showcase-zoom var(--showcase-ms) linear forwards;
}

@keyframes ed-showcase-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.03);
  }
}

/* Under the picture: the step's heading and line, crossfading in one place. */
.ed-showcase-captions {
  display: grid;
  margin-top: 28px;
  text-align: center;
}

/* Words do not overlap while they change: the old line fades out first (200 ms),
   then the new one in (300 ms) — the same 500 ms as the pictures. */
.ed-showcase-caption {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 200ms ease;
}

.ed-showcase-caption.is-active {
  opacity: 1;
  transition: opacity 300ms ease 200ms;
}

.ed-showcase-caption h3 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-align: center;
}

.ed-showcase-caption p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-2);
}

/* Paused (hover, keyboard focus, out of sight): the line and the zoom wait where they are. */
.ed-showcase.is-paused .ed-showcase-progress,
.ed-showcase.is-paused .ed-showcase-slide img {
  animation-play-state: paused;
}

/* Not cycling (no script yet, or less motion asked for): the current step's line is full, nothing zooms. */
.ed-showcase.is-static .ed-showcase-tab[aria-selected='true'] .ed-showcase-progress {
  animation: none;
  transform: scaleX(1);
}

.ed-showcase.is-static .ed-showcase-slide img {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .ed-showcase-slide,
  .ed-showcase-caption,
  .ed-showcase-word {
    transition: none;
  }
}

/* Phone: the labels close up and the stage turns 4:3, so the editor shots fill it. */
@media (max-width: 760px) {
  .ed-showcase-tabs {
    gap: 10px;
    margin-bottom: 14px;
  }

  .ed-showcase-tab {
    flex-direction: column;
    gap: 6px;
    padding-bottom: 10px;
  }

  .ed-showcase-word {
    font-size: 18px;
  }

  .ed-showcase-stage {
    aspect-ratio: 4 / 3;
  }

  .ed-showcase-slide {
    padding: 8px;
  }
}

/* --- feature cards: the live site's grid (4 → 2 → 1), the new language --- */

.ed-cards {
  max-width: 1180px;
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ed-card {
  padding: 28px 24px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.2s ease;
}

.ed-card:hover {
  border-color: var(--line-strong);
}

/* Three across (the "Create. Control. Perfect." points). */
.ed-cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ed-card-n {
  margin: 0 0 22px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.ed-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.ed-card p:last-child {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}

/* --- the three steps: three cards, a coloured title over its words (no numbers:
   the owner's choice; the class keeps its old name) --- */

/* The three cards share rows (subgrid), so their words line up even when one
   title runs longer. */
.ed-tall-cards {
  list-style: none;
  max-width: 1180px;
  margin: 56px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto;
  column-gap: 18px;
}

.ed-tall-card {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: 0;
  padding: 32px 28px 34px;
  background: var(--bg);
}

.ed-tall-card h3 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.05;
}

.ed-tall-card p:last-child {
  font-size: 16px;
}

/* --- the pixel trail (public/js/pixel-trail.js) --------------------------
   The block holds its own canvas behind its content, clipped to its rounded
   corners; the canvas never takes the pointer. */

[data-cursor-trail] {
  position: relative;
  isolation: isolate;
}

[data-cursor-trail] > :not(.pixel-canvas) {
  position: relative;
  z-index: 1;
}

/* React Bits' PixelTrail host, behind the block's words and clipped to its corners. */
.pixel-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.pixel-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* --- animated content (public/js/animated-content.js) ---------------------
   Only while the script has armed a block and not yet played it: its children
   wait below their place, faded and blurred. No script, no hidden content. */

[data-animated-content].ac-armed > * {
  opacity: 0;
  transform: translate3d(var(--ac-x, 0), var(--ac-y, 0), 0);
  filter: blur(var(--ac-blur, 0));
}

/* --- numbered rows: the replacement for the feature card ----------------- */

.ed-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.ed-num {
  flex: 0 0 auto;
  width: 84px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.1em;
}

.ed-row h3 {
  margin: 0;
  flex: 1 1 320px;
  max-width: 440px;
  font-size: clamp(22px, 2.5vw, 36px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.ed-row > p,
.ed-row-body {
  margin: 0;
  flex: 999 1 320px;
  min-width: 0;
  max-width: 540px;
  color: var(--text-2);
}

.ed-row-body p {
  margin: 0 0 20px;
}

.ed-row-compact h3 {
  flex: 1 1 220px;
  max-width: 280px;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* The tutorials card: as wide as the steps above it, everything centred. */
.ed-tutorials {
  max-width: 1180px;
  margin: 18px auto 0;
  padding: 48px 32px;
  background: var(--bg);
  text-align: center;
}

.ed-tutorials-title,
.ed-card .ed-tutorials-title {
  margin: 0 0 14px;
  text-align: center;
  font-weight: 900;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  word-spacing: 0.08em;
  text-transform: uppercase;
}

.ed-tutorials p {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--text-2);
}

/* --- split: text beside media ------------------------------------------- */

.ed-split {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
}

.ed-split-top {
  align-items: flex-start;
}

.ed-split-text {
  flex: 1 1 400px;
  min-width: 0;
}

.ed-split-media {
  flex: 999 1 460px;
  min-width: 0;
  margin: 0;
}

.ed-split-text .ed-section-title {
  margin-bottom: 32px;
}

.ed-position-lead {
  margin: 0 0 40px;
  max-width: 580px;
}

/* The FX demo under the effects split. */
#effects .fx-demo {
  max-width: 1180px;
  margin-inline: auto;
  margin-top: 96px;
  padding-top: 72px;
  border-top: 1px solid var(--line);
}

/* Its head like the other sections' (a centred title in the hero's size), the video, then what it shows. */
/* "One Seamless Transition." is ~1190px at 80px, wider than any column: the first
   sentence gets its own line, the second wraps after "Seamless". */
#effects .fx-demo .ed-centre-head {
  max-width: 880px;
  margin-bottom: 48px;
}

#effects .fx-demo .ed-hero-title .c-dim {
  display: block;
}

#effects .fx-demo .ed-centre-head .ed-lead {
  margin-bottom: 0;
}

#effects .fx-demo .fx-demo-text {
  margin: 32px auto 0;
  max-width: 720px;
  text-align: center;
}

/* --- steps: three across, a 2px accent rule on top ---------------------- */

.ed-steps {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.ed-step {
  border-top: 2px solid var(--lav);
  padding-top: 24px;
}

.ed-step-n {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(36px, 3.6vw, 56px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.ed-step h3 {
  margin: 0 0 12px;
  font-size: clamp(20px, 1.9vw, 28px);
  line-height: 1.05;
}

.ed-step p:last-child {
  margin: 0;
  font-size: 16px;
  color: var(--text-2);
}

/* --- the accent band: one per page -------------------------------------- */

/* As wide as the content above it (1180px), centred, its words centred (the owner's choice). */
.ed-cta-band {
  max-width: 1180px;
  margin: 96px auto;
  padding: clamp(48px, 7vw, 96px);
  border-radius: 24px;
  background: var(--lime);
  color: var(--ink);
  text-align: center;
}

.ed-cta-band .ed-big,
.ed-cta-band .ed-cta-body {
  margin-inline: auto;
  text-align: center;
}

@media (max-width: 1276px) {
  .ed-cta-band {
    margin-inline: var(--gutter);
  }
}

.ed-kicker {
  margin: 0 0 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #2d3b06;
}

.ed-big,
.section .ed-big {
  margin: 0;
  max-width: 1000px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(34px, 5.4vw, 88px);
  line-height: 0.86;
  letter-spacing: -0.06em;
  word-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.ed-cta-body {
  margin: 32px 0 44px;
  max-width: 620px;
  font-size: 18px;
  color: #16200a;
}

/* --- FAQ: as on the live site (the owner's choice) ---------------------- */

.ed-faq-original .wrap.narrow {
  width: min(760px, 100% - 32px);
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}

.ed-faq-original h2 {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  word-spacing: normal;
  text-transform: none;
  text-align: center;
}

/* --- one complete version: a hairline table, start-aligned --------------- */

/* Not in DESIGN.md's anatomy: a band here, so no two neighbouring sections share a ground (§7). */
.complete {
  padding-inline: var(--gutter);
  background: var(--panel);
  border-block: 1px solid var(--line);
}

.complete .wrap {
  padding-inline: 0;
}

/* Centred like Features and Effects: the label, the title, the table, the line under it. */
.ed-centre-head .eyebrow {
  text-align: center;
}

.complete-table {
  margin: 48px auto 0;
  max-width: 830px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}

.complete-tagline {
  width: auto;
  margin-inline: 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.1vw, 30px);
}

/* --- responsive ---------------------------------------------------------- */

@media (max-width: 1040px) {
  .ed-steps,
  .ed-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Three cards stay three across until the phone layout. */
  .ed-cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 20px;
  }

  body {
    font-size: 16px;
  }

  .section,
  .ed-section {
    padding-block: 72px;
  }

  .ed-hero {
    padding-top: 64px;
  }

  .ed-steps,
  .ed-cards,
  .ed-tall-cards {
    grid-template-columns: 1fr;
  }

  .ed-tall-cards {
    grid-template-rows: none;
    row-gap: 18px;
  }

  .ed-tall-card {
    grid-row: auto;
    grid-template-rows: auto;
    row-gap: 0;
  }

  .ed-row {
    gap: 16px;
  }
}

/* --- reduced motion: text is visible with the animation off ------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ed-mask > span {
    animation: none;
    transform: none;
  }

  .ed-marquee-track {
    animation: none;
  }
}

/* --- sign-in and its sibling pages (auth.tsx, activate.tsx, twoStep.tsx) ---
   The full-bleed .wrap above made the box as wide as the page. Here it is a
   narrow card in the middle of the window, its heading and line centred, so
   the one thing to do on the page is the thing in front of you. */

.section.page-top:has(> .auth-box) {
  display: grid;
  place-items: center;
  min-height: calc(100svh - 64px);
  padding-block: 48px;
}

.wrap.auth-box {
  width: min(440px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(28px, 5vw, 44px);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
}

.wrap.auth-box h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-align: center;
}

.wrap.auth-box > .lead {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.55;
  text-align: center;
  color: var(--text-2);
}

.wrap.auth-box .btn {
  width: 100%;
}

/* --- the download page (download.tsx) in the home page's language ---------
   A centred head in the hero's size and colours, then each part under its
   own centred title (the same colours, a size down), its points as numbered
   cards in the accent colours, and the table in a card. */

.ed-download .ed-centre-head {
  margin-bottom: 8px;
}

.ed-download .ed-centre-head .ed-lead {
  margin-bottom: 0;
}

.ed-download-part {
  max-width: 1180px;
  margin: 96px auto 0;
}

.ed-sub-title,
.section .ed-sub-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  word-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.ed-number-cards {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.ed-number-cards .ed-card-text,
.ed-card p.ed-card-text:last-child {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
}

.ed-download-cta {
  margin-top: 36px;
  text-align: center;
}

.ed-download-cta .download-row {
  justify-content: center;
  margin: 0;
}

.ed-download-cta .small {
  margin: 16px 0 0;
  font-size: 14px;
}

.ed-download-cta .small a {
  color: var(--text-2);
}

.ed-download .spec-table {
  margin-top: 40px;
  background: var(--panel);
  border-color: var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}

.ed-download .spec-table th,
.ed-download .spec-table td {
  padding: 16px 22px;
  border-top-color: var(--line);
  font-size: 15px;
}

.ed-download .spec-table thead th {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* The two columns that matter take two of the accents. */
.ed-download .spec-table thead th:nth-child(2) {
  color: var(--lav);
}

.ed-download .spec-table thead th:nth-child(3) {
  color: var(--lime);
}

.ed-download .spec-notes {
  max-width: 720px;
  margin: 22px auto 0;
  padding: 0;
  list-style: none;
  text-align: center;
  font-size: 14px;
  color: var(--text-2);
}

.ed-download .spec-notes li {
  margin-bottom: 6px;
}

.ed-download .whats-new {
  max-width: 830px;
  margin: 96px auto 0;
}

@media (max-width: 1040px) {
  .ed-number-cards.ed-cards-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .ed-download .spec-table tbody tr {
    padding: 14px 18px;
  }

  .ed-download .spec-table tbody th,
  .ed-download .spec-table td {
    padding: 2px 0;
  }
}

/* --- the release notes (releaseNotes.tsx) in the home page's language ------
   A centred head in the hero's colours, then a card per version: the version
   large in its accent (the accents in order, like the home page's numbers)
   with its date under it, and what changed beside it, pips in the same accent. */

.ed-releases {
  display: grid;
  gap: 16px;
  max-width: 980px;
  margin: 72px auto 0;
}

.ed-release {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.2s ease;
}

.ed-release:hover {
  border-color: var(--line-strong);
}

.ed-release h2,
.section .ed-release h2 {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: start;
}

.ed-release-v {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.ed-release time {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
}

.ed-release-points {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ed-release-points li {
  position: relative;
  padding-inline-start: 22px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
}

.ed-release-points li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-2);
}

.pip-lav li::before { background: var(--lav); }
.pip-lime li::before { background: var(--lime); }
.pip-cyan li::before { background: var(--cyan); }
.pip-indigo li::before { background: var(--indigo); }

@media (max-width: 720px) {
  .ed-release {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 22px;
  }
}

/* --- tutorials (tutorials.tsx: the hub and each video's page) in the home
   page's language: a centred column, centred heads in the hero's colours,
   panel cards with hairline borders, and the lime band to close. */

.wrap.tut-wrap {
  width: auto;
  max-width: calc(1180px + 2 * var(--gutter));
  margin-inline: auto;
}

article.tutorials .wrap.tut-wrap {
  max-width: calc(980px + 2 * var(--gutter));
}

.tut-hero.ed-centre-head,
.tut-watch-head.ed-centre-head {
  margin-bottom: 0;
}

.tut-hero .ed-lead,
.tut-watch-head .ed-lead {
  margin: 0 auto 14px;
}

.tut-hero .muted {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
}

.tut-hero-links {
  justify-content: center;
  margin: 28px 0 0;
}

.tut-hero-links a,
.tut-related a {
  color: var(--lav);
}

/* The library's index: one centred pill of links. */
.tut-index {
  width: fit-content;
  max-width: 100%;
  margin: 40px auto 0;
  padding: 12px 28px;
  border-radius: 999px;
}

.tut-index ol {
  justify-content: center;
  padding: 0;
  list-style-position: inside;
}

.tutorials h2.ed-sub-title {
  margin: 96px 0 40px;
  text-align: center;
}

.tut-card {
  border-color: var(--line);
}

.tut-card:hover {
  border-color: var(--line-strong);
}

.tut-card-body {
  gap: 12px;
  padding: 26px 28px 28px;
}

.tut-card-body h3 {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.tut-meta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lav);
}

.tut-card-body .muted {
  font-size: 15px;
  line-height: 1.55;
}

.tut-outcomes li::marker {
  color: var(--lime);
}

/* Quick guides: each one a panel, its head centred. */
.quick-guide {
  margin-top: 24px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.quick-guide h3 {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

#quick-guides > .muted {
  text-align: center;
  margin: -24px 0 0;
}

.quick-guide-more a {
  color: var(--lav);
}

/* A video's page: its head centred; the parts under it in the display face. */
.tut-watch-head .tut-crumbs {
  margin: 0 0 18px;
}

.tut-watch-head h1.ed-sub-title {
  margin-bottom: 18px;
}

.tut-watch-head .tut-meta {
  margin: 0 0 18px;
}

.tutorials h2:not(.ed-sub-title):not(.ed-big) {
  margin: 64px 0 20px;
  font-weight: 900;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.tut-player {
  margin-top: 40px;
}

.tut-time {
  color: var(--lime);
}

.tut-chapters a:hover {
  border-color: var(--line-strong);
}

/* The lime band, as on the home page. */
.tutorials .tut-cta.ed-cta-band {
  margin: 96px auto 0;
  border: 0;
}

.tutorials .tut-cta.ed-cta-band h2,
.tut-cta.ed-cta-band p {
  color: var(--ink);
}

.tut-cta.ed-cta-band .ed-cta-body {
  max-width: 560px;
  margin: 24px auto 0;
  font-size: 18px;
}

.tut-cta.ed-cta-band .story-cta {
  margin: 32px 0 14px;
}

.tut-cta.ed-cta-band .btn {
  background: var(--ink);
  color: var(--text);
}

.tut-cta.ed-cta-band .small {
  opacity: 0.7;
}

@media (max-width: 760px) {
  .tut-index {
    border-radius: var(--radius);
  }
}

/* --- the guide (/docs, docs.tsx) in the home page's language ---------------
   A centred head in the hero's size and colours; under it the contents and
   the sections side by side, centred on the page; each section's number in
   the home page's accents, the same number beside it in the contents. */

.wrap.docs-wrap {
  width: auto;
  max-width: calc(1120px + 2 * var(--gutter));
  margin-inline: auto;
}

.docs-head .docs-eyebrow,
.docs .docs-head .docs-eyebrow {
  margin: 0 0 24px;
  text-align: center;
  color: var(--lime);
}

.docs-head .ed-lead {
  margin: 0 auto 14px;
}

.docs-head .docs-tutorials {
  margin: 0;
  text-align: center;
  color: var(--text-2);
}

.docs-tutorials a {
  color: var(--lav);
}

.docs-grid {
  grid-template-columns: 250px minmax(0, 780px);
  justify-content: center;
  gap: 56px;
  margin-top: 80px;
}

.docs-toc {
  top: 88px;
  padding: 22px 20px;
  border-radius: var(--radius);
}

.docs-toc-title {
  font-family: var(--display);
  letter-spacing: 0.18em;
  color: var(--text-2);
}

.docs-toc a {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 6px 0;
  line-height: 1.35;
}

.docs-toc-n {
  flex: 0 0 22px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.docs-body {
  max-width: none;
}

.docs-section {
  margin-top: 0;
  padding-block: 44px 8px;
  scroll-margin-top: 88px;
}

.docs-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.docs-n {
  display: block;
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.section .docs-section h2 {
  margin: 0 0 18px;
  font-weight: 900;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.docs-section p,
.docs-points {
  font-size: 16px;
  line-height: 1.65;
}

.docs-points li::marker {
  color: var(--lime);
}

.docs-shortcuts {
  background: var(--panel);
  border-color: var(--line-strong);
}

.docs-shortcuts th,
.docs-shortcuts td {
  padding: 12px 20px;
}

@media (max-width: 900px) {
  .docs-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    margin-top: 56px;
  }

  .docs-toc {
    position: static;
  }
}

/* --- comparison pages (.ed-alt: /mixmeister-alternative) in the home page's
   language: a centred head in the hero's size and colours; the article in a
   centred reading column; each part's heading numbered 01, 02… in the home
   page's accents (a CSS counter, so the headings' words stay as written);
   points as accent cards, steps with accent numbers, the table in a card. */

.wrap.ed-alt-wrap {
  width: auto;
  max-width: calc(820px + 2 * var(--gutter));
  margin-inline: auto;
  counter-reset: ed-part;
}

.ed-alt-head .ed-hero-title {
  font-size: clamp(2.2rem, 5.6vw, 72px);
}

.ed-alt-updated {
  margin: 0 0 22px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
}

.ed-alt-head .ed-lead {
  max-width: 680px;
  margin: 0 auto;
}

.ed-alt-head .story-cta {
  margin: 32px 0 0;
  text-align: center;
}

/* The AlternativeTo badge under the questions (altPageParts.tsx). */
.ed-alt .alt-badge {
  margin: 28px 0;
}

.ed-alt .alt-badge img {
  display: block;
  max-width: 100%;
  height: auto;
}

.ed-alt .alt-figure {
  width: min(1000px, 100vw - 2 * var(--gutter));
  margin: 64px 0 0;
  margin-inline-start: 50%;
  transform: translateX(-50%);
}

.ed-alt p,
.ed-alt li {
  font-size: 16px;
  line-height: 1.65;
}

.ed-alt p a:not(.btn),
.ed-alt li a:not(.btn) {
  color: var(--lav);
}

.ed-alt h2,
.story.ed-alt h2 {
  counter-increment: ed-part;
  margin: 88px 0 20px;
  font-weight: 900;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-align: start;
}

.ed-alt h2::before {
  content: counter(ed-part, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.05em;
  color: var(--lav);
}

.ed-alt h2:nth-of-type(4n + 2)::before { color: var(--lime); }
.ed-alt h2:nth-of-type(4n + 3)::before { color: var(--cyan); }
.ed-alt h2:nth-of-type(4n + 4)::before { color: var(--indigo); }

.ed-alt .spec-table {
  background: var(--panel);
  border-color: var(--line-strong);
}

.ed-alt .spec-table th,
.ed-alt .spec-table td {
  padding: 16px 20px;
  font-size: 15px;
}

.ed-alt .spec-table thead th {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
}

.ed-alt .spec-table thead th:nth-child(2) {
  color: var(--lav);
}

/* The points as accent cards, two across. */
.ed-point-cards {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ed-point-cards .ed-card {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
}

.ed-point-cards .ed-card-n {
  display: block;
  margin-bottom: 18px;
}

.ed-point-cards strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Plain points: a dim pip before each, the lead-in in white. */
.ed-alt .alt-points {
  list-style: none;
  padding: 0;
}

.ed-alt .alt-points li {
  position: relative;
  padding-inline-start: 22px;
}

.ed-alt .alt-points li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dim);
}

/* Steps: each number large in its accent, beside the words. */
.ed-alt .alt-steps {
  list-style: none;
  padding: 0;
  counter-reset: ed-step;
  display: grid;
  gap: 12px;
}

/* The number sits in the card's margin, so the words (bold lead-in and all) flow as one paragraph. */
.ed-alt .alt-steps li {
  counter-increment: ed-step;
  position: relative;
  margin: 0;
  padding: 18px 22px 18px 78px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
}

.ed-alt .alt-steps li::before {
  content: counter(ed-step, decimal-leading-zero);
  position: absolute;
  inset-inline-start: 22px;
  top: 15px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.05em;
  color: var(--lav);
}

.ed-alt .alt-steps li:nth-child(4n + 2)::before { color: var(--lime); }
.ed-alt .alt-steps li:nth-child(4n + 3)::before { color: var(--cyan); }
.ed-alt .alt-steps li:nth-child(4n + 4)::before { color: var(--indigo); }

.ed-alt .faq-item {
  border-color: var(--line);
}

.ed-alt > .wrap > .story-cta:last-child {
  margin-top: 56px;
  text-align: center;
}

@media (max-width: 700px) {
  .ed-point-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .ed-alt .alt-steps li {
    padding: 16px 16px 16px 60px;
  }

  .ed-alt .alt-steps li::before {
    inset-inline-start: 16px;
    top: 14px;
    font-size: 22px;
  }
}

/* --- our story (/our-story, ourStory.tsx) in the home page's language ------
   The author's words untouched: a centred head in the hero's colours with the
   subtitle in the serif, the reading column centred, each chapter numbered in
   the home page's accents (a CSS counter, so the headings stay as written),
   the pull quotes in the serif, large, as the home page sets its reflections. */

.ed-story {
  counter-reset: ed-chapter;
}

.ed-story .wrap.narrow {
  width: auto;
  max-width: calc(760px + 2 * var(--gutter));
  margin-inline: auto;
}

.ed-story .story-head .ed-hero-title {
  font-size: clamp(2.2rem, 5.6vw, 72px);
}

/* The head steps out of the 760px text column (up to 1000px), so the title keeps to three lines. */
.ed-story .story-head {
  width: min(1000px, 100vw - 2 * var(--gutter));
  max-width: none;
  margin: 0 0 64px;
  margin-inline-start: 50%;
  transform: translateX(-50%);
}

.ed-story .story-head .ed-hero-title {
  margin-inline: auto;
}

.ed-story .story-subtitle {
  margin: 24px auto 0;
  text-align: center;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--text-2);
}

.ed-story .story-subtitle em {
  font-style: italic;
}

/* The author and the opening, in a card. */
.ed-story .story-intro {
  padding: clamp(22px, 3.4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.ed-story .story-photo {
  border-color: var(--line-strong);
}

.ed-story p {
  font-size: 17px;
  line-height: 1.7;
}

.ed-story h2,
.story.ed-story h2 {
  counter-increment: ed-chapter;
  margin: 88px 0 22px;
  font-weight: 900;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-align: start;
}

.ed-story h2::before {
  content: counter(ed-chapter, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -0.05em;
  color: var(--lav);
}

.ed-story .wrap > h2:nth-of-type(4n + 2)::before { color: var(--lime); }
.ed-story .wrap > h2:nth-of-type(4n + 3)::before { color: var(--cyan); }
.ed-story .wrap > h2:nth-of-type(4n + 4)::before { color: var(--indigo); }

/* The second column starts its chapters where the first left off. */
.ed-story .wrap + .story-figure + .wrap > h2:nth-of-type(1)::before { color: var(--lime); }
.ed-story .wrap + .story-figure + .wrap > h2:nth-of-type(2)::before { color: var(--cyan); }

.ed-story .story-lines {
  margin: 0 0 1.2em;
  padding-inline-start: 20px;
  border-inline-start: 2px solid var(--line-strong);
}

.ed-story .story-lines p {
  margin: 0 0 0.3em;
}

/* Pull quotes: the serif, large, centred, as the home page sets its reflections. */
.ed-story .pull-quote {
  margin: 64px auto;
  padding: 0;
  border: 0;
  text-align: center;
}

.ed-story .pull-quote p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--lav);
}

.ed-story .story-figure {
  margin: 72px auto;
}

.ed-story .story-cta {
  margin: 40px 0 8px;
  text-align: center;
}

.ed-story .story-rule {
  margin: 72px 0 32px;
}

.ed-story .story-note {
  text-align: center;
  font-size: 16px;
}

/* The comparison pages' details beyond the MixMeister page (/dj-studio-alternative):
   the small line under the head's button, every beta button centred, the closing
   small print centred, and the table's third column (the other app) in grey. */
.ed-alt-head .muted.small {
  margin: 14px 0 0;
  text-align: center;
}

.ed-alt .story-cta {
  margin: 40px 0 12px;
  text-align: center;
}

.ed-alt .story-cta + .muted.small,
.ed-alt .story-cta + .muted.small + .muted.small {
  text-align: center;
}

.ed-alt .spec-table thead th:nth-child(3) {
  color: var(--dim);
}

.ed-alt .alt-steps li strong {
  color: var(--text);
}

/* The head steps out of the 820px reading column (up to 1000px), so a long title keeps to three lines. */
.ed-alt .ed-alt-head {
  width: min(1000px, 100vw - 2 * var(--gutter));
  max-width: none;
  margin-inline-start: 50%;
  transform: translateX(-50%);
}

/* --- contact (/contact, pages/contact.tsx) in the home page's language -----
   A centred head in the hero's colours with the reflective line in the
   serif, then two cards side by side: the address to write to, and the form. */

.wrap.ed-contact-wrap {
  width: auto;
  max-width: calc(1080px + 2 * var(--gutter));
  margin-inline: auto;
}

.ed-contact .ed-centre-head .ed-lead {
  max-width: 640px;
  margin: 0 auto;
}

.ed-contact .ed-centre-head .ed-serif {
  max-width: 640px;
  margin: 22px auto 0;
  text-align: center;
  font-size: clamp(19px, 1.8vw, 23px);
  color: var(--text-2);
}

.ed-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 20px;
  align-items: start;
  margin-top: 64px;
}

.ed-contact .ed-card {
  padding: clamp(26px, 3.4vw, 40px);
}

.ed-contact .ed-card-n {
  display: block;
  margin-bottom: 20px;
}

.ed-contact .ed-card h2,
.section.ed-contact .ed-card h2 {
  margin: 0 0 10px;
  font-weight: 900;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-align: start;
}

.ed-contact .ed-card > p {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}

/* The address, large: the thing to copy or click. */
.ed-contact-address {
  display: inline-block;
  margin-bottom: 28px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.03em;
  color: var(--lav);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.ed-contact-address:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ed-contact .ed-card > p.ed-contact-member {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.ed-contact-member a {
  color: var(--lav);
}

.ed-contact-form .stack label {
  font-weight: 600;
  font-size: 14px;
}

.ed-contact-form input,
.ed-contact-form textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
}

.ed-contact-form input:focus,
.ed-contact-form textarea:focus {
  outline: 2px solid var(--lav);
  outline-offset: 1px;
}

.ed-contact-form input[readonly] {
  color: var(--text-2);
}

.ed-contact-form .btn {
  width: 100%;
  margin-top: 6px;
}

@media (max-width: 860px) {
  .ed-contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- guides whose headings count their own steps (.ed-alt-bars: /serato-set-prep):
   a short accent bar above each part's heading instead of a number, the accents
   in the home page's order; and the guides' sub-headings in the display face. */

.ed-alt-bars h2::before,
.story.ed-alt-bars h2::before {
  content: '';
  width: 44px;
  height: 4px;
  margin-bottom: 20px;
  border-radius: 2px;
  background: var(--lav);
}

.ed-alt-bars h2:nth-of-type(4n + 2)::before { background: var(--lime); }
.ed-alt-bars h2:nth-of-type(4n + 3)::before { background: var(--cyan); }
.ed-alt-bars h2:nth-of-type(4n + 4)::before { background: var(--indigo); }

.ed-alt h3,
.story.ed-alt h3 {
  margin: 40px 0 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(19px, 1.9vw, 23px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-align: start;
}

.ed-alt code {
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel);
  font-size: 0.9em;
}

.ed-alt .story-cta + .muted.small + .muted.small + .muted.small {
  text-align: center;
}

/* A head with no button under it (/serato-set-prep): room before the first paragraph. */
.ed-alt .ed-alt-head + p {
  margin-top: 64px;
}

/* --- the controller guide (/how-to-make-a-dj-mix-without-a-controller) in
   the comparison pages' language: its own pieces (contents, paired cards, the
   three ways, the wide table, the closing band) in the home page's look. */

.ed-alt .guide-toc {
  margin-top: 36px;
  padding: 22px 26px;
  border-color: var(--line);
  background: var(--panel);
}

.ed-alt .guide-toc a,
.ed-alt .guide-source a {
  color: var(--lav);
}

.ed-alt .guide-card {
  padding: 24px 26px;
  border-color: var(--line);
  background: var(--panel);
}

.ed-alt .guide-card h3 {
  margin: 0 0 10px;
}

.ed-alt .guide-card .guide-kicker {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--lime);
}

/* Accents in order across the cards of a row, as the home page numbers them. */
.ed-alt .guide-pair > .guide-card:nth-child(2) .guide-kicker,
.ed-alt .guide-ways > .guide-card:nth-child(2) .guide-kicker {
  color: var(--cyan);
}

.ed-alt .guide-ways > .guide-card:nth-child(3) .guide-kicker {
  color: var(--lav);
}

.ed-alt .guide-card li::marker {
  color: var(--dim);
}

/* The wide pieces, centred on the page whatever the column (the same step-out as the pictures). */
.ed-alt .guide-wide {
  width: min(1000px, 100vw - 2 * var(--gutter));
  margin-inline: 0;
  margin-inline-start: 50%;
  transform: translateX(-50%);
}

.ed-alt .guide-video .tut-thumb {
  border-color: var(--line-strong);
}

/* The closing band: the home page's lime, its buttons dark. */
.ed-alt .tut-cta.ed-cta-band {
  margin: 96px 0 32px;
  margin-inline-start: 50%;
  width: min(1000px, 100vw - 2 * var(--gutter));
  transform: translateX(-50%);
  border: 0;
}

.ed-alt .tut-cta.ed-cta-band h2::before {
  display: none;
}

.ed-alt .tut-cta.ed-cta-band h2 {
  margin: 0;
  text-align: center;
  color: var(--ink);
}

.ed-alt .tut-cta.ed-cta-band p {
  max-width: 560px;
  margin: 22px auto 0;
  color: var(--ink);
}

.ed-alt .tut-cta.ed-cta-band .guide-actions {
  max-width: none;
  justify-content: center;
  margin-top: 30px;
}

.tut-cta.ed-cta-band .btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.ed-alt .tut-cta.ed-cta-band a:not(.btn) {
  color: var(--ink);
}

@media (max-width: 760px) {
  .ed-alt .guide-pair,
  .ed-alt .guide-ways {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The guide's opening paragraph as wide as the column. */
.ed-alt p.lead {
  max-width: none;
}

/* The six-column comparison: every column head alike (the coloured heads are for MixTape-versus tables). */
.ed-alt .guide-table thead th,
.ed-alt .guide-table thead th:nth-child(2),
.ed-alt .guide-table thead th:nth-child(3) {
  color: var(--text-2);
}

/* The tracklist guide's copyable blocks (/dj-mix-tracklist-timestamps): a dark card in the page's hairline. */
.ed-alt .guide-code pre {
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
}

.ed-alt .guide-code figcaption {
  color: var(--text-2);
}

/* Code inside a block is part of the block: no inline-code frame of its own. */
.ed-alt pre code {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
}

/* Right to left (/he/privacy): the step-out widening moves the other way. */
[dir='rtl'] .ed-alt .ed-alt-head,
[dir='rtl'] .ed-alt .alt-figure,
[dir='rtl'] .ed-alt .guide-wide,
[dir='rtl'] .ed-alt .tut-cta.ed-cta-band {
  transform: translateX(50%);
}

/* Under the home page's questions: one line and the way to the contact page, centred. */
.ed-faq-more {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.ed-faq-more p {
  max-width: 520px;
  margin: 0 auto 22px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-2);
}

/* --- "DJ" in the hero: now and then, a short glitch (the owner's choice) ----
   Two copies of the word (data-text, from withDj) in the site's cyan and
   lavender sit on it, hidden; twice in each 7-second cycle they flash for a
   third of a second, each showing a different slice shifted sideways, while
   the word itself jolts. Starts once the title has risen; off for people who
   ask for less motion. */

.ed-hero .ed-dj {
  position: relative;
  display: inline-block;
  animation: ed-glitch-word 7s steps(1, end) 2.6s infinite;
}

.ed-hero .ed-dj::before,
.ed-hero .ed-dj::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.ed-hero .ed-dj::before {
  color: var(--cyan);
  animation: ed-glitch-a 7s steps(1, end) 2.6s infinite;
}

.ed-hero .ed-dj::after {
  color: var(--lav);
  animation: ed-glitch-b 7s steps(1, end) 2.6s infinite;
}

@keyframes ed-glitch-word {
  0% { transform: translate(2px, 0) skewX(-8deg); }
  1% { transform: translate(-2px, 0) skewX(5deg); }
  2% { transform: translate(1px, 0); }
  3%, 55% { transform: none; }
  56% { transform: translate(-3px, 0) skewX(6deg); }
  57% { transform: translate(2px, 0); }
  58%, 100% { transform: none; }
}

@keyframes ed-glitch-a {
  0% { opacity: 1; transform: translate(-6px, 0); clip-path: inset(8% 0 58% 0); }
  1% { opacity: 1; transform: translate(5px, -1px); clip-path: inset(62% 0 8% 0); }
  2% { opacity: 1; transform: translate(-3px, 1px); clip-path: inset(30% 0 42% 0); }
  3%, 55% { opacity: 0; transform: none; clip-path: inset(0 0 100% 0); }
  56% { opacity: 1; transform: translate(6px, 0); clip-path: inset(48% 0 22% 0); }
  57% { opacity: 1; transform: translate(-4px, 0); clip-path: inset(12% 0 70% 0); }
  58%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 100% 0); }
}

@keyframes ed-glitch-b {
  0% { opacity: 1; transform: translate(6px, 0); clip-path: inset(55% 0 12% 0); }
  1% { opacity: 1; transform: translate(-5px, 1px); clip-path: inset(18% 0 60% 0); }
  2% { opacity: 1; transform: translate(3px, 0); clip-path: inset(70% 0 4% 0); }
  3%, 55% { opacity: 0; transform: none; clip-path: inset(0 0 100% 0); }
  56% { opacity: 1; transform: translate(-6px, 0); clip-path: inset(5% 0 65% 0); }
  57% { opacity: 1; transform: translate(4px, 0); clip-path: inset(60% 0 15% 0); }
  58%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 100% 0); }
}

@media (prefers-reduced-motion: reduce) {
  .ed-hero .ed-dj,
  .ed-hero .ed-dj::before,
  .ed-hero .ed-dj::after {
    animation: none;
  }
}

/* --- pages without their own editorial treatment yet (account, Contact Support,
   security, activation, two-step, 404): the narrow column centred again (the
   full-bleed .wrap above had undone it), and a title in the display face at a
   working size, not the 112px of a hero. */

.wrap.narrow {
  margin-inline: auto;
}

.page-top h1:not(.ed-hero-title):not(.ed-sub-title) {
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

/* --- the mix player (home.tsx → pages/mixBreakdown.tsx, public/js/mix-breakdown.js) ---
   Four step cards over a framed picture: the timeline screenshot with the EQ
   and FX lanes under it (closed until asked for), one playhead over both, and
   the transport under the frame. The script shows the controls it runs;
   without it the browser's own audio player stays. */

/* The hero's button to it, in the green of the title's "DJ" (the owner's choice). */
.btn-dj,
.btn-dj:hover {
  background: #c2fb48;
  color: var(--ink);
}

/* At rest it draws the eye gently: a soft halo breathes slowly, and every few
   seconds a faint band of light crosses it. */
.btn-dj {
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s ease, filter 0.15s ease;
  animation: btn-dj-rest 3s ease-in-out infinite;
}

.btn-dj span {
  display: inline-block;
  margin-inline-end: 8px;
  transition: transform 0.25s ease;
}

/* The player's own Play button wears the same rules; its play mark is a drawing. */
.btn-dj .mb-ico-play {
  transition: transform 0.25s ease;
}

/* A band of light, parked off the button's edge until the pointer comes. */
.btn-dj::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.7) 50%, transparent 70%);
  transform: translateX(-130%);
  pointer-events: none;
  opacity: 0.7;
  animation: btn-dj-glint 4.8s ease-in-out 1.5s infinite;
}

/* The halo swells and the button grows a touch with it. */
@keyframes btn-dj-rest {
  0%, 100% { box-shadow: 0 0 0 0 rgba(194, 251, 72, 0.2), 0 0 15px rgba(194, 251, 72, 0.16); transform: scale(1); }
  50% { box-shadow: 0 0 0 7px rgba(194, 251, 72, 0.12), 0 0 34px rgba(194, 251, 72, 0.44); transform: scale(1.02); }
}

/* Parked for most of the cycle, then one pass. */
@keyframes btn-dj-glint {
  0%, 80% { transform: translateX(-130%); }
  100% { transform: translateX(130%); }
}

/* Under the pointer (or keyboard focus) it catches the eye: the light sweeps
   across, a green halo breathes around it, and the play mark leans forward. */
.btn-dj:hover,
.btn-dj:focus-visible {
  filter: none;
  animation: btn-dj-halo 1s ease-in-out infinite;
}

.btn-dj:hover::after,
.btn-dj:focus-visible::after {
  opacity: 1;
  animation: btn-dj-sweep 0.75s ease-out;
}

.btn-dj:hover span,
.btn-dj:focus-visible span,
.btn-dj:hover .mb-ico-play,
.btn-dj:focus-visible .mb-ico-play {
  transform: translateX(4px) scale(1.15);
}

@keyframes btn-dj-halo {
  0%, 100% { box-shadow: 0 0 0 4px rgba(194, 251, 72, 0.35), 0 0 36px rgba(194, 251, 72, 0.6); transform: scale(1.05); }
  50% { box-shadow: 0 0 0 11px rgba(194, 251, 72, 0.16), 0 0 64px rgba(194, 251, 72, 0.9); transform: scale(1.05); }
}

@keyframes btn-dj-sweep {
  from { transform: translateX(-130%); }
  to { transform: translateX(130%); }
}

/* Less motion asked for: nothing moves at rest; under the pointer the halo stays still. */
@media (prefers-reduced-motion: reduce) {
  .btn-dj,
  .btn-dj::after {
    animation: none;
  }

  .btn-dj:hover,
  .btn-dj:focus-visible {
    animation: none;
    box-shadow: 0 0 0 3px rgba(194, 251, 72, 0.25), 0 0 28px rgba(194, 251, 72, 0.45);
  }

  .btn-dj:hover::after,
  .btn-dj:focus-visible::after {
    animation: none;
  }

  .btn-dj:hover span,
  .btn-dj:focus-visible span,
  .btn-dj:hover .mb-ico-play,
  .btn-dj:focus-visible .mb-ico-play {
    transform: none;
  }
}

#hear [hidden] {
  display: none !important;
}

.mb {
  max-width: 1180px;
  margin: 56px auto 0;
}

/* The steps: the site's cards as small buttons, a word and its bars. The current
   one takes its colour; a line at its foot shows the playhead inside it; its words
   are in the row under the cards (.mb-notes). */
.mb-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.mb-step {
  --tone: var(--lav);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 16px 12px 18px;
  font: inherit;
  color: inherit;
  text-align: center;
  cursor: pointer;
}

.mb-step.tone-lime { --tone: var(--lime); }
.mb-step.tone-cyan { --tone: var(--cyan); }
.mb-step.tone-indigo { --tone: var(--indigo); }

.mb-step-word {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(15px, 1.6vw, 20px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-2);
  transition: color 0.2s ease;
}

.mb-step-bars {
  font-family: var(--display);
  font-weight: 800;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
}

.mb-step:hover .mb-step-word { color: var(--text); }
.mb-step[aria-current='step'] { border-color: var(--tone); }
.mb-step[aria-current='step'] .mb-step-word,
.mb-step[aria-current='step'] .mb-step-bars { color: var(--tone); }

.mb-step:focus-visible {
  outline: 2px solid var(--tone);
  outline-offset: 3px;
}

.mb-step-progress {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: var(--tone);
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
}

:dir(rtl) .mb-step-progress {
  transform-origin: 100% 50%;
}

/* The words of the step that is playing. The four share one cell, so the picture
   below stays put as they change. */
.mb-notes {
  display: grid;
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  color: var(--text);
}

.mb-notes p {
  grid-area: 1 / 1;
  margin: 0;
  visibility: hidden;
}

.mb:has(.mb-step:nth-child(1)[aria-current]) .mb-notes p:nth-child(1),
.mb:has(.mb-step:nth-child(2)[aria-current]) .mb-notes p:nth-child(2),
.mb:has(.mb-step:nth-child(3)[aria-current]) .mb-notes p:nth-child(3),
.mb:has(.mb-step:nth-child(4)[aria-current]) .mb-notes p:nth-child(4) {
  visibility: visible;
}

/* Without the script no step is playing: all four, one under another. */
.mb:not(:has(.mb-step[aria-current])) .mb-notes {
  gap: 6px;
}

.mb:not(:has(.mb-step[aria-current])) .mb-notes p {
  grid-area: auto;
  visibility: visible;
}

/* The frame: the showcase stage's border, radius and screenshot background. */
.mb-frame {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #15171d;
}

/* The picture takes the frame's width, whole, at every size: nothing scrolls sideways. */
.mb-scroll {
  overflow: hidden;
  border-radius: 8px;
}

.mb-stage {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  outline: none;
}

.mb-stage img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.mb-stage:focus-visible {
  box-shadow: inset 0 0 0 2px var(--lav);
}

.mb-played {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, transparent, rgba(194, 175, 252, 0.07));
  pointer-events: none;
}

.mb-head {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  width: 2px;
  margin-left: -1px;
  background: var(--lav);
  box-shadow: 0 0 10px rgba(194, 175, 252, 0.75);
  pointer-events: none;
}

.mb-head::before {
  content: '';
  position: absolute;
  top: 0;
  left: -6px;
  border: 7px solid transparent;
  border-top: 9px solid var(--lav);
  border-bottom: 0;
}

/* Centred with auto margins, not a transform: .btn:hover sets transform: none. */
.mb-big {
  position: absolute;
  z-index: 4;
  inset-inline: 0;
  top: 20%;
  width: fit-content;
  margin-inline: auto;
  gap: 12px;
  white-space: nowrap;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

/* The tracks' heads, left of the picture, as the app draws them (pages/mixBreakdown.tsx):
   number, song, tempo, key, level (--level: the fader's place, set by the script as the
   mix plays; here, where each track starts: 0 dB and -20 dB of -60..+6). The picture's rows are the grid's rows (subgrid), so the
   heads' column is exactly as tall as the timeline and its rows meet the picture's tracks:
   63 px of ruler, then 155 and 160 px of the picture's 378. Without subgrid the heads are
   left out and the picture is as before; the key is said under it too. */
.mb-frame {
  --mb-tracks: 216px;
}

.mb-tracks {
  display: none;
}

@supports (grid-template-rows: subgrid) {
  /* The line between the heads and the picture, down to the lanes' foot. */
  .mb-scroll {
    display: grid;
    grid-template-columns: var(--mb-tracks) minmax(0, 1fr);
    grid-template-rows: auto auto;
    background: linear-gradient(to right, #121620 calc(var(--mb-tracks) - 1px), #262c3c 0);
  }

  .mb-tracks {
    position: relative;
    display: block;
    grid-area: 1 / 1 / 2 / 2;
  }

  .mb-stage {
    display: grid;
    grid-area: 1 / 2 / 3 / 3;
    grid-template-rows: subgrid;
    border-radius: 0 8px 8px 0;
  }

  /* Over the picture's middle, not the frame's. */
  .mb-big {
    left: var(--mb-tracks);
  }
}

/* Out of the flow: the heads never make the row taller than the picture. */
.mb-tracks-in {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 63fr 155fr 160fr;
}

.mb-track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 0;
  padding: 9px 10px 0 15px;
  overflow: hidden;
  border-top: 1px solid #262c3c;
  color: #9aa3b5;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.mb-track-1 {
  grid-row: 2;
  --strip: #5047db;
  --key: #abda7e;
  --level: 90.9%;
}

.mb-track-2 {
  grid-row: 3;
  --strip: #0e8ca9;
  --key: #7cdadb;
  --level: 60.6%;
}

/* The track's colour down its left edge. */
.mb-track::before {
  content: '';
  position: absolute;
  inset: 3px auto 3px 0;
  width: 6px;
  border-radius: 4px 0 0 4px;
  background: var(--strip);
}

.mb-track-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.mb-track-n,
.mb-track-bpm,
.mb-track-eq {
  flex: none;
  border: 1px solid #262c3c;
  border-radius: 6px;
  background: #1b2130;
}

.mb-track-n {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
}

.mb-track-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mb-track-btns {
  display: flex;
  flex: none;
  gap: 3px;
}

.mb-track-btns i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1b2130;
  font-style: normal;
}

.mb-track-bpm {
  padding: 5px 7px;
  color: #818cf8;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* The key: the reason the heads are here. */
.mb-track-key {
  flex: none;
  min-width: 40px;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--key);
  color: #10131a;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.mb-track-eq {
  padding: 5px 8px;
  color: #e8ecf4;
  white-space: nowrap;
}

.mb-track-vol-label {
  font-size: 10px;
}

.mb-track-fader {
  position: relative;
  flex: 1;
  min-width: 24px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(to right, #818cf8 var(--level), #2a3144 0);
}

.mb-track-fader::after {
  content: '';
  position: absolute;
  top: 50%;
  left: var(--level);
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: #e8ecf4;
  box-shadow: 0 0 0 2px #121620;
}

.mb-track-db {
  flex: none;
  min-width: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* Off 0 dB the number is bright, as in the app. */
.mb-track-db.on {
  color: #e8ecf4;
}

/* A narrower picture has shorter tracks: the song, tempo and key stay, the rest goes. */
@media (max-width: 1000px) {
  .mb-frame {
    --mb-tracks: 150px;
  }

  .mb-track-btns,
  .mb-track-vol {
    display: none;
  }
}

/* Phone: the key on the track's colour, the tempo under it. */
@media (max-width: 760px) {
  .mb-frame {
    --mb-tracks: 46px;
  }

  .mb-track {
    align-items: center;
    justify-content: center;
    padding: 0 3px 0 7px;
  }

  .mb-track::before {
    inset-block: 2px;
    width: 4px;
  }

  .mb-track-top {
    display: none;
  }

  .mb-track-mid {
    flex-direction: column-reverse;
    gap: 3px;
  }

  .mb-track-bpm {
    padding: 0;
    border: 0;
    background: none;
    font-size: 9px;
  }

  .mb-track-key {
    min-width: 30px;
    padding: 4px 0;
    border-radius: 4px;
    font-size: 11px;
  }
}

/* The smallest phones: the track is too short for both, the key stays. */
@media (max-width: 380px) {
  .mb-track-bpm {
    display: none;
  }
}

/* The lanes: closed at first, opened from their button. */
.mb-lane-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.mb-lane-wrap.open {
  grid-template-rows: 1fr;
}

.mb-lane {
  min-height: 0;
  overflow: hidden;
}

.mb-lane-pane {
  position: relative;
  display: none;
  border-top: 1px solid var(--line);
}

.mb-lane-pane.on {
  display: block;
}

.mb-lane-labels {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  pointer-events: none;
}

.mb-lane-labels span {
  align-self: start;
  justify-self: start;
  margin: 6px 0 0 8px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(11, 13, 18, 0.85);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Each row's name in its curve's colour, as in the app. */
.mb-row-volume { color: #e8ecf4; }
.mb-row-low { color: #f87171; }
.mb-row-mid { color: #fbbf24; }
.mb-row-high { color: #a3e635; }
.mb-row-filter { color: #e879f9; }
.mb-row-reverb { color: #a78bfa; }
.mb-row-echo { color: #38bdf8; }
.mb-row-spiral { color: #f472b6; }

/* Transport: play and the time on the left, the lane buttons centred under the picture. */
.mb-transport {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px 22px;
  margin-top: 20px;
}

/* Open, the four buttons need the width: the time on one row, the buttons centred on the next. */
.mb-transport:has(.mb-lanes.open) {
  grid-template-columns: 1fr;
  justify-items: center;
}

.mb-time {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.mb-play {
  width: 52px;
  height: 52px;
  min-height: 52px;
  padding: 0;
  flex: none;
}

.mb-play .mb-ico-pause,
.is-playing .mb-play .mb-ico-play {
  display: none;
}

.is-playing .mb-play .mb-ico-pause {
  display: block;
}

.mb-clock {
  font-family: var(--display);
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.mb-clock small {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0;
  color: var(--dim);
}

.mb-pos {
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.mb-pos b {
  color: var(--text);
}

.mb-lanes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* The mix's key change, on the right, opposite the clock. */
.mb-key {
  justify-self: end;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-2);
}

.mb-key b {
  color: var(--text);
}

.mb-transport:has(.mb-lanes.open) .mb-key {
  justify-self: center;
}

.mb-lanes:not(.open) .mb-lane-btn {
  display: none;
}

.mb-lanes .btn .live {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-inline-start: 8px;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mb-lanes .btn-light .live {
  background: #4d7c0f;
}

.mb-lanes .btn.moving .live {
  opacity: 1;
}

.mb-toggle {
  gap: 10px;
}

.mb-toggle .chev {
  transition: transform 0.25s ease;
}

.mb-lanes.open .mb-toggle .chev {
  transform: rotate(180deg);
}

.mb-lanes.open .mb-toggle .live {
  display: none;
}

/* The songs' credit: a label, the two titles, and the artist's Spotify page. */
.mb-credit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 28px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.mb-credit-label {
  font-family: var(--display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.mb-credit-tracks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

/* Without the script: the browser's own player. */
.mb-audio {
  display: block;
  width: 100%;
  margin-top: 20px;
}

@media (max-width: 1200px) {
  .mb-transport {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .mb-key {
    justify-self: center;
  }
}

/* Phone: all of it within the screen's width. The steps' four buttons are as
   narrow as their words; the picture is small and whole; play, the lanes' button
   and the key sit close. */
@media (max-width: 760px) {
  .mb {
    margin-top: 36px;
  }

  .mb-steps {
    grid-template-columns: repeat(4, auto);
    gap: 6px;
    margin-bottom: 10px;
  }

  .mb-step {
    gap: 6px;
    padding: 10px 4px 12px;
    border-radius: 12px;
  }

  /* The four words fit one row down to a 320px screen. */
  .mb-step-word {
    font-size: clamp(9px, 3.1vw, 13px);
    letter-spacing: -0.02em;
  }

  .mb-step-bars {
    font-size: 9px;
    letter-spacing: 0.06em;
  }

  .mb-notes {
    margin-bottom: 12px;
    font-size: 14px;
  }

  .mb-frame {
    padding: 6px;
  }

  /* In the middle of the small picture. */
  .mb-big {
    inset-block: 0;
    height: fit-content;
    min-height: 40px;
    margin-block: auto;
    padding: 10px 18px;
    gap: 8px;
    font-size: 12px;
  }

  .mb-lane-labels span {
    margin: 2px 0 0 4px;
    padding: 2px 5px;
    font-size: 8px;
    letter-spacing: 0.06em;
  }

  /* The time on one row; under it the lanes' button with the key beside it. */
  .mb-transport {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: stretch;
    gap: 10px;
    margin-top: 14px;
  }

  .mb-time {
    grid-column: 1 / -1;
    justify-content: center;
    gap: 12px;
  }

  .mb-play {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .mb-clock {
    font-size: 22px;
  }

  .mb-clock small {
    font-size: 13px;
  }

  .mb-pos {
    font-size: 11px;
  }

  .mb-key {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    min-height: 44px;
    padding: 0 14px;
    font-size: 11px;
  }

  .mb-lanes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  .mb-lanes .btn {
    padding: 10px 6px;
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .mb-lanes .mb-toggle {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mb-lane-wrap,
  .mb-toggle .chev,
  .mb-lanes .btn .live,
  .mb-step-word,
  .mb-step-bars {
    transition: none;
  }
}

/* --- switch from MixMeister (/switch-from-mixmeister, pages/switchFromMixmeister.tsx)
   The comparison pages' head and numbered parts; the offer as the owner drew it
   (two figures side by side in lavender, one wide button, the spots left under
   it); the application form in the contact page's field style. */

/* The sub-heading in the page's own face (not the serif), a step above the paragraphs under it. */
.ed-switch .ed-switch-sub {
  max-width: 680px;
  margin: 0 auto 24px;
  text-align: center;
  font-size: clamp(19px, 1.9vw, 24px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
}

.ed-switch .ed-alt-head .ed-lead + .ed-lead {
  margin-top: 14px;
}

/* No numbers before the parts' headings here: their first word takes the accent instead (the owner's choice). */
.ed-switch h2::before,
.story.ed-switch h2::before {
  content: none;
}

/* The offer: the page's one accent band (the home page's lime band), in the reading column. */
.ed-cta-band.ed-switch-band {
  max-width: none;
  margin: 64px 0 0;
  padding: clamp(36px, 5.6vw, 64px) clamp(22px, 4.4vw, 56px);
}

.ed-switch .ed-switch-band .ed-kicker {
  margin: 0 0 18px;
  text-align: center;
}

.ed-switch .ed-switch-band-text {
  margin: 0 auto 36px;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.5;
  color: #16200a;
  text-align: center;
  text-wrap: balance;
}

/* The two figures side by side, a hairline between them. */
.ed-switch-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 40px;
}

.ed-switch .ed-switch-figure {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 4px 16px;
  text-align: center;
}

.ed-switch .ed-switch-figure + .ed-switch-figure {
  border-inline-start: 1px solid rgba(7, 8, 12, 0.22);
}

/* One line each, so the two labels sit level. */
.ed-switch-figure-value {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}

.ed-switch-figure-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #2d3b06;
}

/* The spots left, in bold; "No credit card required" quietly under it. */
.ed-switch .ed-switch-band-spots {
  margin: 20px 0 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: center;
}

.ed-switch .ed-switch-band-card {
  margin: 4px 0 0;
  font-size: 13px;
  color: #2d3b06;
  text-align: center;
}

/* An Apply button with the spots left under it: centred in the text, the card's full width in the offer. */
.ed-switch-apply {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 32px 0 0;
}

.ed-switch .ed-switch-note {
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-2);
}

/* What you'll get: three cards across, each title's lead in its accent. */
.ed-point-cards.ed-switch-gets {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ed-switch-support {
  margin-top: 24px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.ed-switch .ed-switch-support p {
  margin: 0;
  color: var(--text-2);
}

.ed-switch .ed-switch-support p + p {
  margin-top: 8px;
}

.ed-switch-form {
  margin-top: 20px;
  padding: clamp(24px, 3.4vw, 40px);
}

.ed-switch .ed-switch-form-lead {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.3;
  color: var(--text);
}

.ed-switch-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ed-switch-row-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* A label over its field; in a row, the fields line up at the bottom whatever their labels' length. */
.ed-switch-field {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  min-width: 0;
}

.ed-switch-field label {
  align-self: end;
}

.ed-contact-form select {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
}

.ed-contact-form select:focus {
  outline: 2px solid var(--lav);
  outline-offset: 1px;
}

.ed-switch-form .ed-switch-note {
  margin-top: 4px;
}

@media (max-width: 860px) {
  .ed-point-cards.ed-switch-gets,
  .ed-switch-row,
  .ed-switch-row-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* On a phone the figures stack, the hairline between them laid flat. */
@media (max-width: 480px) {
  .ed-switch-figures {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .ed-switch .ed-switch-figure + .ed-switch-figure {
    border-inline-start: 0;
    border-top: 1px solid rgba(7, 8, 12, 0.22);
    padding-top: 22px;
  }
}

/* --- /mixmeister-alternative in the owner's words (pages/mixmeisterAlternative.tsx):
   the parts' headings with their first word in the accents instead of numbers,
   as on /switch-from-mixmeister; bold lines; button rows; the cards. */

.ed-accent-heads h2::before,
.story.ed-accent-heads h2::before {
  content: none;
}

.ed-alt .ed-mm-strong {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}

.ed-alt .ed-mm-note {
  margin-top: 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-2);
}

.ed-alt .story-cta.ed-mm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 32px 0;
}

.ed-alt h3 {
  margin: 40px 0 0;
  font-size: clamp(20px, 2vw, 24px);
}

.ed-point-cards.ed-mm-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Five cards two across: the last takes the whole row rather than sit alone. */
.ed-point-cards.ed-mm-features li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

@media (max-width: 860px) {
  .ed-point-cards.ed-mm-three,
  .ed-point-cards.ed-mm-features {
    grid-template-columns: minmax(0, 1fr);
  }
}
