/* GlideMix website. System fonts only: no requests to font services.
   Look: a DJ's set notes. Neutral dark, one flat purple, the Camelot key
   colours as the only other colour, monospace for numbers and labels. */
:root {
  --bg: #0c0c0e;
  --bg-2: #111114;
  --card: #151518;
  --line: #26262c;
  --line-2: #34343c;
  --text: #ececef;
  --soft: #c9c9d1;
  --muted: #8f8f99;
  --accent: #9b7bff;
  --accent-ink: #0c0c0e;
  --radius: 6px;
  --max: 1160px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  /* old names, kept for pages not yet redone */
  --purple: var(--accent); --pink: var(--accent); --blue: var(--accent); --grad: var(--accent);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 750; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.grad-text { color: inherit; }
.label, .kicker { font-family: var(--mono); font-size: .76rem; font-weight: 500; letter-spacing: .04em; color: var(--muted); margin-bottom: 10px; }
.label b, .kicker b { color: var(--accent); font-weight: 600; }

/* Header */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(12, 12, 14, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.05rem; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav nav a { color: var(--muted); font-size: .92rem; }
.nav nav a:hover, .nav nav a.active { color: var(--text); text-decoration: none; }
.nav nav a.btn, .nav nav a.btn:hover { color: var(--accent-ink); }

/* Buttons: flat */
.btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: var(--radius);
  font-weight: 650; font-size: .98rem; color: var(--accent-ink); background: var(--accent); border: 1px solid var(--accent); cursor: pointer; }
.btn:hover { color: var(--accent-ink); background: #b39bff; text-decoration: none; }
.btn.ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn.ghost:hover { border-color: var(--muted); background: transparent; color: var(--text); }
.btn.small { padding: 6px 13px; font-size: .88rem; }

/* Hero: text, then the app over moving waveforms and a soft glow */
.hero { position: relative; padding: 64px 0 0; overflow: hidden; }
.hero h1 { max-width: 15ch; }
.hero .lead { font-size: clamp(1.08rem, 2vw, 1.25rem); color: var(--soft); max-width: 640px; margin: 0 0 28px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.badges { margin-top: 18px; color: var(--muted); font-size: .86rem; font-family: var(--mono); }
.badges span { white-space: nowrap; }
.stage { position: relative; margin-top: 52px; }
.stage canvas { position: absolute; left: 50%; top: 50%; width: 100vw; height: 130%; transform: translate(-50%, -50%); pointer-events: none; }
.stage::before { content: ""; position: absolute; inset: 8% 6%; background: radial-gradient(closest-side, rgba(155, 123, 255, .32), rgba(255, 111, 178, .12) 60%, transparent); filter: blur(40px); pointer-events: none; }
.stage .shot { position: relative; margin: 0; }
.shot { border-radius: var(--radius); border: 1px solid var(--line-2); overflow: hidden; background: #000; }

/* Ticker of features under the hero */
.ticker { margin-top: 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); overflow: hidden; white-space: nowrap; }
.ticker .run { display: inline-flex; animation: run 110s linear infinite; }
.ticker span { padding: 16px 0; font-size: 1rem; color: var(--soft); display: inline-flex; align-items: center; }
.ticker span::after { content: ""; width: 7px; height: 7px; margin: 0 26px; border-radius: 2px; background: var(--k, var(--accent)); transform: rotate(45deg); }
.ticker:hover .run { animation-play-state: paused; }
@keyframes run { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker .run { animation: none; } }

/* Sections */
section { padding: 84px 0; border-top: 1px solid var(--line); }
.ticker + section { border-top: 0; }
section.alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin: 0 0 40px; }
.section-head p { color: var(--soft); font-size: 1.08rem; }

/* Tracklist rows */
.tracklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tracklist li { display: grid; grid-template-columns: 64px minmax(180px, 280px) 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.tracklist .no { font-family: var(--mono); font-size: .85rem; color: var(--muted); }
.tracklist .no i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 8px; vertical-align: 1px; background: var(--k); }
.tracklist h3 { margin: 0; }
.tracklist p { margin: 0; color: var(--soft); }

/* Numbers */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stats > div { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats .big { font-family: var(--mono); font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 10px; }
.stats p { margin: 0; color: var(--soft); font-size: .96rem; }

/* Changelog */
.changelog { border-top: 1px solid var(--line); }
.changelog article { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.changelog .ver { font-family: var(--mono); font-size: .9rem; }
.changelog .ver span { display: block; color: var(--muted); font-size: .8rem; }
.changelog ul { margin: 0; padding-left: 1.1em; color: var(--soft); }
.changelog li { margin: .25em 0; }
.changelog li b { color: var(--text); font-weight: 600; }

/* Card grids (download page) */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { color: var(--soft); margin: 0; font-size: .97rem; }
.card .icon { display: none; }

/* Feature blocks */
.feature { display: grid; grid-template-columns: 1fr 1.35fr; gap: 48px; align-items: start; padding: 56px 0; border-bottom: 1px solid var(--line); }
.feature:first-child { padding-top: 0; }
.feature:last-child { border-bottom: 0; padding-bottom: 0; }
.feature.flip { grid-template-columns: 1.35fr 1fr; }
.feature.flip .text { order: 2; }
.feature.wide, .feature.wide.flip { grid-template-columns: 1fr; gap: 24px; }
.feature.wide .text, .feature.wide.flip .text { order: 0; max-width: 820px; }
.feature img { border-radius: var(--radius); border: 1px solid var(--line-2); }
.feature ul { padding-left: 1.1em; margin: 0; color: var(--soft); }
.feature li { margin: .4em 0; }
.feature li b { color: var(--text); font-weight: 600; }

/* VST credit */
.vst { display: flex; gap: 14px; align-items: center; margin-top: 18px; color: var(--muted); font-size: .85rem; }
.vst img { width: 76px; height: auto; border: 0 !important; border-radius: 0 !important; }

/* Pricing */
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 900px; margin: 0 auto; }
.price { position: relative; }
.price.featured { border-color: var(--accent); }
.price .amount { font-family: var(--mono); font-size: 2.6rem; font-weight: 600; margin: 6px 0 2px; letter-spacing: -.03em; }
.price .amount s { font-size: 1.2rem; color: var(--muted); font-weight: 500; margin-left: 8px; }
.price ul { padding-left: 1.1em; color: var(--soft); margin: 14px 0 22px; }
.price li { margin: .35em 0; }
.tag { position: absolute; top: -11px; right: 16px; background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-weight: 600; font-size: .74rem; padding: 3px 10px; border-radius: 4px; }
.downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 900px; margin: 0 auto; }
.downloads .card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.downloads .card .btn { align-self: flex-start; margin-top: 6px; white-space: normal; }
.note { font-size: .9rem; color: var(--muted); }
code, .mono { font-family: var(--mono); font-size: .88em; background: #1c1c21; padding: 1px 6px; border-radius: 4px; }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--muted); font-family: var(--mono); }
details[open] summary::after { content: "\2212"; }
details p, details ul, details ol { color: var(--soft); margin: 12px 0 0; }

/* Manual */
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 52px; padding: 48px 24px 90px; }
.toc { position: sticky; top: 78px; align-self: start; max-height: calc(100vh - 96px); overflow-y: auto; font-size: .9rem; }
.toc summary { margin-bottom: 10px; }
.toc details { background: none; border: 0; padding: 0; margin: 0; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 1px 0; }
.toc a { color: var(--muted); display: block; padding: 3px 0; }
.toc a:hover { color: var(--text); text-decoration: none; }
.toc ol ol { padding-left: 12px; border-left: 1px solid var(--line); margin: 2px 0 8px; }
.doc article { max-width: 860px; }
.doc article h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc article h2 { font-size: 1.6rem; margin-top: 2.4em; padding-top: .6em; border-top: 1px solid var(--line); scroll-margin-top: 76px; }
.doc article h3 { margin-top: 1.7em; scroll-margin-top: 76px; }
.doc article p, .doc article li, .doc article td { color: var(--soft); }
.doc article ul, .doc article ol { padding-left: 1.3em; }
.doc article li { margin: .3em 0; }
.doc article b { color: var(--text); font-weight: 600; }
.doc article img { border-radius: var(--radius); border: 1px solid var(--line-2); margin: 18px 0; }
.tip { background: var(--card); border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: var(--radius); padding: 12px 16px; margin: 16px 0; }
.tip p:last-child { margin: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .94rem; }
.doc th, .doc td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--text); font-weight: 600; }
.kbd { font-family: var(--mono); font-size: .84em; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 0 6px; color: var(--text); }

/* Legal pages */
.legal { max-width: 820px; padding: 56px 24px 80px; }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal p, .legal li { color: var(--soft); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: .88rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 30px; justify-content: space-between; align-items: flex-start; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
footer .fine { flex-basis: 100%; font-size: .8rem; color: #6f6f78; }
.cta-band .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

@media (max-width: 460px) { .nav .brand { font-size: 0; gap: 0; } }
@media (max-width: 860px) {
  .grid3, .grid2, .prices, .downloads, .feature, .feature.flip, .stats { grid-template-columns: 1fr; }
  .feature.flip .text { order: 0; }
  .feature { gap: 22px; }
  .tracklist li { grid-template-columns: 44px 1fr; gap: 6px 12px; }
  .tracklist li p { grid-column: 2; }
  .changelog article { grid-template-columns: 1fr; gap: 8px; }
  .nav nav a.hide-sm, .nav nav a.btn { display: none; }
  .nav .wrap { gap: 14px; padding: 0 16px; }
  .nav nav { gap: 14px; }
  .nav nav a { font-size: .88rem; }
  .wrap { padding: 0 16px; }
  section { padding: 60px 0; }
  .hero { padding-top: 40px; }
  .stage { margin-top: 36px; }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 24px 16px 70px; }
  .doc code { word-break: break-all; }
  .doc table { display: block; overflow-x: auto; }
  .toc { position: static; max-height: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
}

/* Manual: pictures with numbered markers */
.doc .shot, figure.shot { position: relative; margin: 18px 0; background: none; border: 0; overflow: visible; }
.doc article .shot img { margin: 0; width: 100%; }
.shot.narrow { max-width: 560px; }
.shot.small { max-width: 320px; }
.shot figcaption { color: var(--muted); font-size: .88rem; margin-top: 6px; }
.pin { position: absolute; transform: translate(-50%, -50%); width: clamp(15px, 2.4vw, 20px); height: clamp(15px, 2.4vw, 20px); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); font-family: var(--mono);
  font-size: clamp(9px, 1.4vw, 11px); font-weight: 700; line-height: 1; border: 1.5px solid #0c0c0e; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
.doc article svg.diagram { width: 100%; height: auto; display: block; margin: 18px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.todo-list { columns: 2; column-gap: 28px; padding-left: 0 !important; list-style: none; }
.todo-list li { break-inside: avoid; }
@media (max-width: 620px) { .todo-list { columns: 1; } }

/* ---- Motion (site.js adds .motion unless reduced motion is asked for) ---- */
.stage { perspective: 1600px; }
.stage .shot { transition: transform .25s ease-out; transform-style: preserve-3d; }
.glow { position: absolute; inset: -10% -5%; pointer-events: none; filter: blur(70px); opacity: .5; }
.glow i { position: absolute; border-radius: 50%; }
.glow i:nth-child(1) { width: 44vw; height: 44vw; left: 8%; top: 5%; background: radial-gradient(circle, #9b7bff 0, transparent 65%); }
.glow i:nth-child(2) { width: 34vw; height: 34vw; right: 6%; top: 25%; background: radial-gradient(circle, #ff6fb2 0, transparent 65%); opacity: .7; }
.motion .glow i:nth-child(1) { animation: drift 24s ease-in-out infinite; }
.motion .glow i:nth-child(2) { animation: drift 30s ease-in-out -10s infinite reverse; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(5vw, 3vh) scale(1.08); } }
.stage::before { display: none; }
.motion .hero h1 .w { display: inline-block; opacity: 0; transform: translateY(26px); animation: wordIn .8s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes wordIn { to { opacity: 1; transform: none; } }
.motion .hero .lead, .motion .hero .ctas, .motion .hero .badges { opacity: 0; animation: wordIn .8s .35s cubic-bezier(.2, .8, .2, 1) forwards; transform: translateY(14px); }
.motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.motion .reveal.in { opacity: 1; transform: none; }
.ticker { position: relative; }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 1; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--bg-2), transparent); }
.ticker .run { width: max-content; }
.stage .shot { max-width: 1040px; margin: 0 auto; box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .95); }
.glow { inset: -25% -10%; opacity: .7; filter: blur(80px); }
.stage canvas { height: 150%; }
footer .vst-fine { display: flex; gap: 12px; align-items: center; }
footer .vst-fine img { width: 38px; height: auto; flex: none; }
.doc article .vst img, details .vst img { margin: 0; border: 0; }

/* Ableton Link badge (Ableton's artwork, unchanged; never in place of the words) */
.linkbadge { display: flex; gap: 14px; align-items: center; margin-top: 18px; color: var(--muted); font-size: .88rem; }
.linkbadge img { width: 120px; height: auto; border: 0 !important; border-radius: 0 !important; margin: 0 !important; }

/* Manual: search above the contents (manual-search.js) */
.msearch { position: relative; margin: 0 0 14px; }
.msearch input { width: 100%; font: inherit; font-size: .92rem; color: var(--text); background: var(--card); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 8px 34px 8px 10px; outline: none; -webkit-appearance: none; appearance: none; }
.msearch input:focus { border-color: var(--accent); }
.msearch input::-webkit-search-cancel-button { display: none; }
.msearch .mslash { position: absolute; right: 9px; top: 8px; color: var(--muted); font-size: .78rem; pointer-events: none; }
.msearch input:focus + .mslash { display: none; }
.mresults { margin-top: 6px; max-height: 60vh; overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 4px; }
.mresults a { display: block; padding: 8px 10px; border-radius: 4px; color: var(--soft); text-decoration: none; }
.mresults a:hover, .mresults a.on { background: var(--card); text-decoration: none; }
.mresults a b { display: block; color: var(--text); font-weight: 600; }
.mresults a span { display: block; font-size: .84rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.mresults a .mchap { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 2px; }
.mresults mark, mark.mhit { background: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--text); border-radius: 2px; padding: 0 1px; }
.mresults .mnone { margin: 8px 10px; font-size: .88rem; color: var(--muted); }
