/* ==========================================================================
   Mixbar — site styles (index, support, privacy)
   Visual identity: studio gear. The hero shows the real menu bar panel (a screen recording of the app);
   right under it, a compact mixing console (one channel strip per app) carries the identity, and the same parts
   come back as texture: level-meter dividers, rubber keys, status LEDs, silkscreen-style mono labels.
   Colour does a job instead of decorating: the level-meter scale (green nominal, amber hot, red clipping)
   appears only on meters, LEDs and active/hover states. Everything else is warm ink on a light, calm page.
   Two type voices: the system humanist sans for everything you read, a monospace for labels and numbers.
   ========================================================================== */

:root {
  --bg: #fbfaf7;
  --bg-alt: #f4f1ec;
  --surface: #ffffff;
  --line: rgba(28, 26, 23, 0.09);
  --line-strong: rgba(28, 26, 23, 0.15);

  --ink: #1c1a17;        /* ~16.5:1 on --bg */
  --text-2: #55504a;     /* ~7.8:1 on --bg, ~6.5:1 on --plate */
  --text-3: #736d66;     /* ~4.9:1 on --bg (AA for body text) */
  --silk: #4a4540;       /* silkscreen labels: ~7:1 on --plate */

  /* Brushed faceplate (console, spec plate, closing plate) */
  --plate-hi: #f5f3ee;
  --plate: #ece9e3;
  --plate-lo: #e3dfd8;
  --plate-edge: rgba(28, 26, 23, 0.14);
  --groove: rgba(28, 26, 23, 0.11);
  --groove-hi: rgba(255, 255, 255, 0.72);
  --well: #1e1c19;       /* meter windows and displays */

  /* The meter scale: the only colour on the site */
  --led-green: #34c060;
  --led-amber: #f5a623;
  --led-red: #ec4a4a;
  --led-off: #cac5bc;
  --green-ink: #1f7a3f;  /* green as text on light backgrounds (~5.1:1 on --bg) */
  --display-green: #6ee79a;
  --display-red: #ff8a80;

  --meter-scale: linear-gradient(to top, var(--led-green) 0 70%, var(--led-amber) 70% 90%, var(--led-red) 90%);
  --meter-scale-dim: linear-gradient(to top, rgba(52, 192, 96, 0.2) 0 70%, rgba(245, 166, 35, 0.22) 70% 90%, rgba(236, 74, 74, 0.24) 90%);

  --shadow-plate:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(28, 26, 23, 0.05),
    0 1px 2px rgba(40, 34, 26, 0.06),
    0 28px 60px -34px rgba(40, 34, 26, 0.42);
  --shadow-card: 0 1px 2px rgba(28, 26, 23, 0.04), 0 18px 40px -30px rgba(40, 34, 26, 0.35);

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 20px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji";
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --container: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 64px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-fader: cubic-bezier(0.65, 0, 0.25, 1);
}

/* ---------- Reset / base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

p a,
.list a,
.accordion-inner a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(28, 26, 23, 0.3);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: text-decoration-color 0.15s;
}
p a:hover,
.list a:hover,
.accordion-inner a:hover { text-decoration-color: var(--led-green); }

::selection { background: rgba(52, 192, 96, 0.2); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

/* ==========================================================================
   Hardware parts, reused everywhere
   ========================================================================== */

/* Silkscreen label: small mono caps, like the printing on a faceplate. */
.silk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--silk);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.silk b { color: var(--ink); font-weight: 800; }

/* Status LED. Off by default; .is-on lights it green, .led--red is a red lamp. */
.led {
  display: inline-block;
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--led-off);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.28), 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: background-color 0.15s, box-shadow 0.15s;
}
.led--red { background: #dcc4bf; }
.led.is-on,
.step.is-visible .led,
.no-js .step .led {
  background: radial-gradient(circle at 35% 35%, #a6f2bf, var(--led-green) 62%);
  box-shadow: 0 0 0 2px rgba(52, 192, 96, 0.16), 0 0 8px rgba(52, 192, 96, 0.65);
}
.led--red.is-on {
  background: radial-gradient(circle at 35% 35%, #ffb3ad, var(--led-red) 62%);
  box-shadow: 0 0 0 2px rgba(236, 74, 74, 0.16), 0 0 8px rgba(236, 74, 74, 0.6);
}

/* Screw heads in the corners of a faceplate. */
.screw {
  position: absolute;
  z-index: 1;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fbfaf7, #c9c4bb 70%);
  box-shadow: inset 0 0 0 1px rgba(28, 26, 23, 0.18), 0 1px 0 rgba(255, 255, 255, 0.9);
  pointer-events: none;
}
.screw::after {
  content: "";
  position: absolute;
  top: 50%; left: 2px; right: 2px;
  height: 1.5px;
  margin-top: -0.75px;
  border-radius: 1px;
  background: rgba(28, 26, 23, 0.38);
  transform: rotate(-35deg);
}
.screw--tl { top: 12px; left: 12px; }
.screw--tr { top: 12px; right: 12px; }
.screw--tr::after { transform: rotate(20deg); }
.screw--bl { bottom: 12px; left: 12px; }
.screw--bl::after { transform: rotate(65deg); }
.screw--br { bottom: 12px; right: 12px; }

/* Brushed faceplate surface. */
.console,
.cta-plate,
.specs {
  border: 1px solid var(--plate-edge);
  background: linear-gradient(180deg, var(--plate-hi) 0%, var(--plate) 45%, var(--plate-lo) 100%);
  box-shadow: var(--shadow-plate);
}

/* ---------- Buttons: keys with a little physical weight ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(28, 26, 23, 0.2);
  border-radius: 10px;
  background: linear-gradient(#ffffff, #efece6);
  color: var(--ink);
  box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba(28, 26, 23, 0.1), 0 2px 0 rgba(28, 26, 23, 0.08);
  font: inherit;
  font-size: 0.975rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, background 0.15s;
}
.btn:hover { background: linear-gradient(#ffffff, #e8e4dd); }
.btn:active {
  transform: translateY(1px) scale(0.975);
  box-shadow: inset 0 1px 3px rgba(28, 26, 23, 0.18);
}

.btn-primary {
  border-color: #0d0c0b;
  background: linear-gradient(#34302b, #1c1a17);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 1px 0 #0d0c0b,
    0 2px 0 rgba(13, 12, 11, 0.55),
    0 8px 18px -8px rgba(28, 26, 23, 0.55);
}
.btn-primary:hover { background: linear-gradient(#3e3a34, #26231f); }
.btn-primary:active {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.55), 0 0 0 #0d0c0b;
}

/* A small LED inside primary keys: lights on hover/focus, like a lit transport key. */
.btn-led {
  width: 6px; height: 6px;
  margin-left: 2px;
  border-radius: 50%;
  background: #4d4842;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.5);
  transition: background-color 0.12s, box-shadow 0.12s;
}
.btn:hover .btn-led,
.btn:focus-visible .btn-led,
.btn:active .btn-led {
  background: var(--led-green);
  box-shadow: 0 0 0 2px rgba(52, 192, 96, 0.2), 0 0 8px rgba(52, 192, 96, 0.85);
}

.btn-sm { min-height: 36px; padding: 0 14px; border-radius: 9px; font-size: 0.9rem; }
.btn-lg { min-height: 56px; padding: 0 22px 0 24px; border-radius: 12px; font-size: 1.08rem; }

.btn-icon { flex: none; width: 20px; height: 20px; margin-left: -4px; }

/* Download (free) and Buy a license (paid): always a pair. */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.9);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.brand-mark { width: 30px; height: 30px; }

.nav-menu { display: flex; align-items: center; gap: 6px; }

.nav-links { display: flex; gap: 2px; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 0.95rem;
  font-weight: 550;
  transition: color 0.15s, background-color 0.15s;
}
.nav-links a:hover { color: var(--ink); background: rgba(28, 26, 23, 0.05); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--led-green);
  box-shadow: 0 0 6px rgba(52, 192, 96, 0.7);
}
.nav-cta { margin-left: 10px; }
.nav-cta + .nav-cta { margin-left: 2px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid rgba(28, 26, 23, 0.2);
  border-radius: 10px;
  background: linear-gradient(#ffffff, #efece6);
  color: var(--ink);
  box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba(28, 26, 23, 0.1);
  cursor: pointer;
  transition: transform 0.08s ease-out;
}
.nav-toggle:active { transform: translateY(1px) scale(0.96); }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px; height: 2px;
  margin-inline: auto;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .js .nav-toggle { display: block; }

  .js .nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 24px 50px -24px rgba(40, 34, 26, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.25s var(--ease-out), visibility 0s linear 0.25s;
  }
  .js .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s, transform 0.25s var(--ease-out), visibility 0s;
  }
  .js .nav-links { flex-direction: column; gap: 2px; }
  .js .nav-links a { min-height: 46px; font-size: 1rem; }
  .js .nav-cta { margin: 4px 0 0; min-height: 48px; }
  .js .nav-cta + .nav-cta { margin-top: 0; }

  /* Without JS, keep a compact, always-visible nav. */
  .no-js .nav-links { display: none; }
}
/* No JS on a phone: the two nav keys don't fit beside the brand, and the hero has both anyway. */
@media (max-width: 480px) {
  .no-js .nav-cta--buy { display: none; }
}

/* ==========================================================================
   Hero: headline and CTA beside the menu bar panel
   ========================================================================== */

.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 40px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 40px clamp(32px, 5vw, 72px);
}
.hero-copy .silk { margin-bottom: 20px; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 5.2vw, 4.3rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.048em;
  text-wrap: balance;
}

.hero-lede {
  max-width: 30rem;
  margin-top: 24px;
  color: var(--text-2);
  font-size: clamp(1.05rem, 1.4vw, 1.17rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 30px;
}
.meta {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-visual { min-width: 0; container-type: inline-size; }
.hero-caption {
  margin-top: 16px;
  color: var(--text-3);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- The real recording of the panel (menu bar and wallpaper are in the footage) ---------- */

.hero-video {
  position: relative;
  border: 1px solid rgba(28, 26, 23, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #c9dff0; /* the recording's wallpaper blue, until the poster paints */
  box-shadow: var(--shadow-card);
}
.hero-video video {
  display: block;
  width: 100%;
  height: auto; /* the width/height attributes reserve the 1080 x 1094 box, so nothing shifts on load */
}

/* Pause / play: WCAG 2.2.2 asks for a way to stop motion that loops. Only shown with JS (main.js unhides it). */
.video-toggle {
  position: absolute;
  left: 12px; /* over the wallpaper, clear of the panel's own buttons */
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(28, 26, 23, 0.55);
  color: #fff;
  cursor: pointer;
  opacity: 0.8;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.video-toggle[hidden] { display: none; }
.video-toggle:hover,
.video-toggle:focus-visible { opacity: 1; background: rgba(28, 26, 23, 0.75); }
.video-toggle:focus-visible { border-radius: 999px; }
.video-toggle-icon { width: 14px; height: 14px; fill: currentColor; }
.video-toggle-play,
.video-toggle.is-paused .video-toggle-pause { display: none; }
.video-toggle.is-paused .video-toggle-play { display: inline; }

/* ==========================================================================
   The desk: a compact console illustration under the hero (secondary visual)
   ========================================================================== */

.desk-section { padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 7vw, 88px); }
.desk {
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(0, 400px);
  justify-content: center;
  align-items: center;
  gap: 40px clamp(40px, 6vw, 88px);
}
.desk-visual { min-width: 0; }
.desk-caption {
  margin-top: 14px;
  color: var(--text-3);
  font-size: 0.85rem;
  text-align: center;
}
.desk-hint { display: none; }
.js .desk-hint { display: inline; }

/* ---------- The console ---------- */

.console {
  --strip-h: 156px;   /* fader travel + meter height */
  --cap-h: 26px;      /* fader cap */
  position: relative;
  border-radius: var(--radius-lg);
}

.console-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 32px 10px;
  border-bottom: 1px solid var(--groove);
  box-shadow: 0 1px 0 var(--groove-hi);
}
.console-rail .silk { font-size: 0.66rem; }

.strips {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 18px 14px 24px;
}

.strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 0 6px;
}
.strip + .strip { border-left: 1px solid var(--groove); box-shadow: inset 1px 0 0 var(--groove-hi); }

.strip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 96px;
}
.strip-num {
  color: var(--silk);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.out-display,
.readout {
  min-width: 56px;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--well);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.85);
  font-family: var(--font-mono);
  text-align: center;
  white-space: nowrap;
}
.out-display {
  color: #dcd8cf;
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.08em;
}

.mute-key {
  display: grid;
  place-items: center;
  width: 46px; height: 22px;
  border: 1px solid rgba(28, 26, 23, 0.2);
  border-radius: 5px;
  background: linear-gradient(#fdfcfa, #e4e0d9);
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 rgba(28, 26, 23, 0.14);
  color: var(--silk);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.08s;
}
.mute-key.is-lit {
  border-color: #b53038;
  background: linear-gradient(#ff8c80, #e5484d);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 0 rgba(28, 26, 23, 0.14), 0 0 14px rgba(236, 74, 74, 0.45);
  transform: translateY(1px);
}

.strip-body {
  display: flex;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: var(--strip-h);
  margin: 2px 0 12px;
}

/* Fader scale: 100 at the top of the travel, 0 at the bottom (Mixbar's own unit is a percentage). */
.scale { position: relative; flex: none; width: 22px; }
.scale i {
  position: absolute;
  right: 0;
  bottom: calc(var(--at) * (100% - var(--cap-h)) + var(--cap-h) / 2);
  transform: translateY(50%);
  color: var(--silk);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
}
.scale i::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -7px;
  width: 4px; height: 1px;
  background: currentColor;
}
.scale i:nth-child(1) { --at: 1; }
.scale i:nth-child(2) { --at: 0.75; }
.scale i:nth-child(3) { --at: 0.5; }
.scale i:nth-child(4) { --at: 0.25; }
.scale i:nth-child(5) { --at: 0; }

.fader {
  --pos: var(--level, 1);
  position: relative;
  flex: none;
  width: 26px;
}
.fader::before {
  /* the slot the cap rides in */
  content: "";
  position: absolute;
  top: calc(var(--cap-h) / 2 - 5px);
  bottom: calc(var(--cap-h) / 2 - 5px);
  left: calc(50% - 2px);
  width: 4px;
  border-radius: 2px;
  background: #24211d;
  box-shadow: inset 0 1px 2px #000, 0 1px 0 rgba(255, 255, 255, 0.9);
}
.fader-cap {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(var(--pos) * (100% - var(--cap-h)));
  height: var(--cap-h);
  border-radius: 4px;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #45403a 0%, #24211d 48%, #1a1815 52%, #2b2823 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 5px 7px -3px rgba(0, 0, 0, 0.5), 0 1px 1px rgba(0, 0, 0, 0.3);
}
.fader-cap::after {
  /* the white index line across the cap */
  content: "";
  position: absolute;
  top: 50%; left: 3px; right: 3px;
  height: 2px;
  margin-top: -1px;
  background: #f4f1ec;
}

/* Level meter: two LED columns (L and R) in a dark window. 20 segments: 14 green, 4 amber, 2 red. */
.meter {
  position: relative;
  display: flex;
  flex: none;
  gap: 3px;
  padding: 4px;
  border-radius: 4px;
  background: var(--well);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.85);
}
.meter::after {
  content: "L R";
  position: absolute;
  left: 0; right: 0;
  bottom: -15px;
  color: var(--silk);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  word-spacing: -1px;
}
.meter-bar {
  position: relative;
  width: 6px;
  background: var(--meter-scale-dim);
  -webkit-mask: linear-gradient(to top, #000 72%, transparent 72%) left bottom / 100% 5% repeat-y;
  mask: linear-gradient(to top, #000 72%, transparent 72%) left bottom / 100% 5% repeat-y;
}
.meter-lit,
.meter-peak {
  position: absolute;
  inset: 0;
  background: var(--meter-scale);
}
.meter-lit { clip-path: inset(calc((1 - var(--l, 0)) * 100%) 0 0 0); }
.meter-peak { clip-path: inset(calc((1 - var(--p, 0)) * 100%) 0 calc(max(var(--p, 0) - 0.05, 0) * 100%) 0); }

.readout {
  color: var(--display-green);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 6px rgba(110, 231, 154, 0.45);
}
.readout.is-mute { color: var(--display-red); text-shadow: 0 0 6px rgba(255, 138, 128, 0.45); }
.readout.is-idle { color: rgba(110, 231, 154, 0.5); text-shadow: none; }

/* Scribble strip: the name label at the foot of each channel. */
.scribble {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 112px;
  padding: 5px 7px;
  border: 1px solid rgba(28, 26, 23, 0.1);
  border-radius: 4px;
  background: #fdfcf9;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}
.scribble svg { flex: none; width: 16px; height: 16px; }
.scribble span {
  min-width: 0;
  overflow: hidden;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strip.is-idle .fader-cap { filter: saturate(0.8); }

/* Status: lamps for what Mixbar does and doesn't do, beside the desk. */
.status-title { margin: 0; font-size: 0.72rem; }
.lamps { display: grid; gap: 14px; margin-top: 18px; }
.lamp {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  row-gap: 3px;
}
.lamp .led { grid-row: 1; }
.lamp-key {
  color: var(--silk);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lamp-text {
  grid-column: 2;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.45;
}
.lamp-text b { color: var(--ink); font-weight: 650; }
.status-more { margin-top: 20px; padding-left: 20px; font-size: 0.9rem; }

/* Drag a fader (cosmetic): main.js moves the cap, the readout and the meter with it. */
.js .console.is-on .fader { cursor: grab; touch-action: none; }
.js .console.is-on .fader:hover .fader-cap { filter: brightness(1.25); }
.js .strip.is-dragging .fader { cursor: grabbing; }
.js .strip.is-dragging .fader-cap { transition: none; filter: brightness(1.25); }

.power-led { margin-left: 2px; }
.console.is-on .power-led,
.no-js .power-led {
  background: radial-gradient(circle at 35% 35%, #a6f2bf, var(--led-green) 62%);
  box-shadow: 0 0 0 2px rgba(52, 192, 96, 0.16), 0 0 8px rgba(52, 192, 96, 0.65);
}

/* Power-on: before .is-on, the desk is dark and every fader sits at the bottom. main.js adds .is-on, the
   faders fly to their stored levels one strip after another, and the meters run a quick lamp test.
   Motion-only: with reduced motion (or no JS) the desk simply shows its resting state. */
@media (prefers-reduced-motion: no-preference) {
  .js .fader-cap { transition: bottom 1.1s var(--ease-fader) calc(var(--i, 0) * 90ms + 150ms); }
  .js .readout,
  .js .out-display { transition: color 0.15s linear calc(var(--i, 0) * 90ms + 1s), text-shadow 0.15s linear calc(var(--i, 0) * 90ms + 1s); }
  .js .strip .led,
  .js .mute-key { transition-delay: calc(var(--i, 0) * 90ms + 300ms); }

  .js .console:not(.is-on) .fader { --pos: 0; }
  .js .console:not(.is-on) .meter-lit,
  .js .console:not(.is-on) .meter-peak { visibility: hidden; }
  .js .console:not(.is-on) .readout,
  .js .console:not(.is-on) .out-display { color: transparent; text-shadow: none; }
  .js .console:not(.is-on) .led.is-on {
    background: var(--led-off);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.28), 0 1px 0 rgba(255, 255, 255, 0.8);
  }
  .js .console:not(.is-on) .mute-key.is-lit {
    border-color: rgba(28, 26, 23, 0.2);
    background: linear-gradient(#fdfcfa, #e4e0d9);
    color: var(--silk);
    box-shadow: inset 0 1px 0 #fff, 0 2px 0 rgba(28, 26, 23, 0.14);
    transform: none;
  }
}

/* ---------- Level-meter divider (sweeps up and settles when it scrolls into view) ---------- */

.meter-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 440px;
  margin-inline: auto;
  padding-block: 4px;
}
.meter-rule-lr {
  flex: none;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 700;
  line-height: 9px;
}
.meter-rule-rows { display: grid; flex: 1; gap: 5px; }
.meter-rule-row {
  --rest: 0.6;
  position: relative;
  height: 4px;
  background: linear-gradient(90deg, rgba(52, 192, 96, 0.2) 0 70%, rgba(245, 166, 35, 0.22) 70% 90%, rgba(236, 74, 74, 0.24) 90%);
  -webkit-mask: linear-gradient(90deg, #000 72%, transparent 72%) left top / 2.5% 100% repeat-x;
  mask: linear-gradient(90deg, #000 72%, transparent 72%) left top / 2.5% 100% repeat-x;
}
.meter-rule-row + .meter-rule-row { --rest: 0.55; }
.meter-rule-row::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--led-green) 0 70%, var(--led-amber) 70% 90%, var(--led-red) 90%);
  clip-path: inset(0 calc((1 - var(--rest)) * 100%) 0 0);
}

@media (prefers-reduced-motion: no-preference) {
  .js .meter-rule-row::after { clip-path: inset(0 100% 0 0); }
  .js .meter-rule.is-visible .meter-rule-row::after { animation: rule-sweep 1.3s forwards; }
  .js .meter-rule.is-visible .meter-rule-row + .meter-rule-row::after { animation-delay: 0.07s; }
}

@keyframes rule-sweep {
  0% { clip-path: inset(0 100% 0 0); animation-timing-function: steps(20, end); }
  40% { clip-path: inset(0 0 0 0); animation-timing-function: cubic-bezier(0.3, 0, 0.2, 1); }
  100% { clip-path: inset(0 calc((1 - var(--rest)) * 100%) 0 0); }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: clamp(64px, 8vw, 100px) 0; }

.section-head {
  max-width: 46rem;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}
.section-head .silk { margin-bottom: 14px; }
.section-lede {
  max-width: 36rem;
  margin: 18px auto 0;
  color: var(--text-2);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 40px);
}

.step { position: relative; }
.step-key {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 22px;
  border: 1px solid rgba(28, 26, 23, 0.2);
  border-radius: 10px;
  background: linear-gradient(#fdfcfa, #e6e2db);
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 rgba(28, 26, 23, 0.12);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
}
.step-key .led {
  position: absolute;
  top: 6px; right: 6px;
  width: 5px; height: 5px;
  transition-delay: 0.35s;
}
.steps > :nth-child(2) .step-key .led { transition-delay: 0.45s; }
.steps > :nth-child(3) .step-key .led { transition-delay: 0.55s; }
.step:not(:last-child)::after {
  /* connector between the keys */
  content: "";
  position: absolute;
  top: 23px;
  left: 62px;
  right: calc(clamp(16px, 3vw, 40px) * -1 + 16px);
  border-top: 1px dashed rgba(28, 26, 23, 0.28);
}
.step h3 { margin-bottom: 8px; font-size: 1.22rem; font-weight: 700; letter-spacing: -0.02em; }
.step p { color: var(--text-2); font-size: 1rem; }

.specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(52px, 7vw, 76px);
  border-radius: var(--radius);
  overflow: hidden;
}
.specs > div { padding: 18px 22px 20px; }
.specs > div + div { border-left: 1px solid var(--groove); box-shadow: inset 1px 0 0 var(--groove-hi); }
.specs dt {
  margin-bottom: 4px;
  color: var(--silk);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.specs dd { font-size: 0.95rem; font-weight: 600; }

/* ---------- FAQ accordion ---------- */

.accordion { border-top: 1px solid var(--line-strong); }
.accordion-item { border-bottom: 1px solid var(--line-strong); }

.accordion-heading { font-size: inherit; font-weight: inherit; }

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 20px 2px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: clamp(1.02rem, 1.6vw, 1.1rem);
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.accordion-trigger:focus-visible { outline-offset: 2px; }

/* A small rubber key: + when closed, pressed and dark with − when open. */
.accordion-icon {
  position: relative;
  flex: none;
  width: 30px; height: 30px;
  border: 1px solid rgba(28, 26, 23, 0.2);
  border-radius: 8px;
  background: linear-gradient(#fdfcfa, #e6e2db);
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 rgba(28, 26, 23, 0.12);
  color: var(--ink);
  transition: transform 0.08s ease-out, background 0.15s, box-shadow 0.08s, color 0.15s;
}
.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 2px;
  margin: -1px 0 0 -5.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s var(--ease-out);
}
.accordion-icon::after { transform: rotate(90deg); }
.accordion-trigger:hover .accordion-icon { background: linear-gradient(#ffffff, #e0dcd4); }
.accordion-trigger:active .accordion-icon { transform: translateY(1px) scale(0.95); box-shadow: inset 0 1px 3px rgba(28, 26, 23, 0.2); }
.accordion-trigger[aria-expanded="true"] .accordion-icon {
  border-color: #0d0c0b;
  background: linear-gradient(#34302b, #1c1a17);
  color: #fff;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
  transform: translateY(1px);
}
.accordion-trigger[aria-expanded="true"] .accordion-icon::after { transform: rotate(0deg); }

/* Collapsing only happens with JS; without it every answer is simply visible. */
.js .accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.3s var(--ease-out), visibility 0s linear 0.3s;
}
.js .accordion-panel.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.3s var(--ease-out), visibility 0s;
}
.accordion-inner { min-height: 0; overflow: hidden; padding-inline: 2px 56px; }
.accordion-inner > :first-child { margin-top: 0; }
.accordion-inner > :last-child { margin-bottom: 22px; }
.accordion-inner p,
.accordion-inner ul {
  max-width: 44rem;
  margin: 0 0 14px;
  color: var(--text-2);
}
.accordion-inner ul { padding-left: 20px; list-style: disc; }
.accordion-inner li { margin-bottom: 8px; }
.accordion-inner li::marker { color: var(--text-3); }
.accordion-inner em { color: var(--ink); font-style: normal; font-weight: 600; }

/* ---------- Closing CTA: a small faceplate ---------- */

.section--cta { padding-top: clamp(16px, 3vw, 32px); }
.cta-plate {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(40px, 6vw, 60px) 32px;
  border-radius: var(--radius-lg);
  text-align: center;
}
.cta-mark { width: 56px; height: 56px; margin-bottom: 22px; }
.cta-plate .section-title { max-width: 16ch; margin-bottom: 28px; }
.cta-plate .cta-buttons { justify-content: center; }
.cta-plate .meta { margin-top: 18px; }

/* ==========================================================================
   Support and privacy pages
   ========================================================================== */

.page { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 100px); }

.page-hero { margin-bottom: 28px; }
.page-hero .meta { margin-top: 18px; }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.048em;
  text-wrap: balance;
}
.page-lede {
  max-width: 40rem;
  margin-top: 20px;
  color: var(--text-2);
  font-size: clamp(1.05rem, 1.4vw, 1.17rem);
}
.page .meter-rule { margin: 0 0 clamp(28px, 4vw, 44px); }

.card {
  position: relative;
  padding: clamp(24px, 3.2vw, 36px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

/* Card label: silkscreen text with an unlit status LED. */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--silk);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tag::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--led-off);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.28);
}

.card-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.card-title + p,
.card-title + ul { margin-top: 12px; }
.card p { color: var(--text-2); }
.card p + p,
.card .list + p { margin-top: 12px; }

/* Bulleted lists: each bullet is a small meter segment. */
.list { display: grid; gap: 10px; margin-top: 14px; color: var(--text-2); font-size: 1rem; }
.list li { position: relative; padding-left: 20px; }
.list li::before {
  content: "";
  position: absolute;
  left: 1px; top: 0.66em;
  width: 9px; height: 4px;
  border-radius: 1px;
  background: var(--text-3);
}
.list strong { color: var(--ink); font-weight: 650; }

.contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-top: 30px;
}
.contact-mail {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  text-decoration: underline;
  text-decoration-color: var(--led-green);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.15s;
}
.contact-mail:hover { text-decoration-color: var(--ink); }
.contact-hint { max-width: 40rem; margin-top: 12px; color: var(--text-2); font-size: 0.98rem; }

.page-section + .page-section { margin-top: clamp(48px, 6vw, 72px); }
.page-section .section-title { margin-bottom: clamp(16px, 2.4vw, 24px); font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.page-section > p { max-width: 44rem; color: var(--text-2); }
.page-section > p + p { margin-top: 12px; }

.policy { display: grid; gap: clamp(18px, 2.4vw, 26px); }
.policy .card-title { font-size: clamp(1.35rem, 2.2vw, 1.65rem); }
.policy .list { font-size: 1.02rem; }

/* ---------- Footer ---------- */

.site-footer { padding: 0 0 calc(40px + env(safe-area-inset-bottom)); }
.footer-inner {
  display: grid;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
  color: var(--text-3);
  font-size: 0.85rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: 0.9rem;
}
.footer-brand b { color: var(--ink); font-weight: 700; }
.footer-brand svg { flex: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 550;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--ink); }
.footer-links a[aria-current="page"] { color: var(--ink); }
.footer-links a[aria-current="page"]::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--led-green);
}
.footer-fine { max-width: 46rem; font-size: 0.78rem; line-height: 1.5; }
.footer-copy { font-size: 0.78rem; }

/* ---------- Scroll reveal: calm and quick (the meter dividers do their own sweep) ---------- */

.js [data-reveal]:not(.meter-rule) {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.steps > :nth-child(2) { transition-delay: 0.06s; }
.steps > :nth-child(3) { transition-delay: 0.12s; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs > div + div { border-left: 0; box-shadow: none; }
  .specs > div:nth-child(even) { border-left: 1px solid var(--groove); box-shadow: inset 1px 0 0 var(--groove-hi); }
  .specs > div:nth-child(n + 3) { border-top: 1px solid var(--groove); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: clamp(36px, 7vw, 52px); }
  .hero-visual { width: 100%; max-width: 580px; margin-inline: auto; }
}

/* The desk stacks: status lamps under the console. */
@media (max-width: 900px) {
  .desk { grid-template-columns: minmax(0, 560px); }
  .lamps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 28px; }
}

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .step {
    display: grid;
    grid-template-columns: 46px 1fr;
    column-gap: 18px;
  }
  .step-key { grid-row: span 2; margin-bottom: 0; }
  .step:not(:last-child)::after {
    top: 56px; bottom: -26px;
    left: 22px; right: auto;
    border-top: 0;
    border-left: 1px dashed rgba(28, 26, 23, 0.28);
  }
}

/* Compact desk: five narrow strips still fit a phone. */
@media (max-width: 700px) {
  .console { --strip-h: 150px; --cap-h: 24px; }
  .console-rail { padding: 11px 28px 10px; }
  .console-rail .silk { font-size: 0.58rem; letter-spacing: 0.1em; }
  .strips { padding: 16px 8px 14px; }
  .strip { gap: 8px; padding: 0 3px; }
  .strip-top { padding-inline: 3px; }
  .scale { display: none; }
  .strip-body { gap: 5px; }
  .fader { width: 24px; }
  .meter { gap: 2px; padding: 3px; }
  .meter-bar { width: 5px; }
  .out-display,
  .readout { width: 100%; min-width: 0; padding-inline: 2px; }
  .out-display { font-size: 0.5rem; letter-spacing: 0.04em; }
  .readout { font-size: 0.66rem; }
  .mute-key { width: 100%; max-width: 44px; font-size: 0.48rem; letter-spacing: 0.06em; }
  .scribble { justify-content: center; padding: 4px; }
  .scribble span { display: none; }

  .lamps { grid-template-columns: 1fr; }

  .accordion-inner { padding-right: 2px; }
}

@media (max-width: 640px) {
  .footer-top { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .specs { grid-template-columns: 1fr; }
  .specs > div:nth-child(even) { border-left: 0; box-shadow: none; }
  .specs > div + div { border-top: 1px solid var(--groove); }
  .hero-actions,
  .cta-buttons { align-items: stretch; }
  .cta-buttons { flex-direction: column; width: 100%; }
  .hero-actions .btn-lg,
  .cta-plate .btn-lg { width: 100%; }
  .cta-plate { padding-inline: 20px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js [data-reveal]:not(.meter-rule) { opacity: 1; transform: none; }
  .btn:active,
  .accordion-trigger:active .accordion-icon { transform: none; }
  /* main.js also skips the console power-on and the live meters: the desk shows its resting levels.
     The faders can still be dragged; they just don't glide. */
}

/* ---------- High contrast / forced colors ---------- */

@media (forced-colors: active) {
  .btn, .card, .console, .cta-plate, .hero-video, .specs, .accordion-icon, .mute-key, .step-key { border: 1px solid CanvasText; }
  .led, .tag::before, .btn-led { forced-color-adjust: none; }
}
