/* Vocal Remover — design tokens + styles.
 *
 * Direction: an audio studio, not a SaaS landing page. Warm charcoal console,
 * one VU-amber accent, hairline rules instead of card shadows, Archivo for
 * display type, monospace for data (timecodes, sizes, dB). The tool deck is
 * the hero. Signature element: the channel-strip player — vertical faders
 * for Vocals / Instrumental over a wide amber waveform.
 *
 * Contrast (WCAG AA, measured): ink #F2EEE6 on #141210 = 16.2:1; muted
 * #A8A094 on #141210 = 7.2:1; faint #948C7F on #141210 = 5.6:1; amber
 * #FFB020 on #141210 = 10.2:1; amber button text #1A1405 on amber = 10.0:1.
 * Focus ring is 2px amber + 2px offset.
 */

:root {
  --bg: #141210;
  --panel: #1d1a17;
  --panel-2: #26221e;
  --line: #35302a;
  --line-strong: #4a443b;
  --ink: #f2eee6;
  --muted: #a8a094;
  --faint: #948c7f;
  --amber: #ffb020;
  --amber-ink: #1a1405;
  --amber-dim: #8a5f0b;
  --green: #46c07a;
  --red: #e5484d;
  --radius: 14px;
  --radius-sm: 10px;
  --space: 8px;
  --font-display: "Archivo", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Archivo", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--amber); color: var(--amber-ink); }

a { color: var(--amber); }
a:hover { color: #ffc44d; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
}

p { margin: 0; }

button { font: inherit; cursor: pointer; }
input { font: inherit; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ------------------------------------------------ header */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark .mark {
  width: 22px;
  height: 22px;
  background: var(--amber);
  border-radius: 5px;
  flex: none;
  position: relative;
}
.wordmark .mark::after {
  content: "";
  position: absolute;
  inset: 5px 6px;
  background: var(--amber-ink);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  border-radius: 1px;
}
.site-nav {
  display: none;
  gap: 4px;
  margin-left: auto;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 15px;
}
.site-nav a:hover { color: var(--ink); background: var(--panel); }
.free-pill {
  margin-left: auto;
  font-size: 13px;
  color: var(--amber);
  border: 1px solid var(--amber-dim);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}
.site-nav + .free-pill { margin-left: 0; }
@media (min-width: 720px) {
  .site-nav { display: flex; }
}

/* ------------------------------------------------ tool deck */
.tool { padding-block: 40px 8px; }

.tool h1 {
  font-size: clamp(32px, 7vw, 56px);
  max-width: 16ch;
}
.tool .lede {
  margin-top: 12px;
  font-size: 18px;
  color: var(--muted);
  max-width: 56ch;
}
.tool .lede strong { color: var(--ink); font-weight: 600; }

.deck {
  margin-top: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.deck-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.deck-head .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
}
.deck-head .dot.off { background: var(--faint); }
.deck-head h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}
.deck-head .status {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}
.deck-body { padding: 20px; }

/* drop zone */
.dropzone {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 36px 20px;
  text-align: center;
  transition: border-color 150ms ease, background 150ms ease;
}
.dropzone.drag {
  border-color: var(--amber);
  background: color-mix(in srgb, var(--amber) 7%, transparent);
}
.dropzone .dz-icon {
  font-size: 30px;
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}
.dropzone p { color: var(--muted); }
.dropzone p strong { color: var(--ink); font-weight: 600; }
.dz-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
.dz-formats {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--faint);
}

.linkrow { margin-top: 16px; }
.linkrow label { display: block; font-weight: 600; margin-bottom: 8px; }
.linkrow-box { display: flex; gap: 10px; flex-wrap: wrap; }
.linkrow-box input {
  flex: 1 1 260px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--ink);
  font-size: 15px;
}
.linkrow-box input::placeholder { color: var(--faint); }
.linkrow-box input:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
  border-color: var(--amber);
}
.linkrow-hint { margin-top: 8px; font-size: 13.5px; color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, transform 100ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--amber);
  color: var(--amber-ink);
}
.btn-primary:hover { background: #ffc44d; }
.btn-primary:disabled {
  background: var(--panel-2);
  color: var(--faint);
  cursor: not-allowed;
}
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--muted); background: var(--panel-2); }
.btn-danger {
  background: transparent;
  border-color: var(--red);
  color: var(--red);
}
.btn-danger:hover { background: color-mix(in srgb, var(--red) 12%, transparent); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }

/* file bar */
.filebar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-top: 16px;
}
.filebar .fname {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.filebar .fmeta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}
.filebar .fremove {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  min-height: 44px;
  min-width: 44px;
  border-radius: 8px;
}
.filebar .fremove:hover { color: var(--red); background: var(--panel); }

.model-line {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}
.model-line code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 7px;
}

/* progress */
.progress {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.progress .prow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
}
.progress .prow .peta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.bar {
  height: 8px;
  background: var(--panel-2);
  border-radius: 999px;
  margin-top: 10px;
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--amber);
  border-radius: 999px;
  transition: width 200ms ease;
}
.progress .pnote {
  margin-top: 8px;
  font-size: 13px;
  color: var(--faint);
}
.progress .pcancel { margin-top: 12px; }

/* player */
.player { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.stem-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.stem-tab {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
.stem-tab[aria-pressed="true"] {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--amber-ink);
}
.transport {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--amber);
  color: var(--amber-ink);
  font-size: 20px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.play-btn:hover { background: #ffc44d; }
.time {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}
.time b { color: var(--ink); font-weight: 600; }

.wave-wrap {
  margin-top: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.wave-wrap canvas {
  display: block;
  width: 100%;
  height: 120px;
  cursor: pointer;
}
.wave-hint {
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--faint);
}

/* channel strips */
.strips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.strip {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: stretch;
}
.strip .sinfo { flex: 1; min-width: 0; }
.strip h3 { font-size: 15px; font-weight: 700; }
.strip .sdesc { font-size: 13px; color: var(--muted); margin-top: 2px; }
.strip .sbtns {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.mini-btn {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.mini-btn[aria-pressed="true"] {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--amber-ink);
}
.mini-btn.solo[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #08130c; }
.fader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: none;
}
.fader input[type="range"] {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 24px;
  height: 96px;
  accent-color: var(--amber);
  cursor: pointer;
}
.fader output {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}
@media (max-width: 560px) {
  .strips { grid-template-columns: 1fr; }
}

/* downloads */
.downloads { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.downloads h3 { font-size: 15px; font-weight: 700; }
.fmt-toggle {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
}
.fmt-toggle button {
  min-height: 44px;
  padding: 10px 18px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
.fmt-toggle button[aria-pressed="true"] {
  background: var(--panel-2);
  color: var(--ink);
}
.dl-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.dl-note { margin-top: 10px; font-size: 13px; color: var(--faint); }

/* status / errors */
.alert {
  margin-top: 16px;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  border: 1px solid;
}
.alert-error {
  background: color-mix(in srgb, var(--red) 10%, transparent);
  border-color: color-mix(in srgb, var(--red) 45%, transparent);
  color: #ffd7d8;
}
.alert-error b { color: #fff; }
.alert-info {
  background: var(--panel-2);
  border-color: var(--line-strong);
  color: var(--muted);
}
.alert-success {
  background: color-mix(in srgb, var(--green) 10%, transparent);
  border-color: color-mix(in srgb, var(--green) 45%, transparent);
  color: #d2f2de;
}
.alert .fix { display: block; margin-top: 4px; font-size: 14px; }

.privacy-note {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.privacy-note .lock { flex: none; font-size: 16px; }

/* ------------------------------------------------ sections */
section.block { padding-block: 56px 8px; }
section.block > h2 { font-size: clamp(26px, 4.5vw, 36px); }
section.block > .sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: 17px;
  max-width: 62ch;
}

/* selling points */
.points {
  margin-top: 28px;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.point {
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.point .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber);
  padding-top: 4px;
  flex: none;
}
.point h3 { font-size: 18px; font-weight: 700; }
.point p { margin-top: 4px; color: var(--muted); font-size: 15px; }
@media (min-width: 720px) {
  .points { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}

/* comparison table */
.table-wrap {
  margin-top: 28px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 15px;
}
.compare th, .compare td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare tr:last-child th, .compare tr:last-child td { border-bottom: none; }
.compare thead th {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  background: var(--panel-2);
}
.compare thead th.us { color: var(--amber); }
.compare tbody th {
  font-weight: 600;
  color: var(--muted);
  width: 160px;
}
.compare td.us { font-weight: 600; }
.compare .check { color: var(--green); }
.compare .no { color: var(--red); }
.compare .dash { color: var(--faint); }
.compare-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--faint);
}

/* how it works */
.steps {
  margin-top: 28px;
  display: grid;
  gap: 12px;
  counter-reset: step;
}
.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.step .step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber);
}
.step h3 { margin-top: 6px; font-size: 18px; }
.step p { margin-top: 4px; color: var(--muted); font-size: 15px; }
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

/* FAQ */
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  padding: 16px 4px;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--amber);
  font-size: 22px;
  line-height: 1;
  flex: none;
}
.faq details[open ] summary::after { content: "–"; }
.faq details p {
  color: var(--muted);
  padding: 0 4px 18px;
  max-width: 68ch;
  font-size: 15px;
}
.faq details p b { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------ footer */
.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  padding-block: 32px 48px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .frow {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer p { max-width: 68ch; }
.site-footer p + p { margin-top: 8px; }

[hidden] { display: none !important; }

/* reduced motion: no smooth scrolling, no transitions */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
