/* Two rooms: a light "study" for reading results, a dark "booth" for recording. */
:root {
  --paper: #F4F5F7;
  --surface: #FFFFFF;
  --ink: #17191E;
  --ink-2: #4A4F59;
  --rule: #D9DCE1;
  --booth: #1D1F24;
  --booth-2: #272A31;
  --booth-ink: #E6E8EC;
  --booth-ink-2: #9AA0AA;
  --rec: #E8565A;

  /* notation colours (light-room values; booth overrides below) */
  --n-fast: #2D8553;
  --n-slow: #2E62B3;
  --n-soft: #A16A0E;
  --n-mark: #5B606B;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem;
  --measure: 38rem;
}
.room {
  --n-fast: #7CC79A;
  --n-slow: #86ACE6;
  --n-soft: #E5B567;
  --n-mark: #9AA0AA;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: var(--s2) var(--s3); z-index: 10; }
.skip:focus { left: var(--s3); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

/* ---------- header / footer ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s4) clamp(1rem, 4vw, 3rem);
}
.wordmark { font: 600 1.25rem/1 var(--serif); color: inherit; text-decoration: none; letter-spacing: -.01em; display: inline-flex; align-items: center; }
/* The Vocodynamic mark: ink version on light pages, cream version on the dark "booth" surfaces. */
.wordmark-mark { height: 28px; width: auto; margin-right: .55rem; flex: none; }
.mark-on-dark, body.in-booth .mark-on-light, .stage .mark-on-light { display: none; }
body.in-booth .mark-on-dark, .stage .mark-on-dark { display: block; }
.wordmark-note { font: 400 .75rem/1 var(--sans); color: var(--ink-2); margin-left: var(--s2); letter-spacing: 0; }
.privacy-pill { margin: 0; font-size: .8125rem; color: var(--ink-2); }
.privacy-pill::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--n-fast); margin-right: var(--s2); vertical-align: .05em; }
body.in-booth { background: var(--booth); color: var(--booth-ink); }
body.in-booth .wordmark-note, body.in-booth .privacy-pill { color: var(--booth-ink-2); }
body.in-booth .foot { color: var(--booth-ink-2); border-color: #33363E; }
.foot { padding: var(--s5) clamp(1rem, 4vw, 3rem) var(--s6); color: var(--ink-2); font-size: .8125rem; border-top: 1px solid var(--rule); margin-top: var(--s8); }
.foot p { max-width: 60rem; margin: 0; }
/* The full Vocodynamics lockup; which colour version shows is set by the .mark-on-* rules above. */
.foot .foot-logo { width: min(486px, 100%); height: auto; vertical-align: top; margin: 0 0 var(--s4); }

/* ---------- type ---------- */
.display {
  font: 400 clamp(2.5rem, 6vw, 4.25rem)/1.02 var(--serif);
  letter-spacing: -.025em; margin: 0 0 var(--s5);
}
.display-sm { font: 400 clamp(2rem, 4vw, 2.75rem)/1.08 var(--serif); letter-spacing: -.02em; margin: 0 0 var(--s2); }
.h2 { font: 400 clamp(1.375rem, 2.6vw, 1.75rem)/1.2 var(--serif); letter-spacing: -.01em; margin: 0 0 var(--s2); }
.h3 { font: 600 1rem/1.3 var(--sans); margin: 0 0 var(--s3); }
.lede { font-size: 1.125rem; color: var(--ink-2); max-width: var(--measure); margin: 0 0 var(--s5); }
.sub { color: var(--ink-2); margin: 0 0 var(--s4); max-width: var(--measure); }
.room .sub { color: var(--booth-ink-2); }
.fine { font-size: .8125rem; color: var(--ink-2); max-width: var(--measure); }
.room .fine { color: var(--booth-ink-2); }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; margin: var(--s6) 0 var(--s3); }
.btn {
  font: 500 .9375rem/1 var(--sans); border-radius: 999px; padding: .875rem 1.375rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: var(--s2);
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2E3239; }
.btn-quiet { background: transparent; color: inherit; border-color: var(--rule); }
.btn-quiet:hover { border-color: var(--ink-2); }
.btn-danger { background: transparent; color: #B4282D; border-color: #E7C3C4; }
.btn-danger:hover { border-color: #B4282D; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.file-btn { position: relative; }
.file-btn:focus-within { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------- intro ---------- */
.view { padding: 0 clamp(1rem, 4vw, 3rem); }
.intro-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem);
  align-items: center; max-width: 76rem; margin: clamp(1.5rem, 6vh, 5rem) auto 0;
}
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 var(--s4); display: grid; gap: var(--s2); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2rem 1fr; color: var(--ink-2); }
.steps li::before { content: counter(s); font: 400 1rem/1.55 var(--serif); color: var(--ink); }
.steps strong { color: var(--ink); font-weight: 600; }
.intro-score { margin: 0; background: var(--booth); color: var(--booth-ink); border-radius: 20px; padding: clamp(1.5rem, 3vw, 2.5rem); }
.intro-score figcaption { margin-top: var(--s5); font-size: .8125rem; color: var(--booth-ink-2); max-width: 30rem; }
/* Featured video (js/video.js): our own thumbnail until Play, then YouTube's privacy-enhanced player. */
.featured-video { margin-top: var(--s8); max-width: 60rem; }
.featured-video h2 { margin: 0 0 var(--s4); }
.fv-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--booth); }
.fv-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fv-play { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.fv-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fv-icon { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  background: rgba(23, 25, 30, .78); box-shadow: 0 0 0 2px rgba(255, 255, 255, .85) inset; transition: transform .15s ease, background .15s ease; }
.fv-icon::after { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.fv-play:hover .fv-icon { transform: scale(1.06); background: rgba(23, 25, 30, .9); }
.fv-play:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 20px; }
.featured-video .fine { margin-top: var(--s2); }
@media (prefers-reduced-motion: reduce) { .fv-icon { transition: none; } }
.intro-score { --n-fast: #7CC79A; --n-slow: #86ACE6; --n-soft: #E5B567; --n-mark: #9AA0AA; }

/* ---------- the score: the one bold element ---------- */
.score { font-family: var(--serif); }
.line { margin: 0 0 var(--s5); }
.line:last-child { margin-bottom: 0; }
.cues { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); margin-bottom: var(--s1); font: 500 .75rem/1.2 var(--sans); }
.cue {
  font: inherit; color: var(--n-mark); background: none; border: 1px solid transparent; border-radius: 999px;
  padding: .2rem .55rem; margin-left: -.55rem; cursor: default;
}
.cue[data-kind="tempo"][data-value="faster"] { color: var(--n-fast); }
.cue[data-kind="tempo"][data-value="slower"] { color: var(--n-slow); }
.cue[data-kind="softness"] { color: var(--n-soft); }
button.cue { cursor: pointer; margin-left: 0; border-color: var(--rule); }
.room button.cue { border-color: #3A3E47; }
button.cue[aria-pressed="false"] { color: var(--n-mark); opacity: .55; text-decoration: line-through; }
button.cue:hover { border-color: currentColor; }
.text { font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.38; letter-spacing: -.005em; }
.score-demo .text { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.text.t-faster { color: var(--n-fast); }
.text.t-slower { color: var(--n-slow); }
.text.t-soft { color: var(--n-soft); }
.w-primary { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.w-secondary { font-style: italic; }
.arrow { font-family: var(--sans); font-size: .8em; margin-left: .2em; color: var(--n-mark); }
.rest { font-family: var(--sans); font-weight: 500; color: var(--n-mark); margin-left: .45em; letter-spacing: .08em; font-size: .8em; }

.score-section { margin-top: var(--s7); padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--surface); border-radius: 20px; }
.score-head { margin-bottom: var(--s5); }
.kind-toggles { display: flex; flex-wrap: wrap; gap: var(--s2); }
.kind-toggles label { display: inline-flex; align-items: center; gap: var(--s2); font-size: .875rem; padding: .375rem .75rem .375rem .5rem; border: 1px solid var(--rule); border-radius: 999px; cursor: pointer; }
.kind-toggles input { accent-color: var(--ink); margin: 0; }
.notation-key { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: .8125rem; color: var(--ink-2); }
.notation-key b { font-family: var(--serif); font-size: 1rem; color: var(--ink); margin-right: var(--s1); }

/* ---------- booth (recording) ---------- */
.room-inner { max-width: 50rem; margin: clamp(1rem, 4vh, 3rem) auto 0; }
.room-inner.center { text-align: center; padding-top: 18vh; }
.take-label { font-size: .875rem; color: var(--booth-ink-2); margin: 0 0 var(--s2); }
.prompter {
  background: var(--booth-2); border-radius: 20px; padding: clamp(1.25rem, 3vw, 2.25rem);
  margin: var(--s5) 0; max-height: 52vh; overflow: auto;
}
.prompter .plain-passage { font: 400 clamp(1.375rem, 2.4vw, 1.75rem)/1.45 var(--serif); margin: 0; }
.console { display: flex; align-items: center; gap: var(--s4); }
.mic-row { display: flex; flex-direction: column; gap: var(--s1); min-width: 12rem; max-width: 16rem; }
.mic-row label { font-size: .75rem; color: var(--booth-ink-2); }
.mic-row select { font: inherit; font-size: .875rem; color: var(--booth-ink); background: var(--booth-2); border: 1px solid #3A3E47; border-radius: 8px; padding: .45rem .6rem; text-overflow: ellipsis; }
.meter { flex: 1; height: 6px; border-radius: 3px; background: #33363E; overflow: hidden; }
.meter-fill { height: 100%; width: 0; background: var(--booth-ink); transition: width 60ms linear; }
.meter-fill.hot { background: var(--rec); }
.timer { font: 500 1rem/1 var(--sans); font-variant-numeric: tabular-nums; margin: 0; min-width: 3.5rem; text-align: right; color: var(--booth-ink-2); }
.btn-record { background: var(--booth-ink); color: var(--booth); }
.btn-record:hover { background: #fff; }
.rec-dot { width: .625rem; height: .625rem; border-radius: 50%; background: var(--rec); }
.btn-record.is-recording .rec-dot { border-radius: 2px; animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.status { min-height: 1.5em; margin: var(--s3) 0 0; color: var(--booth-ink); }
.status.error { color: #F2A3A5; }
.room-fine { margin-top: var(--s5); }
.pulse { width: 64px; height: 64px; margin: 0 auto var(--s5); border-radius: 50%; border: 2px solid var(--booth-ink-2); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.7); opacity: .4; } }

/* ---------- report ---------- */
.report { max-width: 60rem; margin: clamp(1rem, 4vh, 3rem) auto 0; }
.report-head { margin-bottom: var(--s5); }
.quality { background: #FFF6E5; border: 1px solid #F0D9A8; border-radius: 12px; padding: var(--s4) var(--s5); margin-bottom: var(--s5); }
.quality p { margin: 0 0 var(--s2); }
.quality p:last-child { margin: 0; }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 var(--s5); border-top: 1px solid var(--rule); }
.figure { padding: var(--s4) var(--s4) var(--s4) 0; }
.figure + .figure { padding-left: var(--s4); border-left: 1px solid var(--rule); }
.figure dt { font-size: .875rem; color: var(--ink-2); }
.figure dd { margin: var(--s1) 0 0; font: 400 clamp(2.25rem, 4.5vw, 3rem)/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.figure .unit { font: 400 .875rem/1 var(--sans); color: var(--ink-2); margin-left: var(--s1); letter-spacing: 0; }
.figure .note { display: block; font: 400 .8125rem/1.4 var(--sans); color: var(--ink-2); margin-top: var(--s2); letter-spacing: 0; }

.contour-fig { margin: 0 0 var(--s4); }
.contour { width: 100%; height: 140px; display: block; background: var(--surface); border-radius: 12px; }
.take .contour { height: 110px; }
.legend { display: flex; gap: var(--s4); align-items: center; font-size: .8125rem; color: var(--ink-2); margin-top: var(--s2); }
.key { display: inline-block; width: 1rem; height: .5rem; margin-right: -.5rem; border-radius: 2px; }
.key-pitch { background: var(--ink); height: 2px; }
.key-energy { background: #C9CDD4; }
.key-pause { background: repeating-linear-gradient(45deg, #E3E5E9 0 3px, transparent 3px 6px); border: 1px solid #D0D3D9; }

.more { margin: var(--s4) 0 var(--s6); }
.more summary { cursor: pointer; font-weight: 500; }
.table { display: grid; grid-template-columns: max-content 1fr; gap: var(--s1) var(--s5); margin: var(--s4) 0; font-size: .9375rem; }
.table dt { color: var(--ink-2); }
.table dd { margin: 0; font-variant-numeric: tabular-nums; }

.coach { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s6); }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); color: var(--ink-2); }
.priority { padding: 0 0 var(--s4); margin-bottom: var(--s4); border-bottom: 1px solid var(--rule); }
.priority:last-child { border-bottom: 0; margin-bottom: 0; }
.priority h4 { font: 400 1.375rem/1.25 var(--serif); margin: 0 0 var(--s2); }
.priority p { margin: 0 0 var(--s2); color: var(--ink-2); }
.priority .try { color: var(--ink); }
.tag { display: inline-block; font-size: .75rem; color: var(--ink-2); border: 1px solid var(--rule); border-radius: 999px; padding: .1rem .5rem; margin-bottom: var(--s2); }

/* ---------- compare ---------- */
.takes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); margin-bottom: var(--s6); }
.take { margin: 0; }
.take figcaption { margin-bottom: var(--s2); }
.take-name { font: 400 1.375rem/1 var(--serif); }
.take-desc { color: var(--ink-2); font-size: .875rem; margin-left: var(--s2); }
.take audio { width: 100%; margin-bottom: var(--s3); }
.deltas { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.deltas th, .deltas td { text-align: left; padding: var(--s3) var(--s3) var(--s3) 0; border-bottom: 1px solid var(--rule); }
.deltas th { font-weight: 500; color: var(--ink-2); font-size: .875rem; }
.deltas tr.focus td:first-child { font-weight: 600; }
.deltas .focus-tag { font-weight: 400; font-size: .75rem; color: var(--ink-2); margin-left: var(--s2); }
.dir-toward { color: var(--n-fast); }
.dir-away { color: #B4282D; }
.dir-same { color: var(--ink-2); }

.notice { max-width: 60rem; margin: 0 auto var(--s4); padding: var(--s3) var(--s5); background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; }
.viewing-note { margin-top: var(--s4); padding: var(--s4) var(--s5); background: var(--surface); border-radius: 12px; display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; justify-content: space-between; }
.viewing-note p { margin: 0; color: var(--ink-2); }
.server-check { margin-top: var(--s7); padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--surface); border-radius: 20px; }
.server-check .h4 { font: 400 1.375rem/1.25 var(--serif); margin: var(--s6) 0 var(--s2); }
.server-check .h4:first-child { margin-top: 0; }
.status-line { margin: var(--s3) 0 0; color: var(--ink-2); min-height: 1.5em; }
.status-line:empty { display: none; }
.table-scroll { overflow-x: auto; }
.table-scroll .deltas td, .table-scroll .deltas th { white-space: nowrap; }
.table-scroll .deltas td:first-child { white-space: normal; min-width: 11rem; }
.saved-link { margin-top: var(--s3); max-width: 44rem; }
.saved-link label { display: block; font-size: .875rem; color: var(--ink-2); margin-bottom: var(--s2); }
.saved-link-row { display: flex; gap: var(--s2); }
.saved-link-row input { flex: 1; min-width: 0; font: inherit; font-size: .875rem; padding: .7rem .9rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--ink); }
.contribute { margin-top: var(--s6); padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--surface); border-radius: 20px; border: 1px solid var(--rule); }
.h3-serif { font: 400 1.375rem/1.25 var(--serif); margin: 0 0 var(--s4); }
.consent-points { margin: 0 0 var(--s5); padding-left: 1.1rem; display: grid; gap: var(--s2); color: var(--ink-2); max-width: 46rem; }
.contribute-fields { display: flex; flex-wrap: wrap; gap: var(--s4); margin-bottom: var(--s5); }
.contribute-fields label { display: flex; flex-direction: column; gap: var(--s1); font-size: .875rem; color: var(--ink-2); }
.contribute-fields select { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: .5rem .6rem; min-width: 12rem; }
.consent-check { display: flex; gap: var(--s2); align-items: flex-start; margin-bottom: var(--s4); font-weight: 500; }
.consent-check input { margin-top: .3rem; accent-color: var(--ink); width: 1rem; height: 1rem; }
.consent-optional { border-top: 1px solid var(--rule); padding-top: var(--s4); margin-bottom: var(--s2); }
.consent-optional .consent-points { margin-left: 1.5rem; font-size: .9375rem; }
#withdraw-purposes .h3-serif { margin-top: var(--s6); }
.permission-list { list-style: none; padding: 0; margin: 0 0 var(--s5); max-width: 46rem; }
.permission-list li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--rule); }
.perm-name { font-weight: 500; flex: 1 1 16rem; }
.perm-state { font-size: .875rem; color: var(--ink-2); }
.perm-note { font-size: .8125rem; color: var(--ink-2); flex-basis: 100%; }
.program { margin-top: var(--s7); padding: clamp(1.5rem, 4vw, 3rem); background: var(--booth); color: var(--booth-ink); border-radius: 20px; }
.program p { max-width: var(--measure); color: var(--booth-ink-2); }
.program .price { color: var(--booth-ink); }
.price-num { font: 400 2.25rem/1 var(--serif); margin-right: var(--s2); }
.program .btn-primary { background: var(--booth-ink); color: var(--booth); }
.program .fine { color: var(--booth-ink-2); }
.program .program-preview-link { color: var(--booth-ink); border-color: #3A3E47; }
.list-signup { margin-top: var(--s5); }
.list-signup form { display: grid; gap: var(--s3); max-width: 32rem; margin-top: var(--s4); }
.list-signup input[type="email"] { font: 400 1rem/1.2 var(--sans); padding: .75rem .9rem; border-radius: 12px; border: 1px solid #3A3E47; background: transparent; color: var(--booth-ink); }
.list-signup input[type="email"]:focus-visible { outline: 2px solid var(--booth-ink); outline-offset: 2px; }
.list-signup .list-consent { display: flex; gap: var(--s2); align-items: flex-start; }
.list-signup .list-consent a { color: var(--booth-ink); }
.list-signup .btn-quiet { color: var(--booth-ink); border-color: #3A3E47; justify-self: start; }

/* ---------- 30-day program ---------- */
.preview-note { display: inline-block; font-size: .8125rem; color: var(--ink-2); border: 1px dashed var(--rule); border-radius: 999px; padding: .2rem .7rem; margin: 0 0 var(--s4); }
.weeks { display: grid; gap: var(--s5); margin: var(--s6) 0; }
.day-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: var(--s2); }
.day-chip { width: 100%; height: 100%; text-align: left; display: flex; flex-direction: column; gap: .2rem; padding: .7rem .8rem; border-radius: 12px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; }
.day-chip:hover { border-color: var(--ink-2); }
.day-num { font: 400 1.375rem/1 var(--serif); }
.day-name { font-size: .8125rem; color: var(--ink-2); line-height: 1.3; }
.day-chip.is-checkpoint { background: var(--paper); border-style: dashed; }
.day-chip.is-next { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.day-chip.is-done .day-num::after { content: " ✓"; font-family: var(--sans); font-size: .875rem; color: var(--n-fast); }
.progress-block { margin: var(--s6) 0; }
.back { margin-bottom: var(--s5); }
.take-label-light { font-size: .875rem; color: var(--ink-2); margin: 0 0 var(--s2); }
.mic-row.light label { color: var(--ink-2); }
.mic-row.light select { color: var(--ink); background: var(--surface); border-color: var(--rule); }
.mic-row.light { margin-bottom: var(--s5); }
.step { background: var(--surface); border-radius: 20px; padding: clamp(1.25rem, 3vw, 2rem); margin-bottom: var(--s4); transition: opacity .2s; }
.step.is-locked { opacity: .45; pointer-events: none; }
.step-title { display: flex; align-items: baseline; gap: var(--s3); font: 400 1.375rem/1.25 var(--serif); margin: 0 0 var(--s3); }
.step-num { font: 500 .875rem/1 var(--sans); color: var(--ink-2); }
.practice-text { font: 400 clamp(1.25rem, 2.2vw, 1.5rem)/1.45 var(--serif); margin: 0 0 var(--s5); max-width: 42rem; }
textarea.practice-text { width: 100%; border: 1px solid var(--rule); border-radius: 12px; padding: var(--s3) var(--s4); background: var(--paper); color: var(--ink); resize: vertical; }
.practice-prompt { font: 400 1.25rem/1.45 var(--serif); margin: 0 0 var(--s5); max-width: 42rem; }
.tip { margin: 0 0 var(--s2); padding-left: var(--s3); border-left: 2px solid var(--ink); max-width: 42rem; }
.rec-control .console { max-width: 34rem; }
.btn-record-light { background: var(--ink); color: #fff; }
.btn-record-light.is-recording .rec-dot { border-radius: 2px; animation: blink 1.2s ease-in-out infinite; }
.meter.light { background: var(--rule); }
.meter.light .meter-fill { background: var(--ink); }
.timer.light { color: var(--ink-2); }
.step-result:not(:empty) { margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--rule); }
.result-figure { margin: 0 0 var(--s2); font-size: 1.0625rem; }
.result-label { color: var(--ink-2); }
.result-note { margin: 0; color: var(--ink-2); max-width: 42rem; }
.final-report { margin-top: var(--s6); }
.step.listen { background: var(--booth); color: var(--booth-ink); }
.step.listen .sub { color: var(--booth-ink-2); }
.step.listen .practice-text.quiet { color: var(--booth-ink-2); font-size: 1.125rem; margin-bottom: var(--s4); }
.listen-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.listen-take { margin: 0; }
.listen-take figcaption { font-size: .875rem; margin-bottom: var(--s2); }
.listen-take audio { width: 100%; }
@media (max-width: 560px) { .listen-pair { grid-template-columns: 1fr; } }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .intro-grid, .coach, .takes { grid-template-columns: 1fr; }
  .intro-score { order: 2; }
}
@media (max-width: 560px) {
  .figures { grid-template-columns: 1fr; }
  .figure + .figure { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .privacy-pill { display: none; }
  .console { flex-wrap: wrap; }
  .meter { flex-basis: 100%; order: -1; }
  .mic-row { max-width: none; flex-basis: 100%; order: -2; }
  .deltas th:nth-child(4), .deltas td:nth-child(4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
