/*
  Ondo Air: earbuds product page (Screenery template)
  Quiet premium minimalism: one warm-grey ground for the whole page, near-black ink, oversized Schibsted Grotesk
  for the product name and small precise captions for everything else. The only colour is the chosen finish.

  Contents
   1. Tokens (ground, ink, finishes, type, space)
   2. Base and browser surfaces
   3. Components: buttons, icon buttons, swatches, segmented control, switch, fields, spinner
   4. Header
   5. The show: sticky stage (canvas over the drawn fallback), callouts, hero and steps
   6. Sound and the noise cancelling scope
   7. Battery
   8. Specs
   9. Compare
  10. In the box
  11. Buy box
  12. Questions
  13. Footer
  14. Narrow screens
  15. Motion
*/

/* ---------- 1. Tokens ---------- */
:root {
  /* The ground: one warm grey, used everywhere */
  --ground: #dad5ce;
  --ground-up: #e3dfd9;      /* a lifted tint for the chosen column and fields */
  --ground-down: #cfc9c1;    /* wells, tracks */
  --ink: #1d1b19;            /* 12.6:1 on the ground */
  --ink-2: #514c46;          /* secondary text, 6.1:1 */
  --line: rgb(29 27 25 / 0.16);
  --line-strong: rgb(29 27 25 / 0.42);
  --on-ink: #ece8e2;
  --error: #8f2f1c;          /* brick, 5.9:1 on the ground */
  --ok: #2f5a3c;             /* moss, 5.9:1 */

  /* The finish (set per colour below). Drawn fallback, swatches and buy preview read these. */
  --fin: #ece8e1;
  --fin-shade: #c9c3b9;
  --fin-tip: #d9d4cc;
  --fin-etch: #8e867b;
  --inner: #2b2926;
  --inner-2: #1d1b19;

  /* Type */
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --fs-cap: 0.8125rem;       /* captions, 13px */
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-h2: clamp(2rem, 1.3rem + 2.6vw, 3.75rem);
  --fs-hero: clamp(6rem, 1rem + 11vw, 12.5rem); /* the product name is the composition */

  /* Space */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 80px;
  --s-9: clamp(112px, 14vw, 220px); /* between sections: the whitespace is the design */
  --gutter: clamp(16px, 4vw, 64px);
  --wrap: 1320px;

  /* Shape */
  --r-1: 4px;
  --r-2: 10px;
  --r-pill: 999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* exponential ease-out */
  --header-h: 64px;
}

html[data-color="graphite"] { --fin: #3d3c3a; --fin-shade: #262524; --fin-tip: #2e2d2b; --fin-etch: #8a857e; --inner: #1a1918; --inner-2: #0f0e0e; }
html[data-color="sage"]     { --fin: #a8b19e; --fin-shade: #848d7b; --fin-tip: #c5cbbb; --fin-etch: #5f6857; --inner: #2b2f28; --inner-2: #1b1e19; }
html[data-color="clay"]     { --fin: #c89b81; --fin-shade: #a37a63; --fin-tip: #dcc1b0; --fin-etch: #7f573f; --inner: #33261f; --inner-2: #1f1713; }

/* ---------- 2. Base and browser surfaces ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--ground);
  color: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: var(--s-5);
  accent-color: var(--ink);
  caret-color: var(--ink);
  scrollbar-color: var(--ink-2) var(--ground-down);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font: 400 var(--fs-md)/1.55 var(--sans);
  background: var(--ground);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ink); color: var(--on-ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
img, svg, canvas { display: block; }
table { border-collapse: collapse; }
button, input { font: inherit; color: inherit; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: var(--s-4); top: -60px; z-index: 50; padding: var(--s-3) var(--s-4); background: var(--ink); color: var(--on-ink); border-radius: var(--r-1); }
.skip:focus { top: var(--s-4); }

.h2 { font-size: var(--fs-h2); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; max-width: 18ch; }

/* ---------- 3. Components ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5);
  border: 1px solid var(--ink); border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: -0.005em; text-decoration: none;
  cursor: pointer; position: relative;
  transition: background-color 300ms var(--ease-out), color 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.btn--ink { background: var(--ink); color: var(--on-ink); }
.btn--ink:hover { background: #3a3633; border-color: #3a3633; }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ground-up); }
.btn--sm { min-height: 44px; padding: 0 var(--s-4); }
.btn--wide { width: 100%; min-height: 56px; font-size: var(--fs-md); }
.btn:active { transform: scale(0.985); }
.btn[disabled] { cursor: progress; }
.btn .icon { width: 18px; height: 18px; }

.iconbtn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color 250ms var(--ease-out), border-color 250ms var(--ease-out);
}
.iconbtn:hover { background: var(--ground-up); border-color: var(--ink); }

/* Finish swatches: real radios, drawn as glossy chips */
.finish { border: 0; padding: 0; margin: 0; min-width: 0; }
.finish__legend { padding: 0; font-size: var(--fs-cap); color: var(--ink-2); margin-bottom: var(--s-3); }
.finish__legend span[data-finish-name] { color: var(--ink); font-weight: 600; }
.finish__stock { margin-left: var(--s-2); }
.finish__stock.is-out { color: var(--error); font-weight: 600; }
.swatches { display: flex; gap: var(--s-2); }
.swatch { position: relative; display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.swatch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.swatch__chip {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgb(255 255 255 / 0.55), transparent 55%), var(--sw);
  box-shadow: inset 0 0 0 1px rgb(29 27 25 / 0.18), 0 1px 2px rgb(29 27 25 / 0.18);
  outline: 1px solid transparent; outline-offset: 5px;
  transition: outline-color 250ms var(--ease-out), transform 250ms var(--ease-out);
}
.swatch:hover .swatch__chip { transform: scale(1.06); }
.swatch input:checked + .swatch__chip { outline-color: var(--ink); }
.swatch input:focus-visible + .swatch__chip { outline: 2px solid var(--ink); outline-offset: 5px; }
.swatch.is-out .swatch__chip::after { content: ""; position: absolute; left: 50%; top: 9px; width: 1.5px; height: 26px; background: var(--ink); transform: rotate(45deg); }

/* Segmented control */
.seg { display: inline-flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: 3px; margin: 0; min-width: 0; }
.seg__legend { float: left; width: 100%; padding: 0; font-size: var(--fs-cap); color: var(--ink-2); margin: 0 0 var(--s-2); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 40px; padding: 0 var(--s-4); border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 500; transition: background-color 300ms var(--ease-out), color 300ms var(--ease-out); }
.seg input:checked + span { background: var(--ink); color: var(--on-ink); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.seg label:hover input:not(:checked) + span { background: var(--ground-up); }
.seg:has(.seg__legend) { border: 0; padding: 0; display: block; }
.seg:has(.seg__legend) label { display: inline-block; }
.seg:has(.seg__legend) label:first-of-type span { border-radius: var(--r-pill) 0 0 var(--r-pill); }
.seg:has(.seg__legend) label:last-of-type span { border-radius: 0 var(--r-pill) var(--r-pill) 0; }
.seg:has(.seg__legend) span { border: 1px solid var(--line-strong); margin-left: -1px; border-radius: 0; }

/* Switch */
.toggle { display: flex; align-items: center; gap: var(--s-4); }
.toggle__label { font-size: var(--fs-sm); font-weight: 600; }
.switch { display: inline-flex; align-items: center; gap: var(--s-3); min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.switch__track { position: relative; width: 52px; height: 30px; border-radius: var(--r-pill); background: var(--ground-down); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color 350ms var(--ease-out); }
.switch__thumb { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--ground-up); box-shadow: 0 1px 3px rgb(29 27 25 / 0.3); transition: transform 350ms var(--ease-out); }
.switch[aria-checked="true"] .switch__track { background: var(--ink); }
.switch[aria-checked="true"] .switch__thumb { transform: translateX(22px); }
.switch__state { font-size: var(--fs-sm); color: var(--ink-2); min-width: 2.5em; text-align: left; font-variant-numeric: tabular-nums; }

/* Fields */
.field { display: grid; gap: var(--s-2); }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.field__label { font-size: var(--fs-sm); font-weight: 600; }
.field__opt { font-weight: 400; color: var(--ink-2); margin-left: var(--s-1); }
.field__count { font-size: var(--fs-cap); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.field__count.is-full { color: var(--ink); font-weight: 600; }
.field__input {
  width: 100%; min-height: 52px; padding: 0 var(--s-4);
  background: var(--ground-up); border: 1px solid var(--line-strong); border-radius: var(--r-2);
  font-size: var(--fs-md); letter-spacing: 0.04em;
  transition: border-color 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
}
.field__input::placeholder { color: #5f5952; letter-spacing: 0; }
.field__input:hover { border-color: var(--ink-2); }
.field__input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field__hint { font-size: var(--fs-cap); color: var(--ink-2); line-height: 1.45; }
.field.is-error .field__input { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field.is-error .field__hint { color: var(--error); font-weight: 500; }

.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; border-right-color: transparent; animation: spin 800ms linear infinite; }
.is-loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(1turn); } }

/* ---------- 4. Header ---------- */
.top {
  display: flex; align-items: center; gap: var(--s-5);
  height: var(--header-h); padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
}
.mark { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.06em; text-decoration: none; margin-right: auto; }
.nav { display: flex; gap: var(--s-5); }
.nav a { font-size: var(--fs-sm); text-decoration: none; color: var(--ink-2); padding: var(--s-3) 0; transition: color 200ms; }
.nav a:hover { color: var(--ink); text-decoration: underline; }
.top__bag { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--s-2); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; font-variant-numeric: tabular-nums; }
.top__bag.is-bumped span { animation: bump 600ms var(--ease-out); }
@keyframes bump { 30% { transform: translateY(-4px); } }
.top__bag span { display: inline-block; }

/* ---------- 5. The show ---------- */
.show {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  padding-left: var(--gutter);
}
.flow { grid-column: 1; grid-row: 1; }
.stage {
  grid-column: 2; grid-row: 1;
  position: sticky; top: 0; align-self: start;
  height: 100vh; height: 100svh;
  container-type: size;
  overflow: hidden;
}
.stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 900ms var(--ease-out); cursor: grab; touch-action: pan-y; outline-offset: -6px; }
.stage__canvas:active { cursor: grabbing; }
.gl .stage__canvas { opacity: 1; }

/* the square figure: the drawing lives in it, and so do the callouts */
.figure { position: absolute; inset: 0; margin: auto; width: min(100cqw, 100cqh); height: min(100cqw, 100cqh); pointer-events: none; }
.drawn { width: 100%; height: 100%; transition: opacity 700ms var(--ease-out); }
.gl .drawn { opacity: 0; }

.d-fin { fill: var(--fin); transition: fill 700ms var(--ease-out); }
.d-shade { fill: var(--fin-shade); transition: fill 700ms var(--ease-out); }
.d-tip { fill: var(--fin-tip); transition: fill 700ms var(--ease-out); }
.d-inner { fill: var(--inner); transition: fill 700ms var(--ease-out); }
.d-inner-2 { fill: var(--inner-2); transition: fill 700ms var(--ease-out); }
.d-well { fill: #0d0c0b; opacity: 0.85; }
.d-seam { stroke: rgb(0 0 0 / 0.28); stroke-width: 1.2; fill: none; }
.d-led { fill: #f6f3ec; stroke: rgb(0 0 0 / 0.2); stroke-width: 0.6; }
.d-cone { fill: #d6cab4; stroke: #a39780; stroke-width: 1; }
.d-magnet { fill: #3b3a38; }
.d-copper { fill: #b8734f; }
.d-board { fill: #22302a; }
.d-gold { fill: #c9a55c; }
.d-band { fill: #2b2a28; }

/* callouts: a dot on the part, a hairline, and two lines of caption */
.callouts { position: absolute; inset: 0; }
.callout {
  position: absolute; left: var(--fx); top: var(--fy);
  display: flex; align-items: center; gap: 0;
  font-size: var(--fs-cap); line-height: 1.3; white-space: nowrap;
}
.callout__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px rgb(218 213 206 / 0.85); flex: none; margin-left: -4.5px; }
.callout__line { width: 40px; height: 1px; background: var(--ink); flex: none; }
.callout__text { padding: 0 var(--s-2); color: var(--ink-2); }
.callout__text b { display: block; color: var(--ink); font-weight: 600; }
.callout--left { flex-direction: row-reverse; transform: translate(calc(-100% + 4.5px), -50%); }
.callout--left .callout__dot { margin: 0 -4.5px 0 0; }
.callout--left .callout__text { text-align: right; }
.callout--right { transform: translate(-4.5px, -50%); }
.callout--right .callout__dot { margin: 0; }
.callout--up { flex-direction: column-reverse; transform: translate(-50%, calc(-100% + 4.5px)); text-align: center; }
.callout--up .callout__dot { margin: -4.5px 0 0; }
.callout--up .callout__line { width: 1px; height: 34px; }
.callout--up .callout__text { padding: 0 0 var(--s-2); }
.callout--down { flex-direction: column; transform: translate(-50%, -4.5px); text-align: center; }
.callout--down .callout__dot { margin: 0 0 -4.5px; }
.callout--down .callout__line { width: 1px; height: 30px; }
.callout--down .callout__text { padding: var(--s-2) 0 0; }
/* with WebGL the script places each callout over its 3D point and fades it with the exploded view */
.gl .callout { left: 0; top: 0; opacity: var(--o, 0); }
.gl .callout--left { transform: translate(var(--x, 0), var(--y, 0)) translate(calc(-100% + 4.5px), -50%); }
.gl .callout--right { transform: translate(var(--x, 0), var(--y, 0)) translate(-4.5px, -50%); }
.gl .callout--down { transform: translate(var(--x, 0), var(--y, 0)) translate(-50%, -4.5px); }
.gl .callout--up { transform: translate(var(--x, 0), var(--y, 0)) translate(-50%, calc(-100% + 4.5px)); }
.gl [data-gl="down"] { flex-direction: column; transform: translate(var(--x, 0), var(--y, 0)) translate(-50%, -4.5px); }
.gl [data-gl="down"] .callout__dot { margin: 0 0 -4.5px; }
.gl [data-gl="down"] .callout__line { width: 1px; height: 30px; }
.gl [data-gl="down"] .callout__text { padding: var(--s-2) 0 0; text-align: center; }

.stage__caption { position: absolute; left: var(--s-5); bottom: var(--s-5); font-size: var(--fs-cap); color: var(--ink-2); max-width: 30ch; }
.stage__caption [data-fig-caption] { color: var(--ink); }
.stage__hint { display: none; }
.gl .stage__hint { display: inline; }
.stage__turn { position: absolute; right: var(--gutter); bottom: var(--s-4); display: none; gap: var(--s-2); }
.gl .stage__turn { display: flex; }

/* Hero and steps, scrolling beside the stage */
.step { min-height: 92vh; min-height: 92svh; display: flex; flex-direction: column; justify-content: center; gap: var(--s-4); padding: var(--s-8) var(--s-6) var(--s-8) 0; max-width: 34rem; }
.step p { color: var(--ink-2); max-width: 44ch; }
.step__title { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.step__fact { font-size: var(--fs-sm); color: var(--ink) !important; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.step__fact span { display: inline-block; min-width: 6.5em; color: var(--ink-2); font-size: var(--fs-cap); }
.step--inside { min-height: 100vh; min-height: 100svh; }

.hero { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); justify-content: flex-end; padding-top: var(--s-6); padding-bottom: var(--s-7); max-width: none; gap: var(--s-5); }
.hero__lead-in { font-size: var(--fs-sm); color: var(--ink) !important; font-weight: 500; }
.hero__title {
  font-size: var(--fs-hero); font-weight: 700; line-height: 0.84; letter-spacing: -0.06em;
  margin: 0 0 var(--s-3) -0.06em;
}
.hero__lede { font-size: var(--fs-md); max-width: 40ch !important; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__small { font-size: var(--fs-cap); }

.parts { display: grid; gap: var(--s-5); margin: var(--s-3) 0 0; }
.parts div { border-top: 1px solid var(--line); padding-top: var(--s-3); display: grid; grid-template-columns: 9.5em 1fr; gap: var(--s-4); }
.parts dt { font-weight: 600; font-size: var(--fs-sm); }
.parts dd { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); }

/* shared section frame */
.sound, .battery, .specs, .compare, .box, .buy, .faq { max-width: var(--wrap); margin: 0 auto; padding: var(--s-9) var(--gutter) 0; }

/* ---------- 6. Sound ---------- */
.sound { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-7) var(--s-8); align-items: start; }
.sound__text { display: grid; gap: var(--s-5); }
.sound__text > p { color: var(--ink-2); max-width: 52ch; }
.anc-controls { display: grid; gap: var(--s-5); padding-top: var(--s-3); }
.scope { margin: 0; display: grid; gap: var(--s-2); padding-top: var(--s-2); }
.scope__lane { display: grid; grid-template-columns: 8.5rem 1fr; align-items: center; gap: var(--s-4); border-top: 1px solid var(--line); padding: var(--s-3) 0; }
.scope__name { font-size: var(--fs-cap); color: var(--ink-2); }
.scope__wave { width: 100%; height: 88px; overflow: visible; }
.scope__wave path { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.scope__mid { stroke: var(--line) !important; stroke-dasharray: 2 4; }
.w-noise { stroke: var(--ink-2); }
.w-anti { stroke: var(--ink-2); stroke-dasharray: 1 0; opacity: 0.8; }
.w-ear { stroke: var(--ink); stroke-width: 2 !important; }
.scope__read { display: flex; align-items: baseline; gap: var(--s-4); border-top: 1px solid var(--ink); padding-top: var(--s-4); font-size: var(--fs-sm); color: var(--ink-2); }
.scope__db { font-size: var(--fs-lg); font-weight: 700; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; min-width: 4.2em; }
.sound__facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin: 0; }
.sound__facts div, .battery__notes div { border-top: 1px solid var(--line); padding-top: var(--s-3); }
.sound__facts dt, .battery__notes dt { font-size: var(--fs-cap); color: var(--ink-2); }
.sound__facts dd, .battery__notes dd { margin: var(--s-1) 0 0; font-size: var(--fs-md); }

/* ---------- 7. Battery ---------- */
.battery { display: grid; gap: var(--s-6); }
.battery__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s-5); }
.sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-3) var(--s-5); padding-top: var(--s-5); font-size: var(--fs-sm); color: var(--ink-2); }
.sum__term b { display: block; font-size: clamp(2.5rem, 1.6rem + 3vw, 4.75rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.sum__op { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); color: var(--ink-2); font-weight: 300; }
.sum__term--total b { font-weight: 800; }
.bar { display: flex; gap: 3px; height: 64px; }
.bar__seg { width: var(--w); background: var(--ground-down); border-radius: var(--r-1); position: relative; transition: width 700ms var(--ease-out); box-shadow: inset 0 0 0 1px var(--line); }
.bar__seg--buds { background: var(--ink); }
.bar__seg span { position: absolute; left: var(--s-3); bottom: var(--s-2); font-size: var(--fs-cap); color: var(--ink); white-space: nowrap; }
.bar__seg--buds span { color: var(--on-ink); }
.bar__scale { display: flex; justify-content: space-between; font-size: var(--fs-cap); color: var(--ink-2); font-variant-numeric: tabular-nums; margin-top: calc(var(--s-4) * -1); }
.battery__notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin: var(--s-4) 0 0; }

/* ---------- 8. Specs ---------- */
.specs__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7) var(--s-8); margin-top: var(--s-7); }
.spec { width: 100%; font-size: var(--fs-sm); }
.spec caption { text-align: left; font-size: var(--fs-cap); font-weight: 600; padding-bottom: var(--s-3); border-bottom: 1px solid var(--ink); }
.spec th, .spec td { text-align: left; vertical-align: top; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.spec th { font-weight: 400; color: var(--ink-2); width: 42%; padding-right: var(--s-4); }

/* ---------- 9. Compare ---------- */
.compare__scroll { margin-top: var(--s-7); overflow-x: auto; overscroll-behavior-x: contain; }
.compare__hint { display: none; margin-top: var(--s-4); font-size: var(--fs-cap); color: var(--ink-2); }
.cmp { width: 100%; min-width: 680px; font-size: var(--fs-sm); }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.cmp tbody th { font-weight: 400; color: var(--ink-2); padding-left: 0; width: 22%; }
.cmp thead th { padding-top: var(--s-5); padding-bottom: var(--s-4); border-bottom: 1px solid var(--ink); font-weight: 400; }
.cmp__name { display: block; font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.02em; }
.cmp__price { display: block; }
.cmp__line { display: block; font-size: var(--fs-cap); color: var(--ink-2); }
.cmp .is-this { background: var(--ground-up); }
.cmp thead .is-this { border-radius: var(--r-2) var(--r-2) 0 0; }

/* ---------- 10. In the box ---------- */
.plate { margin: var(--s-7) 0 0; display: grid; gap: var(--s-6); }
.plate__art { width: 100%; height: auto; }
.plate .line { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.plate .keys text { font: 600 15px var(--sans); fill: var(--ink); text-anchor: middle; }
.key { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-4); font-size: var(--fs-sm); color: var(--ink-2); }
.key li { border-top: 1px solid var(--line); padding-top: var(--s-3); }
.key b { color: var(--ink); margin-right: var(--s-2); }
.box__note { margin-top: var(--s-5); font-size: var(--fs-sm); color: var(--ink-2); }

/* ---------- 11. Buy box ---------- */
.buy { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-7) var(--s-8); align-items: center; }
.buy__preview { display: grid; gap: var(--s-4); justify-items: center; }
.mini { width: min(100%, 520px); height: auto; }
.mini__etch { font: 600 17px var(--sans); letter-spacing: 0.3em; fill: var(--fin-etch); transition: fill 700ms var(--ease-out); }
.buy__caption { font-size: var(--fs-cap); color: var(--ink-2); text-align: center; }
.buy__form { display: grid; gap: var(--s-6); }
.buy__title { font-size: clamp(3rem, 2rem + 3vw, 5rem); font-weight: 700; letter-spacing: -0.055em; line-height: 0.9; }
.buy__price { font-size: var(--fs-lg); font-weight: 600; font-variant-numeric: tabular-nums; margin-top: calc(var(--s-4) * -1); }
.buy__vat { font-size: var(--fs-cap); color: var(--ink-2); font-weight: 400; margin-left: var(--s-2); }
.buy__terms { list-style: none; padding: 0; margin: 0; font-size: var(--fs-cap); color: var(--ink-2); display: grid; gap: var(--s-1); }
.buy__terms li::before { content: ""; display: inline-block; width: 12px; height: 1px; background: var(--ink-2); vertical-align: middle; margin-right: var(--s-2); }
.btn--wide .btn__label { transition: opacity 200ms; }
.notify { display: grid; gap: var(--s-4); }
.notify[hidden], .status[hidden], .buy__actions[hidden] { display: none; }
.notify__text { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--fs-sm); color: var(--error); font-weight: 500; }
.notify__row { display: flex; gap: var(--s-2); }
.notify__row .field__input { flex: 1; min-width: 0; }

.status { display: grid; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-radius: var(--r-2); border: 1px solid var(--line-strong); font-size: var(--fs-sm); }
.status__head { display: flex; gap: var(--s-2); align-items: center; font-weight: 600; }
.status--ok .status__head { color: var(--ok); }
.status--error { border-color: var(--error); }
.status--error .status__head { color: var(--error); }
.status__rows { display: grid; gap: var(--s-1); margin: 0; color: var(--ink-2); }
.status__rows div { display: flex; justify-content: space-between; gap: var(--s-4); }
.status__rows dd { margin: 0; color: var(--ink); }
.status__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.status .btn { min-height: 44px; }

/* ---------- 12. Questions ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-7) var(--s-8); }
.faq__list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  min-height: 64px; padding: var(--s-3) 0; font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 14px no-repeat; transition: transform 400ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 var(--s-5); color: var(--ink-2); max-width: 64ch; }

/* ---------- 13. Footer ---------- */
.foot { max-width: var(--wrap); margin: var(--s-9) auto 0; padding: var(--s-7) var(--gutter) var(--s-8); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-6) var(--s-8); font-size: var(--fs-sm); color: var(--ink-2); }
.foot__mark { font-size: 3rem; font-weight: 800; letter-spacing: -0.07em; color: var(--ink); line-height: 1; margin-bottom: var(--s-4); }
.foot__brand p:last-child { line-height: 1.7; }
.foot__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.foot__nav div { display: grid; align-content: start; gap: var(--s-1); }
.foot__nav a { text-decoration: none; padding: var(--s-1) 0; min-height: 32px; }
.foot__nav a:hover { color: var(--ink); text-decoration: underline; }
.foot__head { color: var(--ink); font-weight: 600; margin-bottom: var(--s-2); }
.foot__small { grid-column: 1 / -1; font-size: var(--fs-cap); }

/* ---------- 14. Narrow screens ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .sound, .faq, .buy, .foot { grid-template-columns: minmax(0, 1fr); }
  .buy__preview { order: -1; }
  .key { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .show { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .stage { grid-column: 1; height: 54vh; height: 54svh; z-index: 2; background: var(--ground); border-bottom: 1px solid var(--line); }
  .flow { grid-column: 1; grid-row: 2; padding: 0 var(--gutter); }
  .step { min-height: 64vh; min-height: 64svh; justify-content: flex-start; padding: var(--s-7) 0 var(--s-8); }
  .hero { min-height: 0; justify-content: flex-start; padding-top: var(--s-6); }
  .step--inside { min-height: 72vh; min-height: 72svh; }
  .stage__caption { left: var(--gutter); bottom: var(--s-3); max-width: 18ch; }
  .stage__turn { right: var(--gutter); bottom: var(--s-3); }
  .callout__line { width: 22px; }
  .specs__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .sound__facts, .battery__notes { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .key { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bar { height: 52px; }
  .bar__seg span { font-size: 0.75rem; left: var(--s-2); }
}
@media (max-width: 560px) {
  :root { --fs-hero: clamp(5.5rem, 1rem + 22vw, 8rem); }
  /* the drawing steps left and shrinks so its callouts fit beside it */
  .figure { width: min(84cqw, 100cqh); height: min(84cqw, 100cqh); left: 0; right: auto; margin: auto 0; }
  .top { gap: var(--s-3); }
  .top .btn--sm { padding: 0 var(--s-3); }
  .scope__lane { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); }
  .scope__wave { height: 64px; }
  .parts div { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); }
  .sum { gap: var(--s-2) var(--s-4); }
  .bar__seg:not(.bar__seg--buds) span { display: none; }
  .bar__seg--buds span { display: block; }
  .faq summary { font-size: var(--fs-md); }
  .foot__nav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .notify__row { flex-direction: column; }
  /* compare: the row names stay put while the three models swipe under them */
  .compare__hint { display: block; }
  .cmp { min-width: 600px; }
  .cmp tbody th, .cmp thead td { position: sticky; left: 0; z-index: 1; background: var(--ground); width: 7.5rem; padding-right: var(--s-3); }
  .seg:has(.seg__legend) span { padding: 0 var(--s-3); }
}

/* ---------- 15. Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .spinner { animation: none; border-right-color: currentColor; opacity: 0.6; }
}
