/* WotGig — wotgig.com
   Palette is the app's Stage theme (lib/app/theme.dart, lib/app/title_colors.dart). */

:root {
  --bg: #0b0e11;
  --bg-deep: #07090b;
  --surface: #14191f;
  --surface-high: #1c232b;
  --focus-fill: #24303a;
  --line: #2a323c;
  --line-soft: #1f262e;
  --text: #e8ecf1;
  --muted: #8b95a1;
  --dim: #5d6772;
  --accent: #3dbeae;
  --accent-bright: #4fd6c5;
  --accent-ink: #06201c;
  --lyric: #e8c84a;
  --chord: #4aa3e8;
  --danger: #e85d4c;
  --cloud: #c5cdd4;
  --pending: #64b5f6;
  --t-backing: #3dbeae;
  --t-original: #e8942a;
  --t-demo: #e23b8c;
  --t-multi: #8b7cf6;

  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --max: 1200px;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, canvas, video { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-bright); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icons { display: none; }
.ic { width: 24px; height: 24px; fill: currentColor; flex: none; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: 0; }

/* ——— Nav ——— */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 14, 17, .78);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.12rem; letter-spacing: .01em; }
.brand:hover { color: var(--text); }
.brand img { width: 30px; height: 30px; border-radius: 50%; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: .94rem; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links .btn { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; width: 40px; height: 40px; border-radius: 10px; color: var(--text); align-items: center; justify-content: center; }
.nav-toggle:hover { background: var(--surface); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 18px; background: rgba(11, 14, 17, .97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav.is-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px; border-radius: 10px; font-size: 1rem; }
  .nav-links .btn { margin: 8px 0 0; }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  font-weight: 600; font-size: .96rem; line-height: 1.2;
  border: 1px solid transparent; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-bright); color: var(--accent-ink); }
.nav-links a.btn-primary { color: var(--accent-ink); }
.nav-links a.btn-primary:hover { background: var(--accent-bright); color: var(--accent-ink); }
.btn-ghost { color: var(--text); border-color: var(--line); }
.btn-ghost:hover { color: var(--text); border-color: var(--accent); background: rgba(61, 190, 174, .08); }
.btn-sm { padding: 7px 14px; font-size: .86rem; }

/* ——— Chips, segmented controls, toggles ——— */
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg button, .pill {
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
  font-size: .84rem; font-weight: 500; line-height: 1.3;
  transition: color .15s, border-color .15s, background .15s;
}
.seg button:hover, .pill:hover { color: var(--text); border-color: #3b4652; }
.seg button[aria-pressed="true"], .pill[aria-pressed="true"] {
  color: var(--accent-ink); background: var(--accent); border-color: var(--accent);
}
.seg.seg-warm button[aria-pressed="true"] { background: var(--lyric); border-color: var(--lyric); color: #1a1505; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-size: .9rem; color: var(--muted); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 38px; height: 22px; border-radius: 999px; background: var(--surface-high); border: 1px solid var(--line); position: relative; transition: background .2s, border-color .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .2s var(--ease), background .2s; }
.switch input:checked + .track { background: rgba(61, 190, 174, .25); border-color: var(--accent); }
.switch input:checked + .track::after { transform: translateX(16px); background: var(--accent); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch:hover { color: var(--text); }

input[type="range"] { -webkit-appearance: none; appearance: none; background: transparent; width: 100%; height: 22px; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--fill, 50%), var(--surface-high) var(--fill, 50%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--surface-high); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: var(--text); border: 0; box-shadow: 0 0 0 4px rgba(61, 190, 174, .25); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--text); border: 0; box-shadow: 0 0 0 4px rgba(61, 190, 174, .25); }

.badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px 7px; border-radius: 4px; border: 1px solid;
  font-size: .64rem; font-weight: 700; letter-spacing: .08em; line-height: 1.2;
  white-space: nowrap; font-family: var(--font);
}
.b-local { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.b-cached { background: rgba(61, 190, 174, .18); border-color: var(--accent); color: var(--accent); }
.b-pinning { background: rgba(61, 190, 174, .18); border-color: var(--accent); color: var(--accent); animation: pulse .9s ease-in-out infinite alternate; }
.b-cloud { background: transparent; border-color: var(--cloud); color: var(--cloud); }
.b-dead { background: transparent; border-color: var(--danger); color: var(--danger); }
@keyframes pulse { from { opacity: .35; } to { opacity: 1; } }

.tag-android { display: inline-block; padding: 1px 8px; margin-left: 6px; border-radius: 999px; background: rgba(232, 200, 74, .12); color: var(--lyric); font-size: .7rem; font-weight: 600; letter-spacing: .02em; vertical-align: .12em; white-space: nowrap; }

/* ——— Section scaffolding ——— */
.section { padding: 112px 0; position: relative; }
.section + .section { border-top: 1px solid var(--line-soft); }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.sec-head h2, .h2 {
  font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700;
  line-height: 1.06; letter-spacing: -.035em;
}
.sec-head h2 em, .hero h1 em { font-style: normal; color: var(--lyric); }
.sec-lede { margin-top: 18px; font-size: 1.14rem; color: var(--muted); max-width: 62ch; }
.sec-lede strong { color: var(--text); font-weight: 600; }
.note { font-size: .86rem; color: var(--dim); }
.note strong { color: var(--muted); font-weight: 600; }

.split { display: grid; gap: 48px; align-items: start; }
@media (min-width: 980px) {
  .split { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; }
  .split.flip > :first-child { order: 2; }
}

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 30px 80px -40px rgba(0, 0, 0, .8);
}

.points { list-style: none; display: grid; gap: 0; }
.points li { padding: 14px 0 14px 30px; border-top: 1px solid var(--line-soft); position: relative; color: var(--muted); }
.points li:last-child { border-bottom: 1px solid var(--line-soft); }
.points li::before { content: ""; position: absolute; left: 4px; top: 1.45em; width: 10px; height: 2px; background: var(--accent); }
.points strong { color: var(--text); font-weight: 600; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--surface-high); border: 1px solid var(--line); color: var(--text);
  padding: 12px 18px; border-radius: 12px; font-size: .92rem; max-width: min(520px, calc(100% - 32px));
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5); transition: opacity .25s, transform .25s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ——— Hero ——— */
.hero { padding: 56px 0 96px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none; z-index: -1;
  background:
    radial-gradient(48% 40% at 72% 30%, rgba(61, 190, 174, .14), transparent 70%),
    radial-gradient(30% 30% at 20% 0%, rgba(232, 200, 74, .06), transparent 70%);
}
.hero-grid { display: grid; gap: 48px; grid-template-areas: "copy" "stage" "console"; }
@media (min-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 372px; grid-template-areas: "copy stage" "console stage"; column-gap: 72px; row-gap: 40px; align-items: start; }
  .hero { padding-top: 72px; }
}
.hero-copy { grid-area: copy; }
.hero h1 {
  font-size: clamp(2.6rem, 6.6vw, 5rem); font-weight: 800;
  line-height: .98; letter-spacing: -.045em; max-width: 13ch;
}
.hero .lede { margin-top: 26px; font-size: clamp(1.08rem, 1.6vw, 1.26rem); color: var(--muted); max-width: 50ch; }
.hero .lede strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .86rem; color: var(--dim); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.stage-col { grid-area: stage; display: flex; flex-direction: column; align-items: center; gap: 14px; }
@media (min-width: 1020px) { .stage-col { position: sticky; top: 88px; } }
.stage-caption { font-size: .82rem; color: var(--dim); text-align: center; max-width: 34ch; }

/* console */
.console { grid-area: console; padding: 22px; display: grid; gap: 20px; }
.console-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.console-head h2 { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.console-head p { font-size: .82rem; color: var(--dim); }
.ctl { display: grid; gap: 8px; }
.ctl-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); display: flex; justify-content: space-between; gap: 8px; }
.ctl-label output { color: var(--text); letter-spacing: .02em; text-transform: none; white-space: nowrap; }
.ctl-row { display: grid; gap: 20px; }
@media (min-width: 620px) { .ctl-row { grid-template-columns: 1fr 1fr; } }
.queue { list-style: none; display: grid; gap: 4px; }
.queue button {
  width: 100%; display: grid; grid-template-columns: 22px 1fr auto auto; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 10px; text-align: left; color: var(--muted); border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.queue button:hover { background: var(--surface-high); color: var(--text); }
.queue .q-n { font-family: var(--mono); font-size: .76rem; color: var(--dim); }
.queue .q-title { color: var(--text); font-weight: 500; font-size: .95rem; }
.queue .q-sub { display: block; font-size: .76rem; color: var(--dim); }
.queue .q-dur { font-family: var(--mono); font-size: .8rem; color: var(--dim); }
.queue li.is-current button { background: var(--focus-fill); border-color: var(--line); }
.queue li.is-current .q-n { color: var(--accent); }
.queue li.is-ready .q-n::after { content: " ▸"; color: var(--lyric); }

/* ——— Device frames ——— */
.phone {
  width: 100%; max-width: 360px; aspect-ratio: 9 / 18.6;
  padding: 10px; border-radius: 44px;
  background: linear-gradient(160deg, #1b2027, #090b0e 40%, #12161b);
  box-shadow: 0 0 0 1px #2b323b, 0 0 0 2px #07090b, 0 50px 100px -30px rgba(0, 0, 0, .85), 0 0 120px -40px rgba(61, 190, 174, .25);
  position: relative;
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #05070a; box-shadow: 0 0 0 1px #1d232a; z-index: 3; }
.screen { position: relative; height: 100%; border-radius: 35px; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; isolation: isolate; }

/* ——— Stage UI (in-phone) ——— */
.st-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 36px 16px 6px; color: var(--text); }
.st-top .ic { width: 22px; height: 22px; color: #cfd6dd; }
.st-top button { padding: 4px; border-radius: 8px; color: inherit; }
.st-top button:hover { background: var(--surface-high); }
.st-title { flex: 1; min-width: 0; text-align: center; line-height: 1.2; }
.st-title b { display: block; font-size: .92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-title span { font-size: .7rem; color: var(--muted); }
.st-count { display: flex; justify-content: center; gap: 8px; height: 16px; align-items: center; transition: opacity .3s; }
.st-count i { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-high); transition: background .08s; }
.st-count i.on { background: var(--lyric); box-shadow: 0 0 10px rgba(232, 200, 74, .6); }
.st-count.is-hidden { opacity: 0; }

.st-lyrics { position: relative; flex: 1; overflow: hidden; }
.st-lyrics::before, .st-lyrics::after { content: ""; position: absolute; left: 0; right: 0; height: 36px; z-index: 2; pointer-events: none; }
.st-lyrics::before { top: 0; background: linear-gradient(var(--bg), transparent); }
.st-lyrics::after { bottom: 0; background: linear-gradient(transparent, var(--bg)); }
.st-track { position: absolute; left: 0; right: 0; top: 0; padding: 8px 0 40px; transition: transform .55s var(--ease); will-change: transform; }
.st-line { padding: 8px 18px 10px; transition: background .3s, opacity .4s, font-size .3s; cursor: pointer; }
.st-line:hover { background: rgba(255, 255, 255, .02); }
.st-chords { position: relative; height: 30px; margin-bottom: 4px; }
.chip {
  position: absolute; top: 0; padding: 2px 9px; border-radius: 6px;
  border: 1px solid #56616d; background: rgba(28, 35, 43, .9); color: #d4dae0;
  font-size: .9rem; font-weight: 600; line-height: 1.5; white-space: nowrap;
  transition: color .15s, border-color .15s, box-shadow .15s;
}
.chip.is-now { color: var(--chord); border-color: var(--chord); box-shadow: 0 0 0 1px rgba(74, 163, 232, .25), 0 0 18px -4px rgba(74, 163, 232, .55); }
.st-words { font-size: 1.12rem; line-height: 1.35; color: #cfd6dd; letter-spacing: -.005em; }
.st-line.is-past { opacity: .5; }
.st-line.is-cur { background: var(--focus-fill); opacity: 1; }
.st-line.is-cur .st-words { color: var(--hl, var(--lyric)); font-weight: 600; }

.st-lyrics[data-view="focus"] .st-line { opacity: 0; }
.st-lyrics[data-view="focus"] .st-line.is-cur { opacity: 1; padding-block: 18px; }
.st-lyrics[data-view="focus"] .st-line.is-next { opacity: .45; }
.st-lyrics[data-view="focus"] .st-line.is-cur .st-words { font-size: 1.5rem; }
.st-lyrics[data-view="page"] .st-track { transform: none !important; }
.st-lyrics[data-view="page"] .st-line { padding: 3px 14px 4px; }
.st-lyrics[data-view="page"] .st-chords { height: 22px; margin-bottom: 0; }
.st-lyrics[data-view="page"] .chip { font-size: .72rem; padding: 0 6px; }
.st-lyrics[data-view="page"] .st-words { font-size: .86rem; }
.st-lyrics[data-view="page"] .st-line.is-past { opacity: .7; }

.st-strip { display: flex; align-items: center; gap: 10px; padding: 8px 12px 0; }
.wave { position: relative; flex: 1; height: 54px; border-radius: 8px; background: var(--surface); overflow: hidden; cursor: pointer; touch-action: none; }
.wave canvas { width: 100%; height: 100%; }
.region { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; font-size: .66rem; font-weight: 600; color: #fff; border-radius: 3px; pointer-events: none; transition: box-shadow .2s, opacity .2s; }
.region span { padding: 1px 6px; background: rgba(0, 0, 0, .25); border-radius: 4px; }
.region.is-looping { box-shadow: inset 0 0 0 2px #fff; }
.playhead { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; left: 0; pointer-events: none; box-shadow: 0 0 8px rgba(255, 255, 255, .6); }
.loop-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: .55rem; font-weight: 600; letter-spacing: .06em; width: 52px; }
.loop-btn .disc { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-high); display: grid; place-items: center; color: #cfd6dd; transition: background .2s, color .2s; }
.loop-btn[aria-pressed="true"] { color: var(--accent); }
.loop-btn[aria-pressed="true"] .disc { background: var(--accent); color: var(--accent-ink); }
.st-time { display: flex; justify-content: space-between; padding: 4px 14px 0; font-family: var(--mono); font-size: .66rem; color: var(--dim); }

.st-transport { display: flex; align-items: center; justify-content: space-between; padding: 10px 22px 12px; }
.st-transport button { color: #e2e7ec; border-radius: 50%; display: grid; place-items: center; width: 44px; height: 44px; transition: background .15s, color .15s; }
.st-transport button:hover { background: var(--surface-high); }
.st-transport .ic { width: 30px; height: 30px; }
.st-transport .side .ic { width: 24px; height: 24px; color: #b9c1c9; }
.st-transport .side[aria-pressed="true"] { color: var(--accent); background: rgba(61, 190, 174, .14); }
.st-transport .side[aria-pressed="true"] .ic { color: var(--accent); }
.st-transport .play { width: 64px; height: 64px; background: var(--accent); color: var(--accent-ink); }
.st-transport .play:hover { background: var(--accent-bright); }
.st-transport .play .ic { width: 34px; height: 34px; }
.st-transport .play.is-loading .ic { animation: pulse .6s ease-in-out infinite alternate; }

.st-nav { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); padding: 8px 6px 16px; }
.st-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-size: .66rem; font-weight: 500; }
.st-nav a .pillwrap { width: 54px; height: 30px; border-radius: 999px; display: grid; place-items: center; transition: background .2s; }
.st-nav a .ic { width: 22px; height: 22px; }
.st-nav a:hover { color: var(--text); }
.st-nav a.is-on { color: var(--accent); font-weight: 600; }
.st-nav a.is-on .pillwrap { background: rgba(61, 190, 174, .22); }

.st-sheet {
  position: absolute; left: 10px; right: 10px; bottom: 150px; z-index: 5;
  background: var(--surface-high); border: 1px solid var(--line); border-radius: 16px; padding: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .6);
  transform: translateY(10px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease);
}
.st-sheet.is-open { opacity: 1; transform: none; pointer-events: auto; }
.st-sheet h3 { font-size: .76rem; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; display: flex; justify-content: space-between; }
.st-sheet h3 output { color: var(--text); font-family: var(--mono); letter-spacing: 0; }
.st-sheet p { font-size: .72rem; color: var(--dim); margin-top: 6px; }

/* ——— Statement band ——— */
.statement { padding: 96px 0; }
.statement p { font-size: clamp(1.5rem, 3.4vw, 2.5rem); line-height: 1.22; letter-spacing: -.025em; font-weight: 500; max-width: 26ch; color: var(--dim); }
.statement p b { color: var(--text); font-weight: 600; }
.facts { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; margin-top: 56px; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { background: var(--bg); padding: 26px 24px; }
.fact b { display: block; font-size: 2.2rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.fact b small { font-size: 1rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.fact span { display: block; margin-top: 10px; color: var(--muted); font-size: .92rem; }

/* ——— Pack simulator ——— */
.pack { padding: 0; overflow: hidden; }
.pack-head { padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.pack-head h3 { font-size: 1.02rem; font-weight: 600; }
.pack-head .sub { font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.pack-tools { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.pack-list { list-style: none; }
.pack-row { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 14px; align-items: center; padding: 11px 20px; border-bottom: 1px solid var(--line-soft); transition: opacity .3s, background .3s; }
.pack-row:last-child { border-bottom: 0; }
.art { width: 44px; height: 44px; border-radius: 6px; background: var(--surface-high); position: relative; overflow: hidden; }
.art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, var(--c1, #3dbeae), transparent 60%), radial-gradient(circle at 80% 90%, var(--c2, #8b7cf6), transparent 55%); opacity: .75; }
.pack-row .t { min-width: 0; }
.pack-row .t b { display: block; font-weight: 500; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pack-row .t span { display: flex; gap: 10px; align-items: center; margin-top: 3px; font-size: .8rem; }
.type { font-weight: 500; }
.type-backing { color: var(--t-backing); } .type-original { color: var(--t-original); } .type-demo { color: var(--t-demo); } .type-multi { color: var(--t-multi); }
.pack-row .dur { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.pack-row .keep { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .76rem; font-weight: 500; }
.pack-row .keep:hover { color: var(--text); border-color: var(--accent); }
.pack-row .keep[disabled] { opacity: .35; cursor: default; border-color: transparent; }
.pack.is-offline .pack-row.is-unplayable { opacity: .38; }
.pack.is-offline .pack-row.is-unplayable .t b { text-decoration: line-through; text-decoration-color: var(--danger); }
.pack-verdict { padding: 16px 20px; font-size: .94rem; display: flex; gap: 12px; align-items: center; background: var(--bg-deep); border-top: 1px solid var(--line); min-height: 58px; }
.pack-verdict .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.pack-verdict.is-bad .dot { background: var(--danger); box-shadow: 0 0 12px var(--danger); }
.pack-verdict.is-warn .dot { background: var(--lyric); box-shadow: 0 0 12px var(--lyric); }
.legend { display: grid; gap: 18px; margin-top: 28px; }
.legend div { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: start; }
.legend .badge { justify-self: start; margin-top: 3px; }
.legend p { color: var(--muted); font-size: .96rem; }
.legend p strong { color: var(--text); font-weight: 600; }

/* ——— Follow ——— */
.follow-stage { display: grid; gap: 20px; align-items: center; }
@media (min-width: 980px) { .follow-stage { grid-template-columns: 300px 1fr; gap: 28px; } }
.host-card { padding: 22px; text-align: center; }
.host-card h3 { font-size: 1rem; font-weight: 600; }
.host-card .qr { width: 168px; height: 168px; margin: 18px auto; background: #fff; border-radius: 12px; padding: 10px; }
.host-card .qr canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.host-card .url { font-family: var(--mono); font-size: .74rem; color: var(--muted); word-break: break-all; }
.host-card .btn { margin-top: 14px; }
.host-card ul { list-style: none; margin-top: 16px; display: grid; gap: 6px; font-size: .8rem; color: var(--dim); }
.host-ctl { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.host-ctl .mini-play { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.host-ctl .mini-play:hover { background: var(--accent-bright); }
.host-ctl .mini-skip { width: 36px; height: 36px; border-radius: 50%; color: var(--text); display: grid; place-items: center; }
.host-ctl .mini-skip:hover { background: var(--surface-high); }
.host-ctl .mono { font-size: .8rem; color: var(--muted); min-width: 84px; text-align: left; }

.laptop { position: relative; }
.laptop-screen { border-radius: 14px 14px 4px 4px; padding: 10px; background: linear-gradient(#1a1f25, #0d1014); box-shadow: 0 0 0 1px #2b323b, 0 40px 80px -30px rgba(0, 0, 0, .8); }
.laptop-base { height: 14px; margin: 0 -4%; border-radius: 0 0 16px 16px; background: linear-gradient(#2a3038, #14181d); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .6); }
.browser { border-radius: 8px; overflow: hidden; background: var(--bg); }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #161b21; border-bottom: 1px solid var(--line-soft); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2f3741; }
.browser-bar .addr { flex: 1; margin-left: 8px; padding: 4px 10px; border-radius: 6px; background: var(--bg); font-family: var(--mono); font-size: .68rem; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-head { position: relative; text-align: center; padding: 10px 12px 6px; background: #0f1418; }
.fl-head b { font-size: .9rem; font-weight: 600; }
.fl-tag { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 6px; background: var(--focus-fill); font-size: .7rem; color: #cfd6dd; }
.fl-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 10px 12px; }
.fl-chips button { padding: 3px 10px; border-radius: 6px; border: 1px solid #56616d; font-size: .72rem; color: #cfd6dd; }
.fl-chips button:hover { border-color: var(--text); }
.fl-chips button[aria-pressed="true"] { background: var(--lyric); border-color: var(--lyric); color: #1a1505; font-weight: 600; }
.fl-chips .swatch { width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 2px solid transparent; background: var(--sw); }
.fl-chips .swatch[aria-pressed="true"] { border-color: #fff; background: var(--sw); }
.fl-body { position: relative; height: 290px; overflow: hidden; }
.fl-body .st-track { padding-top: 60px; }
.fl-body .st-line { padding-inline: 22px; cursor: default; }
.fl-body .st-words { font-size: calc(1.15rem * var(--fs, 1)); }
.fl-body .chip { font-size: calc(.84rem * var(--fs, 1)); }
.fl-foot { display: flex; align-items: center; gap: 10px; padding: 10px 14px 12px; border-top: 1px solid var(--line-soft); font-size: .72rem; color: var(--muted); }
.fl-prog { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-high); overflow: hidden; }
.fl-prog i { display: block; height: 100%; width: 0; background: var(--muted); }
.fl-mute { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); }
.fl-mute .ic { width: 16px; height: 16px; }

/* ——— Set timeline ——— */
.set { padding: 0; overflow: hidden; }
.set-tools { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.set-tools .ctl { min-width: 200px; flex: 1; }
.set-list { list-style: none; padding: 8px; }
.set-row {
  display: grid; grid-template-columns: 28px 26px 1fr auto auto; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 10px; background: var(--surface); user-select: none; touch-action: pan-y;
  transition: background .15s, box-shadow .15s, transform .2s var(--ease);
}
.set-row + .set-row { margin-top: 2px; }
.set-row:hover { background: var(--surface-high); }
.set-row.is-dragging { background: var(--focus-fill); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); z-index: 2; position: relative; transition: none; }
.set-row .grip { color: var(--dim); cursor: grab; display: grid; place-items: center; touch-action: none; height: 32px; }
.set-row .grip:active { cursor: grabbing; }
.set-row .n { font-family: var(--mono); font-size: .76rem; color: var(--dim); }
.set-row .t b { display: block; font-weight: 500; font-size: .96rem; }
.set-row .t span { font-size: .78rem; }
.set-row .dur { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.adv { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: .74rem; font-weight: 500; border: 1px solid var(--line); color: var(--muted); min-width: 92px; justify-content: center; }
.adv[aria-pressed="true"] { color: var(--accent); border-color: rgba(61, 190, 174, .5); background: rgba(61, 190, 174, .08); }
.adv[aria-pressed="false"] { color: var(--lyric); border-color: rgba(232, 200, 74, .45); }
.adv:disabled { opacity: .4; cursor: default; }
.timeline-wrap { padding: 20px 20px 22px; border-top: 1px solid var(--line); background: var(--bg-deep); }
.timeline-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
.timeline-meta b { color: var(--text); font-family: var(--mono); font-weight: 500; }
.timeline { position: relative; height: 64px; }
.tl-block { position: absolute; top: 8px; height: 40px; border-radius: 6px; background: var(--c, var(--accent)); opacity: .9; display: flex; align-items: center; padding: 0 8px; overflow: hidden; font-size: .7rem; font-weight: 600; color: rgba(0, 0, 0, .75); white-space: nowrap; transition: left .45s var(--ease), width .45s var(--ease); }
.tl-block.alt { top: 16px; }
.tl-gap { position: absolute; top: 4px; height: 48px; border-left: 1px dashed var(--dim); transition: left .45s var(--ease); }
.tl-stop { position: absolute; top: 0; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--lyric); color: #1a1505; display: grid; place-items: center; font-size: .6rem; font-weight: 800; transition: left .45s var(--ease); box-shadow: 0 0 0 3px var(--bg-deep); }
.tl-axis { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: .62rem; color: var(--dim); }
.tl-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: .78rem; color: var(--dim); }
.tl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tl-legend i { width: 12px; height: 12px; border-radius: 50%; background: var(--lyric); display: inline-block; }

/* ——— Mixer ——— */
.mixer { padding: 0; overflow: hidden; }
.mix-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.mix-play { width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.mix-play:hover { background: var(--accent-bright); }
.mix-play .ic { width: 30px; height: 30px; }
.mix-now { min-width: 160px; }
.mix-now b { display: block; font-weight: 600; }
.mix-now span { font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.mix-chart { display: flex; gap: 6px; margin-left: auto; }
.mix-chart .chip { position: static; font-size: .86rem; }
.mix-ctls { display: grid; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .mix-ctls { grid-template-columns: 1fr 1fr 1.1fr; } }
.strips { display: grid; }
.strip {
  display: grid; grid-template-columns: 58px minmax(64px, 110px) 58px minmax(0, 1fr) minmax(110px, 170px);
  gap: 16px; align-items: center; padding: 10px 20px; background: var(--surface);
  border-bottom: 1px solid var(--line-soft); transition: opacity .2s;
}
.strip.is-empty { background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 8px, #12171c 8px, #12171c 16px); }
.strip.is-empty > * { opacity: .5; }
.strip.is-empty .note { grid-column: 3 / -1; }
.strip .slot { font-family: var(--mono); font-size: .66rem; color: var(--dim); letter-spacing: .1em; }
.strip .name { font-size: .94rem; font-weight: 600; }
.stem-on { padding: 4px 0; width: 54px; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; border: 1px solid var(--accent); color: var(--accent-ink); background: var(--accent); }
.stem-on[aria-pressed="false"] { background: transparent; color: var(--muted); border-color: var(--line); }
.strip.is-off .name { color: var(--dim); }
.strip.is-off .meter i { opacity: .2; }
.lvl { display: grid; gap: 2px; }
.meter { height: 4px; border-radius: 3px; background: var(--bg-deep); position: relative; overflow: hidden; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, rgba(61, 190, 174, .5), var(--accent)); transition: opacity .2s; }
.panw { display: grid; grid-template-columns: 1fr 36px; gap: 8px; align-items: center; }
.pan:disabled { opacity: .35; }
.pan-label { font-family: var(--mono); font-size: .68rem; color: var(--dim); text-align: right; }
@media (max-width: 720px) {
  .strip { grid-template-columns: 1fr auto; gap: 8px 14px; padding: 12px 16px; grid-template-areas: "name on" "lvl lvl" "pan pan"; }
  .strip .slot { display: none; }
  .strip .name { grid-area: name; }
  .strip .stem-on { grid-area: on; }
  .strip .lvl { grid-area: lvl; }
  .strip .panw { grid-area: pan; }
  .strip .lvl, .strip .panw { display: grid; grid-template-columns: 38px 1fr; align-items: center; column-gap: 8px; }
  .strip .panw { grid-template-columns: 38px 1fr auto; }
  .strip .lvl::before, .strip .panw::before { font: 600 .62rem/1 var(--mono); letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
  .strip .lvl::before { content: "Level"; grid-row: 1 / span 2; }
  .strip .panw::before { content: "Pan"; }
  .strip .lvl .meter { grid-column: 2; }
  .strip.is-empty { display: none; }
}
.mix-foot { padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; background: var(--bg-deep); font-size: .86rem; color: var(--muted); }
.ear { display: inline-flex; gap: 6px; align-items: center; }
.ear b { padding: 2px 8px; border-radius: 6px; font-size: .7rem; font-family: var(--mono); background: var(--surface-high); color: var(--muted); transition: background .2s, color .2s; }
.ear b.on { background: var(--lyric); color: #1a1505; }

/* ——— Loudness ——— */
.lufs { padding: 0; overflow: hidden; }
.lufs-ctls { display: grid; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .lufs-ctls { grid-template-columns: auto 1fr 1fr; align-items: center; } }
.lufs-rows { padding: 10px 20px 18px; display: grid; gap: 14px; }
.lufs-row { display: grid; grid-template-columns: minmax(120px, 200px) 1fr 74px; gap: 14px; align-items: center; }
.lufs-row .t span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lufs-row .t b { display: block; font-size: .92rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lufs-row .t span { font-family: var(--mono); font-size: .7rem; color: var(--dim); }
.lbar { position: relative; height: 26px; border-radius: 6px; background: var(--bg-deep); overflow: hidden; }
.lbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg, rgba(61, 190, 174, .35), var(--accent)); transition: width .7s var(--ease); }
.lbar .target { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--lyric); transition: left .3s; }
.lbar .peak { position: absolute; top: 0; bottom: 0; width: 3px; background: var(--danger); opacity: .8; transition: left .7s var(--ease); }
.lufs-row .gain { font-family: var(--mono); font-size: .82rem; text-align: right; color: var(--muted); }
.lufs-row .gain.capped { color: var(--lyric); }
.lufs-foot { padding: 14px 20px; background: var(--bg-deep); border-top: 1px solid var(--line); font-size: .82rem; color: var(--dim); display: flex; flex-wrap: wrap; gap: 8px 22px; }
.lufs-foot span { display: inline-flex; align-items: center; gap: 8px; }
.lufs-foot i { width: 12px; height: 3px; display: inline-block; }

/* ——— Anatomy (song details) ——— */
.anatomy { display: grid; gap: 0; padding: 0; overflow: hidden; }
@media (min-width: 900px) { .anatomy { grid-template-columns: 300px 1fr; } }
.anat-list { list-style: none; padding: 10px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; align-content: start; }
@media (min-width: 900px) { .anat-list { border-bottom: 0; border-right: 1px solid var(--line); } }
.anat-list button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--muted); text-align: left; font-size: .94rem; transition: background .15s, color .15s; }
.anat-list button:hover { background: var(--surface-high); color: var(--text); }
.anat-list button[aria-selected="true"] { background: var(--focus-fill); color: var(--text); }
.anat-list button[aria-selected="true"] .n { color: var(--accent); }
.anat-list .n { font-family: var(--mono); font-size: .7rem; color: var(--dim); width: 20px; }
.anat-view { padding: 28px; min-height: 360px; }
.anat-pane { display: none; }
.anat-pane.is-on { display: block; animation: fadeUp .4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.anat-pane h3 { font-size: 1.4rem; font-weight: 600; letter-spacing: -.02em; }
.anat-pane > p { color: var(--muted); margin-top: 10px; max-width: 58ch; }
.anat-demo { margin-top: 22px; padding: 18px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line-soft); }
.mini-form { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; }
.mini-form .art { width: 72px; height: 72px; border-radius: 10px; }
.field { display: grid; gap: 2px; }
.field small { font-size: .68rem; color: var(--dim); letter-spacing: .06em; text-transform: uppercase; }
.field b { font-weight: 500; }
.field-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 10px; }
.kv { display: flex; flex-wrap: wrap; gap: 8px; }
.kv span { padding: 4px 10px; border-radius: 999px; background: var(--surface-high); font-size: .8rem; color: #cfd6dd; }
.kv span.type { background: transparent; border: 1px solid currentColor; }
.kv span.type-backing { color: var(--t-backing); } .kv span.type-original { color: var(--t-original); }
.kv span.type-demo { color: var(--t-demo); } .kv span.type-multi { color: var(--t-multi); }
.chordpro { font-family: var(--mono); font-size: .84rem; line-height: 1.8; color: #cfd6dd; white-space: pre-wrap; }
.chordpro em { font-style: normal; color: var(--chord); }
.chordpro u { text-decoration: none; color: var(--dim); }
.tap-lines { display: grid; gap: 6px; }
.tap-lines button { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 8px; background: var(--surface); text-align: left; font-size: .9rem; color: #cfd6dd; }
.tap-lines button:hover { background: var(--surface-high); }
.tap-lines button.is-set { color: var(--text); }
.tap-lines button.is-set .mono { color: var(--accent); }
.tap-lines .mono { color: var(--dim); font-size: .78rem; }
.regions-demo { position: relative; height: 46px; border-radius: 8px; background: var(--surface); overflow: hidden; }
.regions-demo .region { pointer-events: none; }
.metro { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.metro i { width: 14px; height: 14px; border-radius: 50%; background: var(--surface-high); }
.metro i.on { background: var(--lyric); }
.metro i.accent.on { background: var(--accent); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches i { width: 24px; height: 24px; border-radius: 50%; background: var(--sw); }

/* ——— Atlas ——— */
.atlas-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.atlas-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.atlas-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; color: var(--muted); font-size: .9rem; font-weight: 500; }
.atlas-tabs button .ic { width: 18px; height: 18px; }
.atlas-tabs button:hover { color: var(--text); }
.atlas-tabs button[aria-selected="true"] { background: rgba(61, 190, 174, .2); color: var(--accent); }
.atlas-search { position: relative; flex: 1; max-width: 360px; min-width: 220px; }
.atlas-search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--dim); }
.atlas-search input { width: 100%; padding: 11px 14px 11px 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-high); font-size: .95rem; }
.atlas-search input:focus { outline: none; border-color: var(--accent); }
.atlas-count { font-family: var(--mono); font-size: .76rem; color: var(--dim); margin-bottom: 14px; min-height: 1.2em; }
.atlas-panel[hidden] { display: none; }
.atlas-groups { columns: 1; column-gap: 18px; }
@media (min-width: 760px) { .atlas-groups { columns: 2; } }
@media (min-width: 1100px) { .atlas-groups { columns: 3; } }
.atlas-group { break-inside: avoid; margin-bottom: 18px; padding: 20px 20px 10px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-soft); }
.atlas-group h3 { font-size: .74rem; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.atlas-group ul { list-style: none; }
.atlas-group li { padding: 10px 0; border-top: 1px solid var(--line-soft); }
.atlas-group li:first-child { border-top: 0; }
.atlas-group li b { display: block; font-weight: 500; font-size: .96rem; }
.atlas-group li p { font-size: .86rem; color: var(--muted); margin-top: 2px; }
.atlas-group li ul { margin: 6px 0 0 12px; padding-left: 12px; border-left: 1px solid var(--line); }
.atlas-group li li { padding: 6px 0; border-top: 0; }
.atlas-group li li b { font-size: .9rem; }
.atlas-group mark { background: rgba(232, 200, 74, .25); color: var(--text); border-radius: 3px; padding: 0 2px; }
.atlas-empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r); }
.is-hidden-by-search { display: none !important; }

/* ——— Platforms ——— */
.plat { display: grid; gap: 16px; }
@media (min-width: 860px) { .plat { grid-template-columns: 1fr 1fr; } }
.plat-card { padding: 28px; }
.plat-card h3 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
.plat-card h3 small { font-size: .74rem; font-family: var(--mono); color: var(--dim); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; margin-left: auto; }
.plat-card > p { color: var(--muted); margin-top: 8px; }
.plat-card .points { margin-top: 18px; }
.plat-card.primary { border-color: rgba(61, 190, 174, .45); box-shadow: 0 0 0 1px rgba(61, 190, 174, .12), 0 30px 80px -40px rgba(61, 190, 174, .35); }

/* ——— Band / leave ——— */
.tiles { display: grid; gap: 16px; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-soft); }
.tile .ic { width: 28px; height: 28px; color: var(--accent); margin-bottom: 16px; }
.tile h3 { font-size: 1.06rem; font-weight: 600; letter-spacing: -.01em; }
.tile p { margin-top: 8px; color: var(--muted); font-size: .93rem; }

/* ——— Price teaser + pricing page ——— */
.prices { display: grid; gap: 16px; }
@media (min-width: 820px) { .prices { grid-template-columns: 1fr 1fr; } }
.price { padding: 30px; }
.price h3 { font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.price .amt { margin-top: 12px; font-size: 3rem; font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.price .amt small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price .per { margin-top: 10px; color: var(--muted); }
.price .points { margin-top: 20px; }
.price.paid { border-color: rgba(61, 190, 174, .5); }
.price.paid h3 { color: var(--accent); }

.calc { padding: 0; overflow: hidden; }
.calc-ctls { display: grid; gap: 18px; padding: 22px; border-bottom: 1px solid var(--line); }
@media (min-width: 820px) { .calc-ctls { grid-template-columns: 1.4fr 1fr 1fr; } }
.calc-out { display: grid; gap: 1px; background: var(--line-soft); }
@media (min-width: 720px) { .calc-out { grid-template-columns: repeat(3, 1fr); } }
.calc-out div { background: var(--surface); padding: 22px; }
.calc-out b { display: block; font-size: 2rem; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.calc-out span { color: var(--muted); font-size: .88rem; }
.calc-bar { height: 10px; margin: 0 22px 22px; border-radius: 6px; background: var(--bg-deep); overflow: hidden; }
.calc-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--lyric)); width: 0; transition: width .5s var(--ease); }
.calc-note { padding: 0 22px 22px; font-size: .84rem; color: var(--dim); }

.timeline-v { list-style: none; position: relative; margin-top: 8px; }
.timeline-v::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-v li { position: relative; padding: 0 0 26px 40px; }
.timeline-v li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.timeline-v li.warn::before { border-color: var(--lyric); }
.timeline-v li.end::before { border-color: var(--muted); }
.timeline-v b { display: block; font-weight: 600; }
.timeline-v p { color: var(--muted); font-size: .95rem; margin-top: 4px; max-width: 62ch; }
.timeline-v .when { font-family: var(--mono); font-size: .72rem; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }

.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 20px; color: var(--muted); }
.faq details > div p + p { margin-top: 10px; }
.faq strong { color: var(--text); font-weight: 600; }

/* ——— Devices page ——— */
.probe { padding: 26px; display: grid; gap: 18px; }
@media (min-width: 860px) { .probe { grid-template-columns: auto 1fr; align-items: center; gap: 28px; } }
.probe-dial { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; text-align: center; border: 2px solid var(--line); font-size: .78rem; color: var(--muted); line-height: 1.2; }
.probe-dial b { display: block; font-size: 1.6rem; color: var(--text); letter-spacing: -.03em; }
.probe.is-mix .probe-dial { border-color: var(--accent); box-shadow: 0 0 40px -10px var(--accent); }
.probe.is-stereo .probe-dial { border-color: var(--lyric); box-shadow: 0 0 40px -10px var(--lyric); }
.probe h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
.probe p { color: var(--muted); margin-top: 6px; }
.probe .mono { font-size: .74rem; color: var(--dim); margin-top: 10px; word-break: break-all; }
.matrix { width: 100%; border-collapse: collapse; font-size: .94rem; }
.matrix th, .matrix td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.matrix th { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 500; }
.matrix td:first-child { font-weight: 500; }
.matrix td { color: var(--muted); }
.matrix .yes { color: var(--accent); font-weight: 600; }
.matrix .alt { color: var(--lyric); font-weight: 600; }
@media (max-width: 640px) {
  .matrix thead { display: none; }
  .matrix tr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 12px; padding: 16px; border-bottom: 1px solid var(--line-soft); }
  .matrix tbody tr:last-child { border-bottom: 0; }
  .matrix td { padding: 0; border: 0; font-size: .86rem; }
  .matrix td:first-child { grid-column: 1 / -1; color: var(--text); font-size: .95rem; margin-bottom: 6px; }
  .matrix td[data-label]::before { content: attr(data-label); display: block; font: 500 .6rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 3px; }
}
.matrix small { display: block; color: var(--dim); font-weight: 400; font-size: .8rem; margin-top: 2px; }
.h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.h3 + .sec-lede { margin-top: 8px; font-size: 1rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.dev-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 18px; }
.dev { padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-soft); }
.dev h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 8px; }
.dev ul { list-style: none; }
.dev li { padding: 5px 0; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line-soft); }
.dev li:first-child { border-top: 0; }
.dev p { margin-top: 8px; font-size: .82rem; color: var(--dim); }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; margin: 48px 0 12px; }
.prose h3 { font-size: 1.1rem; font-weight: 600; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 1.2em; display: grid; gap: 10px; margin: 14px 0; }
.prose strong { color: var(--text); font-weight: 600; }

/* ——— Page hero (subpages) ——— */
.page-hero { padding: 80px 0 40px; }
.callout { margin-top: 28px; max-width: 72ch; padding: 16px 20px; border-left: 3px solid var(--lyric); border-radius: 0 var(--r) var(--r) 0; background: var(--surface); color: var(--muted); font-size: .95rem; }
.callout strong { color: var(--text); font-weight: 600; }
.page-hero + .section { padding-top: 56px; border-top: 0; }
.fine { margin-top: 20px; font-size: .88rem; color: var(--dim); }
.stack-card { padding: clamp(24px, 4vw, 36px); display: grid; gap: 22px; }
.stack-card h2 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; }
.stack-card p { color: var(--muted); margin-top: 8px; }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; max-width: 16ch; }
.page-hero .lede { margin-top: 22px; font-size: 1.18rem; color: var(--muted); max-width: 60ch; }
.page-hero .lede strong { color: var(--text); font-weight: 600; }

/* ——— Legal ——— */
.legal { max-width: 760px; padding: 72px 0 96px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; margin-bottom: 8px; }
.legal h2 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 12px; }
.legal ul { padding-left: 1.2em; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(61, 190, 174, .4); }
.meta { color: var(--dim); font-size: .9rem; margin-bottom: 28px; font-family: var(--mono); }

/* ——— Get / CTA ——— */
.cta { text-align: left; }
.cta-card { padding: clamp(28px, 5vw, 56px); display: grid; gap: 28px; position: relative; overflow: hidden; }
.cta-card::before { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(61, 190, 174, .22), transparent 70%); pointer-events: none; }
@media (min-width: 900px) { .cta-card { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.cta-card h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.cta-card p { color: var(--muted); margin-top: 14px; }
.get-list { display: grid; gap: 12px; }
.get-item { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); }
.get-item b { display: block; font-weight: 600; }
.get-item span { font-size: .86rem; color: var(--muted); }

/* ——— Footer ——— */
.footer { border-top: 1px solid var(--line-soft); padding: 48px 0 56px; color: var(--dim); font-size: .9rem; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer h4 { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 12px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }
.footer .brand { margin-bottom: 12px; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .section { padding: 80px 0; }
  .pack-row { grid-template-columns: 38px 1fr auto; }
  .pack-row .dur { display: none; }
  .art { width: 38px; height: 38px; }
  .set-row { grid-template-columns: 26px 1fr auto; }
  .set-row .n, .set-row .dur { display: none; }
  .lufs-row { grid-template-columns: 96px 1fr 62px; gap: 10px; }
  .anat-view { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
