/* Pass a Tune — dark, dense DAW styling. */

:root {
  --bg: #141615;
  --panel: #212328;
  --panel-2: #27292f;
  --panel-3: #30333a;
  --lane: #1a1b1f;
  --line: #0c0d0f;
  --line-soft: #34373e;
  --grid-bar: rgba(255, 255, 255, 0.075);
  --grid-beat: rgba(255, 255, 255, 0.03);
  --text: #eee9df;
  --text-dim: #a0a59f;
  --accent: #d8ae75;
  --lamp: #d8ae75;
  --rec: #e5484d;
  --play: #4cc472;
  --mute: #f0a23d;
  --solo: #f1d548;
  --header-w: 224px; /* keep in sync with HEADER_W in daw.js */
  --track-h: 68px;
  --ruler-h: 26px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 12px/1.35 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--text-dim); }
.spacer { flex: 1; }
.error-text { color: #ff8d8f; }

/* ── Top bar (shared by home + DAW) ───────────────────────────────── */

.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 10px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  flex: none;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.045em;
  color: var(--text);
  text-decoration: none;
  flex: none;
}
.brand-wordmark { white-space: nowrap; }
.brand-a { color: var(--lamp); font-weight: 450; margin-inline: .045em; }
.product-mark { display: block; width: 26px; height: 26px; flex: none; }

.drop-name {
  font-weight: 600;
  font-size: 13px;
  max-width: 220px;
  min-width: 60px;
  padding: 3px 6px;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}
.drop-name:hover { background: var(--panel-3); }

.transport, .tempo, .zoom { display: flex; align-items: center; gap: 3px; flex: none; }

.tbtn {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 28px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: linear-gradient(#33363d, #2a2d33);
  color: var(--text);
  cursor: pointer;
}
.tbtn:hover { background: linear-gradient(#3a3d45, #30333a); }
.tbtn .icon { width: 14px; height: 14px; fill: currentColor; }
.tbtn.play .icon { fill: #c9ccd2; }
.tbtn.play.on { background: #1f3a29; }
.tbtn.play.on .icon { fill: var(--play); }
.tbtn.rec .icon { fill: var(--rec); }
.tbtn.rec.on { background: var(--rec); }
.tbtn.rec.on .icon { fill: #fff; }
.tbtn.rec.blink { animation: blink 0.5s steps(2, start) infinite; }
.tbtn.toggle.on { background: #263b57; color: #cfe3ff; border-color: #0d1a2b; }
.tbtn.toggle.on .icon { fill: #9cc8ff; }
.tbtn.text { font-size: 11px; font-weight: 600; color: var(--text-dim); }
.tbtn.text.on { color: #cfe3ff; }
@keyframes blink { to { background: var(--rec); } }

.lcd {
  font-family: var(--mono);
  background: #0e0f11;
  border: 1px solid #000;
  border-radius: 3px;
  padding: 1px 10px;
  min-width: 112px;
  text-align: right;
  line-height: 1.15;
  flex: none;
}
.lcd-main { font-size: 15px; color: #e8f1ff; letter-spacing: 0.02em; }
.lcd-sub { font-size: 10px; color: var(--text-dim); }

.field-btn, .field-static {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #000;
  border-radius: 3px;
  background: #0e0f11;
  font-family: var(--mono);
  line-height: 26px;
}
.field-btn { cursor: text; }
.field-btn .bpm-value { font-size: 14px; color: #e8f1ff; }
.field-btn .unit, .field-static { font-size: 10px; color: var(--text-dim); }
.field-static { font-size: 12px; color: #c9ccd2; }

.author-input {
  width: 110px;
  height: 26px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #18191c;
}

.share-btn, .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: linear-gradient(#33363d, #2a2d33);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}
.share-btn .icon, .add-track .icon { width: 13px; height: 13px; fill: currentColor; }
.btn.primary { background: linear-gradient(#3d79c9, #2f63a8); border-color: #10233d; color: #fff; }
.btn:disabled { opacity: 0.5; cursor: default; }
.text-btn { background: none; border: 0; color: var(--text-dim); cursor: pointer; text-decoration: underline; }

.inline-edit {
  width: 100%;
  min-width: 60px;
  height: 22px;
  padding: 0 5px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: #0e0f11;
  outline: none;
}
.bpm-edit { width: 58px; font-family: var(--mono); }

.notice-bar {
  padding: 6px 12px;
  background: #3a2a12;
  color: #ffd9a3;
  border-bottom: 1px solid var(--line);
}

/* ── DAW layout ───────────────────────────────────────────────────── */

body.daw-page { overflow: hidden; display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.daw-page #app { flex: 1; min-height: 0; }
.daw { display: flex; flex-direction: column; height: 100%; }

.arrange {
  position: relative;
  flex: 1;
  overflow: auto;
  background: var(--bg);
  overscroll-behavior: contain;
}
.arrange-inner {
  position: relative;
  width: calc(var(--header-w) + var(--timeline-w, 1000px));
  min-height: 100%;
}

/* Ruler (sticky on top) */
.ruler-row {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  height: var(--ruler-h);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.corner {
  position: sticky;
  left: 0;
  z-index: 6;
  width: var(--header-w);
  flex: none;
  background: var(--panel);
  border-right: 1px solid var(--line);
}
.ruler {
  position: relative;
  width: var(--timeline-w);
  flex: none;
  cursor: pointer;
  user-select: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.32) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: var(--bar-px) 100%, var(--beat-px) 7px;
  background-position: 0 0, 0 100%;
  background-repeat: repeat-x;
}
.dense .ruler { background-size: var(--bar-px) 100%, 0 0; }
.bar-label {
  position: absolute;
  top: 3px;
  padding-left: 4px;
  font-size: 11px;
  color: #aeb3bc;
  font-family: var(--mono);
  pointer-events: none;
}
.ruler-head {
  position: absolute;
  bottom: 0;
  left: -6px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #f4f4f4;
  pointer-events: none;
}

/* Tracks */
.track-row {
  display: flex;
  height: var(--track-h);
  border-bottom: 1px solid var(--line);
}
.track-header {
  position: sticky;
  left: 0;
  z-index: 6;
  display: flex;
  width: var(--header-w);
  flex: none;
  background: var(--panel-2);
  border-right: 1px solid var(--line);
  user-select: none;
}
.track-row.selected .track-header { background: #31353d; }
.track-row.selected .track-name { color: #fff; }
.color-chip {
  width: 7px;
  flex: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.track-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 0 8px 0 9px;
}
.track-top { display: flex; align-items: center; gap: 4px; min-width: 0; }
.track-name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #c9ccd2;
}
.more {
  display: grid;
  place-items: center;
  width: 20px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
}
.more:hover { background: var(--panel-3); color: var(--text); }
.more .icon { width: 12px; height: 12px; fill: currentColor; }
.track-controls { display: flex; align-items: center; gap: 4px; }
.flag {
  width: 22px;
  height: 18px;
  padding: 0;
  border: 1px solid #111215;
  border-radius: 2px;
  background: #3a3d44;
  color: #c3c7ce;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.flag:hover { background: #454952; }
.flag.arm.on { background: var(--rec); color: #fff; }
.flag.mute.on { background: var(--mute); color: #1d1406; }
.flag.solo.on { background: var(--solo); color: #1d1a06; }
.meter {
  flex: 1;
  height: 6px;
  margin-left: 4px;
  background: #0f1012;
  border-radius: 1px;
  overflow: hidden;
  visibility: hidden;
}
.track-row.armed .meter { visibility: visible; }
.meter-fill { width: 0; height: 100%; background: var(--play); transition: width 50ms linear; }
.meter-fill.hot { background: var(--rec); }

.lane {
  position: relative;
  width: var(--timeline-w);
  flex: none;
  background-color: var(--lane);
  background-image:
    linear-gradient(to right, var(--grid-bar) 1px, transparent 1px),
    linear-gradient(to right, var(--grid-beat) 1px, transparent 1px);
  background-size: var(--bar-px) 100%, var(--beat-px) 100%;
}
.dense .lane { background-size: var(--bar-px) 100%, 0 0; }
.track-row.selected .lane { background-color: #1e2025; }

.add-row { height: 34px; }
.add-cell { align-items: center; padding-left: 10px; background: var(--panel); }
.add-track {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: linear-gradient(#33363d, #2a2d33);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}
.add-track:hover { background: linear-gradient(#3a3d45, #30333a); }
.lane.filler { background-color: transparent; }

/* Clips */
.clip {
  position: absolute;
  top: 3px;
  bottom: 3px;
  overflow: hidden;
  border-radius: 3px;
  /* Plain fallbacks first for Safari < 16.2 (no color-mix). */
  border: 1px solid var(--track-color);
  background: #2a2c31;
  border: 1px solid color-mix(in srgb, var(--track-color) 75%, #000);
  background: color-mix(in srgb, var(--track-color) 26%, #121316);
}
.clip-label {
  height: 14px;
  padding: 0 5px;
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.92);
  background: var(--track-color);
  background: color-mix(in srgb, var(--track-color) 62%, #000);
}
.clip .wave {
  position: absolute;
  left: 0;
  top: 15px;
  width: 100%;
  height: calc(100% - 16px);
  fill: var(--track-color);
  stroke: var(--track-color);
  fill: color-mix(in srgb, var(--track-color) 80%, #fff);
  stroke: color-mix(in srgb, var(--track-color) 80%, #fff);
  stroke-width: 0.6px;
}
.clip.loading { animation: pulse 1.2s ease-in-out infinite; }
.clip.error {
  border-color: var(--rec);
  background: repeating-linear-gradient(45deg, #3b1d1f 0 6px, #2a1517 6px 12px);
}
.clip.saving .clip-label { font-style: italic; }
.clip-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(0, 0, 0, 0.45); }
.clip-progress > div { height: 100%; background: #fff; transition: width 0.15s; }
.clip.failed { border: 1px dashed var(--rec); }
.clip.failed .clip-label { background: var(--rec); }
.clip.recording { border-color: var(--rec); background: rgba(229, 72, 77, 0.22); }
.clip.recording .clip-label { background: var(--rec); }
.clip.recording .wave { fill: #ffc9cb; stroke: #ffc9cb; }
@keyframes pulse { 50% { opacity: 0.45; } }

/* Playhead */
.playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: #f4f4f4;
  z-index: 4;
  pointer-events: none;
  will-change: transform;
}

.load-error { padding: 40px 20px; text-align: center; color: var(--text-dim); }

/* Menus */
.menu {
  position: fixed;
  z-index: 50;
  min-width: 170px;
  padding: 4px;
  background: #2b2e34;
  border: 1px solid #0b0c0e;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.menu-item {
  display: block;
  width: 100%;
  padding: 5px 10px;
  border: 0;
  border-radius: 2px;
  background: none;
  text-align: left;
  cursor: pointer;
}
.menu-item:hover { background: var(--accent); color: #171a16; }
.menu-item.danger { color: #ff8d8f; }
.menu-item.danger:hover { background: var(--rec); color: #fff; }
.swatches { display: grid; grid-template-columns: repeat(6, 20px); gap: 5px; padding: 6px 8px; }
.swatch { width: 20px; height: 20px; border: 1px solid #000; border-radius: 3px; cursor: pointer; padding: 0; }
.swatch.on { outline: 2px solid #fff; outline-offset: 1px; }

/* Toasts */
.toasts { position: fixed; right: 14px; bottom: 14px; display: grid; gap: 6px; z-index: 60; }
.toast {
  padding: 7px 12px;
  background: #2f333a;
  border: 1px solid #0b0c0e;
  border-left: 3px solid var(--accent);
  border-radius: 3px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  max-width: 360px;
}

/* ── Home ─────────────────────────────────────────────────────────── */

.home-page { background: #101211; }
.home-topbar { max-width: 1200px; height: 88px; padding: 0 32px; margin: auto; background: transparent; border-color: #2a2e29; gap: 18px; }
.home-topbar .brand { font-size: 23px; letter-spacing: -1px; }
.home-topbar .product-mark { width: 34px; height: 34px; }
.brand-byline { color: var(--text-dim); font: 10px var(--mono); padding-left: 18px; border-left: 1px solid #383d35; }
.home-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 12px; }
.home-nav a { color: #c3c6bc; text-decoration: none; padding-block: 12px; }
.home-nav a:hover { color: var(--lamp); }
.home-nav a span { margin-left: 5px; }
.home { max-width: 1200px; margin: 0 auto; padding: 0 32px 64px; }
.eyebrow { font: 10px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.signal-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 10px #d8ae7530; flex: none; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; padding: 72px 0 58px; }
.hero-copy > .eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; color: var(--lamp); }
.hero h1 { font-size: clamp(42px, 4.8vw, 64px); line-height: 1.08; letter-spacing: -.055em; font-weight: 650; margin: 0 0 26px; }
.hero h1 > span { color: var(--lamp); }
.hero-description { max-width: 370px; color: #adb2a9; font-size: 15px; line-height: 1.7; margin: 0 0 28px; }
.home .btn.primary { background: #e2d9c6; border: 1px solid #eee5d3; color: #1a1d18; border-radius: 5px; height: 40px; padding: 0 16px; }
.home .btn.primary:hover { background: #f3ead7; }
.home .btn.hero-cta { height: 48px; gap: 12px; font-size: 13px; }
.hero-cta svg { width: 17px; height: 17px; }
.cta-arrow { margin-left: 17px; font-size: 17px; }
.cta-note { font-size: 11px; color: var(--text-dim); margin: 12px 0 0; }
.origin-note { max-width: 36em; font-size: 13px; color: var(--text-dim); line-height: 1.7; overflow-wrap: anywhere; }
.session-figure { margin: 28px 0 0; min-width: 0; }
.session-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 2px 15px; }
.session-caption .eyebrow, .session-no { font: 9px var(--mono); letter-spacing: .06em; }
.session-no { color: #93998e; white-space: nowrap; }
.session-preview { border: 1px solid #41453b; border-radius: 8px; background: #191c19; overflow: hidden; box-shadow: 0 24px 64px #0004, 0 1px 0 #ffffff0a inset; transform: rotate(-2deg); }
.preview-title { height: 48px; display: flex; align-items: center; gap: 9px; padding: 0 16px; border-bottom: 1px solid #30352e; font-size: 12px; font-weight: 600; }
.preview-format { margin-left: auto; color: #a5ac9e; font: 9px var(--mono); }
.preview-transport { display: flex; height: 46px; align-items: center; gap: 18px; padding: 0 18px; background: #232720; border-bottom: 1px solid #30352e; }
.preview-stop { width: 8px; height: 8px; background: #9da398; }
.preview-play { border-left: 9px solid #c2c8b9; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.preview-record { width: 9px; height: 9px; background: #e07868; border-radius: 50%; }
.preview-position { font: 13px var(--mono); background: #131611; padding: 6px 12px; border: 1px solid #343c2c; border-radius: 3px; color: #e2dccb; }
.preview-mode { margin-left: auto; font: 8px var(--mono); letter-spacing: .1em; color: #a5ac9e; }
.preview-ruler, .preview-track { display: grid; grid-template-columns: 118px 1fr; }
.preview-ruler { height: 27px; font: 8px var(--mono); color: #9ca591; background: #121510; }
.preview-ruler > span { padding: 8px 14px; border-right: 1px solid #353c2d; letter-spacing: .08em; }
.preview-ruler > div { display: grid; grid-template-columns: repeat(4, 1fr); }
.preview-ruler > div span { border-left: 1px solid #343b2e; padding: 8px; }
.preview-track { height: 83px; border-bottom: 1px solid #32382e; --clip-color: #d8ae75; }
.preview-track.bass { --clip-color: #98b6a2; }
.preview-track.texture { --clip-color: #a5a6cf; }
.preview-track-label { position: relative; border-right: 1px solid #343b2e; border-left: 3px solid var(--clip-color); padding: 17px 8px 8px 13px; background: #22261f; }
.preview-track-label strong { display: block; font-size: 10px; font-weight: 500; }
.preview-track-label small { color: #a2a998; font-size: 9px; }
.preview-track-number { display: block; font: 8px var(--mono); color: var(--clip-color); margin-bottom: 5px; }
.preview-lane { min-width: 0; padding: 8px 10px; background: repeating-linear-gradient(90deg, #ffffff07 0 1px, transparent 1px 25%); }
.preview-clip { height: 100%; border: 1px solid color-mix(in srgb, var(--clip-color) 45%, #171a16); border-radius: 3px; color: var(--clip-color); background: color-mix(in srgb, var(--clip-color) 12%, #171a16); overflow: hidden; }
.preview-clip > span { display: block; font: 8px var(--mono); padding: 4px 7px; border-bottom: 1px solid color-mix(in srgb, var(--clip-color) 25%, #171a16); }
.illustrated-wave { display: block; width: 100%; height: 100%; }
.preview-clip .illustrated-wave { height: 40px; }
.bass .preview-clip { margin-left: 16%; }
.texture .preview-clip { margin-left: 29%; }
.preview-bottom { display: flex; justify-content: space-between; align-items: center; height: 33px; padding: 0 13px; color: #a2a998; font: 8px var(--mono); }
.preview-meter { color: #b3c1a3; letter-spacing: 1px; }
.session-figure figcaption { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 26px; color: var(--text-dim); font-size: 11px; }
.layer-dots { display: flex; padding-left: 5px; }
.layer-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #101211; background: #d8ae75; margin-left: -5px; }
.layer-dots i:nth-child(2) { background: #98b6a2; }
.layer-dots i:nth-child(3) { background: #a5a6cf; }
.home-details { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; border-block: 1px solid #2a2e29; color: #acb1a6; font-size: 11px; }
.home-details > span { display: flex; align-items: center; gap: 9px; }
.home-details > span > span { color: var(--lamp); font-size: 17px; }
.how-it-works { padding-top: 68px; scroll-margin-top: 30px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-heading .eyebrow { margin: 0 0 10px; color: var(--lamp); }
.section-heading h2 { font-size: 29px; font-weight: 550; letter-spacing: -.035em; margin: 0; }
.section-heading > p { margin: 0 0 2px; font-size: 12px; line-height: 1.7; color: var(--text-dim); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin: 0; padding: 0; }
.step-art { height: 124px; border: 1px solid #30362c; border-radius: 5px; background: #181c16; margin-bottom: 25px; display: flex; align-items: center; justify-content: center; padding: 20px 22px; color: var(--lamp); overflow: hidden; }
.record-art { gap: 15px; }
.art-record { width: 11px; height: 11px; flex: none; border-radius: 50%; background: #e07868; box-shadow: 0 0 0 7px #e078680d; }
.record-art .illustrated-wave { flex: 1; min-width: 0; height: 55px; }
.art-time { font: 9px var(--mono); color: #adb5a5; }
.share-art { gap: 7px; }
.art-person { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border: 1px solid #63583e; border-radius: 50%; color: #d8ae75; background: #d8ae7509; font: 9px var(--mono); }
.art-person.friend { color: #98b6a2; border-color: #435949; background: #98b6a209; width: 58px; height: 58px; }
.share-art svg { min-width: 45px; width: 120px; fill: none; stroke: #8f9a84; stroke-width: 1.5; }
.layers-art { flex-direction: column; gap: 5px; padding: 20px 45px; }
.art-layer { width: 100%; height: 24px; background: #d8ae7514; border: 1px solid #d8ae7540; border-radius: 2px; color: #d8ae75; }
.art-layer:nth-child(2) { width: 78%; align-self: end; color: #98b6a2; border-color: #98b6a240; background: #98b6a214; }
.art-layer:nth-child(3) { width: 63%; align-self: end; color: #a5a6cf; border-color: #a5a6cf40; background: #a5a6cf14; }
.step-heading { display: flex; align-items: baseline; gap: 11px; }
.step-number { color: var(--lamp); font: 10px var(--mono); }
.step h3 { font-size: 17px; font-weight: 550; letter-spacing: -.02em; margin: 0; }
.step > p { font-size: 12px; line-height: 1.85; color: #a9afa2; margin: 12px 0 0; max-width: 29em; }
.headphone-tip { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 36px 0 0; padding: 20px 0 0; color: var(--text-dim); font-size: 11px; }
.headphone-tip svg { width: 17px; height: 17px; flex: none; color: var(--lamp); }
.browser-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 54px 0 28px; }
.browser-head h1 { margin: 0; font-size: 34px; letter-spacing: -.035em; }
.browser-head .eyebrow { color: var(--lamp); margin: 0 0 6px; }
.drop-table-wrap { width: 100%; overflow-x: auto; border: 1px solid #343a30; border-radius: 6px; }
.drop-table { width: 100%; border-collapse: collapse; background: #191d17; }
.drop-table th, .drop-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid #30362b; }
.drop-table th { font: 10px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); background: #20251d; }
.drop-table th:not(:first-child), .drop-table td:not(:first-child) { white-space: nowrap; }
.drop-table tr:last-child td { border: 0; }
.drop-table tr:hover td { background: #242a20; }
.drop-table a { color: var(--text); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.drop-table a:hover { color: var(--lamp); }
.empty-drops { padding: 60px 20px; text-align: center; border: 1px dashed #343a30; border-radius: 6px; background: #171b15; }
.empty-record { display: inline-grid; place-items: center; height: 42px; width: 42px; color: var(--lamp); font-size: 18px; border: 1px solid #464532; border-radius: 50%; }
.empty-drops h2 { font-size: 18px; font-weight: 500; }

/* Documents (privacy, terms) and the footer linking to them. */
.doc { max-width: 680px; margin: 0 auto; padding: 22px 16px 24px; font-size: 14px; line-height: 1.6; }
.doc h1 { font-size: 24px; margin: 18px 0 2px; }
.doc h2 { font-size: 15px; margin: 26px 0 6px; }
.doc p, .doc ul { margin: 0 0 10px; }
.doc ul { padding-left: 20px; }
.doc li { margin: 3px 0; }
.doc code { font-family: var(--mono); font-size: 12px; }
.site-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 28px 36px; max-width: 1200px; margin: 0 auto; padding: 32px 32px 36px; border-top: 1px solid #2a2e29; font-size: 12px; }
.studio-brand { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; letter-spacing: -.04em; line-height: 1.05; }
.studio-mark { width: 30px; height: 30px; flex: none; }
.studio-audio { display: block; font-size: 10px; letter-spacing: .17em; font-weight: 400; margin-top: 4px; }
.footer-studio p { color: var(--text-dim); font-size: 10px; margin: 13px 0 0; }
.footer-contact { display: flex; flex-direction: column; gap: 9px; margin-left: auto; }
.footer-contact .eyebrow { font-size: 8px; }
.footer-contact a { color: var(--text); text-decoration: none; }
.footer-contact a span { margin-left: 10px; color: var(--lamp); }
.footer-links { display: flex; gap: 18px; font-size: 11px; }
.footer-links a { color: var(--text-dim); text-underline-offset: 4px; }
.site-footer a:hover { color: var(--lamp); }

/* A little hardware finish; the arrangement stays a compact DAW. */
.daw .topbar { background: linear-gradient(#2b2e2b, #222522); border-bottom-color: #090b09; box-shadow: 0 1px 0 #ffffff08 inset; height: 50px; }
.daw .brand { letter-spacing: -.04em; padding: 0 6px; }
.daw .drop-name { border-left: 1px solid #42473e; border-radius: 0; padding-left: 12px; }
.daw .transport { padding: 3px; background: #151815; border: 1px solid #353d30; border-radius: 5px; gap: 3px; }
.daw .lcd { background: #10150e; border-color: #080b06; box-shadow: 0 1px 0 #ffffff0b; }
.daw .lcd-main { color: #e0dfbe; }
.daw .lcd-sub { color: #a2ac90; }
.daw .field-btn, .daw .field-static { background: #131810; border-color: #090c07; }
.daw .tbtn { box-shadow: 0 1px 0 #ffffff0a inset; }
.daw .share-btn { background: #d8ae75; color: #201d13; border-color: #e3be8b; }
.daw .share-btn:hover { background: #e6c38f; }
.daw .ruler-row, .daw .corner { background-color: #242824; }
.daw .track-header { background: #272c26; }
.daw .track-row.selected .track-header { background: #343b30; }
.daw .track-row.selected .lane { background-color: #20251f; }
.daw .track-name { color: #e0e2d8; }
.daw .clip { box-shadow: 0 1px 3px #0003; }
.daw .playhead { box-shadow: 0 0 5px #ffffff20; }
.daw-footer { flex: none; display: flex; align-items: center; gap: 24px; min-height: 30px; padding: 4px 14px; background: #1d211c; border-top: 1px solid #353d30; font: 9px var(--mono); color: #a2ac99; }
.daw-workspace-label { text-transform: uppercase; letter-spacing: .07em; }
.daw-shortcuts { display: flex; align-items: center; gap: 6px; }
.daw-shortcuts kbd { font: 8px var(--mono); padding: 1px 4px; border: 1px solid #454d3f; border-radius: 3px; color: #c9cebe; margin-left: 8px; }
.daw-studio { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: #c9cebe; text-decoration: none; }
.daw-studio:hover { color: var(--lamp); }
.daw-studio .studio-mark { width: 15px; height: 15px; }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 18px; background: #e2d9c6; color: #101211; }
.skip-link:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Narrow screens: keep the DAW layout, just tighter. */
@media (max-width: 760px) {
  :root { --header-w: 150px; }
  .topbar { overflow-x: auto; }
  .drop-name, .author-input, .zoom { display: none; }
}

@media (max-width: 960px) {
  .hero { gap: 32px; padding-top: 55px; }
  .hero h1 { font-size: 50px; }
  .preview-ruler, .preview-track { grid-template-columns: 96px 1fr; }
  .preview-track-label { padding-left: 9px; }
  .preview-track-label strong { font-size: 9px; }
  .session-no, .preview-mode { display: none; }
  .steps { gap: 20px; }
  .step-art { padding-inline: 16px; }
  .section-heading h2 { font-size: 26px; }
  .daw-shortcuts { display: none; }
}
@media (max-width: 760px) {
  .home-topbar { height: 72px; padding-inline: 22px; overflow: visible; }
  .home-topbar .brand { font-size: 21px; }
  .home-topbar .product-mark { width: 28px; height: 28px; }
  .brand-byline { display: none; }
  .home-nav { gap: 18px; font-size: 11px; min-width: 0; }
  .account-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .home { padding: 0 22px 40px; }
  .hero { grid-template-columns: 1fr; padding: 44px 0 34px; gap: 28px; }
  .hero h1 { font-size: clamp(42px, 8.5vw, 64px); }
  .desktop-break { display: none; }
  .hero-description { max-width: 32em; }
  .session-figure { margin: 15px 5px 0; }
  .session-no, .preview-mode { display: block; }
  .preview-ruler, .preview-track { grid-template-columns: 110px 1fr; }
  .preview-track-label strong { font-size: 10px; }
  .preview-track { height: 76px; }
  .preview-clip .illustrated-wave { height: 34px; }
  .home-details { flex-direction: column; gap: 10px; padding-block: 20px; }
  .how-it-works { padding-top: 40px; }
  .section-heading { display: block; margin-bottom: 24px; }
  .section-heading h2 { font-size: 26px; }
  .section-heading > p { margin-top: 14px; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .step-art { height: 118px; margin-bottom: 18px; }
  .record-art { padding-inline: 30px; }
  .layers-art { padding-inline: 60px; }
  .step > p { max-width: none; margin-top: 8px; font-size: 13px; }
  .headphone-tip { align-items: start; line-height: 1.7; text-align: left; }
  .headphone-tip svg { margin-top: 2px; }
  .site-footer { padding: 30px 22px; gap: 26px; align-items: start; flex-direction: column; }
  .footer-contact { margin-left: 0; }
  .footer-contact a { overflow-wrap: anywhere; }
  .browser-head { margin-top: 35px; }
  .daw-footer { gap: 10px; padding-inline: 10px; font-size: 8px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 38px; }
  .home-topbar { flex-wrap: wrap; height: auto; padding-block: 16px 12px; gap: 10px; }
  .home-nav { width: 100%; justify-content: space-between; }
  .session-no, .preview-mode { display: none; }
  .home-nav { gap: 12px; }
  .preview-ruler, .preview-track { grid-template-columns: 96px 1fr; }
}

/* Account colors reuse the DAW's palette, including lanes, faders and chrome. */
:root[data-theme="aurora"], .palette-aurora {
  --bg: #111b1d; --panel: #19292d; --panel-2: #203339; --panel-3: #29434a;
  --lane: #142327; --line: #0c1719; --line-soft: #36515a;
  --text: #e6f1ec; --text-dim: #a1bdb7; --accent: #8bddbd; --lamp: #8bddbd;
}
:root[data-theme="midnight-tape"], .palette-midnight-tape {
  --bg: #191723; --panel: #252236; --panel-2: #302b42; --panel-3: #3d3654;
  --lane: #1e1b2a; --line: #100f19; --line-soft: #514463;
  --text: #f0e7ef; --text-dim: #b9abc4; --accent: #d4aff0; --lamp: #d4aff0;
}
.palette-studio { --panel: #212328; --panel-2: #27292f; --lane: #1a1b1f; --accent: #d8ae75; --line-soft: #34373e; }
:root:not([data-theme="studio"]) .home-page,
:root:not([data-theme="studio"]) .home-topbar { background: var(--bg); }
.account-page { min-height: 100vh; }
.account-main { max-width: 1040px; padding: 72px 32px 96px; margin: auto; font-size: 15px; line-height: 1.65; }
.account-main[data-view="support"], .account-main[data-view="thanks"] { max-width: 780px; }
.account-main h1 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.12; letter-spacing: -.045em; margin: 12px 0 20px; }
.account-main h2 { font-size: 19px; line-height: 1.3; margin: 0 0 8px; letter-spacing: -.02em; }
.account-intro { color: var(--text-dim); font-size: 20px; max-width: 600px; }
.account-main .btn { min-height: 44px; padding: 10px 18px; font-size: 14px; }
.account-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.support-symbol { display: grid; place-items: center; color: var(--accent); border: 1px solid var(--line-soft); border-radius: 50%; width: 62px; height: 62px; font-size: 34px; margin-bottom: 30px; }
.support-form { margin: 36px 0 26px; max-width: 520px; }
.support-form fieldset { padding: 0; border: 0; margin: 0 0 24px; }
.support-form legend { margin-bottom: 12px; font-size: 13px; }
.support-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.support-amounts label { position: relative; cursor: pointer; }
.support-amounts input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.support-amounts span { display: block; padding: 15px; text-align: center; font-size: 24px; font-weight: 650; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--panel); }
.support-amounts input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.support-amounts input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 4px; }
.support-submit { width: 100%; justify-content: center; }
.checkout-note { font-size: 12px; text-align: center; }
.support-fineprint { font-size: 12px; color: var(--text-dim); max-width: 490px; margin-top: 32px; }
.signin-support { border-top: 1px solid var(--line-soft); margin: 30px 0; padding-top: 15px; }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 36px 0 26px; }
.theme-card { min-width: 0; }
.theme-preview { border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px; width: 100%; text-align: left; background: var(--panel); cursor: pointer; }
.theme-preview:hover { border-color: var(--text-dim); }
.theme-preview[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.theme-title { display: flex; gap: 6px; justify-content: space-between; align-items: center; font-weight: 650; font-size: 15px; margin-top: 16px; }
.theme-label { color: var(--text-dim); font-size: 10px; font-weight: 400; }
.theme-description { display: block; font-size: 12px; color: var(--text-dim); margin-top: 5px; }
.mini-daw { display: block; background: var(--lane); border: 1px solid var(--line-soft); border-radius: 6px; overflow: hidden; height: 144px; }
.mini-top { display: flex; align-items: center; gap: 5px; height: 28px; background: var(--panel-2); border-bottom: 1px solid var(--line-soft); padding: 8px; }
.mini-top i { height: 4px; width: 15px; background: var(--accent); opacity: .7; }
.mini-track { display: flex; height: 38px; border-bottom: 1px solid var(--line-soft); position: relative; align-items: center; }
.mini-track > i { width: 36px; background: var(--panel); border-right: 1px solid var(--line-soft); height: 100%; margin-right: 12px; }
.mini-track b { font-size: 24px; line-height: 25px; height: 25px; width: 66%; letter-spacing: 2px; background: var(--accent); color: var(--lane); border-radius: 3px; overflow: hidden; opacity: .8; }
.mini-track:nth-child(3) b { width: 40%; margin-left: 18%; opacity: .5; }
.mini-track:nth-child(4) b { width: 55%; opacity: .65; }
.theme-actions { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.theme-actions p { margin: 0; max-width: 460px; font-size: 13px; }
.account-support { margin-top: 42px; font-size: 14px; }
.account-support p { color: var(--text-dim); }
.support-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; border: 1px solid var(--line-soft); border-radius: 12px; padding: 28px 32px; margin-top: 40px; background: var(--panel); }
.support-card h2 { font-size: 21px; margin: 4px 0 10px; }
.support-card p { color: var(--text-dim); font-size: 14px; line-height: 1.6; margin: 0; }
.support-card .eyebrow { color: var(--accent); font-size: 10px; }
.support-card .btn { white-space: nowrap; }
.supporter-thanks { color: var(--accent); padding: 22px 0; font-size: 13px; line-height: 1.8; }
.supporter-thanks a { margin-left: 12px; }
@media (max-width: 700px) {
  .account-main { padding: 42px 20px 64px; }
  .theme-grid { grid-template-columns: 1fr; gap: 14px; }
  .mini-daw { height: 120px; }
  .mini-track { height: 30px; }
  .theme-actions, .support-card { align-items: flex-start; flex-direction: column; gap: 12px; }
  .support-card { padding: 24px; }
  .home-nav .account-name { display: none; }
  .account-page .home-nav { gap: 12px; font-size: 11px; }
}
.account-page .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.account-page .btn.primary:hover { filter: brightness(1.08); }
:root:not([data-theme="studio"]) .daw .share-btn { background: var(--accent); border-color: var(--accent); color: var(--bg); }
