/* =========================================================================
   SIDE KEY SYSTEM — neumorphic theme
   Same markup and class names as the original site; only the look changes:
   soft slate surfaces, raised / pressed shadows, lime accent.
   Fonts are self-hosted (assets/fonts, SIL OFL): Michroma for display,
   Exo 2 (variable 300–700) for text. No third-party requests.
   ========================================================================= */

@font-face {
  font-family: "Michroma";
  font-style: normal;
  font-weight: 400;
  font-display: block;   /* never paint a fallback face first: no width jump when the font arrives */
  src: url("../assets/fonts/michroma-latin.woff2?v=754fdb31c9") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Michroma";
  font-style: normal;
  font-weight: 400;
  font-display: block;   /* never paint a fallback face first: no width jump when the font arrives */
  src: url("../assets/fonts/michroma-latin-ext.woff2?v=389fd1a84c") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Exo 2";
  font-style: normal;
  font-weight: 300 700;
  font-display: block;   /* never paint a fallback face first: no width jump when the font arrives */
  src: url("../assets/fonts/exo2-latin.woff2?v=4a259dde31") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Exo 2";
  font-style: normal;
  font-weight: 300 700;
  font-display: block;   /* never paint a fallback face first: no width jump when the font arrives */
  src: url("../assets/fonts/exo2-latin-ext.woff2?v=a3b66800e9") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* color — legacy names kept because pages use them in inline styles */
  --bg: #171b22;
  --bg-alt: #151920;
  --panel: #1c212a;
  --panel-2: #222833;
  --line: rgba(180, 195, 220, .12);
  --line-bright: rgba(180, 195, 220, .22);
  --text: #edf1fb;
  --text-dim: #a6b1c2;
  --text-faint: #788598;
  --yellow: #d6f52e;          /* accent (was safety yellow) */
  --yellow-dim: #7e8e23;
  --yellow-ambient: rgba(214, 245, 46, .05);
  --lime: #d6f52e;

  /* neumorphic shadows */
  --sh-dark: #0d1015;
  --sh-light: rgba(58, 69, 84, .22);
  --raised: 9px 9px 22px var(--sh-dark), -6px -6px 18px var(--sh-light);
  --raised-sm: 5px 5px 12px var(--sh-dark), -4px -4px 10px var(--sh-light);
  --pressed: inset 6px 6px 14px #0b0e12, inset -5px -5px 12px rgba(58, 69, 84, .18);
  --surface: linear-gradient(145deg, #222833, #181c23);
  --surface-hi: linear-gradient(145deg, #252b35, #171b22);
  --well: #151920;
  --well-deep: #11151b;
  --stage: linear-gradient(145deg, #242b35, #151a21 72%);
  --stage-shadow: inset 7px 7px 19px rgba(118, 132, 151, .13), inset -12px -14px 30px #0b0e13, 22px 26px 60px rgba(0,0,0,.2);
  --header-bg: rgba(23, 27, 34, .92);
  --nav-text: #e1e6f0;
  --eyebrow: #8996ab;
  --accent-ink: #d6f52e;      /* accent used as text colour */
  --glow: rgba(57, 68, 82, .18);
  --bg-top: #1b2029;
  --bg-bottom: #12161c;
  --led-on: #d6f52e;
  --led-off: #4a5464;
  --led-ring: 0 0 0 1px rgba(214, 245, 46, .5), 0 0 22px rgba(214, 245, 46, .18);
  --led-ring-strong: 0 0 0 1px rgba(214, 245, 46, .7), 0 0 30px rgba(214, 245, 46, .35);
  --radius: 22px;

  /* type */
  --font-body: "Exo 2", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Michroma", "Exo 2", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  /* layout */
  --container: 1320px;
  --ease: cubic-bezier(0.16, 0.8, 0.24, 1);

  --mx: 50%;
  --my: 40%;
}

/* ---- light theme (html[data-theme="light"], set by the header toggle) --- */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #e3e8ef;
  --bg-alt: #dde3eb;
  --panel: #e6ebf2;
  --panel-2: #eef2f7;
  --line: rgba(60, 75, 100, .14);
  --line-bright: rgba(60, 75, 100, .26);
  --text: #1c222c;
  --text-dim: #4e5a6b;
  --text-faint: #6f7a8a;
  --accent-ink: #5d7300;
  --yellow-ambient: rgba(93, 115, 0, .06);

  --sh-dark: #b5bfcc;
  --sh-light: rgba(255, 255, 255, .95);
  --raised: 9px 9px 22px var(--sh-dark), -8px -8px 20px var(--sh-light);
  --raised-sm: 5px 5px 12px var(--sh-dark), -5px -5px 12px var(--sh-light);
  --pressed: inset 6px 6px 12px #c3ccd8, inset -6px -6px 12px #ffffff;
  --surface: linear-gradient(145deg, #eaeef4, #dbe1e9);
  --surface-hi: linear-gradient(145deg, #eef2f7, #d9dfe8);
  --well: #dfe5ec;
  --well-deep: #d6dde6;
  --stage: linear-gradient(145deg, #e9edf3, #d3dae4 72%);
  --stage-shadow: inset 8px 8px 20px rgba(255,255,255,.9), inset -12px -14px 30px #bcc6d3, 22px 26px 60px rgba(90,105,130,.18);
  --header-bg: rgba(227, 232, 239, .9);
  --nav-text: #2a323e;
  --eyebrow: #6a7586;
  --glow: rgba(255, 255, 255, .7);
  --bg-top: #eaeef4;
  --bg-bottom: #d8dee7;
  --led-on: #b4d80c;
  --led-off: #b3bcc8;
  --led-ring: 0 0 0 1px rgba(125, 155, 0, .55), 0 0 20px rgba(185, 220, 20, .45);
  --led-ring-strong: 0 0 0 1.5px rgba(125, 155, 0, .7), 0 0 28px rgba(185, 220, 20, .6);
}
:root { color-scheme: dark; }
/* smooth cross-fade only while switching (class added by js/main.js) */
.theme-switching, .theme-switching *:not(.theme-toggle__knob):not(.theme-toggle__icon), .theme-switching *::before, .theme-switching *::after {
  transition: background-color .35s ease, color .35s ease, box-shadow .35s ease, border-color .35s ease !important;
}

/* ---- theme toggle — port of Merlin Alpha's PillToggle (Moon) -----------
   day = amber + sun on the right, night = blue + moon on the left;
   the white knob slides with a back-ease overshoot and widens while pressed,
   glyphs rotate in as they appear.                                         */
.theme-toggle {
  --w: 62px; --h: 30px; --kw: 26px; --on: 0;
  position: relative; flex: none;
  width: var(--w); height: var(--h);
  border-radius: 999px;
  background: #f0a93a;
  box-shadow: inset 0 3px 6px rgba(0,0,0,.22), var(--raised-sm);
  transition: background-color .35s cubic-bezier(.45,0,.55,1);
  -webkit-tap-highlight-color: transparent;
}
:root:not([data-theme="light"]) .theme-toggle { --on: 1; background: #3da0ec; }
.theme-toggle::after {   /* soft reflection on the lower half */
  content: ""; position: absolute; left: 25%; right: 25%; bottom: 3px; height: 30%;
  border-radius: 999px; background: rgba(255,255,255,.12); pointer-events: none;
}
.theme-toggle__knob {
  position: absolute; top: 2px; left: 2px; z-index: 2;
  width: var(--kw); height: calc(var(--h) - 4px);
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #ffffff, #e4e8ec 75%);
  box-shadow: 0 1.5px 2.5px rgba(0,0,0,.35);
  transform: translateX(calc(var(--on) * (var(--w) - 4px - var(--kw))));
  transition: transform .38s cubic-bezier(.5,1.6,.4,1), width .18s ease;
}
.theme-toggle:active { --kw: 31px; }
.theme-toggle__icon {
  position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  color: #fff; pointer-events: none;
  transition: opacity .3s ease, transform .4s cubic-bezier(.5,1.6,.4,1);
}
.theme-toggle__icon--moon { left: 7px;  opacity: 0; transform: translateX(-8px) rotate(-120deg); }
.theme-toggle__icon--sun  { right: 7px; opacity: 1; transform: none; }
:root:not([data-theme="light"]) .theme-toggle__icon--moon { opacity: 1; transform: none; }
:root:not([data-theme="light"]) .theme-toggle__icon--sun  { opacity: 0; transform: translateX(8px) rotate(120deg); }
@media (prefers-reduced-motion: reduce) { .theme-toggle__knob, .theme-toggle__icon { transition: none; } }

/* ---- reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
/* scrollbar-gutter keeps the layout from jumping sideways when a page (or a
   filtered catalog / opened FAQ) gains or loses its vertical scrollbar */
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse at 72% 18%, var(--glow), transparent 42%),
    linear-gradient(135deg, var(--bg-top) 0%, var(--bg) 52%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; }

::selection { background: var(--lime); color: #15191e; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* the old caution-tape motif becomes a thin glowing accent line */
.hazard-stripe { display: none; }

/* ---- typography -------------------------------------------------------- */
/* Michroma is very wide: display sizes are ~2/3 of a regular face and use
   no negative tracking. h3 stays in Exo 2 for readability at small sizes. */
h1, h2, .h1, .h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.22;
  color: var(--text);
}
h1, .h1 { font-size: clamp(1.75rem, 2.4vw + .7rem, 3rem); line-height: 1.18; }
h2, .h2 { font-size: clamp(1.3rem, 1.25vw + .8rem, 1.9rem); }
h3, .h3 { font-family: var(--font-body); font-size: clamp(1.08rem, .4vw + .98rem, 1.3rem); font-weight: 600; letter-spacing: 0; line-height: 1.25; color: var(--text); }

/* mirrored E of the SIDEKƎY wordmark: a real E flipped, because the Ǝ glyph
   is missing from most fonts. The flip would move its letter-spacing to the
   left, so the gap is put back as a right margin (--rev-gap = the tracking). */
.rev { display: inline-block; transform: scaleX(-1); letter-spacing: 0; margin-right: var(--rev-gap, .25em); }

.engraved { text-shadow: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.eyebrow + h1, .eyebrow + h2 { margin-top: 18px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }

.lede { color: var(--text-dim); font-size: 1.05rem; line-height: 1.75; max-width: 58ch; }
.mono { font-family: var(--font-mono); font-size: .92em; }

/* ---- layout ------------------------------------------------------------ */
.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.section--alt { background: transparent; }
.stack { display: flex; flex-direction: column; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- buttons — raised pills with an "LED" behaviour ---------------------
   hover: a lime ring lights up around the button like a front-panel LED,
   and the secondary button's status light turns on;
   press: the button sinks into the surface with a brighter flash.
   Other controls (nav, filters, FAQ, menu) share it in the LED section below. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: box-shadow .3s ease, color .3s ease, transform .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  color: #15191e;
  background: var(--lime);
  font-weight: 600;
  box-shadow: var(--raised-sm), 0 0 22px rgba(214, 245, 46, .15);
}
.btn-primary:hover, .btn-primary:focus-visible { box-shadow: var(--raised-sm), 0 0 0 3px rgba(214, 245, 46, .18), 0 0 36px rgba(214, 245, 46, .55); }
.btn-primary:active { box-shadow: inset 3px 3px 8px rgba(0,0,0,.35), var(--led-ring-strong); }

.btn-ghost {
  color: var(--text);
  background: var(--surface-hi);
  box-shadow: var(--raised);
}
.btn-ghost::before {   /* status light */
  content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--led-off);
  transition: background .3s ease, box-shadow .3s ease;
}
.btn-ghost:hover, .btn-ghost:focus-visible { color: var(--accent-ink); box-shadow: var(--raised), var(--led-ring); }
.btn-ghost:hover::before, .btn-ghost:focus-visible::before, .btn-ghost:active::before { background: var(--led-on); box-shadow: 0 0 6px var(--led-on), 0 0 14px var(--led-on); }
.btn-ghost:active { box-shadow: var(--pressed), var(--led-ring-strong); }

.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }

/* ---- status LEDs — glowing dots ----------------------------------------- */
.led { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); flex: none; }
.led--soon { background: #f5b42e; box-shadow: 0 0 8px #f5b42e; }
.status {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--well);
  box-shadow: var(--pressed);
  font-size: 0.72rem; letter-spacing: 0.08em; color: var(--text-dim);
}
.status.mono { font-family: var(--font-body); }

/* ---- header / nav ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 96px; }

.brand { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; white-space: nowrap; }
.brand img { display: none; }
.brand > span { --rev-gap: .31em; font-family: var(--font-display); font-size: 1.1rem; font-weight: 400; letter-spacing: .31em; line-height: 1; padding-left: .31em; }
.brand em { font-style: normal; color: var(--accent-ink); }
.brand small { font-family: var(--font-display); font-size: .5rem; letter-spacing: .83em; padding-left: .83em; }

.nav-links { display: flex; align-items: center; gap: clamp(6px, 1.8vw, 30px); }
.nav-links a {
  position: relative;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: .9rem;
  color: var(--nav-text);
  transition: background .2s ease, box-shadow .2s ease;
}
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="page"] {
  background: var(--surface-hi);
  box-shadow: var(--raised);
}
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 42px; height: 3px; border-radius: 3px; background: var(--lime); box-shadow: 0 0 10px rgba(214, 245, 46, .5);
}
.nav-cta { display: flex; align-items: center; gap: 18px; }
/* desktop: 3-column header so the menu stays centred whatever the logo width
   (e.g. while the web font swaps in) */
@media (min-width: 961px) {
  .site-header__row { display: grid; grid-template-columns: 1fr auto 1fr; }
  .site-header__row > .brand { justify-self: start; }
  .site-header__row > .nav-cta { justify-self: end; }
}
.nav-cta .btn { padding: 11px 22px; font-size: .82rem; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 14px; align-items: center; justify-content: center; position: relative; background: var(--surface); box-shadow: var(--raised-sm); }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ""; display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-toggle::before { position: absolute; top: 15px; left: 13px; }
.nav-toggle span { position: absolute; top: 22px; left: 13px; }
.nav-toggle::after { position: absolute; top: 29px; left: 13px; background: var(--lime); }
.site-header.is-open .nav-toggle { box-shadow: var(--pressed); }
.site-header.is-open .nav-toggle::before { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle::after { transform: translateY(-7px) rotate(-45deg); }
.site-header.is-open .nav-toggle span { opacity: 0; }

@media (max-width: 960px) {
  .site-header__row { height: 80px; }
  .brand > span { font-size: .92rem; }
  .nav-links { position: fixed; inset: 80px 0 auto 0; flex-direction: column; align-items: stretch; gap: 12px; padding: 20px 16px 28px; background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
  .nav-links a { text-align: center; padding: 15px; font-size: 1rem; }
  .site-header.is-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
}

/* ---- hero (home) -------------------------------------------------------- */
.hero { position: relative; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; z-index: 0; pointer-events: none; }
.hero__mark { display: none; }
.hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(32px, 5vw, 80px);
  min-height: 600px;
  padding-block: 56px 40px;
}
.hero__content { position: relative; z-index: 2; }
.hero h1 { margin-top: 30px; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.hero .lede { margin-top: 28px; max-width: 50ch; }
.hero .cta-row { margin-top: 38px; }

/* plugin mockup on the home hero */
.product-stage { min-height: 460px; display: grid; place-items: center; position: relative; isolation: isolate; }
.product-stage::before {
  content: ""; position: absolute; inset: 0 1%; z-index: -1;
  border-radius: 30% 38% 27% 32% / 35% 31% 33% 30%;
  background: var(--stage);
  box-shadow: var(--stage-shadow);
  transform: rotate(-1.5deg);
}
.plugin {
  --text: #edf1fb; --accent-ink: #d6f52e;   /* the mockup stays a dark device in both themes */
  color: var(--text);
  width: min(100%, 455px);
  padding: 25px 27px 21px;
  border: 1px solid #46505e;
  border-radius: 23px;
  background: linear-gradient(145deg, #1a2029, #11151b);
  box-shadow: 12px 15px 30px rgba(0,0,0,.55), inset 2px 2px 3px rgba(205,220,245,.09), inset -2px -2px 4px rgba(0,0,0,.8);
  transform: rotate(-1deg);
}
.plugin-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.plugin-brand { --rev-gap: .28em; font-family: var(--font-display); font-size: 9px; letter-spacing: .28em; padding-top: 4px; }
.plugin-brand em { font-style: normal; color: var(--accent-ink); }
.plugin-name { text-align: right; font-family: var(--font-display); font-size: 11px; letter-spacing: .1em; }
.plugin-name i { display: inline-block; width: 5px; height: 5px; margin-left: 10px; vertical-align: middle; border-radius: 50%; background: var(--lime); box-shadow: 0 0 6px var(--lime); }
.plugin-name small { display: block; color: #8c96a6; font-size: 9px; margin-top: 5px; letter-spacing: .05em; }
.controls { display: grid; grid-template-columns: 1fr 1.6fr 1fr; align-items: center; gap: 14px; }
.control { text-align: center; color: #a0aaba; font-size: 10px; letter-spacing: .08em; }
.control strong { display: block; color: #8e99a9; font-size: 10px; font-weight: 500; margin-top: 6px; }
.control.main { font-size: 11px; }
.control.main strong { color: var(--accent-ink); margin-top: 7px; }
.knob {
  margin: 0 auto 12px; width: 59px; height: 59px; border-radius: 50%; position: relative;
  background: linear-gradient(145deg, #252c36, #10141a);
  border: 1px solid #07090c;
  box-shadow: 5px 6px 12px #090b0f, -3px -3px 8px rgba(93,105,122,.16), inset 1px 1px 3px rgba(255,255,255,.08);
  touch-action: none;
}
.knob .needle { position: absolute; inset: 0; transform: rotate(var(--rot, 0deg)); }
.knob .needle::after { content: ""; position: absolute; left: 50%; top: 9px; width: 1px; height: 11px; background: #cfd6e2; transform: translateX(-50%); }
.knob.large {
  width: 142px; height: 142px; margin-bottom: 13px; cursor: grab;
  border: 5px solid #11151a;
  box-shadow: 0 0 0 1px #39424d, 0 0 24px rgba(214,245,46,.12), 9px 11px 19px #080a0e, -5px -5px 13px rgba(86,99,117,.16), inset 2px 2px 7px rgba(255,255,255,.06);
}
.knob.large .arc { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); overflow: visible; pointer-events: none; }
.knob.large .needle::after { top: 15px; height: 14px; width: 2px; background: var(--lime); }
.meter-row { margin-top: 19px; padding: 14px 12px 12px; border-top: 1px solid #343d49; display: grid; grid-template-columns: 47px 1fr 47px; gap: 10px; align-items: center; }
.mode-buttons { display: flex; flex-direction: column; gap: 7px; }
.mode-buttons button {
  border: 1px solid #3b4551; border-radius: 8px; padding: 5px 0;
  font-size: 8px; color: #98a4b4;
  box-shadow: 2px 2px 5px #0b0e12, -1px -1px 4px rgba(97,109,128,.1);
}
.mode-buttons button.selected { color: var(--accent-ink); border-color: #7e8e23; box-shadow: inset 2px 2px 5px #0b0e12; }
.meter { height: 73px; border-radius: 10px; overflow: hidden; padding: 5px; background: #0b1013; border: 1px solid #303b42; box-shadow: inset 3px 3px 8px #050709; }
.meter svg { display: block; width: 100%; height: 100%; }

/* readout strip → four raised tiles */
.readout { position: relative; z-index: 2; padding-bottom: 20px; }
.readout__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.readout__item {
  padding: 18px 22px; border-radius: 18px;
  background: var(--surface); box-shadow: var(--raised-sm);
  font-size: .85rem;
}
.readout__item b { display: block; color: var(--text-faint); font-weight: 600; text-transform: uppercase; margin-bottom: 6px; letter-spacing: .25em; font-size: .62rem; }
.readout__item span { font-family: var(--font-display); font-size: .72rem; letter-spacing: .02em; color: var(--accent-ink); }

/* ---- page hero (inner pages) ------------------------------------------- */
.page-hero { border-bottom: 0; }
.page-hero .container { padding-top: clamp(48px, 7vw, 90px); padding-bottom: 20px; }
.page-hero h1 { margin-top: 26px; }
.breadcrumbs { font-size: .78rem; color: var(--text-faint); letter-spacing: .04em; margin-bottom: 30px; }
.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs a:hover { color: var(--accent-ink); }

/* ---- panels ------------------------------------------------------------ */
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--raised); height: 100%; }
.panel__inner { padding: clamp(22px, 3vw, 34px); height: 100%; }

/* ---- product grid / cards ---------------------------------------------- */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 34px; }
.product-card { border-radius: var(--radius); }
.product-card__inner {
  padding: 18px 18px 24px;
  height: 100%;
  display: flex; flex-direction: column; gap: 14px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--raised);
  transform: perspective(1000px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform 0.5s var(--ease), box-shadow .3s ease;
}
.product-card:hover .product-card__inner { box-shadow: 14px 14px 30px var(--sh-dark), -8px -8px 22px var(--sh-light), 0 0 0 1px rgba(214,245,46,.18); }
.product-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-card__tag { font-size: .62rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--text-faint); }
.product-card__shot {
  position: relative; overflow: hidden; aspect-ratio: 16/10;
  display: flex; align-items: center; justify-content: center;
  padding: 8px; border-radius: 14px;
  background: var(--well-deep); box-shadow: var(--pressed);
}
.product-card__shot img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; transition: transform 0.5s var(--ease); }
.product-card:hover .product-card__shot img { transform: scale(1.04); }
.product-card__name { margin-top: 6px; font-family: var(--font-display); font-size: .98rem; font-weight: 400; letter-spacing: .02em; padding-inline: 4px; }
.product-card__desc { color: var(--text-dim); font-size: .93rem; line-height: 1.65; padding-inline: 4px; }
.product-card__foot { margin-top: auto; padding: 6px 4px 0; }
.product-card__link { display: inline-flex; align-items: center; gap: 12px; font-size: .85rem; color: var(--nav-text); }
.product-card__link svg {
  box-sizing: content-box; padding: 9px; border-radius: 50%;
  color: #15191e; background: var(--lime); box-shadow: 0 0 12px rgba(214,245,46,.3);
  transition: transform 0.2s var(--ease);
}
.product-card:hover .product-card__link svg { transform: translateX(3px); }
.product-card--soon .product-card__shot img { filter: grayscale(.6) brightness(.7); }

/* filter bar (catalog page) */
.filter-bar { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; margin-bottom: 40px; border-radius: 999px; background: var(--well); box-shadow: var(--pressed); }
.filter-btn { padding: 10px 22px; border-radius: 999px; font-size: .85rem; color: var(--text-dim); transition: all .2s ease; }
.filter-btn:hover { color: var(--text); }
.filter-btn.is-active { color: var(--text); background: var(--surface-hi); box-shadow: var(--raised-sm); }
/* every filter carries its LED (off / on) so selecting one never changes its width */
.filter-btn::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 9px; vertical-align: middle; border-radius: 50%; background: var(--led-off); transition: background .3s ease, box-shadow .3s ease; }
.filter-btn.is-active::before { background: var(--led-on); box-shadow: 0 0 6px var(--led-on); }

/* ---- product detail page ------------------------------------------------ */
.product-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 3vw, 40px); align-items: start; }
@media (max-width: 900px) { .product-hero { grid-template-columns: 1fr !important; } }
.product-hero__shot {
  position: relative; display: flex; padding: 12px; border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--raised);
}
.product-hero__shot img { width: 100%; height: auto; display: block; border-radius: 12px; }
.product-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.spec-sheet { display: grid; grid-template-columns: max-content 1fr; gap: 0 28px; }
.spec-sheet dt, .spec-sheet dd { padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec-sheet dt:last-of-type, .spec-sheet dd:last-of-type { border-bottom: 0; }
.spec-sheet dt { font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); padding-top: 15px; }
.spec-sheet dd { color: var(--text); font-size: .95rem; }

.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.feature-item { display: flex; gap: 16px; padding: 24px; border-radius: 20px; background: var(--surface); box-shadow: var(--raised-sm); }
.feature-item .led { margin-top: 8px; }
.feature-item h3 { margin-bottom: 8px; }
.feature-item p { color: var(--text-dim); font-size: .92rem; line-height: 1.65; }
/* figures written with inline flat borders in the product pages */
.feature-list figure { border: 0 !important; border-radius: 20px; overflow: hidden; background: var(--surface) !important; box-shadow: var(--raised-sm); padding: 10px !important; }
.feature-list figure > div { border: 0 !important; border-radius: 12px; overflow: hidden; box-shadow: var(--pressed); }
.feature-list figure figcaption { padding: 14px 8px 6px !important; }

/* compare slider (pro vs free) */
.compare {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--well-deep); box-shadow: var(--raised);
  aspect-ratio: 16/10; touch-action: none; user-select: none; cursor: ew-resize;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .compare__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); transform: translateX(-50%); width: 2px; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.compare__grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--surface); color: var(--accent-ink);
  box-shadow: var(--raised-sm); font-size: .8rem;
}
.compare__label { position: absolute; top: 14px; font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; background: var(--header-bg); pointer-events: none; }
.compare__label--left { left: 14px; }
.compare__label--right { right: 14px; }

/* ---- FAQ ---------------------------------------------------------------- */
.faq { display: grid; gap: 16px; }
.faq-item { border-radius: 18px; background: var(--surface); box-shadow: var(--raised-sm); transition: box-shadow .2s ease; }
.faq-item[open] { box-shadow: var(--pressed); background: var(--well); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-weight: 500; font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--accent-ink); font-size: 1.1rem;
  background: var(--surface); box-shadow: var(--raised-sm);
}
.faq-item[open] summary::after { content: "\2212"; background: var(--lime); color: #15191e; box-shadow: 0 0 12px rgba(214,245,46,.3); }
.faq-item p { padding: 0 24px 22px; color: var(--text-dim); max-width: 72ch; line-height: 1.7; }

/* ---- comparison table (free vs pro) ------------------------------------ */
.tier-table { width: 100%; border-collapse: collapse; }
.tier-table th, .tier-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.tier-table tr:last-child td { border-bottom: 0; }
.tier-table thead th { font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); }
.tier-table td:not(:first-child), .tier-table th:not(:first-child) { text-align: center; }
.tier-table .yes { color: var(--accent-ink); font-weight: 700; }
.tier-table .no { color: var(--text-faint); }

/* ---- CTA band ----------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band > .container {
  padding-block: clamp(40px, 6vw, 64px);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--raised);
  max-width: calc(var(--container) - 80px);
}
.cta-band h2 { margin: 18px 0 14px; }
.cta-band .lede { margin-inline: auto; }
.cta-band .cta-row { justify-content: center; margin-top: 30px; }

/* ---- footer ------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-block: 56px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand .brand { align-items: flex-start; }
.footer-brand .brand > span { font-size: .92rem; padding-left: 0; }
.footer-brand .brand small { padding-left: 0; }
.footer-brand p { color: var(--text-dim); font-size: .9rem; max-width: 34ch; margin-top: 18px; line-height: 1.7; }
.footer-col h3 { font-size: .66rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: var(--text-dim); font-size: .92rem; }
.footer-col a:hover { color: var(--accent-ink); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 22px 30px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-size: .74rem; color: var(--text-faint); }
.footer-bottom a:hover { color: var(--accent-ink); }

/* ---- content pages (about / contact / legal) ---------------------------- */
.prose { max-width: 76ch; }
.prose h2 { margin-top: 48px; margin-bottom: 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-dim); margin-top: 12px; line-height: 1.75; }
.prose ul { margin-top: 12px; }
.prose li { color: var(--text-dim); padding-left: 22px; position: relative; margin-top: 9px; }
.prose li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 6px var(--lime); }
.prose .panel { height: auto; margin-top: 28px !important; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 30px; }
.contact-card { display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--raised); }
.contact-card h3 { margin-bottom: 10px; }
.contact-card p { color: var(--text-dim); font-size: .92rem; line-height: 1.65; margin-bottom: 22px; flex: 1; }

/* ---- brand badges (DAWs, distribution, toolchain) ----------------------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 18px; }
.badge {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 12px 22px 12px 12px; border-radius: 18px;
  background: var(--surface); box-shadow: var(--raised-sm);
  font-size: .85rem; color: var(--text-dim);
  transition: box-shadow .2s var(--ease), color .2s var(--ease);
}
.badge:hover { color: var(--text); box-shadow: var(--pressed); }
.badge__mark { flex: none; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: #eef1f6; border-radius: 12px; padding: 6px; }
.badge__mark img { width: 100%; height: 100%; object-fit: contain; }
.badge__text { display: flex; flex-direction: column; gap: 3px; }
.badge b { color: var(--text); font-weight: 500; line-height: 1.1; }
.badge span { color: var(--text-faint); font-size: .76rem; }

/* ---- applications page -------------------------------------------------- */
.app-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.app-row + .app-row { margin-top: clamp(56px, 7vw, 90px); }
.app-row:nth-child(even) .app-row__copy { order: 2; }
.app-row__copy h2 { margin: 20px 0 14px; letter-spacing: .04em; }
@media (max-width: 900px) { .app-row { grid-template-columns: 1fr; } .app-row:nth-child(even) .app-row__copy { order: 0; } }

/* ---- LED behaviour on the other controls --------------------------------- */
.nav-links a, .filter-btn, .nav-toggle { transition: background .2s ease, box-shadow .3s ease, color .3s ease, transform .15s ease; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--accent-ink); box-shadow: var(--raised), var(--led-ring); }
.nav-links a:active { transform: scale(.98); box-shadow: var(--pressed), var(--led-ring-strong); }
.filter-btn:hover { color: var(--accent-ink); }
.filter-btn:active { transform: scale(.98); box-shadow: var(--pressed), var(--led-ring-strong); }
.nav-toggle:hover { box-shadow: var(--raised-sm), var(--led-ring); }
.nav-toggle:active { box-shadow: var(--pressed), var(--led-ring-strong); }
.faq-item summary::after { transition: box-shadow .3s ease, background .3s ease, color .3s ease; }
.faq-item summary:hover::after { box-shadow: var(--raised-sm), var(--led-ring); }
.faq-item summary:active::after { box-shadow: var(--pressed), var(--led-ring-strong); }
.compare__grip { transition: box-shadow .3s ease; }
.compare:hover .compare__grip { box-shadow: var(--raised-sm), var(--led-ring); }
.product-card__link svg { transition: transform 0.2s var(--ease), box-shadow .3s ease; }
.product-card:hover .product-card__link svg { box-shadow: 0 0 0 3px rgba(214, 245, 46, .18), 0 0 22px rgba(214, 245, 46, .55); }

/* ---- page-to-page transition ----------------------------------------------
   Cross-document View Transitions (Chromium, Safari 18.2+): the next page
   fades in over the previous one; the header has its own name so it stays
   perfectly still between pages. Browsers without support just navigate. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; animation-timing-function: ease; }

/* ---- scroll reveal ------------------------------------------------------ */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---- 404 ----------------------------------------------------------------- */
.error-page { min-height: 70vh; display: flex; align-items: center; text-align: center; }
.error-page .container { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.error-code {
  font-family: var(--font-display); font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 400; color: var(--accent-ink);
  padding: 10px 50px; border-radius: 40px; background: var(--surface); box-shadow: var(--raised);
  text-shadow: 0 0 30px rgba(214,245,46,.3);
}

/* ---- language switch (EN | FR) — a two-way selector in a pressed well,
   the current language is raised with its LED lit, like the filter bar ---- */
.lang-switch { display: inline-flex; flex: none; gap: 3px; padding: 4px; border-radius: 999px; background: var(--well); box-shadow: var(--pressed); }
.lang-switch a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 999px;
  font-family: var(--font-display); font-size: .62rem; letter-spacing: .14em;
  color: var(--text-faint);
  transition: color .3s ease, background .2s ease, box-shadow .3s ease, transform .15s ease;
}
.lang-switch a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--led-off); transition: background .3s ease, box-shadow .3s ease; }
.lang-switch a[aria-current="true"] { color: var(--text); background: var(--surface-hi); box-shadow: var(--raised-sm); }
.lang-switch a[aria-current="true"]::before { background: var(--led-on); box-shadow: 0 0 6px var(--led-on); }
.lang-switch a:not([aria-current="true"]):hover, .lang-switch a:not([aria-current="true"]):focus-visible { color: var(--accent-ink); box-shadow: var(--led-ring); }
.lang-switch a:active { transform: scale(.96); }

/* the Beta entry of the menu carries an amber "in development" LED */
.nav-links a.nav-beta::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; vertical-align: middle; border-radius: 50%; background: #f5b42e; box-shadow: 0 0 7px #f5b42e; }

/* six menu entries: tighter pills on desktop, burger menu up to 1120px */
@media (min-width: 1121px) {
  .nav-links { gap: clamp(4px, .9vw, 14px); }
  .nav-links a { padding: 12px 17px; }
}
@media (max-width: 1120px) {
  .site-header__row { display: flex; height: 80px; }
  .brand > span { font-size: .92rem; }
  .nav-links { position: fixed; inset: 80px 0 auto 0; flex-direction: column; align-items: stretch; gap: 12px; padding: 20px 16px 28px; background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
  .nav-links a { text-align: center; padding: 15px; font-size: 1rem; }
  .site-header.is-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-toggle { display: flex; }
  .nav-cta { gap: 12px; }
}
@media (max-width: 420px) {
  .lang-switch a { padding: 7px 9px; gap: 5px; }
  .nav-cta { gap: 8px; }
}

/* ---- credits (designer / developer) ------------------------------------- */
.credit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.credit-card { display: flex; flex-direction: column; gap: 8px; padding: 30px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--raised); }
.credit-card__role { font-size: .66rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--text-faint); }
.credit-card__name { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: .04em; }
.credit-card p { color: var(--text-dim); font-size: .92rem; line-height: 1.65; flex: 1; }
.credit-card .btn { align-self: flex-start; margin-top: 10px; }
.footer-credits { display: inline-flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-credits a { color: var(--text-dim); border-bottom: 1px solid var(--line-bright); }
.footer-credits a:hover { color: var(--accent-ink); border-color: currentColor; }

/* ---- beta programme ----------------------------------------------------- */
.beta-product + .beta-product { margin-top: clamp(64px, 8vw, 110px); }
.beta-product__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px 24px; margin-bottom: 30px; }
.beta-product__head h2 { letter-spacing: .04em; }
.beta-product .lede + .lede { margin-top: 14px; }
.beta-product__credit { margin-top: 22px; font-size: .85rem; color: var(--text-faint); }
.beta-product__credit a { color: var(--text-dim); border-bottom: 1px solid var(--line-bright); }
.beta-product__credit a:hover { color: var(--accent-ink); }
.beta-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 30px; }
@media (max-width: 760px) { .beta-shots { grid-template-columns: 1fr; } }
.beta-shots figure { padding: 10px; border-radius: 20px; background: var(--surface); box-shadow: var(--raised-sm); }
.beta-shots img { width: 100%; height: auto; border-radius: 12px; }
.beta-shots figcaption { padding: 12px 6px 4px; font-size: .8rem; color: var(--text-faint); }
.bullet-columns { columns: 2 300px; column-gap: 40px; margin-top: 18px; }
.bullet-columns li { break-inside: avoid; position: relative; padding-left: 22px; margin-bottom: 10px; color: var(--text-dim); font-size: .93rem; line-height: 1.6; }
.bullet-columns li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 6px var(--lime); }
.product-card__shot--beta::after { content: attr(data-stage); position: absolute; top: 12px; right: 12px; padding: 5px 11px; border-radius: 999px; font-size: .6rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #1c1405; background: #f5b42e; box-shadow: 0 0 14px rgba(245, 180, 46, .45); }

/* ---- manuals ---------------------------------------------------------------
   Long-form reading pages: a sticky chapter list beside the text, numbered
   control legends (the numbers match the figures of the PDF edition). ---- */
.manual-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 4px; font-size: .85rem; }
.manual-links a { color: var(--nav-text); border-bottom: 1px solid var(--line-bright); }
.manual-links a:hover { color: var(--accent-ink); border-color: currentColor; }
.manual-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.manual-toc { position: sticky; top: 118px; padding: 20px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--raised-sm); }
.manual-toc__title { display: block; margin: 0 0 12px 10px; font-size: .62rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--text-faint); }
.manual-toc ol { display: grid; gap: 2px; }
.manual-toc a { display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 8px 10px; border-radius: 12px; font-size: .86rem; line-height: 1.4; color: var(--text-dim); transition: color .2s ease, background .2s ease, box-shadow .3s ease; }
.manual-toc a span { font-family: var(--font-display); font-size: .6rem; color: var(--text-faint); padding-top: 3px; }
.manual-toc a:hover, .manual-toc a:focus-visible { color: var(--accent-ink); background: var(--well); box-shadow: var(--pressed); }
@media (max-width: 960px) {
  .manual-layout { grid-template-columns: 1fr; }
  .manual-toc { position: static; }
  .manual-toc ol { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
}
.manual-body { min-width: 0; max-width: 82ch; }
.manual-body > p { color: var(--text-dim); margin-top: 14px; line-height: 1.75; }
.manual-body > p:first-child, .manual-body > .manual-note:first-child { margin-top: 0; }
.manual-body > .manual-chapter:first-of-type { margin-top: clamp(44px, 5vw, 60px); }
.manual-chapter { scroll-margin-top: 112px; }
.manual-chapter + .manual-chapter { margin-top: clamp(56px, 7vw, 88px); }
.manual-chapter h2 { margin-top: 16px; }
.manual-chapter h3 { margin-top: 34px; }
.manual-chapter p { color: var(--text-dim); margin-top: 12px; line-height: 1.75; }
.manual-chapter p strong, .manual-chapter li strong { color: var(--text); font-weight: 600; }
.manual-chapter .prose-list { margin-top: 12px; }
.manual-chapter .prose-list li { position: relative; padding-left: 22px; margin-top: 9px; color: var(--text-dim); line-height: 1.7; }
.manual-chapter .prose-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 6px var(--lime); }
.manual-figure { margin-top: 26px; padding: 10px; border-radius: 20px; background: var(--surface); box-shadow: var(--raised-sm); }
.manual-figure img { width: 100%; height: auto; border-radius: 12px; }
.manual-figure--narrow { max-width: 420px; }
.manual-figure figcaption { padding: 12px 8px 4px; font-size: .8rem; color: var(--text-faint); }
.callouts { margin-top: 20px; counter-reset: none; }
.callouts li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--text-dim); font-size: .95rem; line-height: 1.6; }
.callouts li:last-child { border-bottom: 0; }
.callouts__n { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--well); box-shadow: var(--pressed); font-family: var(--font-display); font-size: .62rem; color: var(--accent-ink); align-self: start; }
.callouts b { color: var(--text); font-weight: 600; }
.manual-note { margin-top: 22px; padding: 18px 22px; border-radius: 18px; background: var(--well); box-shadow: var(--pressed); color: var(--text-dim); line-height: 1.7; }
.manual-note b { color: var(--accent-ink); font-weight: 600; }
.manual-table { margin-top: 20px; padding: 6px 18px; border-radius: 18px; background: var(--surface); box-shadow: var(--raised-sm); overflow-x: auto; }
.manual-table .tier-table td:not(:first-child), .manual-table .tier-table th:not(:first-child) { text-align: left; }
.manual-end { margin-top: clamp(56px, 7vw, 88px); }

/* ---- utility classes ----------------------------------------------------------
   The CSP (_headers: style-src 'self') blocks style="..." attributes, so
   one-off spacing and tweaks live here as classes. !important keeps them as
   strong as the inline styles they replace. Never add style="" to a page. */
.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px !important; }
.mt-10 { margin-top: 10px !important; }
.mt-14 { margin-top: 14px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-18 { margin-top: 18px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-22 { margin-top: 22px !important; }
.mt-24 { margin-top: 24px !important; }
.mt-26 { margin-top: 26px !important; }
.mt-28 { margin-top: 28px !important; }
.mt-32 { margin-top: 32px !important; }
.mt-36 { margin-top: 36px !important; }
.mt-44 { margin-top: 44px !important; }
.mt-56 { margin-top: 56px !important; }
.jc-center { justify-content: center !important; }
.cols-auto-280 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important; }
.cols-2 { grid-template-columns: 1fr 1fr !important; }
@media (max-width: 700px) { .cols-2 { grid-template-columns: 1fr !important; } }
.img-fluid { width: 100%; height: auto; display: block; }
.x-figure { margin: 0 !important; background: var(--panel); border: 1px solid var(--line); padding: 0 !important; }
.x-shot { background: #000; border: 1px solid var(--line); }
.x-figcap { padding: 14px 16px !important; font-size: .85rem; color: var(--text-dim); }
.x-quote { font-style: italic; color: var(--text); }
.x-lede-strong { font-size: 1.1rem; color: var(--text); }
.x-small-note { font-size: .78rem; color: var(--text-faint); }
.x-accent { color: var(--accent-ink); }
.x-glow { filter: drop-shadow(0 0 3px rgba(214, 245, 46, .7)); }

/* ---- phones & tablets: tighter rhythm --------------------------------------
   The desktop spacing (big sections, wide gaps, tall heroes) reads as empty
   space on a small screen: every vertical gap is scaled down here. */
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 1120px) {
  .section { padding-block: clamp(44px, 7vw, 80px); }
  .page-hero .container { padding-top: clamp(32px, 5vw, 64px); }
}
@media (max-width: 760px) {
  .container { padding-inline: 18px; }
  .site-header__row { height: 66px; gap: 12px; }
  .nav-links { inset: 66px 0 auto 0; padding: 14px 14px 20px; gap: 8px; }
  .nav-links a { padding: 12px; }
  .nav-toggle { width: 42px; height: 42px; border-radius: 12px; }
  .nav-toggle::before { top: 13px; left: 11px; }
  .nav-toggle span { top: 20px; left: 11px; }
  .nav-toggle::after { top: 27px; left: 11px; }
  .theme-toggle { --w: 54px; --h: 28px; --kw: 24px; }
  .theme-toggle__icon { width: 14px; height: 14px; margin-top: -7px; }

  .section { padding-block: 40px; }
  .section--tight { padding-block: 28px; }
  .page-hero .container { padding-top: 26px; padding-bottom: 4px; }
  .breadcrumbs { margin-bottom: 16px; }
  .page-hero h1, .eyebrow + h1, .eyebrow + h2 { margin-top: 12px; }
  .lede { font-size: 1rem; line-height: 1.65; }
  .mt-44, .mt-36, .mt-56 { margin-top: 26px !important; }
  .mt-28, .mt-32 { margin-top: 20px !important; }

  .hero__grid { padding-block: 28px 16px; gap: 24px; }
  .hero h1 { margin-top: 18px; }
  .hero .lede { margin-top: 16px; }
  .hero .cta-row { margin-top: 24px; }
  .product-stage { min-height: 300px; }
  .readout__row { gap: 12px; }
  .readout__item { padding: 12px 14px; border-radius: 14px; }

  .cta-row { gap: 12px; }
  .btn { padding: 12px 22px; }
  .grid-products { gap: 22px; }
  .product-card__inner { padding: 14px 14px 18px; gap: 11px; }
  .feature-list { gap: 14px; }
  .feature-item { padding: 18px; gap: 12px; border-radius: 16px; }
  .panel__inner { padding: 20px; }
  .product-hero { gap: 18px; }
  .product-hero__shot { padding: 8px; }
  .product-meta { margin-top: 18px; gap: 8px; }
  .status { padding: 6px 11px; font-size: .68rem; }
  .badge-row { gap: 10px; }
  .badge { padding: 9px 16px 9px 9px; gap: 10px; border-radius: 14px; }
  .badge__mark { width: 32px; height: 32px; }
  .contact-grid, .credit-grid { gap: 18px; }
  .contact-card, .credit-card { padding: 22px; }
  .faq { gap: 10px; }
  .faq-item summary { padding: 16px 18px; }
  .faq-item p { padding: 0 18px 18px; }
  .prose h2 { margin-top: 32px; }
  .app-row + .app-row { margin-top: 44px; }
  .cta-band > .container { padding-block: 32px; margin-inline: 14px; width: auto; }
  .cta-band .cta-row { margin-top: 20px; }

  .beta-product + .beta-product { margin-top: 40px; }
  .beta-product__head { margin-bottom: 18px; }
  .beta-shots { gap: 16px; margin-top: 20px; }
  .bullet-columns li { margin-bottom: 8px; }

  .manual-layout { gap: 22px; }
  .manual-toc { padding: 14px; }
  .manual-toc ol { grid-template-columns: 1fr 1fr; }
  .manual-toc a { padding: 6px 8px; font-size: .8rem; grid-template-columns: 22px 1fr; }
  .manual-chapter + .manual-chapter { margin-top: 44px; }
  .manual-body > .manual-chapter:first-of-type { margin-top: 32px; }
  .manual-chapter h3 { margin-top: 24px; }
  .manual-figure { margin-top: 18px; padding: 6px; border-radius: 14px; }
  .callouts li { grid-template-columns: 28px 1fr; gap: 10px; padding: 9px 0; font-size: .92rem; }
  .callouts__n { width: 24px; height: 24px; font-size: .56rem; }
  .manual-note { padding: 14px 16px; margin-top: 16px; }
  .manual-table { padding: 2px 10px; }
  .manual-table .tier-table th, .manual-table .tier-table td { padding: 10px 8px; font-size: .86rem; }
  .manual-end { margin-top: 44px; }

  .site-footer { margin-top: 16px; }
  .footer-grid { gap: 26px 20px; padding-block: 34px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { margin-top: 12px; }
  .footer-col h3 { margin-bottom: 12px; }
  .footer-col li { margin-bottom: 8px; }
  .footer-bottom { padding-block: 16px 22px; gap: 8px; }
}
@media (max-width: 420px) {
  .container { padding-inline: 14px; }
  /* header must fit a 360 px phone: logo + EN|FR + theme + menu */
  .site-header__row { gap: 8px; }
  .brand > span { font-size: .78rem; --rev-gap: .24em; letter-spacing: .24em; padding-left: .24em; }
  .brand small { font-size: .42rem; }
  .nav-cta { gap: 6px; }
  .lang-switch { padding: 3px; gap: 2px; }
  .lang-switch a { padding: 6px 8px; gap: 0; }
  .lang-switch a::before { display: none; }
  .theme-toggle { --w: 48px; --h: 26px; --kw: 22px; }
  .theme-toggle__icon { width: 12px; height: 12px; margin-top: -6px; }
  .theme-toggle__icon--moon { left: 5px; }
  .theme-toggle__icon--sun { right: 5px; }
  .nav-toggle { width: 40px; height: 40px; }
  .nav-toggle::before { top: 12px; left: 10px; }
  .nav-toggle span { top: 19px; left: 10px; }
  .nav-toggle::after { top: 26px; left: 10px; }
  .cta-row .btn { flex: 1 1 auto; }
  .manual-toc ol { grid-template-columns: 1fr; }
  .tier-table th, .tier-table td { padding: 10px 8px; font-size: .86rem; }
}

/* ---- responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; padding-top: clamp(28px, 6vw, 48px); }
  .product-stage { min-height: 420px; }
  .readout__row { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 520px) {
  .product-stage { min-height: 330px; }
  .plugin { padding: 18px 15px 15px; }
  .knob.large { width: 105px; height: 105px; }
  .controls { gap: 5px; }
  .meter-row { grid-template-columns: 39px 1fr 39px; gap: 6px; padding: 12px 4px 4px; }
  .readout__item { padding: 14px 16px; }
  .eyebrow { letter-spacing: .3em; }
  .grid-products { grid-template-columns: 1fr; }
  .filter-bar { display: flex; }
  .filter-btn { flex: 1; padding: 10px 8px; }
  .cta-band > .container { border-radius: 24px; }
  .spec-sheet { grid-template-columns: 1fr; }
  .spec-sheet dt { border-bottom: 0; padding-bottom: 0; }
}
