:root {
  --bg: #0a0a0c;
  --panel-bg: #17181d;
  --panel-bg-alt: #1e2026;
  --border: #3a3e48;
  --shadow-panel: none;
  --shadow-card: none;
  --text: #e8ebf2;
  --text-dim: #9aa2b5;
  --accent: #f2811f;
  --accent-dark: #d16d15;
  --danger: #ff5252;
  --success: #66d97f;
  --wave-color: #f2811f;
  --wave-bg: transparent;
  --wave-select: rgba(255, 255, 255, 0.15);
  --wave-playhead: #ff5252;
  --radius: 11px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

h1, h2, h3 { margin: 0; }

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--text);
}
.brand-logo { width: 48px; height: 48px; display: block; transform: translateY(3.4px); }
.brand-wordmark { height: 28px; width: auto; display: block; }

.header-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-dim);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-btn:hover { color: var(--text); border-color: var(--border); }

.screen {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.screen[hidden] { display: none; }

.recorder-root {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.back-btn {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom: -4px;
}
.back-btn:hover { text-decoration: underline; }

.screen-title { font-size: 1.6rem; }
.screen-subtitle { margin: 0; color: var(--text-dim); }

/* ----- Landing page ----- */

.view-home { max-width: 1080px; align-items: center; text-align: center; padding-top: 40px; }
.hero { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 12px; }
.hero-logo { width: 100px; height: 100px; filter: drop-shadow(0 0 24px rgba(242, 129, 31, 0.35)); }
.hero-wordmark { width: min(455px, 100%); height: auto; margin: -8px 0 4px; }
.hero-tagline { color: var(--text-dim); font-size: 1.05rem; margin: 42px 0 0; }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  width: 100%;
}

.tool-card {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s ease, transform 0.1s ease;
}
.tool-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.tool-card:active { transform: translateY(0); }
.tool-icon { width: 108px; height: 108px; align-self: center; margin-bottom: 6px; color: var(--text-dim); transition: color 0.15s ease; }
.tool-card:hover .tool-icon { color: var(--text); }
.tool-card h2 { font-size: 1.15rem; text-align: center; }
.tool-card p { margin: 0; color: var(--text-dim); font-size: 0.9rem; line-height: 1.4; }

.panel {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.panel h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.panel h2 .hint {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.75rem;
  margin-left: 6px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.field select, .field input[type="text"] {
  background: var(--panel-bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.95rem;
}

.slider-field input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.checkbox-field input { accent-color: var(--accent); width: 18px; height: 18px; }

.transport-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.record-timer { font-variant-numeric: tabular-nums; color: var(--text-dim); }

.level-meter {
  margin-top: 12px;
  height: 6px;
  background: var(--panel-bg-alt);
  border-radius: 4px;
  overflow: hidden;
}
.level-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--success), var(--accent), var(--danger)); }

.dropzone {
  margin-top: 16px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: rgba(242, 129, 31, 0.06); }
.dropzone .hint { font-size: 0.8rem; margin-top: 4px; }
.dropzone strong { color: var(--text); }

.empty-state { color: var(--text-dim); font-size: 0.9rem; padding: 10px 0; }

.tracks-list { display: flex; flex-direction: column; gap: 14px; }

.track-card {
  background: var(--panel-bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.track-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.track-name {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px dashed transparent;
  min-width: 80px;
}
.track-name:focus { outline: none; border-bottom-color: var(--accent); }

.track-controls { display: flex; flex-wrap: wrap; align-items: center; row-gap: 8px; gap: 12px; }
.btn-group { display: flex; gap: 5px; align-items: center; padding: 0 12px; }
.btn-group:first-child { padding-left: 0; }
.btn-group + .btn-group { border-left: 1px solid var(--border); }
.btn-icon { font-size: 0.95em; line-height: 1; }

/* Bevel button system: every actionable button is a small raised, tactile
   surface (highlighted top edge, hard drop shadow) that visibly depresses on
   click, like a physical piece of studio gear. Orange = the one primary
   action in a group; dark grey = everything else; red = destructive. */
.btn-pill,
.btn-chip,
.btn-tool,
.btn-round,
.btn-solid-accent,
.modal-btn-confirm,
.modal-btn-tool,
.modal-btn-danger,
.modal-btn-neutral,
.transport-group button {
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-top-color: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: filter 0.1s ease, transform 0.05s ease, box-shadow 0.05s ease;
}
.btn-pill:hover, .btn-chip:hover, .btn-tool:hover, .btn-round:hover:not(:disabled),
.btn-solid-accent:hover, .modal-btn-confirm:hover, .modal-btn-tool:hover,
.modal-btn-danger:hover, .modal-btn-neutral:hover, .transport-group button:hover:not(:disabled) {
  filter: brightness(1.15);
}
.btn-pill:active, .btn-chip:active, .btn-tool:active, .btn-round:active:not(:disabled),
.btn-solid-accent:active, .modal-btn-confirm:active, .modal-btn-tool:active,
.modal-btn-danger:active, .modal-btn-neutral:active, .transport-group button:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.55);
  filter: none;
}
.btn-solid-accent:disabled, .modal-btn-neutral:disabled, .btn-round:disabled,
.transport-group button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: none;
  transform: none;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

/* Play: the one high-visibility action in a track's toolbar */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #1a0f00;
  border-radius: 6px;
  padding: 7px 16px;
  font-weight: 700;
  font-size: 0.8rem;
}
.btn-pill.is-playing { background: #fff; color: #1a0f00; }

/* Mix toggles: compact bevel chips, industry-standard colors when engaged */
.btn-chip {
  background: #2a2d34;
  color: var(--text-dim);
  border-radius: 6px;
  padding: 5px 13px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.solo-chip.active { background: #4a3a10; color: #ffd43b; }
.mute-chip.active { background: #4a1f1f; color: var(--danger); }

/* Tool buttons: same bevel surface for every track tool; grouping comes from
   the labelled sections above them, not from button color */
.btn-tool {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #2a2d34;
  color: var(--text-dim);
  border-radius: 6px;
  padding: 6px 11px;
  font-size: 0.76rem;
  font-weight: 600;
}
.kind-fx.active { background: #4a3410; color: var(--accent); }
.kind-danger, .modal-btn-danger { color: var(--danger); }

/* Undo: small round bevel button, deliberately understated (grey, not orange) */
.btn-round {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2a2d34;
  color: var(--text-dim);
  font-size: 1rem;
}

.waveform-canvas {
  width: 100%;
  height: 70px;
  display: block;
  background: var(--bg);
  border-radius: 6px;
  touch-action: none;
}
.waveform-canvas-large { height: 130px; }

.track-bottom {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.track-bottom .field { margin-bottom: 0; flex: 1; min-width: 140px; }


/* Transport: Play/Record sits next to Stop as two separate bevel buttons
   (not fused) so each one presses independently, like real transport keys. */
.transport-group { display: inline-flex; gap: 8px; }
.transport-group button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  padding: 11px 20px;
  font-size: 0.85rem;
  font-weight: 700;
}
.transport-group .transport-play { background: var(--accent); color: #1a0f00; }
.transport-group .transport-play.is-active { background: #fff; color: #1a0f00; }
.transport-group .transport-stop { background: #2a2d34; color: var(--text-dim); }

/* Record/Stop get their own bigger, more distinct shapes so they read as
   the primary transport pair rather than looking like every other button. */
.transport-group.kind-record .transport-play {
  background: var(--danger);
  color: #fff;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 0.92rem;
}
.transport-group.kind-record .transport-stop {
  border-radius: 8px;
  padding: 14px 22px;
  font-size: 0.92rem;
}
.transport-group.kind-record .dot {
  width: 11px; height: 11px; border-radius: 50%; background: currentColor; display: inline-block;
}
.transport-group.kind-record.is-recording .transport-play .dot { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

/* The button that produces this panel's main result
   (Export Mix, Separate, Apply Noise Reduction, Trim to Selection). */
.btn-solid-accent {
  background: var(--accent);
  color: #1a0f00;
  padding: 11px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 6px;
}

/* Modal action buttons: same bevel language as the track toolbar, sized for a dialog footer. */
.modal-btn-confirm {
  background: var(--accent);
  color: #1a0f00;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
}

.modal-btn-tool {
  background: #2a2d34;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

.modal-btn-danger {
  background: #2a2d34;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

.modal-btn-neutral {
  background: #2a2d34;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 16px;
}
.modal-overlay[hidden] { display: none; }

.modal {
  background: var(--panel-bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
.modal-wide { max-width: 620px; }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.modal-header .modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}


.eq-bands {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.eq-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.eq-band input[type="range"] {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 24px;
  height: 130px;
  accent-color: var(--accent);
}
.eq-band label { font-size: 0.65rem; color: var(--text-dim); }
.eq-band .db-value { font-size: 0.65rem; color: var(--text-dim); }


.separate-progress-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding: 16px 18px;
  background: rgba(242, 129, 31, 0.08);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}
.separate-progress-panel[hidden] { display: none; }

.spinner {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 4px solid rgba(242, 129, 31, 0.25);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.progress-info { flex: 1; min-width: 0; }
.progress-label { font-weight: 700; color: var(--text); margin-bottom: 8px; }

.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(242, 129, 31, 0.15);
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-bar-fill {
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, #d16d15, #f2811f);
  animation: indeterminate 1.4s ease-in-out infinite;
}
@keyframes indeterminate {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

.progress-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.progress-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
}
.progress-note { color: var(--text-dim); font-size: 0.8rem; }

.hint { color: var(--text-dim); font-size: 0.8rem; }

.app-footer {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.75rem;
  padding: 24px 16px 40px;
}

@media (max-width: 600px) {
  .app-header { padding: 12px 14px; }
  .screen { padding: 12px; }
  .panel { padding: 14px; }
  .eq-band input[type="range"] { height: 100px; }
    .view-home { padding-top: 20px; }
}

.seek-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.seek-row .seek-slider { flex: 1; min-width: 80px; accent-color: var(--accent); }
.seek-time { font-variant-numeric: tabular-nums; font-size: 0.8rem; color: var(--text-dim); min-width: 42px; text-align: center; }
.waveform-canvas { cursor: pointer; }
.waveform-canvas-large { cursor: crosshair; }

.export-bitrate-field[hidden] { display: none; }

/* Tools row under each track: labelled groups so it's clear what each button is for */
.track-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.tool-group { display: flex; flex-direction: column; gap: 6px; }
.tool-group-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.tool-group-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.track-controls .btn-group { padding: 0; }
.track-controls .btn-group + .btn-group { border-left: none; }
.kind-clean.active { background: #4a3410; color: var(--accent); }

/* Master bar */
.master-tools { display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px 32px; }
.tool-group-grow { flex: 1; min-width: 180px; justify-content: space-between; }
.tool-group-grow input[type="range"] { width: 100%; accent-color: var(--accent); }
.transport-group .btn-icon { font-size: 0.9em; }

/* Dialogs: labelled groups, undo on the left, main action on the right */
.dialog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 28px;
  align-items: start;
  margin-top: 14px;
}
.dialog-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.dialog-cell .field { align-self: stretch; margin-bottom: 0; }
.dialog-tools { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 14px; }
.modal-footer { align-items: center; padding-top: 14px; border-top: 1px solid var(--border); }
.modal-footer .btn-round.kind-undo,
.modal-footer .push-left { margin-right: auto; }

/* Tuner */
.tuner-panel > summary {
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  list-style-position: inside;
}
.tuner-panel[open] > summary { margin-bottom: 14px; }
.tuner-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; }
.tuner-controls .field { margin-bottom: 0; }
.tuner-a4-field input {
  width: 96px;
  background: var(--panel-bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.95rem;
}
.tuner-display { text-align: center; padding: 18px 0 6px; --tuner-color: var(--text-dim); }
.tuner-display[data-state="good"] { --tuner-color: var(--success); }
.tuner-display[data-state="close"] { --tuner-color: #ffd43b; }
.tuner-display[data-state="off"] { --tuner-color: #ff8a65; }
.tuner-note { font-size: 3.6rem; font-weight: 700; line-height: 1; color: var(--tuner-color); transition: color 0.15s; }
.tuner-freq { margin-top: 6px; min-height: 1.2em; color: var(--text-dim); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.tuner-meter {
  position: relative;
  height: 14px;
  max-width: 460px;
  margin: 16px auto 4px;
  background: var(--panel-bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.tuner-zone {
  position: absolute;
  left: 45%;
  width: 10%;
  top: 0;
  bottom: 0;
  background: rgba(102, 217, 127, 0.25);
  border-left: 1px solid var(--success);
  border-right: 1px solid var(--success);
}
.tuner-needle {
  position: absolute;
  top: -5px;
  width: 6px;
  height: 22px;
  margin-left: -3px;
  left: 50%;
  border-radius: 3px;
  background: var(--tuner-color);
  transition: left 0.12s ease-out, background 0.15s;
}
.tuner-scale {
  display: flex;
  justify-content: space-between;
  max-width: 460px;
  margin: 0 auto;
  font-size: 0.7rem;
  color: var(--text-dim);
}
.tuner-hint { margin-top: 10px; font-weight: 600; color: var(--tuner-color); min-height: 1.4em; }
.tuner-strings { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.tuner-string {
  min-width: 52px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
.tuner-string:hover { color: var(--text); border-color: var(--text-dim); }
.tuner-string.active { color: #1a0f00; background: var(--accent); border-color: var(--accent); }
.tuner-help { text-align: center; margin: 8px 0 0; }
.tuner-strings[hidden], .tuner-help[hidden] { display: none; }


/* ----- Website pages: real links, download panel, written content ----- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Links that used to be buttons keep the same look. */
a.brand, a.nav-btn, a.tool-card, a.back-btn, a.download-card { text-decoration: none; }
a.nav-btn { display: inline-block; }
.nav-btn[aria-current="page"] { color: var(--text); border-color: var(--border); }

.hero-title { margin: 0; display: flex; flex-direction: column; align-items: center; font-size: inherit; }
.hero-wordmark { display: block; }

/* The recorder controls are added by JavaScript after the page loads. Reserve their space
   on the website so the written content below doesn't jump down when they appear. */
html:not(.is-desktop) .recorder-root { min-height: 100vh; }

/* The desktop app (opened with ?desktop=1) shows the real tools; the website shows the download page. */
html:not(.is-desktop) .desktop-only { display: none !important; }
html.is-desktop .web-only,
html.is-desktop .seo-copy,
html.is-desktop .footer-links { display: none !important; }

.download-panel { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.download-panel h2 { margin: 0; }
.download-panel .hint { margin: 0; }
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.download-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--panel-bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.1s ease;
}
.download-card:hover, .download-card:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.download-card.recommended { border-color: var(--accent); }
.download-os { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }
.download-kind { font-size: 1.25rem; font-weight: 700; }
.download-note { flex: 1; color: var(--text-dim); font-size: 0.85rem; line-height: 1.4; }
.download-btn { display: block; text-align: center; margin-top: 10px; pointer-events: none; }

.seo-copy {
  width: 100%;
  max-width: 760px;
  margin: 48px auto 0;
  text-align: left;
  color: var(--text-dim);
  line-height: 1.65;
}
.seo-copy h2 { color: var(--text); font-size: 1.35rem; margin: 32px 0 12px; }
.seo-copy > h2:first-child { margin-top: 0; }
.seo-copy h3 { color: var(--text); font-size: 1.05rem; margin: 22px 0 8px; }
.seo-copy p { margin: 0 0 12px; }
.seo-copy a { color: var(--accent); }
.seo-copy ul, .seo-copy ol { margin: 0 0 12px; padding-left: 1.3em; }
.seo-copy li { margin-bottom: 6px; }
.seo-copy strong { color: var(--text); }
.seo-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin: 22px 0 8px; }
.seo-columns h3 { margin-top: 0; }
.seo-columns h3 a { text-decoration: none; }

.seo-copy details, .download-panel details {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 8px 0;
  color: var(--text-dim);
  line-height: 1.6;
}
.seo-copy summary, .download-panel summary { cursor: pointer; color: var(--text); font-weight: 600; }
.seo-copy details p, .download-panel details p, .download-panel details ol { margin: 10px 0 0; }
.download-panel details ol { padding-left: 1.3em; }
.download-panel details a { color: var(--accent); }

.footer-links { margin: 8px 0 0; }
.footer-links a { color: var(--text-dim); }
