/* The guide: Afflato's support docs. The site's world (style.css: warm charcoal, cream,
   the mono, ultramarine for action, neoprene pads) set for reading: a contents rail,
   one measured column, and the plugin's own section hues as small marks, as on its face. */

:root {
  --clean: #f08c62;
  --shape: #ecb661;
  --space: #72c3de;
  --drone: #b49df0;
  --body-text: rgba(239, 230, 218, 0.8);
}

main.guide {
  display: block;
  min-height: 100svh;
  background: linear-gradient(180deg, var(--ground) 0%, var(--ground) 60%, var(--ground-deep) 100%);
}

/* The top edge, as on the homepage: the wordmark home, the guide's pages, the list. */
.guide-edge {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 56px;
  padding: 0 clamp(20px, 4vw, 48px);
  background: rgba(22, 18, 16, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.guide-edge a { text-decoration: none; color: inherit; transition: color 200ms var(--ease); }
.guide-edge a:hover, .guide-edge a[aria-current="page"] { color: var(--text); }

.guide-home { display: flex; align-items: baseline; gap: 14px; flex: none; }
.guide-home .mark {
  font-family: var(--font-logo);
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--text);
}

.guide-pages { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); overflow-x: auto; scrollbar-width: none; }
.guide-pages::-webkit-scrollbar { display: none; }
.guide-pages a { white-space: nowrap; }
.guide-pages .join-link { color: var(--lapis-light); }

/* Page: a contents rail and one column. */
.guide-layout {
  display: grid;
  grid-template-columns: 188px minmax(0, 720px);
  justify-content: center;
  gap: clamp(32px, 6vw, 88px);
  padding: clamp(48px, 8svh, 88px) clamp(20px, 4vw, 48px) 0;
}

.contents {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 4px;
  font-size: 12px;
}

.contents p {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.contents a {
  display: block;
  padding: 5px 0 5px 12px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.contents a:hover { color: var(--text); }
.contents a.here { color: var(--text); border-left-color: var(--lapis-light); }

.page-head { display: grid; gap: 16px; margin-bottom: 8px; }
.page-head h1 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 34px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.page-head .page-lede {
  max-width: 56ch;
  margin: 0;
  font-size: clamp(15px, 1.25vw, 16px);
  line-height: 1.7;
  color: var(--body-text);
}

/* Sections open with the instrument's mark: a hairline with a tick. */
.doc-section { padding-top: clamp(56px, 8svh, 80px); scroll-margin-top: 72px; }

.doc-section > h2 {
  position: relative;
  margin: 0 0 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
}

.doc-section > h2::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 1px;
  height: 9px;
  background: var(--line-strong);
}

.doc-section h3 { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: -0.005em; }

.prose { display: grid; gap: 16px; max-width: 64ch; }
.prose p, .prose li { margin: 0; font-size: 14px; line-height: 1.8; color: var(--body-text); text-wrap: pretty; }
.prose strong { font-weight: 500; color: var(--text); }
.prose ul, .prose ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.prose li::marker { color: var(--muted); }

/* Numbered steps: the order is the point. */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 18px; max-width: 64ch; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--body-text);
}
.steps li::before {
  content: counter(step);
  font-size: 12px;
  font-weight: 500;
  line-height: 2.1;
  color: var(--lapis-light);
}
.steps strong { font-weight: 500; color: var(--text); }

/* A panel of the plugin, lifted onto the ground, as on the homepage. */
.plate { margin: 28px 0 0; display: grid; gap: 12px; }
.plate img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 26px 48px -22px rgba(0, 0, 0, 0.8);
}
.plate.narrow { max-width: 520px; }
.plate figcaption { font-size: 12px; line-height: 1.6; color: var(--muted); }

/* Hear it ---------------------------------------------------------------------- */

.flutes { display: flex; flex-wrap: wrap; gap: 6px; margin: 28px 0 16px; }
.flutes button {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--well);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 236, 214, 0.04);
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: color 160ms var(--ease);
}
.flutes button:hover { color: var(--text); }
.flutes button[aria-pressed="true"] {
  color: var(--text);
  background: linear-gradient(180deg, var(--pad-top), var(--pad-edge));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 236, 214, 0.08);
}

.demo {
  display: grid;
  gap: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(37, 31, 26, 0.72), rgba(27, 23, 19, 0.8));
}

.demo-head { display: grid; gap: 4px; }
.demo-head h3 { font-size: 18px; letter-spacing: -0.01em; }
.demo-head p { margin: 0; font-size: 12px; color: var(--muted); }

.demo-controls {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 18px 24px;
}

.demo .versions { justify-self: start; }
.demo .heard { justify-self: end; }
.demo .timeline { margin-top: 0; }
.demo-note { margin: 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
.demo-note[data-state="error"] { color: var(--text); }

/* What Soundcheck heard, and what it set: the reasons and the result, side by side. */
.readout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 18px 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.readout h4 { margin: 0 0 10px; font-size: 11px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.readout dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; font-size: 13px; }
.readout dt { color: var(--muted); }
.readout dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; }
.readout .set dl { grid-template-columns: repeat(2, auto minmax(0, 1fr)); }
.readout .set dt { display: flex; align-items: center; gap: 8px; }
.readout .set dt::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--hue, var(--line-strong)); flex: none; }

/* Controls ---------------------------------------------------------------------- */

.area-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-width: 64ch; }
.area-list a {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.6;
  color: var(--body-text);
}
.area-list a:hover strong { color: var(--text); }
.area-name, .area-list strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}
.area-name::before, .area-list strong::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--hue, var(--line-strong)); flex: none; }



/* Words ------------------------------------------------------------------------- */

.terms { margin: 0; display: grid; max-width: 68ch; }
.terms div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 72px; }
.terms dt { font-size: 14px; font-weight: 500; color: var(--text); }
.terms dd { margin: 0; font-size: 14px; line-height: 1.75; color: var(--body-text); }

/* Next pages, and the foot. */
.next { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: clamp(64px, 9svh, 96px); }
.next a {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--well);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 236, 214, 0.04);
  text-decoration: none;
  transition: border-color 200ms var(--ease);
}
.next a:hover { border-color: var(--line-strong); }
.next span { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.next b { font-size: 14px; font-weight: 500; color: var(--text); }

.guide-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 120px clamp(20px, 4vw, 48px) 30px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.guide-foot .elsewhere { display: flex; gap: 28px; }

@media (max-width: 900px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .contents { display: none; }
}

@media (max-width: 600px) {
  .guide-edge { height: auto; min-height: 52px; padding-block: 10px; flex-wrap: wrap; row-gap: 8px; }
  .guide-pages { width: 100%; flex-wrap: wrap; overflow: visible; row-gap: 6px; }
  .demo { padding: 18px; }
  .demo-controls { grid-template-columns: auto minmax(0, 1fr); }
  .demo .heard { grid-column: 1 / -1; justify-self: start; align-items: flex-start; }
  .readout { grid-template-columns: minmax(0, 1fr); }
  .readout .set dl { grid-template-columns: auto minmax(0, 1fr); }
  .terms div, .area-list a { grid-template-columns: minmax(0, 1fr); }
  .guide-foot { flex-direction: column; align-items: center; gap: 10px; }
}


/* Browser surfaces, in the palette. */
html { scrollbar-color: var(--line-strong) var(--ground-deep); }

/* Icons are drawn: one 1.6px stroke, round ends. */
.icon-button { display: inline-grid; place-items: center; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.icon-button:hover { color: var(--text); }
.icon-button svg, .card-next svg, .plus-inline svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* The controls page ---------------------------------------------------------------- */

main.controls-page { padding-bottom: 0; }

.guide-top {
  display: grid;
  gap: clamp(28px, 4svh, 40px);
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(56px, 9svh, 96px) clamp(20px, 4vw, 48px) 0;
}

.controls-page .page-head { max-width: 640px; }

.plus-inline {
  display: inline-grid;
  place-items: center;
  width: 1.4em;
  height: 1.4em;
  border: 1px solid rgba(var(--rose-gold-rgb), 0.85);
  border-radius: 50%;
  color: var(--rose-gold);
  vertical-align: -0.3em;
}

.plus-inline svg { width: 0.8em; height: 0.8em; }

/* The tour: the real plugin with rose-gold marks. ------------------------------------ */

.tour-stage, .tour-picture { position: relative; }

.tour-picture > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 26px 48px -22px rgba(0, 0, 0, 0.8);
}

/* While a card is open the plugin dims around the control it explains. */
.tour-picture::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 14px;
  background: radial-gradient(ellipse var(--spot-rx, 10%) var(--spot-ry, 10%) at var(--spot-cx, 50%) var(--spot-cy, 50%),
    rgba(10, 8, 6, 0) 0%, rgba(10, 8, 6, 0) 62%, rgba(10, 8, 6, 0.7) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms var(--ease);
}

.tour-picture.focusing::after { opacity: 1; }

/* A hotspot: a rose-gold "+" in a dark disc, beside its control. Open, it fills rose
   gold and turns to a cross; seen, it rests quieter. The next unseen one beckons. */
.hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(var(--rose-gold-rgb), 0.85);
  border-radius: 50%;
  background-color: rgba(15, 12, 10, 0.8);
  color: var(--rose-gold);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease), opacity 200ms var(--ease);
}

.hotspot svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; transition: transform 200ms var(--ease); }
.hotspot:hover { background-color: rgba(var(--rose-gold-rgb), 0.22); }
.hotspot.seen:not([aria-expanded="true"]) { border-color: rgba(var(--rose-gold-rgb), 0.4); color: rgba(var(--rose-gold-rgb), 0.7); }
.tour-picture.focusing .hotspot:not([aria-expanded="true"]) { opacity: 0.55; }
.hotspot[aria-expanded="true"] { background-color: var(--rose-gold); border-color: var(--rose-gold); color: var(--ground-deep); }
.hotspot[aria-expanded="true"] svg { transform: rotate(45deg); }
.hotspot:focus-visible { outline-offset: 4px; border-radius: 50%; }

/* The card: lifted off the plugin in warm glass, with a soft rose-gold glow below it
   (Johnny's call: the dark-on-dark card was hard to read). */
.tour-card {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 14px;
  width: 360px;
  padding: 20px 20px 16px;
  border: 1px solid rgba(255, 236, 214, 0.16);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(58, 49, 41, 0.97) 0%, rgba(43, 36, 31, 0.97) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 214, 0.09),
    0 22px 60px -14px rgba(var(--rose-gold-rgb), 0.3),
    0 30px 60px -24px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.tour-card[hidden] { display: none; }

.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 17px; font-weight: 500; outline: none; }
.card-head h3::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--hue, var(--line-strong)); }
.card-close { width: 30px; height: 30px; border-radius: 8px; }
.card-close svg { width: 16px; height: 16px; }
.card-what { margin: 0; font-size: 13.5px; line-height: 1.7; color: rgba(239, 230, 218, 0.92); }
.card-what strong { font-weight: 500; color: var(--text); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 236, 214, 0.1); font-size: 12px; }
.card-foot a { color: #b9ad9b; }
.card-next { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; border: 0; background: none; font: inherit; font-size: 12px; color: var(--text); cursor: pointer; }
.card-next svg { width: 14px; height: 14px; }
.card-next:hover { color: var(--rose-gold); }

/* A control's clips: the play pad and the switch (clips.js). */
.clip { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.clip-play .pad-face { width: 48px; height: 48px; border-radius: 15px; }
.clip-play .glyph { inset: 5px; width: 38px; height: 38px; stroke-width: 3; }
.clip-play:focus-visible { border-radius: 19px; }
/* The switch on a clip is the page's main control, so it's sized for a finger. */
.clip-versions { height: 44px; padding: 3px; border-radius: 11px; }
.clip-versions button { padding: 0 14px; border-radius: 8px; font-size: 12px; }
.clip-say { margin: 12px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.clip-say b { font-weight: 500; color: var(--text); }
.tour-card .clip-say { color: #b9ad9b; }

/* Where you are: a quiet row of the page's sections under the top edge. */
.controls-page .contents {
  position: sticky;
  top: 56px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 6px;
  max-width: none;
  margin: clamp(56px, 9svh, 96px) 0 0;
  padding: 10px clamp(20px, 4vw, 48px);
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(22, 18, 16, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.controls-page .contents::-webkit-scrollbar { display: none; }

.controls-page .contents a {
  flex: none;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.controls-page .contents a:hover { color: var(--text); }
.controls-page .contents a.here { color: var(--text); background: rgba(255, 236, 214, 0.07); }

/* Bands and areas share one rhythm: a tick-ended hairline, then air. */
.band, .area, .fixes-intro {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(72px, 10svh, 112px) clamp(20px, 4vw, 48px) clamp(72px, 10svh, 112px);
  scroll-margin-top: 110px;
}

.area::before, .band::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(20px, 4vw, 48px);
  right: clamp(20px, 4vw, 48px);
  height: 1px;
  background: var(--line);
}

.area::after, .band::after {
  content: "";
  position: absolute;
  top: -4px;
  left: clamp(20px, 4vw, 48px);
  width: 1px;
  height: 9px;
  background: var(--line-strong);
}

.band h2, .fixes-intro h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Soundcheck: the one thing to know first. */
.soundcheck { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 6vw, 88px); }
.band-picture { margin: 0; }
.band-picture img { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 30px 60px -26px rgba(0, 0, 0, 0.85); }
.band-words { display: grid; gap: 22px; align-content: start; }
.band-words > .what { margin: 0; max-width: 46ch; font-size: 16px; line-height: 1.7; color: var(--body-text); }

/* Soundcheck's three steps: one row each, the verb beside its words, hairlines between,
   as the Hands on row is set. */
.beats { list-style: none; margin: 4px 0 0; padding: 0; display: grid; }
.beats li { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: baseline; gap: 16px; padding: 14px 0; }
.beats li + li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); }
.beats b { font-size: 17px; font-weight: 400; letter-spacing: -0.01em; color: var(--text); }
.beats span { font-size: 14px; line-height: 1.6; color: var(--body-text); }

/* "Want something different?" */
.fixes-intro { display: grid; gap: 14px; justify-items: center; text-align: center; padding-top: clamp(24px, 4svh, 48px); padding-bottom: clamp(16px, 3svh, 32px); }
.fixes-intro p { margin: 0; max-width: 46ch; font-size: 16px; line-height: 1.7; color: var(--body-text); }

/* An area: its name and real panel on one side, its fixes on the other; areas
   alternate sides as the homepage's rows do. */
.area { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.area.flip { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); }
.area.flip .area-side { order: 2; }

.area-side { position: sticky; top: 130px; display: grid; gap: 14px; align-content: start; }
.area-title { margin: 0; max-width: 22ch; font-size: clamp(22px, 2.3vw, 27px); font-weight: 400; line-height: 1.3; letter-spacing: -0.015em; color: rgba(239, 230, 218, 0.72); text-wrap: balance; }
.area-title .area-name { display: inline; font-size: inherit; font-weight: 500; letter-spacing: inherit; text-transform: none; color: var(--text); }
.area-title .area-name::before { content: none; }

/* The area's real panel. A card you're on dims the panel around its control; a card
   that's playing holds it, a little deeper. */
.area-picture { position: relative; margin-top: 22px; }
.area-panel { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 26px 48px -22px rgba(0, 0, 0, 0.8); }
.area-picture::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: radial-gradient(ellipse var(--spot-rx, 20%) var(--spot-ry, 50%) at var(--spot-cx, 50%) var(--spot-cy, 50%),
    rgba(10, 8, 6, 0) 0%, rgba(10, 8, 6, 0) 62%, rgba(10, 8, 6, 0.62) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms var(--ease);
}
.area-picture.focusing::after { opacity: 0.75; }
.area-picture.live::after { opacity: 1; }

.fixes { display: grid; gap: 20px; }

/* A fix: the problem in a player's words, the control that fixes it, and the fix heard. */
.fix {
  display: grid;
  gap: 12px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(255, 236, 214, 0.07);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(42, 36, 30, 0.82) 0%, rgba(30, 25, 21, 0.82) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 236, 214, 0.05), 0 24px 40px -30px rgba(0, 0, 0, 0.9);
  scroll-margin-top: 120px;
}

.fix { transition: border-color 240ms var(--ease), box-shadow 240ms var(--ease); }
.fix.playing {
  border-color: rgba(var(--rose-gold-rgb), 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 236, 214, 0.06), 0 22px 56px -22px rgba(var(--rose-gold-rgb), 0.28), 0 24px 40px -30px rgba(0, 0, 0, 0.9);
}
.fix-problem { margin: 0; font-size: clamp(18px, 1.8vw, 21px); font-weight: 400; line-height: 1.4; letter-spacing: -0.01em; color: var(--text); text-wrap: balance; }
.fix .what { margin: 0; max-width: 52ch; font-size: 14px; line-height: 1.7; color: var(--body-text); text-wrap: pretty; }
.fix .what strong, .fix-control { font-weight: 500; color: var(--text); }
.fix-control { box-shadow: inset 0 -2px 0 var(--hue, var(--line-strong)); }
.fix-listen { margin-top: 10px; }

/* Details, tucked in. */
.more { margin-top: 4px; border-top: 1px solid var(--line); }
.more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 2px;
  list-style: none;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 200ms var(--ease);
}
.more[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.more summary:hover { color: var(--text); }
.more-body { display: grid; gap: 10px; padding-top: 12px; }
.more-body p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--body-text); }
.more-body .facts { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 12px; color: var(--muted); }
.more-body .facts b { font-weight: 400; color: var(--text); }
.more-body .tip { color: var(--muted); }
.more-body .tip::before { content: "Tip · "; color: var(--text); }
.more-body .take { font-size: 12px; color: var(--muted); }

/* Hands on, the screen, presets and the finish. */
.hands { display: grid; gap: clamp(32px, 5svh, 48px); }
/* The gestures: one row, read left to right, hairlines between, as the homepage's
   meaning rows are set. */
.gestures { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gestures li { position: relative; display: grid; align-content: start; gap: 8px; padding: 4px 28px; }
.gestures li:first-child { padding-left: 0; }
.gestures li + li::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 0; width: 1px; background: var(--line); }
.gestures b { font-size: clamp(17px, 1.6vw, 20px); font-weight: 400; letter-spacing: -0.01em; color: var(--text); }
.gestures span { max-width: 26ch; font-size: 13px; line-height: 1.6; color: var(--body-text); }

.extras { display: grid; gap: 20px; }
.extra { display: grid; gap: 12px; align-content: start; padding: clamp(22px, 3vw, 30px); border: 1px solid rgba(255, 236, 214, 0.07); border-radius: 20px; background: linear-gradient(180deg, rgba(42, 36, 30, 0.82), rgba(30, 25, 21, 0.82)); scroll-margin-top: 120px; }
.extra h3 { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.extra .what { margin: 0; font-size: 14px; line-height: 1.75; color: var(--body-text); }
.extra { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 48px); }
.extra.flip > :first-child { order: 2; }
.extra > img, .extra-show img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 20px 40px -24px rgba(0, 0, 0, 0.8); }
.extra-words { display: grid; gap: 12px; align-content: center; }
.extra .more { max-width: 52ch; }
.preset-names { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; align-content: center; }
.preset-names span { padding: 5px 11px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; color: var(--text); }

.controls-page .next { max-width: 1120px; margin: clamp(80px, 12svh, 128px) auto 0; padding: 0 clamp(20px, 4vw, 48px); }

@media (max-width: 1000px) {
  .area, .area.flip, .soundcheck { grid-template-columns: minmax(0, 1fr); }
  .area.flip .area-side { order: 0; }
  .area-side { position: static; }
  .area-panel { max-width: 460px; }
  .gestures { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .gestures li:nth-child(odd) { padding-left: 0; }
  .gestures li:nth-child(odd)::before { content: none; }
}

@media (max-width: 899px) {
  .tour-card { position: static; width: auto; margin-top: 16px; }
  .hotspot { width: 22px; height: 22px; }
  .hotspot svg { width: 12px; height: 12px; }
  /* The row of sections scrolls sideways here: fade its far edge so it reads as more. */
  .controls-page .contents {
    justify-content: flex-start;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 56px), transparent);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 56px), transparent);
    padding-right: 56px;
  }
}

@media (max-width: 600px) {
  /* On a phone the marks are dots: 18 crosses crowd a 360px plugin. Each keeps a
     fingertip-sized place to tap. */
  .hotspot { width: 14px; height: 14px; border-width: 1.5px; background-color: rgba(var(--rose-gold-rgb), 0.35); }
  .hotspot svg { display: none; }
  .hotspot.seen:not([aria-expanded="true"]) { background-color: rgba(15, 12, 10, 0.8); }
  .hotspot[aria-expanded="true"] { width: 18px; height: 18px; }
  .hotspot::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; }
  /* Width and Level sit one above the other; Level's dot moves to the start of its row
     so the two don't touch. */
  .hotspot[data-mark="level"] { left: 33.6%; }
  .extra { grid-template-columns: minmax(0, 1fr); }
  .extra.flip > :first-child { order: 0; }
  .clip-versions { max-width: 100%; }
  .clip-versions button { padding: 0 11px; }
  .controls-page .contents { top: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  .tour-picture::after, .area-picture::after, .hotspot, .fix, .more summary::after { transition: none; }
}
