/* ==========================================================================
   COMPANY — site styles. Static, no dependencies.
   Palette mirrors the plugin's Nocturne Dark theme.
   ========================================================================== */

:root {
  --bg: #08080c;
  --bg-2: #0e0e14;
  --panel: #13131b;
  --panel-2: #191922;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --ink: #ecebf3;
  --ink-2: #a9a7b8;
  --ink-3: #6c6a7d;
  /* Monochrome frame in the plugin's own cool darks (so the screenshots sit in it): no colour accent; the product
     shots and demos carry the colour. Buttons and links are near-white. */
  --accent: #ecebf3; --accent-2: #ffffff; --accent-ink: #08080c; --accent-rgb: 236 235 243;
  /* The plugin's own violet, for the hero slicing animation only (it depicts the product). */
  --dream: #9b7cff; --dream-2: #c3b2ff; --dream-rgb: 155 124 255;
  --violet: var(--accent); --violet-2: var(--accent-2);
  --ember: #f08a4b;
  --glow: transparent;
  --radius: 14px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* film grain + vignette over everything, very subtle */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .035; mix-blend-mode: overlay;
}

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.05; }
h2 { font-size: clamp(34px, 5.2vw, 64px); }
h3 { font-size: 20px; letter-spacing: -.01em; }
.lede { color: var(--ink-2); font-size: clamp(17px, 1.6vw, 20px); max-width: 60ch; }
.grad { color: var(--ink-3); }
.mono { font-family: var(--mono); }

/* ---------- buttons ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 10px; border: 1px solid var(--line-2);
  font: 600 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase;
  background: linear-gradient(#1f1f25, #17171d); color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 6px 20px rgba(0,0,0,.4);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: rgb(var(--accent-rgb) / .35); }
.btn-primary {
  background: var(--accent);
  border-color: transparent; color: var(--accent-ink); font-weight: 700;
  box-shadow: none;
}
.btn-primary:hover { box-shadow: none; filter: brightness(1.08); }
.btn-sm { --h: 36px; padding: 0 16px; font-size: 11px; }
.btn .price { opacity: .8; font-weight: 500; letter-spacing: .08em; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(8,8,12,.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.nav .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 68px; gap: 24px; } /* links stay centred while the brand collapses */
.nav .wrap > .brand { justify-self: start; }
.nav .wrap > .btn, .nav .wrap > .nav-end { grid-column: 3; justify-self: end; }
.nav-end { display: flex; align-items: center; gap: 26px; }
.nav-account { font: 500 11px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); transition: color .2s; }
.nav-account:hover { color: var(--ink); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand svg { height: 12px; width: auto; }
/* Defuse Audio lockup (build.py). Heights follow the brand grid: icon 22px tall, wordmark in the same band,
   gap 2G = 30/77.94 of the icon height. The nav collapses to the icon once past the hero. */
.brand { --co-h: 22px; gap: 0; }
.brand .co-icon { height: var(--co-h); width: auto; flex: none; }
.brand .co-word { display: block; overflow: hidden; max-width: calc(var(--co-h) * 6.5); margin-left: calc(var(--co-h) * 30 / 77.9423);
  transition: max-width .45s cubic-bezier(.2,.7,.2,1), margin-left .45s cubic-bezier(.2,.7,.2,1), opacity .25s ease; }
.brand .co-word svg { height: var(--co-h); width: auto; display: block; }
.nav.compact .brand .co-word { max-width: 0; margin-left: 0; opacity: 0; }
.nav.compact .brand:hover .co-word, .nav.compact .brand:focus-visible .co-word { max-width: calc(var(--co-h) * 6.5); margin-left: calc(var(--co-h) * 30 / 77.9423); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .brand .co-word { transition: none; } }
.nav-links { display: flex; gap: 30px; font: 500 11px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.nav-links a { transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
@media (max-width: 860px) { .nav-links { display: none; } }
/* mobile menu: hamburger sits after the Buy button, opens a full-height sheet under the bar */
.menu-btn { display: none; width: 40px; height: 40px; margin-right: -8px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-btn i { position: absolute; left: 11px; right: 11px; height: 1.5px; border-radius: 1px; background: var(--ink); transition: transform .3s cubic-bezier(.2,.7,.2,1), top .3s cubic-bezier(.2,.7,.2,1); }
.menu-btn i:first-child { top: 16px; } .menu-btn i:last-child { top: 23px; }
.menu-open .menu-btn i:first-child { top: 19.5px; transform: rotate(45deg); }
.menu-open .menu-btn i:last-child { top: 19.5px; transform: rotate(-45deg); }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav .wrap { grid-template-columns: 1fr auto; }
  .nav .wrap > .btn, .nav .wrap > .nav-end { display: none; } /* the sticky buy bar covers Buy on phones; Account is in the menu */
}
.menu { position: fixed; inset: 0; z-index: 49; background: rgba(8,8,12,.96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  overflow-y: auto; overscroll-behavior: contain; opacity: 0; transition: opacity .3s; }
[hidden] { display: none !important; } /* Moonbase storefront conditional elements rely on it */
.menu[hidden] { display: none; }
.menu.open { opacity: 1; }
.menu-inner { padding: calc(68px + 28px) 24px calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; min-height: 100%; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu .menu-main { margin-bottom: 40px !important; }
.menu-main a { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; font: 600 34px/1.05 var(--sans, inherit); letter-spacing: -.02em; color: var(--ink);
  border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s cubic-bezier(.2,.7,.2,1); }
.menu-main small { font: 500 10px/1 var(--mono); letter-spacing: .2em; color: var(--ink-3); }
.menu.open .menu-main a { opacity: 1; transform: none; }
.menu.open .menu-main li:nth-child(2) a { transition-delay: .03s; } .menu.open .menu-main li:nth-child(3) a { transition-delay: .06s; }
.menu.open .menu-main li:nth-child(4) a { transition-delay: .09s; } .menu.open .menu-main li:nth-child(5) a { transition-delay: .12s; }
.menu.open .menu-main li:nth-child(6) a { transition-delay: .15s; }
.menu-sub { display: grid; gap: 14px; margin-bottom: 36px !important; }
.menu-sub a { font-size: 17px; color: var(--ink-2); }
.menu-cta { margin-top: auto; display: grid; gap: 10px; }
.menu-cta .btn { justify-content: center; }
.menu-open { overflow: hidden; }
.menu-open .buybar.show { transform: translateY(140%); }
@media (prefers-reduced-motion: reduce) { .menu, .menu-main a, .menu-btn i { transition: none; } .pan-hint i { animation: none; } }

/* ==========================================================================
   HERO — scroll-driven 3D dissection of the plugin UI
   ========================================================================== */
.hero { position: relative; height: 340vh; }
.hero-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; place-items: center;
  background:
    var(--bg);
}
.hero-grid {
  position: absolute; inset: -50% -20% 0; pointer-events: none;
  background-image:
    linear-gradient(rgb(var(--dream-rgb) / .10) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--dream-rgb) / .10) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(700px) rotateX(64deg) translateY(var(--grid-y, 0px));
  transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 70%);
  top: 45%;
}

.hero-copy {
  position: absolute; top: clamp(96px, 14vh, 150px); left: 0; right: 0; z-index: 3;
  text-align: center; pointer-events: none;
  opacity: var(--copy-o, 1); transform: translateY(var(--copy-y, 0px));
}
.hero-copy .wordmark { display: block; margin: 22px auto 0; width: min(760px, 86vw); height: auto; color: #fff; overflow: visible; }
.wordmark .cut { stroke: var(--violet-2); stroke-width: 14; filter: drop-shadow(0 0 18px var(--violet)); }
.hero-tag { margin: 22px auto 0; color: var(--ink-2); font-size: clamp(16px, 1.7vw, 21px); max-width: 44ch; padding: 0 16px; }

.hero-cta {
  position: absolute; bottom: clamp(28px, 6vh, 64px); left: 0; right: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  opacity: var(--cta-o, 1);
}
.hero-cta .row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 520px) { .hero-cta .row { gap: 8px; } .hero-cta .row .btn { padding: 0 16px; letter-spacing: .14em; } }
.formats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
/* formats: plain text with dot separators, not buttons */
.chip { font: 500 10px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.chip + .chip::before { content: "\00b7"; margin-right: 8px; color: var(--ink-3); opacity: .7; }
.scroll-hint { font: 500 10px/1 var(--mono); letter-spacing: .3em; color: var(--ink-3); text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.scroll-hint i { width: 1px; height: 28px; background: linear-gradient(var(--violet), transparent); animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* 3D scene */
.scene {
  position: relative; z-index: 2;
  width: min(1180px, 92vw); aspect-ratio: 3200 / 2000;
  perspective: 1800px; perspective-origin: 50% 30%;
  margin-top: var(--scene-y, 22vh);
}
.slab {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 58deg)) rotateY(var(--ry, -16deg)) rotateZ(var(--rz, 6deg)) scale(var(--s, .82));
  will-change: transform;
}
.strip {
  position: absolute; top: 0; bottom: 0;
  background-repeat: no-repeat;
  background-size: calc(var(--n) * 100%) 100%;
  transform-style: preserve-3d;
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), var(--tz, 0px)) rotateY(var(--sry, 0deg)) rotateX(var(--srx, 0deg));
  will-change: transform;
  backface-visibility: hidden;
}
.strip::before { /* lit cut face */
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 2px;
  background: linear-gradient(var(--dream-2), var(--dream) 50%, var(--ember));
  box-shadow: 0 0 14px 2px var(--dream);
  opacity: var(--edge, 0);
}
.strip::after { /* shading that deepens as strips separate */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.0), rgba(0,0,0,.35));
  opacity: var(--shade, 0);
}
.slab-shadow {
  position: absolute; left: 6%; right: 6%; bottom: -8%; height: 30%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.7), transparent 70%);
  filter: blur(30px); transform: translateZ(-200px); opacity: .8;
}
.laser {
  position: absolute; top: -6%; bottom: -6%; width: 2px; left: var(--lx, -10%);
  background: linear-gradient(transparent, #fff 15%, var(--dream-2) 50%, #fff 85%, transparent);
  box-shadow: 0 0 24px 6px var(--dream), 0 0 80px 12px rgb(var(--dream-rgb) / .35);
  opacity: var(--lo, 0); transform: translateZ(2px);
}
.slice-flags { position: absolute; inset: 0; pointer-events: none; transform: translateZ(3px); }
.flag {
  position: absolute; top: 0; height: 100%; width: 0;
  opacity: 0; transition: opacity .25s;
}
.flag.on { opacity: 1; }
.flag b {
  position: absolute; top: -26px; left: -1px; padding: 3px 5px; border-radius: 3px 3px 3px 0;
  font: 700 10px/1 var(--mono); color: #0c0c12; background: var(--c);
}
.flag::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 1px; background: var(--c); opacity: .8; }
/* phones: 16 two-digit flags must fit 16 narrow slices */
@media (max-width: 600px) { .flag b { top: -19px; padding: 2px 2.5px; font-size: 8px; letter-spacing: -.04em; } }

.hero-hud {
  position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: 22px;
  display: flex; justify-content: space-between; font: 500 10px/1 var(--mono); letter-spacing: .24em;
  color: var(--ink-3); text-transform: uppercase; pointer-events: none;
}
.hero-hud b { color: var(--violet-2); font-weight: 600; }
.hero-caption {
  position: absolute; z-index: 3; left: 50%; top: var(--cap-top, 84vh); transform: translateX(-50%); /* --cap-top: just below the shot, set by the hero script */
  width: min(900px, 92vw); text-align: center; opacity: var(--cap-o, 0);
  pointer-events: none;
}
.hero-caption h2 { font-size: clamp(20px, 2.6vw, 32px); white-space: nowrap; }
.hero-caption p { color: var(--ink-2); margin: 10px 0 0; }

@media (max-width: 700px) {
  .hero { height: 260vh; }
  .hero-hud { display: none; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
section { position: relative; }
.section { padding: clamp(90px, 13vw, 170px) 0; }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { text-align: center; justify-items: center; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* statement strip */
.statement { padding: clamp(80px, 11vw, 140px) 0 clamp(40px, 5vw, 60px); text-align: center; }
.statement p { font-size: clamp(26px, 3.6vw, 46px); line-height: 1.18; letter-spacing: -.02em; font-weight: 500; max-width: 24ch; margin: 0 auto; color: var(--ink-3); }
.statement p span { color: var(--ink); transition: color .4s; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 56px; }
.stat { background: var(--bg-2); padding: 28px 22px; text-align: left; }
.stat b { display: block; font: 600 clamp(30px, 3.4vw, 44px)/1 var(--sans); letter-spacing: -.03em; }
.stat span { display: block; margin-top: 10px; font: 500 10px/1.4 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* feature split */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.copy { display: grid; gap: 20px; align-content: start; }
.copy p { margin: 0; color: var(--ink-2); }
.ticks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--ink-2); font-size: 15px; }
.ticks li::before { content: ""; width: 8px; height: 8px; margin-top: 8px; border-radius: 2px; background: var(--violet);  }
.ticks b { color: var(--ink); font-weight: 600; }

/* "screen" frame for canvases & shots */
.screen {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, #18181e, #101016);
  border: 1px solid var(--line-2);
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.6);
}
.screen canvas { display: block; width: 100%; height: auto; }
.screen-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font: 500 10px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3);
}
/* tabs dead centre whatever the label widths either side (the method label changes per method) */
.screen-bar.centred { display: grid; grid-template-columns: 1fr auto 1fr; }
.screen-bar.centred > :last-child { justify-self: end; text-align: right; }
@media (max-width: 640px) {
  /* phone: method tabs on one swipeable row, the method's value underneath */
  .screen-bar.centred { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .screen-bar.centred > :first-child { display: none; }
  .screen-bar.centred .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; justify-content: space-between; }
  .screen-bar.centred .seg::-webkit-scrollbar { display: none; }
  .screen-bar.centred .seg button { flex: 1 1 auto; min-width: 0; padding: 9px 4px; letter-spacing: .06em; font-size: 9.5px; }
  .screen-bar.centred > :last-child { justify-self: auto; text-align: left; }
}
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 8px; background: #0b0b11; border: 1px solid var(--line); flex-wrap: wrap; }
.seg button {
  border: 0; background: none; padding: 7px 10px; border-radius: 6px; cursor: pointer;
  font: 600 10px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3);
  transition: background .2s, color .2s;
}
.seg button.on { background: linear-gradient(#27272d, #1d1d23); color: var(--ink); }

/* pads row under the slicer */
.pads { display: grid; grid-template-columns: repeat(16, 1fr); gap: 6px; padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.pad {
  aspect-ratio: 1 / 1.05; border-radius: 6px; background: linear-gradient(#1b1b21, #14141a);
  border: 1px solid var(--line); position: relative; overflow: hidden;
  font: 600 9px/1 var(--mono); color: var(--ink-3); padding: 6px;
  transition: border-color .15s, box-shadow .15s;
}
.pad::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 7px; height: 3px; border-radius: 2px; background: var(--c, #333); opacity: .55; }
.pad.hit { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 0 22px -4px var(--c); color: var(--ink); }
/* overview strip: only on phones, where the main view zooms in and follows the playhead */
.screen canvas.overview { display: none; }
@media (max-width: 700px) {
  #slicerCanvas { aspect-ratio: 375 / 230; }
  .screen canvas.overview { display: block; height: 34px; border-top: 1px solid var(--line); }
  .pads { grid-template-columns: repeat(8, 1fr); padding: 12px; }
  .pad { aspect-ratio: auto; height: 40px; padding: 5px; }
}

/* photo shots */
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 50px 100px -40px rgba(0,0,0,.9), 0 0 60px -30px var(--glow); background: #0e0e14; }
.shot img { width: 100%; height: auto; }

/* modes */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .modes { grid-template-columns: 1fr; } }
.mode {
  position: relative; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, #15151b, #0e0e14); overflow: hidden; min-height: 300px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .3s, transform .3s;
}
.mode:hover { border-color: rgb(var(--accent-rgb) / .3); transform: translateY(-3px); }
.mode .num { font: 600 11px/1 var(--mono); letter-spacing: .3em; color: var(--violet-2); }
.mode p { margin: 0; color: var(--ink-2); font-size: 15px; }
.mode .viz { margin-top: auto; height: 96px; position: relative; }
.mode canvas { width: 100%; height: 100%; display: block; }

/* stems */
.stems-legend { display: flex; flex-wrap: wrap; gap: 8px; }
.stems-legend span { display: inline-flex; align-items: center; gap: 8px; font: 600 10px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; }
.stems-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }

/* fx grid */
.fx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 900px) { .fx-grid { grid-template-columns: repeat(2, 1fr); } }
.fx {
  background: var(--bg-2); padding: 22px 20px 24px; display: grid; gap: 8px; position: relative;
  transition: background .3s;
}
.fx:hover { background: #14141a; }
.fx small { font: 600 9px/1 var(--mono); letter-spacing: .26em; color: var(--c, var(--ink-3)); text-transform: uppercase; }
.fx h4 { margin: 0; font: 600 13px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.fx p { margin: 0; font-size: 13.5px; color: var(--ink-3); line-height: 1.45; }
.fx .knob { position: absolute; right: 18px; top: 18px; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fafafa, #9a99a6 60%, #4b4a55); box-shadow: 0 0 0 2px #0a0a10, 0 0 0 3px rgba(255,255,255,.06); transform: rotate(var(--r, 0deg)); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.fx .knob::after { content: ""; position: absolute; left: 50%; top: 3px; width: 2px; height: 8px; margin-left: -1px; background: #1b1b21; border-radius: 1px; }
.fx:hover .knob { --r: 120deg; }

/* bento of smaller features */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { grid-column: span 2; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, #14141a, #0d0d13); display: grid; gap: 10px; align-content: start; }
.tile.wide { grid-column: span 3; }
.tile.full { grid-column: span 6; }
.tile p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.tile .k { font: 600 10px/1 var(--mono); letter-spacing: .26em; color: var(--violet-2); text-transform: uppercase; }
.tile img { border-radius: 10px; border: 1px solid var(--line); margin-top: 8px; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .tile, .tile.wide, .tile.full { grid-column: auto; } }

/* tour (tabbed screenshots) */
.tour-tabs { display: flex; justify-content: center; margin-bottom: 28px; }
.tour-tabs .seg { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; } /* six tabs stay on one line */
.tour-tabs .seg::-webkit-scrollbar { display: none; }
@media (max-width: 600px) { .tour-tabs .seg button { padding: 8px 6px; letter-spacing: .07em; font-size: 9.5px; white-space: nowrap; } }
.tour-stage { perspective: 2000px; }
.tour-frame { transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .25s ease-out; transform-style: preserve-3d; }
.tour-frame img { transition: opacity .35s; }
.tour-cap { text-align: center; color: var(--ink-2); margin: 22px auto 0; max-width: 60ch; min-height: 3.2em; }

/* specs */
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
@media (max-width: 800px) { .specs { grid-template-columns: 1fr; } }
.specs dl { margin: 0; }
.specs .row { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.specs dt { font: 600 10px/1.8 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.specs dd { margin: 0; color: var(--ink); font-size: 15px; }

/* pricing */
.price-card {
  position: relative; border-radius: 20px; padding: clamp(28px, 5vw, 56px); overflow: hidden;
  border: 1px solid rgb(var(--accent-rgb) / .22);
  background:
    radial-gradient(70% 90% at 100% 0%, rgb(var(--accent-rgb) / .22), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(240,138,75,.10), transparent 60%),
    linear-gradient(180deg, #16161c, #0d0d13);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
@media (max-width: 860px) { .price-card { grid-template-columns: 1fr; } }
.price { display: flex; align-items: baseline; gap: 12px; }
.price b { font: 600 clamp(56px, 7vw, 84px)/1 var(--sans); letter-spacing: -.04em; }
.price s { color: var(--ink-3); font-size: 22px; }
.price-card .row { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { font: 500 11px/1.6 var(--mono); letter-spacing: .1em; color: var(--ink-3); }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; font-size: 17px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--mono); color: var(--violet-2); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-2); max-width: 66ch; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--ink-3); font-size: 14px; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
.footer h5 { margin: 0 0 14px; font: 600 10px/1 var(--mono); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--ink); }
.footer .social { display: flex; gap: 6px; margin: 20px 0 0 -9px; padding: 0; }
.footer .social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; color: var(--ink-3); transition: color .15s, background-color .15s; }
.footer .social a:hover, .footer .social a:focus-visible { color: var(--ink); background: var(--line); }
.footer .social svg { fill: currentColor; }
.footer .legal { margin-top: 48px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font: 500 11px/1 var(--mono); letter-spacing: .12em; }

/* sticky buy bar (mobile) */
.buybar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none;
  align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 14px; border: 1px solid var(--line-2);
  background: rgba(16,15,22,.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transform: translateY(140%); transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.buybar.show { transform: none; }
.buybar svg { height: 11px; width: auto; }
@media (max-width: 860px) { .buybar { display: flex; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint i { animation: none; }
}

/* wordmark: the word is cut on load, halves drift apart along the blade */
.wordmark .wm-l, .wordmark .wm-r { transform-box: view-box; }
.wordmark .wm-l { animation: wmL 1.4s cubic-bezier(.2,.8,.2,1) .5s both; }
.wordmark .wm-r { animation: wmR 1.4s cubic-bezier(.2,.8,.2,1) .5s both; }
.wordmark .cut { stroke-dasharray: 1200; animation: wmCut .7s cubic-bezier(.6,0,.2,1) .15s both, wmGlow 3.2s ease-in-out 1.6s infinite; }
@keyframes wmL { from { transform: none; } to { transform: translate(-70px, calc(var(--wm-dy, 0px) * -1)); } }
@keyframes wmR { from { transform: none; } to { transform: translate(70px, var(--wm-dy, 0px)); } }
html.wm-drop .wordmark { --wm-dy: 18px; } /* ?wm=drop: the original slanted split, for comparison */
@keyframes wmCut { from { stroke-dashoffset: 1200; opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes wmGlow { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .wordmark * { animation: none !important; } }

/* stat with "3 in 1" */
.stat b small { font-size: .45em; font-weight: 500; color: var(--ink-3); margin: 0 .12em; letter-spacing: 0; }

/* ---------- per slice / all slices demo ---------- */
.scope-pads { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; padding: 16px 16px 6px; }
.spad {
  position: relative; border-radius: 9px; padding: 9px 0 8px; cursor: pointer;
  background: linear-gradient(#1b1b21, #14141a); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.spad.sel { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 0 24px -8px var(--c); }
.spad.flash { transform: scale(1.05); }
.spad .n, .spad .v { font: 600 10px/1 var(--mono); color: var(--ink-3); letter-spacing: .06em; }
.spad.sel .v { color: var(--ink); }
.spad .meter { position: relative; width: 14px; height: 96px; border-radius: 4px; background: #0b0b11; border: 1px solid var(--line); overflow: hidden; }
.spad .meter::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-2); } /* 0 st */
.spad .meter i { position: absolute; left: 0; right: 0; top: 50%; height: 0; background: var(--c); opacity: .35; }
.spad.sel .meter i { opacity: .95; box-shadow: 0 0 12px var(--c); }
.scope-ctl { display: grid; grid-template-columns: auto 1fr 6ch; align-items: center; gap: 14px; padding: 14px 18px; font: 600 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.scope-ctl > :last-child { text-align: right; letter-spacing: .04em; text-transform: none; color: var(--ink); }
.scope-slider { position: relative; height: 24px; cursor: ew-resize; touch-action: none; }
.scope-slider i { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: #0b0b11; border: 1px solid var(--line); }
.scope-slider i::after { content: ""; position: absolute; left: 50%; top: -5px; bottom: -5px; width: 1px; background: var(--line-2); } /* 0 st */
.scope-slider b { position: absolute; top: 50%; left: calc(var(--v, 0) * 100%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: linear-gradient(#f1f0f6, #c9c8d2); box-shadow: 0 2px 6px rgba(0,0,0,.6); }
.scope-slider:focus-visible { outline: 1px solid var(--ink-3); outline-offset: 4px; border-radius: 4px; }
.scope-foot { padding: 0 18px 16px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); min-height: 2.4em; }
@media (max-width: 520px) {
  .scope-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .scope-bar .seg { flex-wrap: nowrap; } .scope-bar .seg button { flex: 1; }
  .scope-pads { grid-template-columns: repeat(4, 1fr); padding: 12px 12px 4px; }
  .spad .meter { height: 64px; }
}

/* ---------- flow comparison ---------- */
.flow { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: stretch; gap: 0; max-width: 980px; margin: 0 auto; }
.flow-col { border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); }
.flow-col h4 { margin: 0 0 18px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }
.flow-col ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.flow-col li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; font-size: 16px; }
.flow-col li::before { content: counter(s, decimal-leading-zero); font: 600 11px/1.9 var(--mono); }
.flow-col.old { background: #0d0d13; color: var(--ink-3); }
.flow-col.old h4, .flow-col.old li::before { color: var(--ink-3); }
.flow-col.old li { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.18); }
.flow-col.new { border-color: rgb(var(--accent-rgb) / .3); background: radial-gradient(80% 100% at 100% 0%, rgb(var(--accent-rgb) / .18), transparent 60%), linear-gradient(#16161c, #0e0e14); }
.flow-col.new h4, .flow-col.new li::before { color: var(--violet-2); }
.flow-col.new p { margin: 22px 0 0; color: var(--ink); font-weight: 500; }
.flow-arrow { position: relative; }
.flow-arrow::before { content: ""; position: absolute; left: 14px; right: 14px; top: 50%; height: 2px; background: linear-gradient(90deg, var(--line-2), var(--violet)); }
.flow-arrow::after { content: ""; position: absolute; right: 12px; top: calc(50% - 5px); border: 6px solid transparent; border-left-color: var(--violet); border-right: 0; }
@media (max-width: 760px) { .flow { grid-template-columns: 1fr; gap: 14px; } .flow-arrow { height: 30px; } .flow-arrow::before { left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(var(--line-2), var(--violet)); } .flow-arrow::after { right: auto; left: calc(50% - 5px); top: auto; bottom: 0; border: 6px solid transparent; border-top-color: var(--violet); border-bottom: 0; } }

/* ---------- maker note ---------- */
.maker { margin: 0 auto clamp(64px, 9vw, 110px); max-width: 860px; text-align: center; }
.maker blockquote { margin: 0; position: relative; }
.maker blockquote::before { content: "\201C"; display: block; font: 600 96px/0.6 Georgia, serif; color: var(--violet); opacity: .55; margin-bottom: 18px; }
.maker p { margin: 0 0 18px; font-size: clamp(20px, 2.3vw, 28px); line-height: 1.4; letter-spacing: -.01em; color: var(--ink); }
.maker p + p { color: var(--ink-2); font-size: clamp(17px, 1.7vw, 20px); }
.maker figcaption { margin-top: 22px; display: grid; gap: 6px; }
.maker figcaption .mono { font-size: 12px; letter-spacing: .26em; color: var(--violet-2); }
.maker figcaption span:last-child { color: var(--ink-3); font-size: 14px; }

/* ---------- video placeholder ---------- */
.video { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 50px 100px -40px rgba(0,0,0,.9); }
.video img { filter: blur(2px) brightness(.45) saturate(.9); transform: scale(1.03); }
.video-overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2); }
.video .play { width: 84px; height: 84px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 10px rgb(var(--accent-rgb) / .15), 0 20px 50px -10px var(--glow); position: relative; }
.video .play::after { content: ""; position: absolute; left: 34px; top: 27px; border: 15px solid transparent; border-left: 22px solid #fff; border-right: 0; }

/* pan shots (dysekt.js wraps them): phones swipe across wide screenshots at a readable size */
.pan-box { position: relative; }
.pan-hint { display: none; }
@media (max-width: 700px) {
  .pan { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .pan::-webkit-scrollbar { display: none; }
  .pan img { height: 210px; width: auto; max-width: none; display: block; }
  .tour-frame .pan img { height: 340px; }
  .tile .pan-box { border-radius: 10px; overflow: hidden; }
  .pan-hint { display: flex; align-items: center; gap: 8px; position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); pointer-events: none; z-index: 2;
    padding: 8px 14px; border-radius: 999px; background: rgba(8,8,12,.85); border: 1px solid var(--line-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font: 600 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); transition: opacity .4s; }
  .pan-hint i { position: relative; width: 18px; height: 1px; background: currentColor; animation: swipeHint 1.4s ease-in-out infinite; }
  .pan-hint i::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border: solid currentColor; border-width: 1px 1px 0 0; transform: rotate(45deg); }
  @keyframes swipeHint { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(4px); } }
  .panned .pan-hint { opacity: 0; }
  /* edge fades: more image off that side */
  .pan-box::before, .pan-box::after { content: ""; position: absolute; top: 0; bottom: 0; width: 36px; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .3s; }
  .pan-box::before { left: 0; background: linear-gradient(90deg, rgba(8,8,12,.75), transparent); }
  .pan-box::after { right: 0; background: linear-gradient(-90deg, rgba(8,8,12,.75), transparent); }
  .pan-box.more-left::before, .pan-box.more-right::after { opacity: 1; }
  /* fx tiles: keep the names clear of the knob */
  .fx { padding: 18px 14px 20px; }
  .fx .knob { width: 20px; height: 20px; right: 12px; top: 14px; }
  .fx h4 { font-size: 11.5px; letter-spacing: .1em; padding-right: 0; }
  .fx small { padding-right: 24px; }
  /* specs: label above value */
  .specs .row { grid-template-columns: 1fr; gap: 6px; padding: 14px 0; }
}
@media (max-width: 700px) { .tile .pan-box { margin-top: 8px; } .tile .pan img { margin-top: 0; border: 0; } }

.video.promo video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #08080e; }

/* legal / text pages (eula, privacy, refunds) */
.doc-nav { position: sticky; }
.doc { padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 10vw, 120px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 6vw, 56px); margin: 18px 0 12px; }
.doc .updated { color: var(--ink-3); font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 40px; }
.doc .summary { border: 1px solid var(--line-2); border-radius: var(--radius); background: rgb(var(--accent-rgb) / .06); padding: 20px 24px; margin: 0 0 44px; color: var(--ink-2); }
.doc .summary b { color: var(--ink); }
.doc h2 { font-size: 22px; letter-spacing: -.01em; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--ink-2); line-height: 1.7; }
.doc ul { padding-left: 1.2em; }
.doc a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.doc strong { color: var(--ink); font-weight: 600; }
/* Changelog: one card-less block per release, version in mono, groups labelled like the UI's captions. */
.changelog .release { padding: 36px 0 8px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.changelog .release header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.changelog .release h2 { margin: 0; font: 600 30px/1 var(--mono); letter-spacing: -.02em; color: var(--ink); }
.changelog .release time { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.changelog .release .tag { font: 600 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); border-radius: 999px; padding: 5px 9px 4px; }
.changelog .release h3 { margin: 26px 0 6px; font: 600 11px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.changelog .release ul { margin: 0; }
.changelog .release li { margin: 0 0 10px; }
.changelog .release .note { margin: 14px 0 0; font-size: 14px; color: var(--ink-3); }


/* home */
.home-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(140px, 22vw, 300px) 0 clamp(40px, 6vw, 72px); }
/* Full-bleed photo (black and white, baked grain) behind the headline and the waveform; it fades into the page at
   the bottom and darkens toward the left, where the headline sits. */
.hero-photo { position: absolute; inset: 0; z-index: -1; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; display: block; }

.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(8,8,12,.82) 0%, rgba(8,8,12,.5) 45%, rgba(8,8,12,.12) 100%),
              linear-gradient(180deg, rgba(8,8,12,.55) 0%, rgba(8,8,12,0) 22%, rgba(8,8,12,0) 42%, rgba(8,8,12,.72) 72%, var(--bg) 100%); }
@media (max-width: 640px) {
  /* phones: the whole photo as a band across the top (a cover crop of a tall box only showed screen texture),
     fading into the page under the headline */
  .home-hero { padding-top: 54vw; }
  .hero-photo { bottom: auto; height: 74vw; }
  .hero-photo img { object-position: 50% 50%; }
  .hero-photo::before { background: linear-gradient(180deg, rgba(8,8,12,.15) 0%, rgba(8,8,12,0) 30%, rgba(8,8,12,.55) 70%, var(--bg) 100%); }
}
.home-hero h1 { font-size: clamp(40px, 7vw, 92px); letter-spacing: -.035em; line-height: 1.02; max-width: 14ch; margin: 0; }
.home-hero p { margin: 26px 0 0; max-width: 52ch; }
.feature { border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, var(--panel), var(--bg-2)); }
.feature .video { border: 0; border-radius: 0; box-shadow: none; }
.feature-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: end; padding: clamp(24px, 4vw, 48px); }
.feature-body .wordmark-sm svg { height: clamp(26px, 3.4vw, 40px); width: auto; display: block; color: var(--ink); }
.feature-body p { color: var(--ink-2); margin: 18px 0 0; max-width: 46ch; }
.feature-body .row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.feature-body .formats { justify-content: flex-end; margin-top: 16px; }
@media (max-width: 760px) { .feature-body { grid-template-columns: 1fr; } .feature-body .row, .feature-body .formats { justify-content: flex-start; } }
.home-note { padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 10vw, 120px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); }
.home-note h2 { font-size: clamp(26px, 3vw, 36px); }
.home-note p { color: var(--ink-2); margin: 0; }
@media (max-width: 760px) { .home-note { grid-template-columns: 1fr; } }

/* contact */
.contact { padding: clamp(56px, 9vw, 110px) 0 clamp(72px, 10vw, 120px); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact h1 { font-size: clamp(38px, 5.5vw, 64px); letter-spacing: -.03em; line-height: 1.04; margin: 0 0 20px; }
.contact .lede { margin: 0 0 28px; }
.contact .aside p { color: var(--ink-2); margin: 0 0 14px; }
.contact .aside a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.form { border: 1px solid var(--line-2); border-radius: 18px; background: linear-gradient(180deg, var(--panel), var(--bg-2)); padding: clamp(20px, 3.5vw, 36px); display: grid; gap: 18px; }
.form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form .pair { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font: 600 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.field label em { font-style: normal; color: var(--ink-3); opacity: .7; letter-spacing: .1em; text-transform: none; }
.field input, .field select, .field textarea { width: 100%; font: 400 15px/1.4 var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 12px 14px; outline: none; transition: border-color .2s; -webkit-appearance: none; appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink-2); }
.form .support-only[hidden] { display: none; }
.form .note { font-size: 13px; color: var(--ink-3); margin: 0; }
.form .note a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.form .actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.form .status { font-size: 14px; color: var(--ink-2); margin: 0; }
.form .status.error { color: #ff8a80; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .fields { display: grid; gap: 18px; }
.form.sent .fields { display: none; }
.form .done { display: none; }
.form.sent .done { display: grid; justify-items: start; gap: 12px; padding: clamp(12px, 3vw, 28px) 0; outline: none; animation: doneIn .45s cubic-bezier(.2,.7,.2,1); }
.form .done .tick { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--bg); margin-bottom: 6px; }
.form .done .tick svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form .done h2 { font-size: clamp(26px, 3vw, 34px); margin: 0; }
.form .done p { color: var(--ink-2); margin: 0; }
.form .done p strong { color: var(--ink); font-weight: 600; }
.form .done .sent-topic { font: 500 11px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.form .done .btn { margin-top: 12px; }
@keyframes doneIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .form.sent .done { animation: none; } }
.home-note p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.maker figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* home: waveform horizon under the headline (index.src.html) */
.horizon { margin-top: clamp(36px, 5vw, 64px); height: clamp(170px, 20vw, 260px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.horizon canvas { display: block; width: 100%; height: 100%; }

/* Top of every page: a soft neutral overhead light and a faint DAW-style grid, both fading out by mid-screen.
   Sits behind everything (z-index -1, over the page background). The DYSEKT hero's opaque stage gets its own copy. */
body::before, .hero-stage::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: min(900px, 110vh); z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% -8%, rgba(236, 235, 243, .11), transparent 70%),
    linear-gradient(rgba(236, 235, 243, .05) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(236, 235, 243, .05) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(85% 70% at 50% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(85% 70% at 50% 0%, #000 30%, transparent 100%);
}
.hero-stage::before { z-index: 0; } /* inside the stage: above its background, below the grid floor and the scene */
/* Decorative films: the pointer passes through, so browsers don't attach hover overlays (e.g. Opera's video popout button). */
.video.promo video { pointer-events: none; }

/* phones: card CTAs stack full width, the primary (Buy) on top, so pairs never end up two different widths */
@media (max-width: 520px) {
  .feature-body .row, .price-card .row { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .feature-body .row .btn, .price-card .row .btn { justify-content: center; }
  .feature-body .row .btn-primary, .price-card .row .btn-primary { order: -1; }
}

/* in-page links (#buy, #slice…) land below the fixed header, not under it */
[id] { scroll-margin-top: 104px; }

/* stems demo: taller on phones, so each lane has room for its name strip and a readable wave */
@media (max-width: 560px) { #stemsCanvas { aspect-ratio: 4 / 3.6; height: auto; } }

/* Moonbase storefront panels: solid black primary buttons with white text (Moonbase otherwise uses a mid-grey
   shade derived from theme.colors.primary). */
#moonbase { --moonbase-bg-brand-primary: #0b0b0d !important; --moonbase-text-contrast: #ffffff !important; }

/* checkout couldn't load (src/partials/moonbase.html) */
.mb-notice { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; width: min(560px, calc(100vw - 32px));
  padding: 14px 44px 14px 18px; border-radius: 12px; background: #f4f3f8; color: #111; font-size: 14px; line-height: 1.5; box-shadow: 0 20px 60px -10px rgba(0,0,0,.7); }
.mb-notice a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.mb-notice button { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: #111; }

/* our close button over Moonbase checkout (src/partials/moonbase.html): fades with checkout, icon centred */
.mb-close { position: fixed; top: calc(10px + env(safe-area-inset-top)); right: 10px; z-index: 2147483647; width: 40px; height: 40px; padding: 0;
  display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); background: #fff; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.25); opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
.mb-close.show { opacity: 1; visibility: visible; transition: opacity .25s .15s, visibility 0s; }
.mb-close svg { width: 16px; height: 16px; stroke: #111; stroke-width: 1.8; stroke-linecap: round; fill: none; }

/* buy card: launch offer note under the price (filled from Moonbase, src/partials/moonbase.html) */
.launch-note { margin: 10px 0 0; max-width: 34ch; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.launch-note b { color: var(--ink); font-weight: 600; }
@media (max-width: 600px) { .mb-close { width: 34px; height: 34px; top: calc(8px + env(safe-area-inset-top)); right: 8px; } .mb-close svg { width: 14px; height: 14px; } } /* a touch smaller on phones */
@media (max-width: 700px) { .footer .legal { line-height: 1.7; row-gap: 6px; } } /* the VST trademark line wraps on phones: give it room */

/* Comparison table: scrolls inside its own frame on phones, feature column pinned. */
.compare { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); }
.compare:focus-visible { outline: 2px solid var(--ink-2); outline-offset: 3px; }
.compare table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font: 600 10px/1.8 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.compare thead th.us { color: var(--ink); }
.compare tbody th { font-weight: 500; color: var(--ink-2); width: 22%; position: sticky; left: 0; background: var(--bg-2); }
.compare td { color: var(--ink-2); }
.compare td.us { color: var(--ink); background: rgba(var(--accent-rgb) / .04); }
.compare th.us { background: rgba(var(--accent-rgb) / .04); }
.compare .yes { color: var(--ink); font-weight: 600; }
.compare .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.compare-note { margin-top: 14px; color: var(--ink-3); font-size: 13px; }
.compare-note a { color: var(--ink-2); }
@media (max-width: 640px) { .compare table { font-size: 14px; } .compare th, .compare td { padding: 14px; } }

/* contact: where to find logs and crash reports */
.contact .crash-help { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.contact .crash-help h2 { font-size: 18px; margin: 0 0 10px; letter-spacing: -.01em; }
.contact .crash-help ul { margin: 0; padding: 0 0 0 18px; color: var(--ink-2); display: grid; gap: 10px; font-size: 15px; }
.contact .crash-help strong { color: var(--ink); font-weight: 600; }
.contact .crash-help .mono { font-family: var(--mono); font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }

/* trademark note under the character section */
.tm-note { text-align: center; margin: 22px auto 0; max-width: 80ch; }

/* "One slice, or all of them": an illustration in the promo's language (no plug-in chrome) */
.scope-shot { padding: 14px 14px 0; } /* the real waveform inside the panel */
/* tags under the slices of the illustrated waveform (edge to edge) */
.scope-tags { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; padding: 8px 0 10px; }
.scope-tag { display: flex; justify-content: center; align-items: baseline; padding: 5px 0; border-radius: 5px; font: 600 11px/1 var(--mono); color: var(--ink-3); background: rgba(255,255,255,.03); transition: background-color .3s ease, color .3s ease; }
.scope-tag i { font-style: normal; font-weight: 500; opacity: .7; }
.scope-tag.on { background: var(--c); color: #08080c; }
@media (max-width: 1100px) { .scope-tag i { display: none; } .scope-tag { font-size: 10px; } }
@media (max-width: 520px) { .scope-tags { gap: 2px; } .scope-tag { font-size: 9px; padding: 4px 0; } }

/* "One slice, or all of them": copy centred above, the demo panel at full content width so the real waveform is big */
.idea-stack { display: grid; gap: clamp(28px, 4vw, 48px); }
.idea-stack .copy { max-width: 760px; margin: 0 auto; }
.idea-stack .copy p { margin-left: auto; margin-right: auto; }
.idea-stack .scope-shot { padding: 18px 18px 0; }
#scopeWave { display: block; width: 100%; height: clamp(170px, 20vw, 250px); border-radius: 8px; }
.scope-ctl-row { display: flex; align-items: center; gap: 14px; padding: 4px 18px 6px; }
.scope-knob { position: relative; width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 50% 38%, #e9e8f0 0 34%, #b9b7c6 60%, #6f6d7c 100%); box-shadow: 0 0 0 2px #1d1d26, 0 0 0 4px rgba(155,124,255,.35), 0 6px 14px rgba(0,0,0,.6); }
.scope-knob i { position: absolute; left: 50%; top: 4px; width: 2px; height: 11px; margin-left: -1px; border-radius: 1px; background: #1d1d26; transform-origin: 50% 15px; transform: rotate(var(--a, 0deg)); }
.scope-ctl-text { display: grid; gap: 3px; }
.scope-ctl-text small { font: 600 9.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.scope-ctl-text b { font: 600 15px/1 var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.scope-target { margin-left: auto; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; }
@media (max-width: 640px) {
  .idea-stack .scope-shot { padding: 12px 12px 0; }
  #scopeWave { height: 180px; }
  .scope-tags { grid-template-columns: repeat(8, 1fr); gap: 4px; padding: 8px 0 10px; }
  .scope-tag:nth-child(n + 9) { display: none; }
  .scope-tag { font-size: 11px; padding: 6px 0; }
  .scope-tag i { display: inline; }
  .scope-ctl-row { padding: 4px 12px 6px; }
}

/* "Slice fast" tools: four equal tiles, two per row on tablets, stacked on phones */
.slice-tools > h3 { margin: 0 0 22px; }
.bento.four { grid-template-columns: repeat(4, 1fr); }
.bento.four .tile { grid-column: auto; }
@media (max-width: 900px) { .bento.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bento.four { grid-template-columns: 1fr; } }

.specs dd a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
