/* DawSwap landing page. Tokens from design/dawswap/tokens.py (light on :root, dark under the system
   setting, and mirrored under [data-theme="dark"] for the ?theme=dark review hook). */

@font-face {
  font-family: "Figtree";
  src: url("fonts/Figtree-Variable.ttf") format("truetype");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: light;
  --surface-content: #FDF6F0; --surface-raised: #FFFDFA; --surface-sunken: #F6E8DB;
  --surface-hover: #F7ECE2; --surface-pressed: #F3E5D9;
  --text-primary: #0A2A33; --text-secondary: #47636A; --text-muted: #506A70; --text-accent: #033D4D;
  --text-on-teal: #FDF6F0; --text-on-orange: #1A0C04;
  --line-hairline: #EADBCD; --line-control: #748A8E; --line-control-hover: #47636A; --focus-ring: #033D4D;
  --brand-orange: #F2560D; --brand-orange-hover: #FF6B26; --brand-orange-pressed: #DE4D09;
  --brand-teal: #033D4D; --brand-teal-hover: #0E5466; --brand-teal-pressed: #022F3B;
  /* deep-teal fields: the sidebar tokens */
  --field: #033D4D; --field-raised: #0E5466; --field-deep: #022F3B; --field-line: #1A5565;
  --field-text: #FDF6F0; --field-text-2: #A9C6CB; --field-focus: #FDF6F0; --field-ok: #7FD0DD; --field-failed: #FFB0A4;
  /* the five labels */
  --state-carries: #033D4D; --state-carries-tint: #E3EEEE; --state-carries-text: #033D4D;
  --state-changes: #4A8D9B; --state-changes-tint: #DDEBEC; --state-changes-text: #1F5562;
  --state-rendered: #F2560D; --state-needs-you: #F2560D;
  --state-rendered-tint: #FDE6D8; --state-rendered-text: #AE3A04; --state-needs-you-on: #1A0C04; --state-needs-you-text: #A33603;
  --state-left-out: #47636A; --state-left-out-tint: #F6E8DB; --state-left-out-text: #0A2A33;
  --state-failed: #B3261A; --state-failed-text: #A32217;
  /* the mark: colour on light grounds, one-colour cream on dark grounds */
  --mark-steps: #F2560D; --mark-wave: #033D4D;
  --shadow-1: 0 6px 20px rgba(40, 30, 20, .14), 0 1px 3px rgba(40, 30, 20, .10);
  --shadow-2: 0 18px 50px rgba(40, 30, 20, .18), 0 2px 6px rgba(40, 30, 20, .10);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface-content: #071B21; --surface-raised: #0C2830; --surface-sunken: #03131A;
    --surface-hover: #123540; --surface-pressed: #153C47;
    --text-primary: #F8EDE3; --text-secondary: #9DB6BA; --text-muted: #94AEB3; --text-accent: #74C9D7;
    --text-on-teal: #03131A; --text-on-orange: #1A0C04;
    --line-hairline: #17404B; --line-control: #5B8590; --line-control-hover: #9DB6BA; --focus-ring: #A5DDE6;
    --brand-teal: #3AAFC3; --brand-teal-hover: #5BC1D2; --brand-teal-pressed: #2B98AB;
    --field: #0A303A; --field-raised: #134855; --field-deep: #03131A; --field-line: #1B4A56;
    --field-text: #F8EDE3; --field-text-2: #9CBBC0; --field-focus: #A5DDE6;
    --state-carries: #3AAFC3; --state-carries-tint: #0F3640; --state-carries-text: #74C9D7;
    --state-changes: #A5DDE6; --state-changes-tint: #143B45; --state-changes-text: #A5DDE6;
    --state-left-out: #9DB6BA; --state-left-out-tint: #03131A; --state-left-out-text: #F8EDE3;
    --state-failed: #FF9485; --state-failed-text: #FF9485;
    --state-rendered-tint: #3A1E12; --state-rendered-text: #FF8648; --state-needs-you-text: #FF9259;
    --mark-steps: #F8EDE3; --mark-wave: #F8EDE3;
    --shadow-1: 0 6px 20px rgba(0, 0, 0, .45), 0 1px 3px rgba(0, 0, 0, .35);
    --shadow-2: 0 18px 50px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .4);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface-content: #071B21; --surface-raised: #0C2830; --surface-sunken: #03131A;
  --surface-hover: #123540; --surface-pressed: #153C47;
  --text-primary: #F8EDE3; --text-secondary: #9DB6BA; --text-muted: #94AEB3; --text-accent: #74C9D7;
  --text-on-teal: #03131A; --text-on-orange: #1A0C04;
  --line-hairline: #17404B; --line-control: #5B8590; --line-control-hover: #9DB6BA; --focus-ring: #A5DDE6;
  --brand-teal: #3AAFC3; --brand-teal-hover: #5BC1D2; --brand-teal-pressed: #2B98AB;
  --field: #0A303A; --field-raised: #134855; --field-deep: #03131A; --field-line: #1B4A56;
  --field-text: #F8EDE3; --field-text-2: #9CBBC0; --field-focus: #A5DDE6;
  --state-carries: #3AAFC3; --state-carries-tint: #0F3640; --state-carries-text: #74C9D7;
  --state-changes: #A5DDE6; --state-changes-tint: #143B45; --state-changes-text: #A5DDE6;
  --state-left-out: #9DB6BA; --state-left-out-tint: #03131A; --state-left-out-text: #F8EDE3;
  --state-failed: #FF9485; --state-failed-text: #FF9485;
  --state-rendered-tint: #3A1E12; --state-rendered-text: #FF8648; --state-needs-you-text: #FF9259;
  --mark-steps: #F8EDE3; --mark-wave: #F8EDE3;
  --shadow-1: 0 6px 20px rgba(0, 0, 0, .45), 0 1px 3px rgba(0, 0, 0, .35);
  --shadow-2: 0 18px 50px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .4);
}

:root {
  --font: "Figtree", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --content: 1240px;
  --section: clamp(60px, 6.6vw, 100px);
  --radius-control: 14px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --h2: clamp(1.9rem, 3.6vw, 3rem);
}

/* ------------------------------------------------------------------ base and browser surfaces */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--surface-content);
  scrollbar-color: var(--line-control) var(--surface-sunken);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 16px;
}
html:focus-within { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--surface-sunken); }
::-webkit-scrollbar-thumb { background: var(--line-control); border-radius: 6px; border: 3px solid var(--surface-sunken); }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }
body {
  margin: 0;
  background: var(--surface-content);
  color: var(--text-primary);
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;   /* the variable font has every weight; never fake one */
  overflow-x: clip;
}
::selection { background: var(--brand-teal); color: var(--text-on-teal); }
input, button, textarea, select { font: inherit; color: inherit; }
input { caret-color: var(--brand-orange); accent-color: var(--brand-teal); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
a { color: var(--text-accent); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, dd, li { text-wrap: pretty; }
svg { overflow: visible; }
.num, .plan__count, .stair__num, .footer { font-variant-numeric: tabular-nums; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: var(--gutter); top: 12px; z-index: 10;
  padding: 10px 16px; border-radius: 10px;
  background: var(--brand-teal); color: var(--text-on-teal); font-weight: 700; text-decoration: none;
  transform: translateY(-160%); transition: transform 120ms var(--ease-out);
}
.skip:focus-visible { transform: none; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 12px;
  font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 120ms var(--ease-out);
}
.btn--teal { background: var(--brand-teal); color: var(--text-on-teal); }
.btn--teal:hover { background: var(--brand-teal-hover); }
.btn--teal:active { background: var(--brand-teal-pressed); }
.btn--orange { background: var(--brand-orange); color: var(--text-on-orange); font-weight: 800; }
.btn--orange:hover { background: var(--brand-orange-hover); }
.btn--orange:active { background: var(--brand-orange-pressed); }
.btn:disabled { cursor: progress; background: var(--brand-orange-pressed); }

/* ------------------------------------------------------------------ the mark */
.mark { display: block; flex: none; }
.mark__steps { fill: var(--mark-steps); }
.mark__wave { fill: var(--mark-wave); }
.mark--mono { fill: currentColor; }

/* ------------------------------------------------------------------ nav */
.nav__in { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); padding-block: clamp(14px, 2vw, 26px); }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; color: var(--text-primary); text-decoration: none; font-weight: 800; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.55rem); letter-spacing: -0.03em; min-height: 44px; border-radius: 8px; }
.brand .mark { width: clamp(30px, 2.6vw, 36px); height: auto; }
.nav__links { display: flex; gap: clamp(12px, 2.4vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-primary); text-decoration: none; font-weight: 600; font-size: 1rem; border-radius: 6px; }
.nav__links a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--brand-orange); }

/* ------------------------------------------------------------------ hero */
.hero { padding-top: clamp(20px, 4.2vh, 60px); }
/* the hero fills the first screen (less the nav), so the next section never starts cut at the fold */
@media (min-width: 761px) and (min-height: 640px) and (max-height: 1000px) { .hero { min-height: calc(100svh - 88px); } }
.hero__title {
  font-weight: 800;
  /* never above 6rem; on narrow screens small enough that "Convert Ableton Live" fits the line */
  font-size: min(6rem, max(2.6rem, 7.6vw), calc((100vw - 2 * var(--gutter)) / 9.7));
  line-height: 1.3;
  letter-spacing: -0.04em;
  margin-bottom: clamp(14px, 2vw, 28px);
}
.route { display: block; }
.route__line { display: block; white-space: nowrap; }
.chip {
  display: inline-block; position: relative;
  vertical-align: baseline;
  padding: 0 .2em; border-radius: .16em;
  line-height: 1.2;
  margin-left: .04em;
  clip-path: inset(0 round .16em);   /* the roll's own clip; clip-path keeps the text baseline (overflow would not) */
}
.chip__name { display: inline-block; white-space: nowrap; }
.chip__name--next { position: absolute; left: .2em; top: 0; transform: translateY(115%); }
.chip.is-rolling .chip__name { will-change: transform; }
.chip--source { background: var(--brand-orange); color: var(--text-on-orange); }
.chip--other { background: var(--brand-teal); color: var(--text-on-teal); }

.band { position: relative; width: 100%; height: clamp(64px, 8.5vw, 124px); }
.band svg { display: block; width: 100%; height: 100%; }
.band__steps { fill: var(--brand-orange); }
.band__wave { fill: var(--brand-teal); }

.legend { display: flex; align-items: center; gap: 16px; padding-top: 10px; min-height: 54px; }
.legend__texts { flex: 1; min-width: 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 24px; font-weight: 600; font-size: .9375rem; line-height: 1.35; color: var(--text-secondary); }
.legend__texts > span:last-child { text-align: right; }
.legend__pause {
  flex: none; width: 44px; height: 44px; border-radius: 50%; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--text-secondary); border: 1.5px solid var(--line-control);
  transition: background-color 120ms var(--ease-out), color 120ms var(--ease-out), border-color 120ms var(--ease-out);
}
.legend__pause:hover { background: var(--surface-hover); color: var(--text-primary); border-color: var(--line-control-hover); }
.legend__pause:active { background: var(--surface-pressed); }
.legend__pause svg { width: 16px; height: 16px; fill: currentColor; }
.legend__pause .i-play { display: none; }
.legend__pause[aria-pressed="true"] .i-play { display: block; }
.legend__pause[aria-pressed="true"] .i-pause { display: none; }
.legend__pause[hidden] { display: none; }

.hero__under {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px clamp(40px, 6vw, 112px); align-items: start;
  padding-top: clamp(20px, 3.2vh, 40px); padding-bottom: clamp(56px, 7vh, 96px);
}
.hero__lede { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.45; max-width: 31em; }

/* ------------------------------------------------------------------ the beta form */
.beta { width: 100%; max-width: 560px; }
.beta__row { display: flex; gap: 10px; }
.beta__field {
  flex: 1; min-width: 0; height: 56px; padding: 0 18px;
  border: 1.5px solid var(--line-control); border-radius: var(--radius-control);
  background: var(--surface-raised); color: var(--text-primary);
  font-size: 1.125rem; font-weight: 500;
  transition: border-color 120ms var(--ease-out);
}
.beta__field::placeholder { color: var(--text-muted); opacity: 1; }
.beta__field:hover { border-color: var(--line-control-hover); }
.beta__field:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-color: var(--line-control-hover); }
.beta__field[aria-invalid="true"] { border-color: var(--state-failed); box-shadow: inset 0 0 0 .5px var(--state-failed); }
.beta__btn { height: 56px; padding: 0 26px; border-radius: var(--radius-control); font-size: 1.125rem; }
.beta__msg { font-weight: 600; font-size: .9375rem; line-height: 1.4; color: var(--state-failed-text); display: flex; align-items: center; gap: 8px; }
.beta__msg:not(:empty) { margin-top: 10px; }
.beta__msg:not(:empty)::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: currentColor; flex: none; }
.beta__note { margin-top: 10px; font-size: .9375rem; line-height: 1.4; color: var(--text-secondary); }
.beta__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.beta-done { display: flex; align-items: baseline; gap: 12px; max-width: 560px; font-size: 1.1875rem; line-height: 1.45; }
.beta-done .glyph { width: 12px; height: 12px; color: var(--state-carries); transform: translateY(-1px); }
.beta-done b { font-weight: 700; overflow-wrap: anywhere; }
.beta-done:focus-visible { outline-offset: 6px; border-radius: 6px; }

/* ------------------------------------------------------------------ section frame */
.section { padding-bottom: var(--section); }
.h2 { font-weight: 800; font-size: var(--h2); line-height: 1.06; letter-spacing: -0.035em; max-width: 22ch; }
.lede { margin-top: 18px; max-width: 40em; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--text-secondary); }
.caption { margin-top: 18px; font-size: .9375rem; color: var(--text-secondary); max-width: 62ch; }

/* ------------------------------------------------------------------ glyphs (system.src.css section 10, at page scale) */
.glyph { width: 10px; height: 10px; flex: none; display: inline-block; background: currentColor; }
.glyph--carries { border-radius: 50%; color: var(--state-carries); }
.glyph--changes { width: 8.5px; height: 8.5px; margin: .75px; border-radius: 2px; transform: rotate(45deg); color: var(--state-changes); }
.glyph--rendered { clip-path: polygon(0 100%, 0 50%, 50% 50%, 50% 0, 100% 0, 100% 100%); color: var(--state-rendered); }
.glyph--needs-you { width: 11px; clip-path: polygon(50% 0, 100% 100%, 0 100%); color: var(--state-needs-you); }
.glyph--left-out { background: none; border: 2px solid currentColor; border-radius: 50%; color: var(--state-left-out); }

.tag { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 12px 4px 10px; border-radius: 8px; font-weight: 700; font-size: .9375rem; line-height: 1.25; }
.tag--carries { background: var(--state-carries-tint); color: var(--state-carries-text); }
.tag--changes { background: var(--state-changes-tint); color: var(--state-changes-text); }
.tag--left-out { background: var(--state-left-out-tint); color: var(--state-left-out-text); box-shadow: inset 0 0 0 1px var(--line-hairline); }
.tag .glyph--changes { color: var(--state-changes-text); }
.tag--rendered { background: var(--state-rendered-tint); color: var(--state-rendered-text); }
.tag--rendered .glyph--rendered { color: var(--state-rendered-text); }
.tag--needs-you { background: var(--state-needs-you); color: var(--state-needs-you-on); }   /* the one solid tag: it asks for an action */
.tag--needs-you .glyph--needs-you { color: var(--state-needs-you-on); }

/* ------------------------------------------------------------------ What carries: the plan at page scale */
.carries .h2 { max-width: 18ch; }
.plan {
  list-style: none; margin: clamp(26px, 3vw, 44px) 0 0; padding: 0;
  display: grid; grid-template-columns: minmax(8.5em, 1fr) auto minmax(0, 2.5fr);
  column-gap: clamp(20px, 3.4vw, 56px);
  border-bottom: 1px solid var(--line-hairline);
}
.plan__row {
  grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: 8px; align-items: center;
  padding: clamp(14px, 1.4vw, 20px) 0; border-top: 1px solid var(--line-hairline);
}
.plan__name { grid-column: 1; grid-row: 1; font-weight: 700; font-size: clamp(1.125rem, 1rem + .45vw, 1.375rem); line-height: 1.2; letter-spacing: -0.01em; }
.plan__count { grid-column: 2; grid-row: 1; text-align: right; white-space: nowrap; font-weight: 800; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); line-height: 1; letter-spacing: -0.03em; }
.plan__count em { font-style: normal; font-weight: 600; font-size: max(13px, .45em); letter-spacing: 0; color: var(--text-secondary); margin-left: .15em; }
.plan .pbar { grid-column: 3; grid-row: 1; }
.plan__states { grid-column: 3; grid-row: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.plan__note { font-size: 1rem; color: var(--text-secondary); }

.pbar {
  display: block; height: 18px; background: var(--surface-sunken); border-radius: 0 9px 9px 0; overflow: hidden;
  clip-path: polygon(0 100%, 0 66%, 8px 66%, 8px 33%, 16px 33%, 16px 0, 100% 0, 100% 100%);
}
.pbar__fill { display: flex; gap: 3px; height: 100%; }
.pbar__fill > i { display: block; flex: var(--v, 1) 1 0; min-width: 3px; height: 100%; }
.pbar__carries { background: var(--state-carries); }
.pbar__changes { background: var(--state-changes); }
.pbar__left-out { background: repeating-linear-gradient(135deg, var(--state-left-out) 0 2px, var(--surface-sunken) 2px 6px); }
.pbar__rendered { background: repeating-linear-gradient(90deg, var(--state-rendered-text) 0 4px, var(--surface-sunken) 4px 5px); }
.pbar__needs-you { background: var(--state-needs-you-text); }
.plan.is-armed .pbar__fill { clip-path: inset(0 100% 0 0); }
.plan.is-armed.is-in .pbar__fill { clip-path: inset(0 0 0 0); transition: clip-path 700ms var(--ease-out) calc(var(--i, 0) * 70ms); }

/* ------------------------------------------------------------------ Every loss has a name */
.labels__list { margin-top: clamp(24px, 2.8vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--line-hairline); }
@media (min-width: 761px) {
  .label { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(0, 2.5fr); column-gap: clamp(20px, 3.4vw, 56px); align-items: baseline; }
  .label dd { margin: 0; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); }
}
.label { padding: clamp(14px, 1.4vw, 20px) 0; border-top: 1px solid var(--line-hairline); }
.label dt { display: flex; align-items: center; gap: 14px; font-weight: 800; font-size: clamp(1.375rem, 1.1rem + .8vw, 1.75rem); line-height: 1.15; letter-spacing: -0.02em; }
.label .glyph { width: 15px; height: 15px; }
.label .glyph--changes { width: 12px; height: 12px; margin: 1.5px; border-radius: 2.5px; }
.label .glyph--needs-you { width: 16px; }
.label .glyph--left-out { border-width: 2.5px; }
.label dd { margin: 8px 0 0 29px; max-width: 40ch; color: var(--text-secondary); }

/* ------------------------------------------------------------------ deep-teal fields */
.field { background: var(--field); color: var(--field-text); }
.field :focus-visible { outline-color: var(--field-focus); }
.field .h2 { color: var(--field-text); }
.field a { color: var(--field-text); }
.field ::selection { background: var(--field-text); color: var(--field); }

/* ------------------------------------------------------------------ the film */
.film { padding: var(--section) 0; }
.film__line { margin-top: 14px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--field-text-2); }
.film__frame-wrap { margin-top: clamp(24px, 2.8vw, 40px); }
.film__frame {
  position: relative; max-width: 1120px; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  background: var(--field-deep); box-shadow: var(--shadow-2);
}
.film__still { position: absolute; inset: 0; display: grid; place-items: center; color: var(--field-text); }
.film__still .mark { width: clamp(84px, 15%, 180px); height: auto; }
.film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: transparent; }
.js .film__video { opacity: 0; }
.js .film__frame.has-video .film__video { opacity: 1; }
.film__frame.is-still .film__video { display: none; }
.film__frame.has-video .film__still { visibility: hidden; }
.film__sound {
  position: absolute; right: 16px; bottom: 16px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 14px; border-radius: 999px; border: 0;
  background: var(--surface-raised); color: var(--text-primary); font-weight: 700; font-size: .9375rem; cursor: pointer; box-shadow: var(--shadow-1);
}
.film__sound:hover { background: var(--surface-hover); }
.film__sound:focus-visible { outline-color: var(--field-focus); }
.film__sound svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.film__sound .i-on { display: none; }
.film__sound[aria-pressed="true"] .i-on { display: block; }
.film__sound[aria-pressed="true"] .i-off { display: none; }
.film__sound[hidden] { display: none; }

/* ------------------------------------------------------------------ How it goes: the staircase */
.how { padding-top: var(--section); }
.stairs {
  --rise: clamp(24px, 2.6vw, 38px); --low: clamp(8rem, 9vw, 8.75rem); --r: 18px; --pad: clamp(18px, 2vw, 28px);
  list-style: none; margin: clamp(28px, 3.2vw, 48px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto;
}
.stair { grid-row: span 2; display: grid; grid-template-rows: subgrid; min-width: 0; }
.stair__tread {
  position: relative; align-self: end;
  height: calc(var(--low) + (3 - var(--i)) * var(--rise));
  padding: var(--pad); background: var(--brand-orange); color: var(--text-on-orange);
  margin-right: -1px;
}
.stair:first-child .stair__tread { border-radius: var(--r) var(--r) 0 var(--r); }
.stair + .stair .stair__tread { border-radius: 0 var(--r) 0 0; }
.stair:last-child .stair__tread { border-radius: 0 var(--r) var(--r) 0; margin-right: 0; }
.stair + .stair .stair__tread::before {   /* the inner corner, rounded as in the mark */
  content: ""; position: absolute; left: 0; top: calc(-1 * var(--r)); width: var(--r); height: var(--r);
  background: radial-gradient(circle at 100% 0, transparent calc(var(--r) - .5px), var(--brand-orange) var(--r));
}
.stair__num { display: block; font-weight: 800; font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem); line-height: 1; letter-spacing: -0.03em; margin-bottom: 10px; }
.stair__title { font-weight: 800; font-size: clamp(1.375rem, 1rem + 1vw, 1.875rem); line-height: 1.1; letter-spacing: -0.025em; }
.stair__text { padding: 18px var(--pad) 0; color: var(--text-secondary); max-width: 26em; }

/* ------------------------------------------------------------------ DAWs */
.daws__list { list-style: none; margin: clamp(24px, 2.8vw, 40px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 64px); }
.daw { display: flex; align-items: center; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line-hairline); min-width: 0; }
.dawmark {
  width: 60px; height: 60px; flex: none; border-radius: 16px; display: grid; place-items: center;
  background: var(--surface-sunken); border: 1px solid var(--line-hairline); color: var(--text-primary);
  font-weight: 800; font-size: 1.375rem; letter-spacing: -0.03em; line-height: 1;
}
.daw__name { font-weight: 700; font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); line-height: 1.25; }
.daw__sub { display: block; font-weight: 500; font-size: .9375rem; color: var(--text-secondary); }
.daws__note { margin-top: 24px; color: var(--text-secondary); }

/* ------------------------------------------------------------------ Questions */
.faq__list { margin-top: clamp(28px, 3.5vw, 48px); max-width: 880px; border-bottom: 1px solid var(--line-hairline); }
.faq details { border-top: 1px solid var(--line-hairline); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 44px; padding: 16px 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.3; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline-offset: 4px; border-radius: 6px; }
.faq summary:hover .chev { color: var(--text-primary); }
.chev { width: 22px; height: 22px; flex: none; color: var(--text-secondary); fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease-out); }
.faq details[open] .chev { transform: rotate(180deg); }
.faq details p { padding: 0 48px 20px 0; max-width: 62ch; color: var(--text-secondary); }

/* ------------------------------------------------------------------ Close */
.close { position: relative; overflow: hidden; padding: clamp(72px, 8vw, 120px) 0 clamp(64px, 7vw, 100px); isolation: isolate; }
.close__mark { position: absolute; z-index: -1; width: clamp(560px, 64vw, 1040px); height: auto; right: -16%; bottom: -46%; color: var(--field-raised); fill: currentColor; }
.close__title { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.75rem); line-height: 1.02; letter-spacing: -0.04em; max-width: 12ch; }
.close .beta { margin-top: clamp(32px, 4vw, 48px); }
.close .beta__field { border-color: var(--field-text-2); }
.close .beta__field:hover { border-color: var(--field-text); }
.close .beta__field:focus-visible { outline-color: var(--field-focus); }
.close .beta__note { color: var(--field-text-2); }
.close .beta__msg { color: var(--field-failed); }
.close .beta-done { margin-top: clamp(32px, 4vw, 48px); }
.close .beta-done .glyph { color: var(--field-ok); }
.close__credit { margin-top: clamp(36px, 4vw, 56px); font-size: clamp(1.0625rem, 1rem + .25vw, 1.25rem); color: var(--field-text-2); max-width: 40em; }
.close__credit a { font-weight: 700; color: var(--field-text); }

/* ------------------------------------------------------------------ Footer */
.footer { background: var(--field-deep); color: var(--field-text-2); font-size: .9375rem; line-height: 1.45; }
.footer__in { display: grid; grid-template-columns: auto 1fr; gap: 16px 40px; align-items: center; padding-block: 36px 40px; }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--field-text); font-weight: 800; font-size: 1.1875rem; letter-spacing: -0.02em; }
.footer__brand .mark { width: 26px; height: 26px; }
.footer__copy { justify-self: end; }
.footer__legal { grid-column: 1 / -1; max-width: 72ch; border-top: 1px solid var(--field-line); padding-top: 18px; }
.footer ::selection { background: var(--field-text); color: var(--field-deep); }

/* ------------------------------------------------------------------ narrow screens */
@media (max-width: 960px) {
  .daws__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav__links { display: none; }
  .hero__under { grid-template-columns: minmax(0, 1fr); }
  /* stacked: field, its message, then the button */
  .beta { display: flex; flex-direction: column; }
  .beta__row { display: contents; }
  .beta__field { flex: none; order: 1; }
  .beta__msg { order: 2; }
  .beta__btn { order: 3; width: 100%; margin-top: 10px; }
  .beta__note { order: 4; }
  .legend__texts { font-size: .875rem; }

  .plan { grid-template-columns: minmax(0, 1fr) auto; }
  .plan__row { grid-template-rows: auto auto auto; row-gap: 12px; }
  .plan__name { grid-column: 1; grid-row: 1; }
  .plan__count { grid-column: 2; grid-row: 1; }
  .plan .pbar { grid-column: 1 / -1; grid-row: 2; }
  .plan__states { grid-column: 1 / -1; grid-row: 3; }

  .labels__list { grid-template-columns: minmax(0, 1fr); }

  .stairs { display: flex; flex-direction: column; --step-in: clamp(14px, 5vw, 28px); }
  .stair { display: block; margin-left: calc(var(--i) * var(--step-in)); }
  .stair__tread { height: auto; border-radius: var(--r) !important; margin-right: 0; display: flex; align-items: baseline; gap: 14px; }
  .stair + .stair .stair__tread::before { display: none; }
  .stair__num { margin-bottom: 0; font-size: 1.75rem; }
  .stair__title { font-size: 1.5rem; }
  .stair__text { padding: 12px 0 28px 4px; }
  .stair:last-child .stair__text { padding-bottom: 0; }

  .footer__in { grid-template-columns: minmax(0, 1fr); }
  .footer__copy { justify-self: start; }

  .close__mark { width: 520px; right: -150px; bottom: -150px; }
}
@media (max-width: 480px) {
  .daws__list { grid-template-columns: minmax(0, 1fr); }
  .daw { padding: 14px 0; gap: 16px; }
  .dawmark { width: 48px; height: 48px; border-radius: 13px; font-size: 1.125rem; }
  .faq details p { padding-right: 0; }
}

/* ------------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
.is-reduced *, .is-reduced *::before, .is-reduced *::after { transition-duration: 0ms !important; }

/* phones: the film's pause control */
@media (max-width: 480px) {
  /* the control sits under the frame, right-aligned, so it never covers the picture */
  .film__frame { overflow: visible; margin-bottom: 58px; }
  .film__video, .film__still { border-radius: 16px; overflow: hidden; }
  .film__sound { right: 0; bottom: auto; top: calc(100% + 12px); }
}
