/* Stemscope landing page */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-var.woff2) format('woff2'); }
@font-face { font-family: 'Bricolage'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/bricolage-latin-var.woff2) format('woff2'); }

:root {
  --bg: #0b0d0c; --bg2: #0f1211; --surface: #141816; --raised: #1a1f1c; --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.14);
  --text: #eef1ec; --dim: #a3aca4; --faint: #737c75;
  --sage: #577654; --sage-hi: #9cc196; --sage-ink: #0b0d0c;
  --vocals: #ff6b9a; --drums: #ffb224; --bass: #a395ff; --other: #2fd3bd;
  --shadow: 0 30px 80px -20px rgba(0,0,0,.6), 0 8px 24px -8px rgba(0,0,0,.5);
  --r: 20px; --wrap: 1180px;
  --display: 'Bricolage', 'Inter', system-ui, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f4ef; --bg2: #eeede6; --surface: #ffffff; --raised: #ffffff; --line: rgba(20,24,20,.08); --line2: rgba(20,24,20,.16);
    --text: #141814; --dim: #4f584f; --faint: #6f786f;
    --sage-hi: #476544; --sage-ink: #ffffff;
    --vocals: #d6336c; --drums: #b86e00; --bass: #5f4bd0; --other: #0c8577;
    --shadow: 0 30px 70px -24px rgba(30,40,30,.35), 0 8px 20px -10px rgba(30,40,30,.25);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden;
  font: 400 17px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.025em; margin: 0; font-weight: 700; }
p { margin: 0; }
b { font-weight: 650; }
.nowrap { white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

:focus-visible { outline: 2.5px solid var(--sage-hi); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* brand mark: the app icon */
.mark { width: 30px; height: 30px; border-radius: 8px; flex: none; background: url(img/favicon.svg) center / cover no-repeat; box-shadow: 0 0 0 1px var(--line); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px;
  font: 600 16px/1 Inter, system-ui, sans-serif; text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease; white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--text); color: var(--bg); box-shadow: 0 10px 30px -10px rgba(156,193,150,.45); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(156,193,150,.6); }
.btn-ghost { border-color: var(--line2); color: var(--text); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.btn-ghost:hover { border-color: var(--dim); transform: translateY(-1px); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn-lg { height: 58px; padding: 0 30px; font-size: 17px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; transition: background-color .25s, border-color .25s, backdrop-filter .25s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 19px/1 var(--display); letter-spacing: -0.02em; }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--dim); font-size: 15px; font-weight: 500; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--text); background: var(--line); }
@media (max-width: 860px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }

/* hero */
.hero { position: relative; margin-top: -68px; padding: 124px 0 40px; overflow: hidden; isolation: isolate; }
.hero-glow { position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 72% 38%, color-mix(in srgb, var(--sage) 45%, transparent), transparent 70%),
    radial-gradient(28% 34% at 88% 18%, color-mix(in srgb, var(--vocals) 18%, transparent), transparent 70%),
    radial-gradient(30% 36% at 58% 78%, color-mix(in srgb, var(--bass) 16%, transparent), transparent 70%);
  filter: blur(10px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-brand { display: inline-flex; align-items: center; gap: 12px; font: 700 22px/1 var(--display); letter-spacing: -0.02em; }
.hero-logo { width: 96px; flex: none; }
.logo-anim { --lg-wave: var(--text); --lg-cut: var(--bg); --lg-prism: #86A07F; --lg-b1: #A5BD9F; --lg-b2: #6E8A6B; --lg-b3: #44695A;
  width: 100%; height: auto; aspect-ratio: 980 / 536; display: block; overflow: visible; }
.logo-anim .lg-wave { stroke: var(--lg-wave); } .logo-anim .lg-cut { stroke: var(--lg-cut); }
.logo-anim .lg-prism { fill: var(--lg-prism); } .logo-anim .lg-b1 { fill: var(--lg-b1); } .logo-anim .lg-b2 { fill: var(--lg-b2); } .logo-anim .lg-b3 { fill: var(--lg-b3); }
@media (prefers-color-scheme: light) { .logo-anim { --lg-b2: #657E63; --lg-b3: #2F4A3B; } }
.beta { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font: 650 11.5px/1 Inter, system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--sage-hi); background: color-mix(in srgb, var(--sage) 22%, transparent); border: 1px solid color-mix(in srgb, var(--sage-hi) 35%, transparent); }
.brand .beta { height: 19px; padding: 0 7px; font-size: 10px; margin-left: -2px; }
.hero h1 { font-size: clamp(42px, 5.3vw, 74px); margin: 22px 0 22px; font-weight: 750; letter-spacing: -0.03em; line-height: 1.02; }
.lede { font-size: clamp(17.5px, 1.5vw, 20px); color: var(--dim); max-width: 34em; line-height: 1.6; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta-row.center { justify-content: center; }
.platforms { margin-top: 18px; color: var(--faint); font-size: 14px; letter-spacing: .01em; }
.cta-row { align-items: center; }
.cta-row .btn-sm { height: 40px; }

/* phones */
.phone { margin: 0; position: relative; border-radius: 36px; padding: 7px; background: linear-gradient(160deg, #3a403c, #121513 40%, #262b28);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.08); }
.phone img { border-radius: 30px; width: 100%; height: auto; aspect-ratio: 480 / 977; object-fit: cover; background: #0e0f11; }
.hero-phones { position: relative; height: 640px; }
.hero-phones .phone { position: absolute; top: 50%; left: 50%; }
.phone-front { width: 300px; transform: translate(-50%, -50%); z-index: 2; }
.phone-back { width: 252px; z-index: 1; opacity: .96; }
.phone-left { transform: translate(-112%, -46%) rotate(-7deg); }
.phone-right { transform: translate(12%, -46%) rotate(7deg); }
.hero-phones .phone { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-phones .phone-left { animation-delay: .12s; } .hero-phones .phone-right { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; translate: 0 40px; } }

@media (max-width: 1080px) { .phone-front { width: 270px; } .phone-back { width: 224px; } .hero-phones { height: 580px; } }
@media (max-width: 900px) {
  .hero { padding-top: 96px; }
  .hero-in { grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .cta-row { justify-content: center; }
  .hero-phones { height: clamp(420px, 118vw, 600px); }
  .phone-front { width: min(56vw, 280px); }
  .phone-back { width: min(45vw, 230px); }
  .phone-left { transform: translate(-104%, -46%) rotate(-7deg); }
  .phone-right { transform: translate(4%, -46%) rotate(7deg); }
}
@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .phone { border-radius: 26px; padding: 5px; } .phone img { border-radius: 22px; }
  .hero .cta-row { width: 100%; } .hero .cta-row .btn-primary { flex: 1 1 100%; }
}

/* section heads */
section { position: relative; }
.sec-title { font-size: clamp(30px, 4vw, 46px); text-align: center; margin: 0 0 36px; }

/* interactive demo */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.demo { padding: 96px 0 40px; }
.studio { --lane-ctl: 236px; position: relative; max-width: 1080px; margin: 0 auto; background: linear-gradient(180deg, var(--surface), var(--bg2)); border: 1px solid var(--line2); border-radius: 28px; padding: 22px; box-shadow: var(--shadow), 0 0 0 1px rgba(0,0,0,.2); }
.studio::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, color-mix(in srgb, var(--vocals) 50%, transparent), transparent 30%, transparent 70%, color-mix(in srgb, var(--other) 50%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .7; }
.st-top { display: flex; align-items: center; gap: 16px; padding: 2px 2px 16px; flex-wrap: wrap; }
.st-play { position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--text); color: var(--bg); display: grid; place-items: center; cursor: pointer; flex: none; transition: transform .2s; box-shadow: 0 10px 30px -10px rgba(156,193,150,.6); }
.st-play:hover { transform: scale(1.05); }
.st-play svg { width: 26px; height: 26px; fill: currentColor; }
.st-play .i-pause, .studio.playing .st-play .i-play { display: none; }
.studio.playing .st-play .i-pause { display: block; }
.st-spin { position: absolute; inset: -5px; border-radius: 50%; border: 2.5px solid transparent; border-top-color: var(--sage-hi); opacity: 0; }
.studio.loading .st-spin { opacity: 1; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.st-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.st-title { font: 700 19px/1.25 var(--display); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-sub { color: var(--faint); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-time { color: var(--dim); font: 500 14px ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; }
.chipbtn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--dim); font: 600 14px Inter, sans-serif; cursor: pointer; }
.chipbtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chipbtn[aria-pressed=true] { color: var(--sage-ink); background: var(--sage-hi); border-color: var(--sage-hi); }
.st-sections { position: relative; height: 24px; margin: 0 0 8px; }
.st-sections button { position: absolute; border: 0; cursor: pointer; text-align: left; font-family: Inter, sans-serif; top: 0; height: 22px; border-radius: 6px; font-size: 12px; font-weight: 600; line-height: 22px; padding: 0 8px; overflow: hidden; white-space: nowrap; color: var(--dim); background: var(--line); border-left: 2px solid var(--line2); }
.st-sections button:hover { color: var(--text); }
.st-sections button.on { color: var(--text); background: var(--line2); border-left-color: var(--sage-hi); }
.st-sections button.looped { color: var(--sage-ink); background: var(--sage-hi); border-left-color: var(--sage-hi); }
.lanes { position: relative; display: grid; gap: 8px; touch-action: pan-y; border-radius: 16px; }
.lane { --c: var(--text); display: grid; grid-template-columns: var(--lane-ctl) minmax(0, 1fr); align-items: center; gap: 12px; background: color-mix(in srgb, var(--c) 6%, var(--raised)); border: 1px solid color-mix(in srgb, var(--c) 16%, transparent); border-radius: 14px; padding: 8px 10px; }
.lane[data-stem=vocals] { --c: var(--vocals); } .lane[data-stem=drums] { --c: var(--drums); } .lane[data-stem=bass] { --c: var(--bass); } .lane[data-stem=other] { --c: var(--other); }
.lane.off .lane-wave { opacity: .28; }
.lane.off .lane-name { color: var(--faint); }
.lane-wave { transition: opacity .2s; }
.lane-ctl { display: flex; align-items: center; gap: 6px; }
.lane-name { font-weight: 650; font-size: 15px; margin-right: auto; display: flex; align-items: center; gap: 9px; min-width: 64px; }
.meter { width: 6px; height: 26px; border-radius: 3px; background: color-mix(in srgb, var(--c) 18%, transparent); position: relative; overflow: hidden; flex: none; }
.meter b { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; background: var(--c); transform-origin: bottom; transform: scaleY(var(--lv, 0)); border-radius: 3px; }
.vol { -webkit-appearance: none; appearance: none; width: 78px; height: 28px; background: transparent; cursor: pointer; margin: 0 4px 0 0; }
.vol::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--c) var(--p, 100%), var(--line2) var(--p, 100%)); }
.vol::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--c) var(--p, 100%), var(--line2) var(--p, 100%)); }
.vol::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: var(--text); border: 0; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.vol::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--text); border: 0; }
.ms { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line2); background: transparent; color: var(--dim); font: 700 13px/1 Inter, sans-serif; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; flex: none; }
.ms:hover { color: var(--text); border-color: var(--dim); }
.ms[data-mute][aria-pressed=true] { background: #e5484d; border-color: #e5484d; color: #fff; }
.ms[data-solo][aria-pressed=true] { background: #f5c542; border-color: #f5c542; color: #1a1a1a; }
.lane-wave { position: relative; height: 56px; cursor: pointer; }
.lane-wave canvas { position: absolute; inset: 0; width: 100%; height: 100%; transform: scaleY(var(--vol, 1)); transition: transform .12s ease-out; }
@media (prefers-reduced-motion: reduce) { .lane-wave canvas { transition: none; } }
.w-dim { opacity: .38; }
.w-lit { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x, 0%)) 0 0); }
.lane-wave .ph { position: absolute; top: -3px; bottom: -3px; left: 0; width: 2px; margin-left: -1px; background: var(--text); border-radius: 2px; pointer-events: none; will-change: transform; opacity: 0; transition: opacity .2s; }
.studio.started .lane-wave .ph { opacity: .95; }
.lanes:focus-visible { outline-offset: 6px; }
.st-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; margin-top: 16px; }
.st-pads, .st-vis { background: var(--raised); border: 1px solid var(--line); border-radius: 18px; padding: 16px; min-width: 0; }
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; min-height: 34px; }
.panel-head h3 { font: 650 15px Inter, sans-serif; letter-spacing: 0; margin-right: auto; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--line); gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--dim); font: 600 13px Inter, sans-serif; padding: 6px 11px; border-radius: 8px; cursor: pointer; }
.seg button[aria-checked=true], .seg button[aria-selected=true] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.padgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ppad { position: relative; aspect-ratio: 1 / 1; border-radius: 16px; border: 1px solid var(--line2); background: linear-gradient(180deg, var(--surface), var(--bg2)); color: var(--dim); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font: 600 13px Inter, sans-serif; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); transition: transform .08s, background-color .1s, color .1s, box-shadow .1s; padding: 4px; }
.ppad svg { width: 28px; height: 28px; fill: none; stroke: var(--drums); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ppad kbd { position: absolute; top: 7px; right: 8px; font: 600 10.5px ui-monospace, monospace; color: var(--faint); }
.ppad.on { transform: translateY(1px) scale(.97); color: var(--bg); background: var(--drums); box-shadow: 0 0 0 4px color-mix(in srgb, var(--drums) 25%, transparent), 0 0 30px color-mix(in srgb, var(--drums) 45%, transparent); }
.ppad.on svg { stroke: var(--bg); } .ppad.on kbd { color: var(--bg); }
.bar-no { color: var(--faint); font: 500 13px ui-monospace, monospace; margin-left: auto; }
.vis-body { position: relative; }
.beatgrid { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 8px 10px; align-items: center; }
.beatgrid .bl { font-size: 12px; color: var(--faint); font-weight: 600; }
.beatgrid .row { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 4px; }
.beatgrid .row i { height: 30px; border-radius: 6px; background: var(--line); transition: background-color .08s; }
.beatgrid .row i:nth-child(4n+1) { background: var(--line2); }
.beatgrid .row[data-row=kick] i.hit { background: #ff7a45; } .beatgrid .row[data-row=snare] i.hit { background: #ffd23f; } .beatgrid .row[data-row=hat] i.hit { background: #4cc2ff; }
.beatgrid .row i.now { box-shadow: inset 0 0 0 2px var(--text); }
.beatgrid .row i.hit.now { filter: brightness(1.25); }
.roll canvas { width: 100%; height: 168px; display: block; border-radius: 10px; background: var(--bg2); }
.st-status { position: absolute; left: 0; right: 0; bottom: -34px; text-align: center; color: var(--faint); font-size: 14px; }
.credit { text-align: center; max-width: 640px; margin: 44px auto 0; color: var(--faint); font-size: 12px; line-height: 1.5; }
.credit a { color: var(--dim); }
@media (prefers-color-scheme: light) {
  .beatgrid .row[data-row=kick] i.hit { background: #e2571e; } .beatgrid .row[data-row=snare] i.hit { background: #d9a400; } .beatgrid .row[data-row=hat] i.hit { background: #2f9bd6; }
}
@media (max-width: 900px) { .st-bottom { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
  .studio { --lane-ctl: 0px; padding: 14px; border-radius: 22px; }
  .st-top { gap: 12px; }
  .st-play { width: 52px; height: 52px; }
  .st-time { display: none; }
  .chipbtn { order: 3; }
  .st-meta { flex: 1 1 0; }
  .lane { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 7px 8px; }
  .lane-wave { height: 40px; }
  .ms { width: 32px; height: 32px; }
  .vol { width: 72px; }
  .ppad { border-radius: 13px; font-size: 11.5px; gap: 5px; }
  .ppad svg { width: 23px; height: 23px; }
  .ppad kbd { display: none; }
  .beatgrid { grid-template-columns: 42px minmax(0, 1fr); gap: 6px 6px; }
  .beatgrid .row { gap: 2px; } .beatgrid .row i { height: 24px; border-radius: 4px; }
  .beatgrid .bl { font-size: 11px; }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- live screens (real recordings of the app) */
.phone video.scr { display: block; width: 100%; height: auto; aspect-ratio: 480 / 977; object-fit: cover; border-radius: 30px; background: #0e0f11; }
@media (max-width: 520px) { .phone video.scr { border-radius: 22px; } }

/* hero: depth + pointer / scroll tilt */
.hero-phones { perspective: 1400px; }
.hero-rig { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.hero-phones .phone-front { transform: translate(-50%, calc(-50% + var(--lift, 0px))) translateZ(60px); }
.hero-phones .phone-left { transform: translate(calc(-112% - var(--spread, 0px)), -46%) translateZ(-30px) rotate(-7deg); }
.hero-phones .phone-right { transform: translate(calc(12% + var(--spread, 0px)), -46%) translateZ(-30px) rotate(7deg); }
@media (max-width: 900px) {
  .hero-phones .phone-left { transform: translate(calc(-104% - var(--spread, 0px)), -46%) translateZ(-30px) rotate(-7deg); }
  .hero-phones .phone-right { transform: translate(calc(4% + var(--spread, 0px)), -46%) translateZ(-30px) rotate(7deg); }
}
.hero-phones .phone-front::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.10), transparent 32%, transparent 70%, rgba(255,255,255,.04)); mix-blend-mode: screen; }

/* download channels: Release (primary) and Nightly (development build), each with its version underneath */
.dl-btn { height: auto; min-height: 52px; padding-block: 9px; }
.dl-btn.btn-lg { min-height: 58px; }
.dl-label { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; }
.dl-label small { font-size: 12.5px; font-weight: 500; line-height: 1.2; opacity: .68; font-variant-numeric: tabular-nums; }
.dl-label small:empty { display: none; }
.dl-label { min-width: 0; } .dl-label small { white-space: normal; }
.dl-btn svg { flex: none; }


/* features: compact tiles */
.features { padding: 110px 0 40px; }
.tiles { list-style: none; padding: 0; margin: 24px auto 0; max-width: 980px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 20px; transition: transform .25s, border-color .25s; }
.tile:hover { transform: translateY(-2px); border-color: var(--line2); }
.tile svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; margin-bottom: 16px; fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; background: color-mix(in srgb, var(--c) 14%, transparent); }
.tile h3, .mode h3 { font: 650 18px/1.25 Inter, system-ui, sans-serif; letter-spacing: -.015em; }
.tile p, .mode p { color: var(--dim); font-size: 15px; margin-top: 4px; }
@media (max-width: 760px) {
  .tiles { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tile { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 14px 16px; }
  .tile svg { grid-row: span 2; width: 38px; height: 38px; padding: 8px; margin: 0; }
  .tile h3 { font-size: 16px; } .tile p { font-size: 14px; margin-top: 1px; }
}

/* where it runs */
.where { padding: 80px 0 40px; }
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 720px; margin: 0 auto; }
.mode { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: var(--surface); }
.mode-main { background: linear-gradient(135deg, color-mix(in srgb, var(--sage) 34%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, var(--sage) 50%, transparent); }
.mode svg { width: 26px; height: 26px; margin-bottom: 14px; fill: none; stroke: var(--sage-hi); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.oneliner { text-align: center; margin-top: 22px; color: var(--dim); font-weight: 600; }
@media (max-width: 520px) { .modes { gap: 10px; } .mode { padding: 18px 16px; } }

/* switching: one line */
.switch { padding: 40px 0 70px; }
.switch-line { display: flex; align-items: center; justify-content: center; gap: 14px; max-width: 720px; margin: 0 auto; padding: 18px 22px; border-radius: 18px; border: 1px solid var(--line); color: var(--dim); font-size: 16px; }
.switch-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--raised); border: 1px solid var(--line2); }
.switch-ic svg { width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 520px) { .switch-line { justify-content: flex-start; font-size: 15px; padding: 14px 16px; } }

/* faq */
.faq { padding: 80px 0; border-top: 1px solid var(--line); }
.faq-in { max-width: 760px; }
.faq-list { border-top: 1px solid var(--line2); }
details { border-bottom: 1px solid var(--line2); }
summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 2px; position: relative; font: 600 17px/1.4 Inter, sans-serif; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px; margin-top: -8px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg); transition: transform .25s; }
details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
summary:hover { color: var(--sage-hi); }
details p { color: var(--dim); padding: 0 40px 20px 2px; }

/* download */
.download { padding: 20px 0 100px; }
.dl-card { position: relative; overflow: hidden; text-align: center; border-radius: 32px; padding: 40px 24px 48px; border: 1px solid color-mix(in srgb, var(--sage) 45%, transparent);
  background:
    radial-gradient(70% 55% at 50% 100%, color-mix(in srgb, var(--sage) 14%, transparent), transparent 75%),
    linear-gradient(180deg, var(--bg), var(--bg2)); }
.dl-card::before { content: ''; position: absolute; inset: auto 0 0; height: 6px; background: linear-gradient(90deg, var(--vocals), var(--drums), var(--bass), var(--other)); opacity: .9; }
.dl-glyph { width: 232px; margin: 0 auto 30px; }
@media (max-width: 600px) { .dl-glyph { width: 176px; margin-bottom: 24px; } }
.dl-card h2 { font-size: clamp(34px, 5vw, 56px); }
.dl-card .cta-row { margin-top: 28px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; }
.foot-note { color: var(--faint); font-size: 13.5px; }

/* demo: loop region, bar strip, chords */
.chipbtn .x { display: none; width: 14px; height: 14px; margin-right: -4px; }
.studio.has-range .chipbtn .x { display: block; }
.lane-wave::before { content: ''; position: absolute; top: -4px; bottom: -4px; left: var(--la, 0%); width: var(--lw, 0%); border-radius: 6px; background: color-mix(in srgb, var(--sage-hi) 16%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sage-hi) 60%, transparent); opacity: 0; transition: opacity .2s; pointer-events: none; }
.studio.has-range .lane-wave::before { opacity: 1; }
.barstrip { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 3px; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: pointer; padding-top: 4px; }
.barstrip i { height: 22px; border-radius: 5px; background: var(--line); font: 600 9.5px/22px ui-monospace, monospace; font-style: normal; text-align: center; color: var(--faint); transition: background-color .1s; }
.barstrip i.now { background: var(--line2); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.barstrip i.inloop, .cell.inloop { background: color-mix(in srgb, var(--sage-hi) 30%, transparent); color: var(--text); }
.barstrip i.sel, .cell.sel { background: color-mix(in srgb, var(--sage-hi) 45%, transparent); }
.notes-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.notes .seg button { padding: 5px 10px; font-size: 12.5px; }
.cdock { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; scroll-behavior: smooth; }
.cdock::-webkit-scrollbar { display: none; }
.dchord { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 6px 4px; border-radius: 12px; opacity: .5; transition: opacity .2s, background-color .2s; }
.dchord.on { opacity: 1; background: var(--line); }
.dname, .cname { font: 650 14px/1.1 Inter, sans-serif; letter-spacing: -0.01em; white-space: nowrap; }
.dname sup, .cname sup { font-size: .62em; font-weight: 600; margin-left: 1px; }
.cdg { width: 52px; height: 57px; display: block; }
.cdg.keys { width: 92px; height: 46px; margin-top: 4px; }
.cdg .grid { stroke: var(--line2); stroke-width: .8; }
.cdg .nut { fill: var(--text); opacity: .8; }
.cdg .fr, .cdg .mute, .cdg .kn { fill: var(--dim); font: 600 7px system-ui, sans-serif; }
.cdg .kn { font-size: 6.5px; }
.cdg .dot { fill: var(--text); }
.dchord.on .cdg .dot { fill: var(--sage-hi); }
.cdg .open { fill: none; stroke: var(--text); stroke-width: 1; }
.cdg .wk { fill: color-mix(in srgb, var(--text) 88%, transparent); stroke: var(--bg); stroke-width: .8; }
.cdg .bk { fill: var(--bg2); stroke: var(--bg); stroke-width: .6; }
.cdg .on { fill: var(--sage-hi) !important; }
.cchart { display: grid; gap: 5px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.crow { display: grid; grid-template-columns: 20px repeat(4, minmax(0, 1fr)); gap: 5px; align-items: stretch; }
.cbar { font: 500 10px/30px ui-monospace, monospace; color: var(--faint); text-align: right; }
.cmeasure { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; position: relative; padding-left: 4px; }
.cmeasure::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; border-radius: 1px; background: var(--line2); }
.cell { height: 30px; border-radius: 6px; background: var(--line); display: grid; place-items: center; cursor: pointer; overflow: hidden; padding: 0 1px; min-width: 0; }
.cell.done { background: color-mix(in srgb, var(--line) 50%, transparent); }
.cell.playing { background: var(--line2); box-shadow: inset 0 0 0 1.5px var(--text); }
.cname.cont { color: var(--faint); }
.cell .cname { font-size: 12.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 680px) {
  .barstrip { gap: 2px; } .barstrip i { height: 20px; font-size: 0; }
  .crow { grid-template-columns: 14px repeat(4, minmax(0, 1fr)); gap: 3px; }
  .cmeasure { padding-left: 3px; gap: 1px; }
  .cell { height: 28px; border-radius: 5px; } .cell .cname { font-size: 11px; }
}

/* features: the tour */
.feat-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; color: var(--c); margin-bottom: 14px; }
.feat-tag::before { content: ''; width: 22px; height: 4px; border-radius: 4px; background: var(--c); }
/* a sticky phone whose screen follows the text */
.tour { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; margin-bottom: 40px; }
.tour-stage { grid-column: 2; grid-row: 1 / span 5; position: sticky; top: calc(50vh - 330px); height: 660px; display: flex; align-items: center; justify-content: center; align-self: start; perspective: 1200px; }
.tour-glow { position: absolute; inset: 6% 4%; border-radius: 50%; z-index: -1; filter: blur(40px); opacity: .55;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--tc, var(--vocals)) 55%, transparent), transparent); transition: background .6s ease; }
.tour-phone { width: 312px; transform: rotateY(var(--ty, -8deg)) rotateX(var(--tx, 2deg)); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.tour-phone .screen { position: relative; border-radius: 30px; overflow: hidden; aspect-ratio: 480 / 977; background: #0e0f11; }
.tour-phone .scr { position: absolute; inset: 0; border-radius: 0; opacity: 0; transform: scale(1.04); filter: blur(6px); transition: opacity .55s ease, transform .7s cubic-bezier(.2,.7,.2,1), filter .55s ease; }
.tour-phone .scr.on { opacity: 1; transform: none; filter: none; }
.tour-dots { position: absolute; right: 0; top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tour-dots li { width: 6px; height: 6px; border-radius: 3px; background: var(--line2); transition: height .4s, background-color .4s; }
.tour-dots li.on { height: 26px; background: var(--c); }
.tour-step { grid-column: 1; min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; opacity: .32; transition: opacity .5s ease; }
.tour-step.on { opacity: 1; }
.tour-step .feat-tag { --c: inherit; }
.tour-step h3 { font-size: clamp(28px, 3vw, 42px); margin-bottom: 18px; }
.tour-step > p:not(.feat-tag) { color: var(--dim); font-size: 18px; max-width: 30em; }
@media (max-width: 900px) {
  .tour { grid-template-columns: minmax(0, 1fr); }
  .tour-stage { grid-column: 1; grid-row: 1; top: 64px; height: auto; padding: 10px 0 26px; z-index: 2;
    background: linear-gradient(var(--bg) 82%, color-mix(in srgb, var(--bg) 0%, transparent)); }
  .tour-phone { width: min(44vw, 210px); }
  .tour-phone .screen { border-radius: 22px; }
  .tour-glow { inset: 0 18%; }
  .tour-dots { right: 4px; }
  .tour-step { grid-row: auto; min-height: 62vh; justify-content: flex-start; padding: 18px 0 0; text-align: center; align-items: center; }
  .tour-step > p:not(.feat-tag) { font-size: 16.5px; }
  .tour-step h3 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .tour-phone, .hero-rig { transform: none !important; }
  .tour-phone .scr { transform: none; filter: none; }
}


/* waitlist */
.dl-cloud { max-width: 520px; margin: 40px auto 0; padding-top: 34px; border-top: 1px solid var(--line); }
.dl-cloud-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font: 650 12px/1 Inter, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-hi); background: color-mix(in srgb, var(--sage) 22%, transparent); border: 1px solid color-mix(in srgb, var(--sage-hi) 35%, transparent); }
.dl-cloud-line { margin: 12px 0 0; color: var(--dim); font-size: 15.5px; }
.invite-form { display: flex; gap: 10px; margin-top: 20px; }
.invite-form input[type=email] { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line2); background: var(--bg); color: var(--text); font: 500 16px Inter, system-ui, sans-serif; }
.invite-form input[type=email]::placeholder { color: var(--faint); }
.invite-form input[type=email]:focus-visible { outline: 2.5px solid var(--sage-hi); outline-offset: 2px; }
.invite-form input[aria-invalid=true] { border-color: #e5484d; }
.invite-form .btn { flex: none; }
.invite-form .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.invite-note { margin-top: 12px; color: var(--faint); font-size: 13px; min-height: 1.4em; }
.invite-note.ok { color: var(--sage-hi); font-weight: 600; font-size: 15px; }
.invite-note.err { color: #e5484d; }
@media (max-width: 520px) { .invite-form { flex-direction: column; } .invite-form input[type=email] { flex: none; width: 100%; } .invite-form .btn { width: 100%; } }

/* demo Notes: just the chords by bar (no diagrams, no piano roll) */
.notes .cdock, .notes .roll { display: none !important; }
