/* Stratus · Ink. Same tokens as the plugin's Theme.cpp. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/plus-jakarta-sans-300.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/plus-jakarta-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/plus-jakarta-sans-500.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/plus-jakarta-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/plus-jakarta-sans-700.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/plus-jakarta-sans-800.woff2") format("woff2"); }
/* Fonts are served from this site, so no visitor data goes to a font CDN. */
:root {
  --paper: #fbfbfa;
  --canvas: #ffffff;
  --ink: #0e0e0e;
  --ink-soft: #3c3c3a;
  --grey: #85857f;
  --grey-light: #b4b4ae;
  --label: #6b6b66;
  --tick: #dcdcd7;
  --hairline: #e6e6e2;
  --haze: #f1f1ee;
  --fringe-a: #ff2d7a;
  --fringe-b: #00b8ff;

  --radius: 14px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
code, pre { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.86em; }
::selection { background: var(--ink); color: var(--paper); }

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

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.label {
  margin: 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--label);
}
.num { color: var(--ink); margin-right: 0.9em; }
.slash { color: var(--grey-light); margin: 0 0.35em; }
.dot-sep { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; vertical-align: middle; margin: 0 0.8em; opacity: 0.6; }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; }
h2 { font-size: clamp(34px, 4.6vw, 56px); }
p { margin: 0; }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border-radius: 999px;
  font-size: 15.5px; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  border: 1px solid var(--ink);
  transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #262626; box-shadow: -1.5px 0 0 var(--fringe-a), 1.5px 0 0 var(--fringe-b); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--tick); }
.btn-line:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 58px; padding: 0 26px; font-size: 16.5px; }
.btn-icon { width: 17px; height: 17px; flex: none; }
.btn-meta { font-weight: 500; opacity: 0.6; font-size: 0.86em; }

/* Nav ---------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--gutter);
  background: rgba(251, 251, 250, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--hairline); }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand-mark { height: 32px; width: auto; align-self: center; margin-block: -4px; }
.brand-name { font-weight: 800; font-size: 21px; letter-spacing: -0.035em; }
.brand-by { font-size: 14px; color: var(--grey); font-weight: 500; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink-soft); position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-links a:hover::after { transform: scaleX(1); }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 420px) { .brand-by { display: none; } }

/* Hero --------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: max(640px, 100svh);
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-ink { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-copy { position: relative; z-index: 1; padding-block: 64px; }
.hero-title {
  font-size: clamp(76px, 14vw, 196px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.9;
  margin: 18px 0 18px -0.04em;
}
.hero-sub { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.hero-lede { max-width: 30em; margin-top: 16px; color: var(--ink-soft); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { margin-top: 22px; font-size: 13.5px; color: var(--label); font-weight: 500; }
.hero-readout {
  position: absolute; z-index: 1; right: var(--gutter); bottom: 28px;
  display: flex; gap: 28px;
}
.hero-readout span:first-child { color: var(--ink); }
@media (min-width: 901px) {
  .hero-copy { max-width: var(--max); }
  .hero-copy > * { max-width: 520px; }
  .hero-copy > .hero-title { max-width: none; }
}
@media (max-width: 900px) {
  .hero { align-items: flex-start; min-height: max(860px, 100svh); }
  .hero-copy { padding-top: 40px; }
  .hero-copy::before {
    content: ""; position: absolute; inset: -40px -40px -60px; z-index: -1;
    background: radial-gradient(ellipse at 30% 40%, rgba(251,251,250,0.92) 40%, rgba(251,251,250,0) 75%);
  }
}

/* Showcase ----------------------------------------------------------------- */
.showcase { padding-top: 24px; padding-bottom: 40px; }
.window {
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--canvas);
  box-shadow: 0 1px 0 rgba(14,14,14,0.03), 0 30px 80px -40px rgba(14,14,14,0.22);
  overflow: hidden;
}
.window-bar {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.seg { display: inline-flex; padding: 4px; border: 1px solid var(--tick); border-radius: 999px; }
.seg-btn {
  border: 0; background: transparent; cursor: pointer;
  height: 34px; padding: 0 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--grey);
  transition: background-color .2s, color .2s;
}
.seg-btn:hover { color: var(--ink); }
.seg-btn.is-on { background: var(--ink); color: var(--paper); }
.window-shot { position: relative; background: var(--paper); aspect-ratio: 2240 / 1440; }
.window-shot img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease; }
.window-shot img.is-swapping { opacity: 0; }
.caption { margin-top: 16px; font-size: 14px; color: var(--label); text-align: center; }

/* Feature sections --------------------------------------------------------- */
.feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px); align-items: center;
  padding-block: clamp(72px, 10vw, 140px);
}
.feature-flip .feature-text { order: 2; }
.feature-text h2 { margin: 20px 0 20px; }
.feature-text > p { color: var(--ink-soft); }
.feature-text .small { font-size: 15px; color: var(--label); margin-top: 20px; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature-flip .feature-text { order: 0; }
}

.ticks { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--hairline); }
.ticks li { position: relative; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--hairline); font-size: 15px; color: var(--ink-soft); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 12px; height: 1.5px; background: var(--ink); }

.counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 28px 0 0; border-top: 1px solid var(--hairline); }
.counts div { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--hairline); }
.counts dt { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.counts dd { margin: 2px 0 0; font-size: 14px; color: var(--label); }

/* Panels (plugin-like cards) */
.panel {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: clamp(16px, 2.2vw, 24px);
  box-shadow: 0 24px 60px -44px rgba(14,14,14,0.25);
  min-width: 0;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; min-height: 36px; }
.panel-title { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.led { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--ink); position: relative; flex: none; }
.led::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ink); }
.select {
  display: inline-flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 14px; border: 1px solid var(--tick); border-radius: 999px;
  font-size: 14.5px; font-weight: 500;
}
.select::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-2px) rotate(45deg); }
.panel-note { margin-top: 14px; font-size: 13.5px; color: var(--label); }

.display { position: relative; border: 1px solid var(--hairline); border-radius: 10px; background: var(--paper); overflow: hidden; }
.display canvas { display: block; width: 100%; height: 100%; }
.display-wt { aspect-ratio: 16 / 8; cursor: ew-resize; touch-action: pan-y; }
.display-filter { aspect-ratio: 16 / 8; }
.display-readout { position: absolute; right: 14px; bottom: 10px; color: var(--grey); font-size: 10.5px; pointer-events: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  height: 32px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--tick); background: var(--canvas); cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  transition: background-color .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.routes { display: inline-flex; gap: 6px; }
.routes span {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--paper); font-size: 12.5px; font-weight: 700;
}
.routes span.off { background: transparent; color: var(--ink); border: 1px solid var(--tick); }

/* Strip */
.strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  padding-inline: 0;
}
.strip-cell { padding: 28px clamp(16px, 2.4vw, 28px); border-left: 1px solid var(--hairline); }
.strip-cell:first-child { border-left: 0; }
.strip-cell p:last-child { margin-top: 10px; font-size: 15px; color: var(--ink-soft); }
@media (max-width: 1000px) {
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip-cell:nth-child(3) { border-left: 0; }
  .strip-cell:nth-child(n+3) { border-top: 1px solid var(--hairline); }
}
@media (max-width: 600px) {
  .strip { grid-template-columns: 1fr; }
  .strip-cell { border-left: 0; border-top: 1px solid var(--hairline); padding-block: 22px; }
  .strip-cell:first-child { border-top: 0; }
}

/* Modulation demo ---------------------------------------------------------- */
.link-btn { border: 0; background: none; padding: 4px 0; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--grey); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--tick); }
.link-btn:hover { color: var(--ink); text-decoration-color: var(--ink); }

.mod-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mod-chip {
  display: inline-flex; align-items: center; gap: 9px;
  height: 36px; padding: 0 10px 0 12px; border-radius: 999px;
  border: 1px solid var(--tick); background: var(--canvas);
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.02em;
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  transition: border-color .15s, background-color .15s, color .15s;
}
.mod-chip:hover { border-color: var(--ink); }
.mod-chip.is-armed { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mod-chip.is-armed .grip { background-image: radial-gradient(var(--paper) 1px, transparent 1.2px); }
.mod-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); opacity: 0.25; transition: opacity .05s; }
.mod-chip.is-armed .mod-dot { background: var(--paper); }
.grip { width: 8px; height: 12px; background-image: radial-gradient(var(--grey) 1px, transparent 1.2px); background-size: 4px 4px; opacity: 0.9; }
.mod-ghost {
  position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none;
  background: var(--ink); color: var(--paper); border-color: var(--ink);
  box-shadow: -2px 0 0 var(--fringe-a), 2px 0 0 var(--fringe-b), 0 10px 24px -8px rgba(14,14,14,0.4);
}
.mod-ghost .mod-dot { background: var(--paper); opacity: 1; }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; }

.knobs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 22px 0 6px; }
.knob {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  border: 0; background: none; padding: 10px 0 8px; border-radius: 14px;
  cursor: ns-resize; touch-action: none; user-select: none; -webkit-user-select: none;
  transition: background-color .15s;
}
.knob svg { width: min(92px, 100%); height: auto; overflow: visible; }
.knob.is-target { background: var(--haze); }
body.is-arming .knob { background: rgba(0, 184, 255, 0.06); }
.knob-name { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--label); margin-top: 4px; }
.knob-val { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }

.matrix { margin-top: 14px; border-top: 1px solid var(--hairline); }
.matrix-head, .matrix-row { display: grid; grid-template-columns: 1.1fr 1.3fr 0.8fr 28px; gap: 10px; align-items: center; }
.matrix-head { padding: 10px 0 6px; font-size: 10.5px; }
.matrix-rows { list-style: none; margin: 0; padding: 0; min-height: 40px; }
.matrix-row { padding: 8px 0; border-top: 1px solid var(--hairline); font-size: 14.5px; font-weight: 500; }
.matrix-row .arrow { color: var(--grey); margin-right: 8px; }
.matrix-row .depth { font-variant-numeric: tabular-nums; }
.matrix-row .bar { display: block; height: 2px; margin-top: 6px; background: var(--hairline); position: relative; }
.matrix-row .bar i { position: absolute; top: 0; height: 2px; background: var(--ink); }
.matrix-row button { border: 0; background: none; cursor: pointer; color: var(--grey); width: 28px; height: 28px; border-radius: 50%; font-size: 17px; line-height: 1; }
.matrix-row button:hover { color: var(--ink); background: var(--haze); }
.matrix-empty { padding: 12px 0; font-size: 14px; color: var(--grey); border-top: 1px solid var(--hairline); }

@media (max-width: 520px) {
  .knobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* FX ----------------------------------------------------------------------- */
.fx, .measured { padding-block: clamp(72px, 10vw, 140px); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { margin: 20px 0 18px; }
.section-head > p:last-child { color: var(--ink-soft); }
.fx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fx-card { background: var(--canvas); border: 1px solid var(--hairline); border-radius: 16px; padding: 14px 14px 20px; min-width: 0; }
.fx-canvas { display: block; width: 100%; aspect-ratio: 5 / 3; border-radius: 9px; background: var(--paper); border: 1px solid var(--hairline); }
.fx-card h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin: 18px 4px 8px; }
.fx-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0 4px; }
@media (max-width: 1000px) { .fx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .fx-grid { grid-template-columns: 1fr; } }

/* Measured ----------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--ink); }
.stat { padding: 22px 22px 26px 0; border-right: 1px solid var(--hairline); }
.stat + .stat { padding-left: 22px; }
.stat:last-child { border-right: 0; }
.stat dt { font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; white-space: nowrap; }
.stat dd { margin: 12px 0 0; font-size: 14.5px; color: var(--ink-soft); }
.facts { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.facts li { font-size: 15px; color: var(--ink-soft); }
.facts .label { display: block; margin-bottom: 8px; color: var(--ink); }
@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--hairline); }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding-left: 0; border-right: 0; }
  .stat + .stat { border-top: 1px solid var(--hairline); }
  .facts { grid-template-columns: 1fr; gap: 20px; }
}

/* Download ----------------------------------------------------------------- */
.download { position: relative; overflow: hidden; padding-block: clamp(80px, 12vw, 160px); border-top: 1px solid var(--hairline); }
.download-ink { position: absolute; inset: 0; width: 100%; height: 100%; }
.download-inner { position: relative; z-index: 1; }
.download-card {
  max-width: 720px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: clamp(24px, 4vw, 48px);
  box-shadow: 0 40px 100px -50px rgba(14,14,14,0.3);
}
.download-card h2 { margin: 18px 0 16px; }
.download-lede { color: var(--ink-soft); }
.download-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.req { margin-top: 18px; font-size: 13.5px; color: var(--label); }
.steps { list-style: none; padding: 0; margin: 34px 0 0; border-top: 1px solid var(--hairline); }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--hairline); font-size: 15px; color: var(--ink-soft); }
.steps strong { color: var(--ink); font-weight: 700; }
.steps em { font-style: normal; font-weight: 600; color: var(--ink); }
.step-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--ink); font-size: 12.5px; font-weight: 700; color: var(--ink); margin-top: 1px; }
.steps code, .more code { background: var(--haze); padding: 1px 6px; border-radius: 5px; color: var(--ink); }
.more { border-bottom: 1px solid var(--hairline); }
.more summary { cursor: pointer; padding: 16px 0; font-size: 15px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font-size: 20px; font-weight: 400; color: var(--grey); transition: transform .2s; }
.more[open] summary::after { transform: rotate(45deg); }
.more p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 14px; }
.more pre { margin: 0 0 14px; padding: 14px 16px; background: var(--ink); color: var(--paper); border-radius: 10px; overflow-x: auto; font-size: 12.5px; line-height: 1.7; }
.more pre code { background: none; padding: 0; color: inherit; }
.hash { display: grid; grid-template-columns: 40px 1fr; gap: 8px; }
.hash span { font-weight: 600; color: var(--ink); }
.hash code { word-break: break-all; background: none; padding: 0; font-size: 12.5px; color: var(--ink-soft); }
@media (max-width: 520px) {
  .btn-lg { height: auto; min-height: 58px; padding-block: 12px; white-space: normal; }
  .download-actions .btn { width: 100%; justify-content: center; }
}

/* Footer ------------------------------------------------------------------- */
.footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  padding-block: 32px 40px; border-top: 1px solid var(--hairline);
}
.footer-meta { font-size: 13.5px; color: var(--label); }
.footer-meta a { text-decoration: none; }
.footer-meta a:hover { text-decoration: underline; }

/* Oscillator modes ---------------------------------------------------------- */
.seg-sm { padding: 3px; }
.seg-sm .seg-btn { height: 28px; padding: 0 12px; font-size: 12.5px; }
.select-wide { display: flex; justify-content: space-between; width: 100%; margin-bottom: 12px; }
.feature-text strong { color: var(--ink); font-weight: 700; }
.led.is-off::after { background: transparent; }
.led.is-off { border-color: var(--grey-light); }
@media (max-width: 420px) {
  .seg-sm .seg-btn { padding: 0 9px; }
  #osc-panel .panel-title { font-size: 18px; }
}

/* FX rack ------------------------------------------------------------------- */
.rack-demo { display: grid; grid-template-columns: minmax(250px, 4fr) minmax(0, 9fr); gap: 20px; align-items: start; }
.rack { background: var(--canvas); border: 1px solid var(--hairline); border-radius: 18px; padding: 18px; }
.rack-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.rack-title { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.rack-list { list-style: none; margin: 0; padding: 0; }
.rack-item {
  display: grid; grid-template-columns: 22px 24px minmax(0, 1fr) 34px; align-items: center; gap: 6px;
  height: 50px; padding: 0 4px; border-bottom: 1px solid var(--hairline); border-radius: 10px;
  background: var(--canvas); position: relative;
  transition: background-color .15s, box-shadow .15s;
}
.rack-item.is-sel { box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--paper); }
.rack-item.is-dragging { z-index: 2; box-shadow: inset 0 0 0 1.5px var(--ink), -2px 0 0 var(--fringe-a), 2px 0 0 var(--fringe-b), 0 14px 30px -14px rgba(14,14,14,0.4); }
.rack-num { font-size: 11px; font-weight: 600; color: var(--grey); font-variant-numeric: tabular-nums; }
.rack-led { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
.rack-led::before { content: ""; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--grey-light); box-sizing: border-box; }
.rack-item.is-on .rack-led::before { border-color: var(--ink); background: radial-gradient(circle, var(--ink) 0 3.5px, transparent 4px); }
.rack-name { border: 0; background: none; padding: 12px 4px; text-align: left; cursor: pointer; font-size: 15.5px; font-weight: 600; color: var(--grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rack-item.is-on .rack-name { color: var(--ink); }
.rack-grip { width: 34px; height: 40px; padding: 0; border: 0; background: none; cursor: grab; touch-action: none; display: grid; place-items: center; border-radius: 8px; }
.rack-grip::before { content: ""; width: 10px; height: 16px; background-image: radial-gradient(var(--grey) 1.1px, transparent 1.4px); background-size: 5px 5.33px; }
.rack-grip:hover { background: var(--haze); }
.rack-foot { margin-top: 14px; padding-left: 6px; }
.fx-desc { margin: -4px 0 14px; font-size: 14.5px; color: var(--ink-soft); min-height: 3em; }
.display-fx { aspect-ratio: 16 / 8; }
@media (max-width: 900px) { .rack-demo { grid-template-columns: 1fr; } }

/* Free download: sign-up form ---------------------------------------------- */
.download-card h2 { font-size: clamp(30px, 4vw, 46px); }
.anchor { position: absolute; top: 0; }
.signup { margin-top: 28px; }
.field { display: grid; gap: 8px; }
.field-label { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--label); }
.input {
  width: 100%; height: 56px; padding: 0 18px;
  font: inherit; font-size: 17px; color: var(--ink);
  background: var(--canvas); border: 1px solid var(--tick); border-radius: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: var(--grey-light); }
.input:hover { border-color: var(--grey-light); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: -1.5px 0 0 var(--fringe-a), 1.5px 0 0 var(--fringe-b); }
.input[aria-invalid="true"] { border-color: #b3134f; }

.consent { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; margin-top: 20px; cursor: pointer; }
.consent input { position: absolute; left: 0; top: 2px; width: 24px; height: 24px; margin: 0; opacity: 0; cursor: pointer; }
.consent-box {
  width: 24px; height: 24px; margin-top: 2px; border: 1.5px solid var(--ink); border-radius: 7px; background: var(--canvas);
  display: grid; place-items: center; transition: background-color .15s, box-shadow .2s;
}
.consent-box::after {
  content: ""; width: 11px; height: 6px; margin-top: -3px;
  border: solid var(--paper); border-width: 0 0 2.2px 2.2px; transform: rotate(-45deg) scale(0); transition: transform .15s;
}
.consent input:checked + .consent-box { background: var(--ink); }
.consent input:checked + .consent-box::after { transform: rotate(-45deg) scale(1); }
.consent input:focus-visible + .consent-box { box-shadow: 0 0 0 3px var(--paper), 0 0 0 4.5px var(--ink); }
.consent input[aria-invalid="true"] + .consent-box { border-color: #b3134f; box-shadow: 0 0 0 3px rgba(179, 19, 79, 0.12); }
.consent-text { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.signup .download-actions { margin-top: 26px; }
.btn:disabled { cursor: progress; }
.btn.is-busy { opacity: 0.7; }
.btn.is-busy .btn-meta::after { content: " · sending"; }
.form-status { min-height: 1.4em; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--ink); }
.form-status:empty { min-height: 0; margin-top: 0; }
.form-status.is-error { color: #b3134f; }
.form-note { margin-top: 14px; font-size: 13.5px; line-height: 1.6; color: var(--label); }
.form-note a { color: var(--ink-soft); }
.form-note a:hover { color: var(--ink); }

.signup-done { margin-top: 28px; }
.signup-done[hidden], .signup[hidden] { display: none; }
.done-title { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; outline: none; }
.done-title::before {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M8 13.5l3.4 3.4L18.5 9.5' fill='none' stroke='%23fbfbfa' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 26px no-repeat;
  box-shadow: -1.5px 0 0 var(--fringe-a), 1.5px 0 0 var(--fringe-b);
}
.signup-done .download-actions { margin-top: 20px; }
.more .steps { margin-top: 0; border-top: 0; }

/* Privacy page ----------------------------------------------------------------- */
.doc { max-width: 760px; padding-block: calc(var(--nav-h) + clamp(48px, 8vw, 96px)) clamp(64px, 10vw, 120px); }
.doc h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -0.04em; margin: 14px 0 12px; }
.doc .doc-updated { color: var(--label); font-size: 14.5px; }
.doc h2 { font-size: clamp(22px, 2.6vw, 26px); letter-spacing: -0.02em; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; margin: 10px 0 0; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--ink); }
.doc a { color: var(--ink); }
.doc .lead { font-size: 19px; color: var(--ink); margin-top: 20px; }
.doc .card { margin-top: 18px; padding: clamp(20px, 3vw, 32px); background: var(--canvas); border: 1px solid var(--hairline); border-radius: 18px; }
.doc .card .download-actions { margin-top: 18px; }
.doc .defs { display: grid; grid-template-columns: minmax(120px, 180px) 1fr; gap: 10px 20px; margin: 14px 0 0; }
.doc .defs dt { font-weight: 700; color: var(--ink); }
.doc .defs dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 560px) { .doc .defs { grid-template-columns: 1fr; gap: 2px; } .doc .defs dd { margin-bottom: 10px; } }
