:root {
  /* Brand palette — locked from the design handoff */
  --bg: #0b0b0b;
  --bg-soft: #111114;
  --surface: #1a1a1a;
  --ink: #ffffff;
  --muted: #8a8a92;
  --muted-2: #5c5e66;
  --accent: #8b5cf6;        /* purple — the dot */
  --accent-2: #22d3ee;      /* cyan — gradient end */
  --accent-soft: #8b5cf622;
  --accent-glow: #8b5cf655;
  --accent-2-soft: #22d3ee22;
  --border: #232328;
  --border-strong: #2c2c33;
  --ok: #34d399;
  --err: #ef4444;
  --radius: 14px;
}

* { box-sizing: border-box; }

/* Native `hidden` must always win — otherwise display:flex on .notify-btn,
 * .stem-card, etc would override it and keep elements visible. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(ellipse 70% 50% at 30% -10%, #1a0d2c 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 20%, #0a2426 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 88px 24px 48px;
}

/* --- Brand lockup --- */
header {
  margin-bottom: 40px;
  position: relative;
}

/* Language toggle — top-right corner of header */
.lang-toggle {
  position: absolute;
  top: 4px;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--muted-2);
}
.lang-btn {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 4px 6px;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  border-radius: 4px;
  transition: color 0.15s ease;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn[aria-pressed="true"] {
  color: var(--ink);
  font-weight: 600;
}
.lang-sep {
  color: var(--muted-2);
  user-select: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 56px;
  height: 56px;
  color: var(--ink);
  display: inline-grid;
  place-items: center;
}
.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.brand-word {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.brand-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 6px 0 4px;
  border-radius: 50%;
  background: var(--accent);
  align-self: center;
  position: relative;
  top: -2px;
}

.tagline {
  color: var(--muted);
  margin: 14px 0 0 74px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 6px;
  text-transform: uppercase;
}

/* --- Form --- */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

input[type="url"] {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  padding: 18px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input[type="url"]::placeholder { color: var(--muted-2); }
input[type="url"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.video-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  animation: previewIn 0.25s ease-out;
}
.video-preview iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@keyframes previewIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

.ig-picker {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 12px;
  animation: previewIn 0.25s ease-out;
}
.ig-picker-title {
  font-size: 0.85rem;
  color: var(--fg-muted, #9aa);
  margin-bottom: 8px;
}
.ig-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}
.ig-picker-item {
  position: relative;
  aspect-ratio: 3 / 4;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  padding: 0;
}
.ig-picker-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ig-picker-item.selected {
  border-color: #22d3ee;
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.25);
}
.ig-picker-item .ig-picker-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
}
.ig-picker-item .ig-preview-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 14px;
  line-height: 38px;
  text-align: center;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  transition: opacity 0.15s ease-out, background 0.15s ease-out;
}
.ig-picker-item:hover .ig-preview-play,
.ig-picker-item .ig-preview-play.playing,
.ig-picker-item .ig-preview-play.loading,
.ig-picker-item:focus-within .ig-preview-play {
  opacity: 1;
}
/* Playing: a thin progress arc ringed around the button. The arc lives
   on a ::before so it doesn't replace the button's solid fill (which
   keeps the play/pause glyph readable). --p is set from JS on
   timeupdate, percentage 0-100. */
.ig-picker-item .ig-preview-play.playing {
  background: rgba(34, 211, 238, 0.85);
}
.ig-picker-item .ig-preview-play.playing::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(
    #22d3ee calc(var(--p, 0) * 1%),
    rgba(255, 255, 255, 0.18) 0
  );
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 64%);
          mask: radial-gradient(circle, transparent 62%, #000 64%);
  pointer-events: none;
}
.ig-picker-item .ig-preview-play.loading {
  background: rgba(0, 0, 0, 0.75);
  /* Hide any leftover glyph; the spinner replaces it. */
  color: transparent;
}
.ig-picker-item .ig-preview-play.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #22d3ee;
  animation: igPreviewSpin 0.7s linear infinite;
}
@keyframes igPreviewSpin {
  to { transform: rotate(360deg); }
}
.ig-picker-item .ig-preview-play:hover {
  background: rgba(0, 0, 0, 0.85);
}
/* Touch devices: no hover state, always show the play button */
@media (hover: none) {
  .ig-picker-item .ig-preview-play {
    opacity: 1;
  }
}
.ig-picker-empty {
  color: var(--fg-muted, #9aa);
  font-size: 0.85rem;
  padding: 8px;
  text-align: center;
}

.model-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.model-option { cursor: pointer; }
.model-option input[type="radio"] { display: none; }
.model-option .pill {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color 0.15s, background 0.15s;
}
.model-option .pill:hover { background: #20202a; }
.model-option .pill strong {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.model-option .pill em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}
.model-option input[type="radio"]:checked + .pill {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft) 0%, transparent 100%);
}

button[type="submit"] {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: white;
  border: 0;
  padding: 17px 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.1px;
  cursor: pointer;
  transition: transform 0.05s, box-shadow 0.15s, opacity 0.15s, filter 0.15s;
  box-shadow: 0 4px 24px var(--accent-glow);
  font-family: inherit;
}
button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 6px 32px var(--accent-glow);
}
button[type="submit"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

/* --- Status / Stems cards --- */
#status, #stems {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 14px;
}

.job-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
}
.title-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.title {
  font-weight: 600;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.2px;
}
.track-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.track-meta-chip {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent-2);
  background: var(--accent-2-soft);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.stage {
  color: var(--accent-2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  align-self: center;
  background: var(--accent-2-soft);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.vibe {
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 14px;
  min-height: 18px;
  font-style: italic;
  opacity: 0.95;
  transition: opacity 0.4s;
  letter-spacing: -0.1px;
}

.bar {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  height: 100%;
  width: 0%;
  transition: width 0.4s ease;
  box-shadow: 0 0 16px var(--accent-glow);
}
.bar-pct {
  text-align: right;
  color: var(--muted);
  font-size: 11px;
  margin-top: 8px;
  letter-spacing: 0.3px;
}

.error {
  color: var(--err);
  margin-top: 14px;
  font-size: 14px;
  background: #ef444411;
  border: 1px solid #ef444433;
  padding: 12px 14px;
  border-radius: 10px;
}

.stall-warning {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px dashed var(--accent-glow);
  color: var(--ink);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.stall-warning .stall-msg {
  flex: 1;
  color: var(--muted);
}
.stall-warning .stall-retry {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.stall-warning .stall-retry:hover {
  background: var(--accent-soft);
}

.notify-btn {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--border-strong);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.notify-btn:hover:not(:disabled) {
  border-color: var(--accent);
  border-style: solid;
  color: var(--accent);
  background: var(--accent-soft);
}
.notify-btn.granted {
  border-style: solid;
  border-color: var(--ok);
  color: var(--ok);
  background: #34d39911;
  cursor: default;
}
.notify-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Stems mini-mixer --- */
.stems-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.stems-header h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.stems-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.share-btn,
.zip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-soft);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.05s;
}
.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.share-btn.copied {
  border-color: var(--ok);
  color: var(--ok);
  background: #34d39911;
}

.zip-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 12px var(--accent-glow);
}
.zip-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}
.zip-btn .dl-icon { font-size: 14px; line-height: 1; }

#stem-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.stem-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s, background 0.15s;
}
.stem-card:hover {
  border-color: var(--border-strong);
  background: #1c1c22;
}

.stem-head {
  display: grid;
  grid-template-columns: 36px 1fr auto auto 90px auto;
  align-items: center;
  gap: 12px;
}

.stem-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: var(--accent-soft);
}
.stem-card[data-stem="drums"]  .stem-icon { background: #f59e0b22; }
.stem-card[data-stem="bass"]   .stem-icon { background: var(--accent-soft); }
.stem-card[data-stem="vocals"] .stem-icon { background: var(--accent-2-soft); }
.stem-card[data-stem="other"]  .stem-icon { background: #34d39922; }

.stem-name {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.2px;
}

.stem-mute, .stem-solo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  padding: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.stem-mute:hover, .stem-solo:hover { border-color: var(--accent); color: var(--ink); }
.stem-mute.active {
  background: #ef4444;
  border-color: #ef4444;
  color: white;
}
.stem-solo.active {
  background: #fbbf24;
  border-color: #fbbf24;
  color: #1a1a20;
}

.stem-volume {
  display: flex;
  align-items: center;
  min-width: 90px;
}
.stem-volume input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border-strong);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}
.stem-volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--accent);
  cursor: pointer;
}
.stem-volume input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--accent);
  cursor: pointer;
}

/* --- Master transport bar (parallel-stems playback) --- */
.stems-transport {
  display: grid;
  grid-template-columns: 44px auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  margin-bottom: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
}
.master-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  color: white;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;
  padding: 0;
  transition: transform 0.05s, opacity 0.15s;
}
.master-play:hover:not(:disabled) { transform: scale(1.04); }
.master-play:active:not(:disabled) { transform: scale(0.96); }
.master-play:disabled { opacity: 0.4; cursor: not-allowed; }
.master-play-icon { line-height: 1; }
.master-time {
  display: flex;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.master-time-sep { opacity: 0.5; }
.master-scrubber {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border-strong);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}
.master-scrubber:disabled { opacity: 0.4; cursor: not-allowed; }
.master-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}
.master-scrubber::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
}
.master-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-radius: 12px;
}
.master-loading-text {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.master-loading-bar {
  flex: 1;
  height: 4px;
  background: var(--border-strong);
  border-radius: 4px;
  overflow: hidden;
}
.master-loading-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.15s linear;
}

.stem-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  background: var(--surface);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.stem-download .dl-icon { font-size: 14px; line-height: 1; }
.stem-download:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.stem-wave {
  width: 100%;
  height: 56px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

/* Skeleton placeholder shown while wavesurfer is decoding the audio. */
.stem-wave-skel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 1.5px;
  padding: 0 6px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.stem-wave-skel span {
  flex: 1;
  height: var(--h, 30%);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 1px;
}
.stem-wave-skel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 30%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 70%,
    transparent 100%
  );
  animation: shimmer 1.4s infinite linear;
  transform: translateX(-100%);
}
@keyframes shimmer {
  to { transform: translateX(100%); }
}
.stem-wave-skel.fade-out {
  opacity: 0;
  transition: opacity 0.25s ease;
}

@media (max-width: 600px) {
  /* Stack title above the action pills, and let Download all + Share
     split the row 50/50 so they stay on one line. */
  .stems-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 14px;
  }
  .stems-actions { width: 100%; }
  .stems-actions > * {
    flex: 1;
    justify-content: center;
    padding: 9px 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .stem-card { padding: 12px 14px; gap: 10px; }

  /* Mobile parallel-stems head: icon, name, M, S, download on row 1;
     volume slider spans the full width on row 2. */
  .stem-head {
    grid-template-columns: 36px 1fr auto auto 40px;
    column-gap: 10px;
    row-gap: 8px;
  }
  .stem-volume {
    grid-column: 1 / -1;
    min-width: 0;
  }
  .stem-download {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }
  .stem-download .dl-label { display: none; }
  .stem-download .dl-icon { font-size: 16px; }

  .stems-transport {
    grid-template-columns: 40px auto 1fr;
    gap: 10px;
    padding: 10px 12px;
  }
  .master-play { width: 40px; height: 40px; }
}

/* --- Daily quota counter (rate limit hint under the form) --- */
.quota {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.2px;
  text-align: center;
}

/* --- SEO copy: H1 + lead --- */
.seo-h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
  background: linear-gradient(120deg, var(--ink) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.seo-lead {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 620px;
}

/* --- About + FAQ blocks (below the fold) --- */
.about,
.faq {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}
.about h2,
.faq h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--ink);
  margin: 0 0 16px;
}
.about p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 14px;
}
.about .stem-types {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
}
.about .stem-types strong {
  color: var(--ink);
  font-weight: 600;
  margin-right: 4px;
}

.faq-item {
  border-top: 1px solid var(--border);
  padding: 14px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 400;
  font-size: 18px;
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  font-size: 14px;
  line-height: 1.6;
  margin: 10px 0 0;
}

/* --- Landing-page primitives (used by /youtube-stem-separator/, etc.) --- */
.landing-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0b0b;
  padding: 14px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.2px;
  margin: 28px 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 24px var(--accent-glow);
}
.landing-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px var(--accent-glow);
}
.landing-cta .arrow {
  transition: transform 0.15s ease;
}
.landing-cta:hover .arrow {
  transform: translateX(3px);
}

.about .steps-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 14px;
  counter-reset: step;
}
.about .steps-list li {
  position: relative;
  padding: 14px 16px 14px 52px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
  counter-increment: step;
}
.about .steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}
.about .steps-list strong { color: var(--ink); font-weight: 600; }

.about .uses-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
}
.about .uses-list li {
  padding-left: 18px;
  position: relative;
}
.about .uses-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.about .uses-list strong { color: var(--ink); font-weight: 600; }

.about .related-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}
.about .related-list a.related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.about .related-list a.related-card:hover {
  border-color: var(--accent);
  background: var(--bg-soft);
  transform: translateY(-1px);
}
.about .related-list .related-title {
  font-weight: 600;
  color: var(--ink);
}
.about .related-list .related-desc {
  color: var(--muted);
  font-weight: 400;
  margin-left: 6px;
}
.about .related-list .related-arrow {
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}
.about .related-list a.related-card:hover .related-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* --- Footer --- */
.site-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.3px;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-footer a:hover { color: var(--ink); }
.built-by a { color: var(--ink); font-weight: 500; }
.footer-sep { color: var(--muted-2); user-select: none; }
.footer-link {
  text-transform: lowercase;
  letter-spacing: 0.5px;
}
.footer-donate {
  color: var(--accent) !important;
  font-weight: 500;
}
.footer-donate:hover { color: var(--accent-2) !important; }
.footer-disclaimer {
  flex-basis: 100%;
  text-align: center;
  font-size: 11px;
  color: var(--muted-2);
  margin: 8px 0 0;
  letter-spacing: 0.2px;
}
