/* Soundhop page: the sound field (rings that come off the menu bar icon, notes riding in them), the
   call-mode stage and the panel mock (profile keys, device rows, switch, trial row).
   Shell tokens come from ../assets/site.css, section frames from product.css, mock chrome from mac-mocks.css. */

.hue-sound {
  /* The stage and the desktop wallpaper are the app icon's deep green in both themes; white copy
     passes AA on both ends of the gradient. */
  --stage-top: #0D5843;
  --stage-end: #073529;
  --on-stage: #FFFFFF;
  --on-stage-soft: rgba(255, 255, 255, 0.88);
  --stage-well: rgba(3, 20, 15, 0.36);
  /* The sound field on the wallpaper: its glow, its rings, its notes. */
  --wall-top: var(--stage-top);
  --wall-end: var(--stage-end);
  --wall-glow: #1C9A76;
  --air-ring: rgba(176, 245, 216, 0.3);
  --air-note: #BFF5DD;
  /* The product hue on the page's own surfaces: the wells of the tiles, the rings of the last block
     and the notes between those rings. */
  --tile-well: color-mix(in srgb, var(--accent) 11%, var(--surface));
  --ring-mid: color-mix(in srgb, var(--accent) 38%, transparent);
  --ring-note: color-mix(in srgb, var(--accent) 50%, var(--bg));
  --panel-w: 320px;
  --panel-r: 20px;
  --panel-pad: 6px 10px 4px;
}
/* The app's panel palette. The accent is Soundhop green by default; System accent and Custom are opt-in
   in Settings > Appearance. --m-accent fills the switch (white knob); --m-accent-text colours the lit glyph,
   the lamp and the check; --m-call is the amber of a live call. */
.hue-sound .mock {
  --m-bg: rgba(246, 247, 245, 0.84);
  --m-solid: #F6F7F5;
  --m-fg: #141917;
  --m-muted: #4E5853;
  --m-line: rgba(20, 25, 23, 0.13);
  --m-edge: rgba(20, 25, 23, 0.16);
  --m-key: rgba(20, 25, 23, 0.055);
  --m-key-live: #FFFFFF;
  --m-key-shadow: 0 0 0 0.5px rgba(20, 25, 23, 0.12), 0 1px 3px rgba(20, 25, 23, 0.16);
  --m-accent: #12805F;
  --m-accent-text: #0F7A5A;
  --m-call: #9A5600;
  --m-on-accent: #FFFFFF;
  --m-switch-off: rgba(20, 25, 23, 0.18);
  --m-pill: #FFFFFF;
  line-height: 16px;
}
/* The two opt-in looks, as shown in the Appearance tile. */
.hue-sound .look.system .mock { --m-accent-text: #0A66D8; }
.hue-sound .look.custom .mock { --m-accent-text: #A8327E; }
@media (prefers-color-scheme: dark) {
  .hue-sound { --wall-top: #0A3F31; --wall-end: #051C15; --wall-glow: #116B52; }
  .hue-sound .mock {
    --m-bg: rgba(16, 22, 20, 0.84);
    --m-solid: #101614;
    --m-fg: #F1F4F2;
    --m-muted: #A7B1AC;
    --m-line: rgba(241, 244, 242, 0.13);
    --m-edge: rgba(241, 244, 242, 0.2);
    --m-key: rgba(241, 244, 242, 0.06);
    --m-key-live: rgba(241, 244, 242, 0.14);
    --m-key-shadow: 0 0 0 0.5px rgba(241, 244, 242, 0.24), 0 2px 6px rgba(0, 0, 0, 0.4);
    --m-accent-text: #6FDDB0;
    --m-call: #F0B35B;
    --m-switch-off: rgba(241, 244, 242, 0.22);
    --m-pill: rgba(241, 244, 242, 0.14);
  }
  .hue-sound .look.system .mock { --m-accent-text: #6CB2FF; }
  .hue-sound .look.custom .mock { --m-accent-text: #F08AC8; }
}

/* ---------- Hero ---------- */
/* Two lines at every width: the thesis, then what it is about in the product hue. */
.hue-sound .hero h1 { max-width: none; font-size: clamp(2.5rem, 1.1rem + 3.4vw, 3.8rem); line-height: 1.02; }
.h-turn { display: block; color: var(--accent-ink); }
/* Two pills of one width, one under the other, and the price line under them. The line takes the
   width of the pills and adds none of its own; each of its two sentences stays whole. */
.hue-sound .hero .actions { flex-direction: column; align-items: stretch; width: fit-content; max-width: 100%; }
.hue-sound .hero .actions .meta { width: 0; min-width: 100%; margin-top: 4px; text-wrap: wrap; }
.hue-sound .hero .actions .btn.ghost { min-height: 52px; border-color: var(--line-strong); color: var(--ink); font-size: 1.02rem; }
.hue-sound .hero .actions .btn.ghost:hover { border-color: var(--ink); background: transparent; }
@media (max-width: 480px) { .hue-sound .hero .actions { width: 100%; } }

/* The desktop: a dark wallpaper, so the menu bar takes white text as macOS does. Sound comes off the
   status item in rings; --air-x and --air-y are the item's middle, measured from the top right corner
   (the panel hangs centred under it, see mac-mocks.css). */
.hue-sound .screen {
  --air-x: calc(clamp(12px, 12%, 72px) + 160px);
  --air-y: 12px;
  --wall: radial-gradient(circle at right var(--air-x) top var(--air-y), var(--wall-glow) 0, transparent 440px), linear-gradient(165deg, var(--wall-top), var(--wall-end));
  --mb-fg: #FFFFFF;
  --mb-bg: var(--stage-well);
  --mb-active: rgba(255, 255, 255, 0.24);
  position: relative;
}
@media (max-width: 480px) { .hue-sound .screen { --air-x: 50%; } }
.hue-sound .screen > .menubar, .hue-sound .screen .panel { position: relative; }
.air { position: absolute; inset: 0; overflow: clip; border-radius: calc(var(--r-l) - 1px); pointer-events: none; }
/* Rings every 46px, fading with the distance from the icon. */
.air::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at right var(--air-x) top var(--air-y), transparent 0, transparent 36px, var(--air-ring) 37.5px, var(--air-ring) 39.5px, transparent 41px, transparent 46px);
  -webkit-mask-image: radial-gradient(circle at right var(--air-x) top var(--air-y), #000 0, rgba(0, 0, 0, 0.4) 380px, transparent 680px);
  mask-image: radial-gradient(circle at right var(--air-x) top var(--air-y), #000 0, rgba(0, 0, 0, 0.4) 380px, transparent 680px);
}
/* A note sits between two rings: --rx to the left of the icon and --ry below it. */
.air-note { --s: 28px; position: absolute; right: calc(var(--air-x) + var(--rx) - var(--s) / 2); top: calc(var(--air-y) + var(--ry) - var(--s) / 2); width: var(--s); height: var(--s); fill: var(--air-note); }
.air-note:nth-of-type(1) { --rx: 283px; --ry: 70px; rotate: -10deg; }
.air-note:nth-of-type(2) { --s: 36px; --rx: 217px; --ry: 258px; rotate: 8deg; }
.air-note:nth-of-type(3) { --rx: 252px; --ry: 403px; rotate: -6deg; }
/* One wave per hop (hop.js): a ring that grows out of the icon and fades. */
.air-pulse { position: absolute; right: calc(var(--air-x) - 480px); top: calc(var(--air-y) - 480px); width: 960px; height: 960px; border: 3px solid var(--air-note); border-radius: 50%; opacity: 0; }

/* ---------- Panel pieces ---------- */
.ico { display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mb-item .ico { width: 16px; height: 16px; stroke-width: 1.9; }
.sec-title { padding: 10px 10px 7px; font-size: 11px; font-weight: 600; letter-spacing: 0.09em; color: var(--m-muted); }

/* Profiles: a grid of keys of one height. Glyph top left, lamp top right when live, name, route.
   The name stands at one height in every key, whatever the number of lines under it. */
.keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 6px; }
.key { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 68px; padding: 29px 10px 9px; border-radius: 12px; background: var(--m-key); }
.key > .ico { position: absolute; left: 10px; top: 10px; width: 20px; height: 20px; color: var(--m-muted); }
.key b { font-weight: 600; }
/* The route reads "output · input" on one line. A key too narrow for both puts the input under the
   output, and the dot then falls into the strip that is clipped off the left edge. No name is cut. */
.route { --sep: 0.9em; display: flex; flex-wrap: wrap; margin-left: calc(-1 * var(--sep)); clip-path: inset(0 0 0 var(--sep)); font-size: 10px; line-height: 14px; color: var(--m-muted); }
.route i { position: relative; min-width: 0; padding-left: var(--sep); font-style: normal; }
.route i::before { content: "\00b7"; position: absolute; left: 0; width: var(--sep); text-align: center; }
.key.live { background: var(--m-key-live); box-shadow: var(--m-key-shadow); }
.key.live > .ico { color: var(--m-accent-text); }
.lamp { position: absolute; right: 12px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--m-accent-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--m-accent-text) 20%, transparent); }
/* A profile whose device is away: recessed outline, a crossed bolt where the lamp would be. */
.key.off { background: none; box-shadow: inset 0 0 0 1px var(--m-line); }
.key.off b { color: var(--m-muted); }
.key > .ico.mark { left: auto; right: 9px; top: 11px; width: 15px; height: 15px; }

/* Output and input: a bare glyph and a name; the device in use is semibold, lit and checked. */
.drow { display: flex; align-items: center; gap: 11px; min-height: 28px; padding: 0 10px; }
.drow > .ico, .crow > .ico, .hs-call > .ico { flex: none; width: 19px; height: 19px; color: var(--m-muted); }
.drow b { flex: 1 1 auto; min-width: 0; font-weight: 400; }
.drow.cur > .ico { color: var(--m-accent-text); }
.drow.cur b { font-weight: 600; }
.check { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--m-accent-text); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rule { border-top: 1px solid var(--m-line); margin: 0 10px; }
.rule.gap { margin-top: 8px; }

/* Call mode row. */
.crow { display: flex; align-items: center; gap: 11px; min-height: 46px; padding: 0 10px; }
.lab { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.lab b { font-weight: 400; }
.lab span { margin-top: 1px; font-size: 11px; line-height: 13px; color: var(--m-muted); }
.switch { position: relative; flex: none; width: 42px; height: 22px; border-radius: 11px; background: var(--m-switch-off); }
.switch.on { background: var(--m-accent); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 18px; border-radius: 9px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.switch.on::after { left: 16px; }

/* Trial row: the ring is the share of the trial that is left. */
.trow { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px 0 8px; }
.t-badge { position: relative; display: grid; place-items: center; flex: none; width: 22px; height: 22px; }
.t-ring { position: absolute; inset: 0; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.t-badge .ico { width: 10px; height: 10px; stroke-width: 2.2; }
.trow b { flex: 1 1 auto; min-width: 0; font-weight: 400; color: var(--m-muted); }
.pill { display: flex; align-items: center; flex: none; height: 24px; padding: 0 11px; border-radius: 12px; background: var(--m-pill); box-shadow: 0 0 0 0.5px var(--m-edge); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.p-footer { display: flex; align-items: center; justify-content: space-between; height: 32px; padding: 0 10px; }
.p-footer span span { margin-left: 6px; color: var(--m-muted); }
.panel.frag { padding: 4px 8px; }

/* A piece of the panel on an opaque card: used in the tiles. */
.mock.card { width: min(320px, 100%); padding: 8px; border-radius: 16px; background: var(--m-solid); box-shadow: 0 0 0 0.5px var(--m-edge), 0 8px 24px rgba(0, 0, 0, 0.14); }
.mock.card > .sec-title:first-child { padding-top: 4px; }
/* Phones: the card is the panel drawn smaller, so a key keeps the width its route needs. */
@media (max-width: 440px) { .tile-art > .mock.card { zoom: 0.9; } }
@media (max-width: 374px) { .tile-art > .mock.card { zoom: 0.8; } }

/* ---------- Call mode stage: one colour field, everything on one centre line ---------- */
.calls { margin-top: clamp(24px, 4vw, 56px); padding: clamp(64px, 9vw, 120px) 0; overflow-x: clip; background: linear-gradient(180deg, var(--stage-top), var(--stage-end)); color: var(--on-stage); }
.calls > .wrap:first-child { text-align: center; }
.calls .eyebrow { color: var(--on-stage); opacity: 0.8; }
.calls h2 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4.2rem); letter-spacing: -0.035em; max-width: 14ch; margin-inline: auto; }
.calls .section-lead { margin-inline: auto; color: var(--on-stage-soft); }
.calls .scene-copy h3, .calls .scene-rail { color: var(--on-stage); }
.calls .scene-copy p, .calls .scene-num { color: var(--on-stage-soft); }
/* Four states: the track is four screens tall and the rail has four steps. Without the pinned stage
   the four frames stand two by two. */
.calls .scene.live { height: 400vh; }
@media (min-width: 960px) { .calls .scene:not(.live) .scene-states { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 40px; } }
/* The art scales with its box. */
.calls .scene-art { container-type: inline-size; width: 100%; max-width: 540px; }
/* Pinned: one centred column at every width, the copy over the art. The copy keeps one height, so
   the art stands still while the captions change. */
.calls .live .scene-states { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; gap: clamp(16px, 3vh, 28px) 0; }
.calls .live .scene-copy { grid-area: 1 / 1; align-self: start; min-height: 12.5rem; text-align: center; }
.calls .live .scene-copy h3 { font-size: clamp(1.7rem, 1rem + 2.6vw, 2.9rem); }
.calls .live .scene-copy p { max-width: 58ch; margin-inline: auto; text-wrap: balance; }
@media (min-width: 900px) { .calls .live .scene-copy { min-height: 8.5rem; } }
/* The art and the rail under it have one width, --art-w, so their edges stand on the same two lines.
   The width gives way to the height of the window, so the stage always fits one screen. */
.calls .scene.live { --art-w: 760px; }
@media (max-height: 860px) { .calls .scene.live { --art-w: 665px; } }
@media (max-height: 780px) { .calls .scene.live { --art-w: 558px; } }
@media (max-height: 700px) { .calls .scene.live { --art-w: 463px; } }
@media (max-height: 640px), (max-width: 899px) and (max-height: 700px) { .calls .scene.live { --art-w: 356px; } }
.calls .live .scene-art { grid-area: 2 / 1; justify-self: center; align-self: start; max-width: var(--art-w); }
.calls .live .scene-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); justify-self: center; width: 100%; max-width: var(--art-w); }
/* At the full page width the frame and the rail take the whole page column, and a key then holds its
   route on one line. The frame keeps the unit it has at --art-w, so its height still follows the window. */
@media (min-width: 1160px) {
  .calls .live .scene-art, .calls .live .scene-rail { max-width: none; }
  .hue-sound .live .mock.hopstage { --q: calc(var(--art-w) / 620); }
}

/* One frame: the top of the screen with the menu bar, the sound that comes off the icon, three
   profile keys and the Call mode row. --q is the frame's unit: a 620th of its width, except at the
   full page width (above). The stage is a dark surface in both themes, so the frame takes the app's
   dark palette, and the lit key is the white key of the light panel.
   --at is the lit key (0, 1, 2); --lit is the colour of a lit glyph and its lamp; --ph (0 to 1) is
   how far the rings have moved towards the next ring's place; --gap stands between two keys. */
.hue-sound .mock.hopstage {
  --q: calc(100cqw / 620);
  --gap: calc(20 * var(--q));
  --ph: 0.5;
  --m-fg: #F1F4F2;
  --m-muted: #B4BDB8;
  --m-accent-text: #6FDDB0;
  --m-call: #F0B35B;
  --lit: #0F7A5A;
  --pad: rgba(255, 255, 255, 0.11);
  --key-lit: #FFFFFF;
  --key-lit-fg: #141917;
  --key-lit-muted: #4E5853;
  position: relative;
  line-height: 1.25;
  text-align: left;
}
/* On a call the rings, the notes, the lamp and the lit glyph turn amber. */
.hue-sound .mock.hopstage.call { --lit: #9A5600; --m-accent-text: var(--m-call); }
/* The glow of the icon: it stays inside the frame, under the top edge of the screen. */
.hopstage::before { content: ""; position: absolute; inset: 0 0 auto; height: calc(400 * var(--q)); background: radial-gradient(circle calc(540 * var(--q)) at 50% calc(17 * var(--q)), color-mix(in srgb, var(--m-accent-text) 26%, transparent) 0, color-mix(in srgb, var(--m-accent-text) 9%, transparent) 30%, transparent 57%); pointer-events: none; }
/* The top of the screen: the menu bar of mac-mocks.css on the frame's grid. The status item stands on
   the centre line; the system items fill the bar from there to the corner of the screen. */
.hs-bar { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0; height: calc(34 * var(--q)); margin-bottom: calc(206 * var(--q)); padding: 0 calc(17 * var(--q)) 0 calc(20 * var(--q)); border-radius: calc(14 * var(--q)) calc(14 * var(--q)) 0 0; background: var(--stage-well); color: var(--on-stage); font-size: calc(17 * var(--q)); }
.hs-bar .mb-left, .hs-bar .mb-left > * { height: calc(34 * var(--q)); }
.hs-bar .mb-left { column-gap: calc(19 * var(--q)); margin-right: calc(12 * var(--q)); }
.hs-bar .mb-apple { width: calc(18 * var(--q)); }
.hs-bar .mb-item { justify-content: center; width: calc(40 * var(--q)); height: calc(28 * var(--q)); margin: 0; padding: 0; border-radius: calc(7 * var(--q)); background: rgba(255, 255, 255, 0.22); }
.hs-bar .mb-item .ico { width: calc(22 * var(--q)); height: calc(22 * var(--q)); }
.hs-bar .mb-right { justify-content: space-between; gap: 0; padding-left: calc(14 * var(--q)); }
.hs-bar .batt { width: calc(32 * var(--q)); height: calc(15.5 * var(--q)); margin-right: calc(4 * var(--q)); border-radius: calc(5 * var(--q)); }
.hs-bar .mb-wifi, .hs-bar .mb-cc { width: calc(22.5 * var(--q)); height: calc(17 * var(--q)); }
/* The sound: a canvas 620 units wide whose top middle is the middle of the icon. Five rings, each a
   100-unit circle scaled to its radius, 40 units apart; only the fan that falls on the keys is shown.
   A ring is heavy and bright near the icon, then thins out and fades. */
.hs-air { position: absolute; left: 50%; top: calc(17 * var(--q)); width: calc(620 * var(--q)); height: auto; aspect-ratio: 620 / 250; translate: -50% 0; pointer-events: none; -webkit-mask-image: conic-gradient(from 180deg at 50% 0, #000 0deg, #000 48deg, transparent 72deg, transparent 288deg, #000 312deg, #000 360deg); mask-image: conic-gradient(from 180deg at 50% 0, #000 0deg, #000 48deg, transparent 72deg, transparent 288deg, #000 312deg, #000 360deg); }
.hs-rings circle { --u: calc(var(--i, 0) + var(--ph)); fill: none; stroke: var(--m-accent-text); stroke-width: calc((6 - var(--u)) / (0.44 + 0.4 * var(--u)) * var(--ink-k, 1) * 1px); transform-origin: 0 0; transform: scale(calc(0.44 + 0.4 * var(--u))); opacity: calc(min(1, var(--u) * 2.5) * (1 - var(--u) / 5.2)); }
.hs-rings circle:nth-child(2) { --i: 1; }
.hs-rings circle:nth-child(3) { --i: 2; }
.hs-rings circle:nth-child(4) { --i: 3; }
.hs-rings circle:nth-child(5) { --i: 4; }
/* A note rides between two rings: --v is its place counted in rings, (--dx, --dy) its direction. */
.hs-notes use { --r: calc(44 + 40 * var(--v)); fill: var(--m-accent-text); transform: translate(calc(var(--dx) * var(--r) * 1px), calc(var(--dy) * var(--r) * 1px)) scale(var(--ink-k, 1)); opacity: calc(min(1, var(--v) * 2) * min(1, (5 - var(--v)) * 0.9)); }
.hs-notes use:nth-child(1) { --dx: -0.44; --dy: 0.9; --v: 2; }
.hs-notes use:nth-child(2) { --dx: 0.5; --dy: 0.87; --v: 3; }
.hs-notes use:nth-child(3) { --dx: 0.05; --dy: 1; --v: 1; }
/* Pinned: the sound follows the scroll. Over the track the rings move out by twenty ring places, and
   every note keeps its place between two rings, born at the icon and gone before the sixth place. */
@supports (opacity: mod(5, 2)) {
  .hue-sound .live .mock.hopstage { --ph: mod(var(--scene-p, 0) * 20, 1); }
  .live .hs-notes use:nth-child(1) { --v: mod(var(--scene-p, 0) * 20 + 2.5, 6); }
  .live .hs-notes use:nth-child(2) { --v: mod(var(--scene-p, 0) * 20 + 4.5, 6); }
  .live .hs-notes use:nth-child(3) { --v: mod(var(--scene-p, 0) * 20 + 0.5, 6); }
}
/* Three keys of one size in a row. */
.hs-bank { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
/* The light that falls on the lit key. --to is the middle of key --at, counted along the bank. */
.hs-bank::before { --to: calc(16.667% - var(--gap) / 3 + var(--at, 0) * (33.333% + var(--gap) / 3)); content: ""; position: absolute; z-index: -1; left: var(--to); top: 50%; width: calc(320 * var(--q)); height: calc(320 * var(--q)); translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--m-accent-text) 36%, transparent) 0, transparent 60%); pointer-events: none; }
.hs-key { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: calc(112 * var(--q)); padding: calc(62.5 * var(--q)) calc(12 * var(--q)) calc(12 * var(--q)); border-radius: calc(22 * var(--q)); background: var(--pad); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hs-key > .ico { position: absolute; left: calc(12 * var(--q)); top: calc(13 * var(--q)); width: calc(34 * var(--q)); height: calc(34 * var(--q)); color: var(--on-stage-soft); }
.hs-key b { font-size: max(11px, calc(17 * var(--q))); font-weight: 600; }
.hs-key .route { font-size: max(9.5px, calc(12 * var(--q))); line-height: 1.35; }
.hs-key.live { background: var(--key-lit); color: var(--key-lit-fg); box-shadow: 0 0 0 calc(5 * var(--q)) color-mix(in srgb, var(--m-accent-text) 36%, transparent), 0 calc(16 * var(--q)) calc(36 * var(--q)) rgba(0, 0, 0, 0.28); }
.hs-key.live > .ico { color: var(--lit); }
.hs-key.live .route { color: var(--key-lit-muted); }
.hs-key .lamp { right: calc(16 * var(--q)); top: calc(21 * var(--q)); width: calc(11 * var(--q)); height: calc(11 * var(--q)); background: var(--lit); box-shadow: 0 0 0 calc(4 * var(--q)) color-mix(in srgb, var(--lit) 22%, transparent); }
.hs-call { position: relative; z-index: 1; display: flex; align-items: center; gap: calc(12 * var(--q)); min-height: max(40px, calc(52 * var(--q))); margin-top: calc(12 * var(--q)); padding: 0 calc(14 * var(--q)); border-radius: calc(16 * var(--q)); background: var(--stage-well); font-size: max(11.5px, calc(14 * var(--q))); }
.hs-call .lab span { font-size: max(10px, calc(11.5 * var(--q))); line-height: 1.3; }
.call .hs-call > .ico { color: var(--m-accent-text); fill: currentColor; }
/* A narrow frame (a phone): three keys in a row cannot hold a device name, so the keys stand one
   under another, each a row with its glyph on the left and the route on one line. The air is shorter. */
@container (max-width: 479px) {
  .hs-bar { margin-bottom: calc(150 * var(--q)); }
  @media (max-height: 700px) { .hs-bar { margin-bottom: calc(110 * var(--q)); } }
  .hs-bank { --gap: 6px; grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; }
  .hs-bank::before { left: 50%; top: var(--to); }
  .hs-key { justify-content: center; min-height: 44px; padding: 7px 30px 7px 44px; border-radius: 12px; }
  .hs-key > .ico { left: 12px; top: 50%; width: 22px; height: 22px; translate: 0 -50%; }
  .hs-key b { font-size: 12.5px; }
  .hs-key .route { font-size: 10px; }
  .hs-key .lamp { right: 14px; top: 50%; width: 7px; height: 7px; translate: 0 -50%; box-shadow: 0 0 0 3px color-mix(in srgb, var(--lit) 22%, transparent); }
}
/* A frame as wide as the page column: the system items stand in the corner of the screen, and the
   label and the switch of the Call mode row keep the width of the middle key. The sound is drawn
   larger, so its fan reaches the outer keys; --ink-k gives the rings and the notes their weight back. */
@container (min-width: 900px) {
  .hs-air { --ink-k: 0.775; width: calc(800 * var(--q)); }
  .hs-bar .mb-right { justify-content: flex-end; gap: calc(16 * var(--q)); }
  .hs-key .route { font-size: clamp(9.5px, calc(12 * var(--q)), 12.5px); }
  .hs-call { padding-inline: calc(33.333% + var(--gap) / 3 + 12 * var(--q)); }
}
@media (prefers-reduced-motion: no-preference) {
  /* A click on the icon: the highlight rings once when its state comes up. */
  @keyframes tap { from { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); } to { box-shadow: 0 0 0 calc(16 * var(--q)) rgba(255, 255, 255, 0); } }
  .live .on .hs-bar .mb-item { animation: tap 0.7s ease-out; }
}
/* Each label of the rail sits in the middle of its own share of the track. */
.calls .scene-rail li { align-items: center; padding-right: 0; text-align: center; }
.call-notes { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; display: grid; gap: 24px 40px; font-size: 0.95rem; color: var(--on-stage-soft); }
.call-notes li { padding-top: 12px; border-top: 2px solid rgba(255, 255, 255, 0.35); }
.call-notes b { display: block; margin-bottom: 2px; color: var(--on-stage); font-weight: 650; }
@media (min-width: 720px) { .call-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Tile art ---------- */
/* The wells take a tint of the product hue; the mocks are the only drawing in them. */
.hue-sound .tile-art { background: var(--tile-well); }
/* Click to hop: a slice of the menu bar, the icon as it looks on each profile. */
.hop { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 14px; background: var(--stage-top); color: var(--on-stage-soft); }
.hop-item { display: grid; place-items: center; width: 52px; height: 36px; border-radius: 9px; background: rgba(255, 255, 255, 0.12); color: var(--on-stage); }
.hop-item.now { background: var(--on-stage); color: var(--stage-top); }
.hop .ico { width: 21px; height: 21px; stroke-width: 1.9; }
.hop > .ico { width: 14px; height: 14px; stroke-width: 2.4; }
/* Appearance: the same lit key in the three accents. */
.looks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: min(460px, 100%); }
.look { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; font-size: 12px; line-height: 1.3; font-weight: 600; color: var(--muted); text-align: center; }
.look .mock.card { width: 100%; padding: 6px; text-align: left; }
@media (max-width: 480px) {
  .looks { gap: 6px; }
  /* Every caption stays on one line, so the three keys keep one baseline. */
  .look { font-size: 11px; letter-spacing: -0.01em; white-space: nowrap; }
  .look .mock.card { padding: 4px; }
  .look .key { padding-inline: 7px; padding-bottom: 8px; }
  .look .key > .ico { left: 7px; }
}
/* A context menu opened on a panel row: it overlaps the row it belongs to. */
.menu-demo { position: relative; width: min(300px, 100%); padding-bottom: 26px; }
.ctx { position: absolute; right: 14px; bottom: 0; padding: 5px; border-radius: 8px; background: var(--m-solid); box-shadow: 0 0 0 0.5px var(--m-edge), 0 8px 24px rgba(0, 0, 0, 0.2); }
.ctx span { display: block; padding: 4px 10px; border-radius: 5px; background: var(--m-accent); color: var(--m-on-accent); white-space: nowrap; }

/* ---------- How to use: every step is a key ---------- */
/* One column: each card is as tall as its text. Two or three columns: every row as tall as the tallest card. */
.hue-sound .usage { gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 620px) { .hue-sound .usage { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; } }
@media (min-width: 960px) { .hue-sound .usage { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hue-sound .usage li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto 1fr; padding: 18px 18px 20px; border: 0; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, 0.06); }
.hue-sound .usage li::before { position: static; grid-area: 2 / 1 / 3 / -1; margin-bottom: 8px; }
.hue-sound .usage li > .ico { grid-area: 1 / 1; width: 30px; height: 30px; margin-bottom: 16px; color: var(--ink); }
.hue-sound .usage li strong { grid-area: 3 / 1 / 4 / -1; align-self: start; font-size: 1.05rem; }
.hue-sound .usage li span { grid-area: 4 / 1 / 5 / -1; margin-top: 4px; }
/* The lamp of a key. One is lit, as in the panel: the first step until a card is pointed at, then
   that card; where there is no pointer, the card in the middle of the screen. */
.u-lamp { grid-area: 1 / 2; width: 8px; height: 8px; margin: 5px 2px 0 0; border-radius: 50%; background: color-mix(in srgb, var(--ink) 16%, transparent); }
@media (hover: hover) {
  .usage:not(:hover) li:first-child .u-lamp, .usage li:hover .u-lamp { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
  .hue-sound .usage li:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 60%, var(--line)), 0 6px 18px rgba(0, 0, 0, 0.08); }
}
@supports (animation-timeline: view()) {
  @media (hover: none) {
    @keyframes lamp-lit { 30%, 70% { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); } }
    .u-lamp { animation: lamp-lit linear both; animation-timeline: view(); animation-range: cover 25% cover 75%; }
  }
}

/* Privacy and permissions: side by side the two lists share one height in three equal rows, so their dividers stand level. */
@media (min-width: 900px) { .hue-sound .perm dl, .hue-sound .facts { align-self: stretch; display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; } }
/* A permission is a label over its line, as a privacy fact is a lead over its sentence: the line has
   the full width of the card at every size. */
.hue-sound .perm dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; align-content: start; }
.hue-sound :is(p, li, dd) { text-wrap: pretty; }
/* A price note is two to four short lines: they are of one length, so no word ends up alone. */
.hue-sound .pr-note { text-wrap: balance; }
/* The notes under the stage are two or three lines each: the lines of a note are of one length. */
.hue-sound .call-notes li { text-wrap: balance; }

/* ---------- Final call: the app icon sounds to both sides ---------- */
/* --cy is the middle of the icon. The rings are 26px apart; the page colour covers them above and
   below the icon and takes them over with the distance. --fade is where the last ring is gone: it
   follows --cy, so no ring reaches the top edge of the block, on a phone either. */
.hue-sound .final-cta {
  --cy: calc(clamp(56px, 8vw, 96px) + 48px);
  --fade: min(230px, calc(var(--cy) * 1.7));
  position: relative;
  overflow: clip;
  background:
    radial-gradient(circle at 50% var(--cy), transparent 64px, var(--bg) var(--fade)),
    conic-gradient(from 0deg at 50% var(--cy), var(--bg) 0deg, var(--bg) 56deg, transparent 70deg, transparent 110deg, var(--bg) 124deg, var(--bg) 236deg, transparent 250deg, transparent 290deg, var(--bg) 304deg, var(--bg) 360deg),
    repeating-radial-gradient(circle at 50% var(--cy), transparent 0, transparent 6px, var(--ring-mid) 7.5px, var(--ring-mid) 9.5px, transparent 11px, transparent 26px);
}
/* A note on each side of the icon, in the gap between two rings: (--dx, --dy) from the icon's middle. */
.fin-note { --s: 22px; position: absolute; left: calc(50% + var(--dx) - var(--s) / 2); top: calc(var(--cy) + var(--dy) - var(--s) / 2); width: var(--s); height: var(--s); fill: var(--ring-note); pointer-events: none; }
.fin-note:nth-of-type(1) { --dx: -125.5px; --dy: -8px; rotate: -10deg; }
.fin-note:nth-of-type(2) { --dx: 125.5px; --dy: 8px; rotate: 8deg; }
