/* keyloftaudio.com: one stylesheet for every page. Dark on purpose, like the
   app: the site should look like the thing you'll have on stage. System fonts
   only, so the site makes no requests to anyone but us (and Paddle on /buy). */

:root {
  color-scheme: dark;
  --base: #08090c;
  --raise: #101218;
  --panel: rgba(23, 25, 32, 0.72);
  --inset: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.075);
  --line-hi: rgba(255, 255, 255, 0.13);
  --text: #eef0f5;
  --subtle: #a6acbd;
  --dim: #7b8194;
  --accent: #5b8cff;
  --accent-hi: #6f9bff;
  --accent-lo: #4068c0;
  --piano: #5b8cff;
  --pad: #f0804a;
  --strings: #46c47e;
  --synth: #d455d0;
  --amber: #f5a524;
  --good: #8fe0b8;
  --stop: #d8393f;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --wide: 1160px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse 900px 560px at 12% -8%, rgba(91, 140, 255, 0.13), transparent 70%),
    radial-gradient(ellipse 700px 500px at 96% 6%, rgba(212, 85, 208, 0.06), transparent 70%),
    var(--base);
  background-repeat: no-repeat;
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #9ab8ff; }
::selection { background: rgba(91, 140, 255, 0.35); }

.wrap {
  width: 100%;
  max-width: calc(var(--wide) + 40px);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

/* ---- Header ---- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 9, 12, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 21px/1 var(--display); letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }
.brand svg { width: 26px; height: 22px; flex: none; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--subtle); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav a:hover { color: var(--text); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 12px; border: 0;
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn.go {
  color: #fff;
  background: linear-gradient(#6f9bff, #4068c0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 22px rgba(64, 104, 192, 0.35);
}
.btn.go:hover { color: #fff; background: linear-gradient(#7ea6ff, #4a74cf); }
.btn.quiet { color: var(--text); background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--line); }
.btn.quiet:hover { color: var(--text); background: rgba(255, 255, 255, 0.11); }
.btn.small { height: 36px; padding: 0 15px; border-radius: 10px; font-size: 14.5px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22); }

/* ---- Type ---- */
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.04; letter-spacing: -0.025em; font-weight: 750; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.022em; font-weight: 720; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.012em; font-weight: 650; }
p { margin: 0; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--subtle); max-width: 40em; }
.fine { font-size: 14px; color: var(--dim); }
.mono { font-family: var(--mono); font-size: 0.92em; }

/* A section label drawn like one of Keyloft's snapshot tiles. */
.tile-label {
  justify-self: start;
  display: inline-flex; align-items: baseline; gap: 10px;
  font: 600 14px/1 var(--sans); color: var(--subtle);
  padding: 9px 14px 9px 12px; border-radius: 10px;
  background: var(--inset); box-shadow: inset 0 0 0 1px var(--line);
}
.tile-label b { font-weight: 600; color: var(--dim); font-size: 13px; }

/* ---- Hero ---- */
.hero { padding: 84px 0 0; }
.hero .eyebrow { display: flex; gap: 8px; align-items: center; color: var(--subtle); font-size: 14.5px; font-weight: 500; margin-bottom: 22px; }
.hero .eyebrow i { width: 8px; height: 8px; border-radius: 4px; background: var(--strings); box-shadow: 0 0 10px rgba(70, 196, 126, 0.6); }
.hero h1 span { display: block; }
.hero .lead { margin-top: 22px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px; font-size: 14px; color: var(--dim); }
.hero .facts span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 2px; background: #4a4f60; margin-right: 8px; vertical-align: middle; }

.shot {
  position: relative; margin-top: 64px; border-radius: 18px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-hi), 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 160px rgba(91, 140, 255, 0.10);
  background: #0b0c10;
}
/* The four colours of the layer strips, as a seam along the top. */
.seam { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; height: 3px; }
.seam i:nth-child(1) { background: var(--piano); }
.seam i:nth-child(2) { background: var(--pad); }
.seam i:nth-child(3) { background: var(--strings); }
.seam i:nth-child(4) { background: var(--synth); }

/* ---- Hosts strip ---- */
.hosts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.host { padding: 20px 22px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.host .fmt { font: 600 12px/1 var(--mono); color: var(--dim); letter-spacing: 0.04em; }
.host h3 { margin-top: 10px; font-size: 18px; }
.host p { margin-top: 4px; color: var(--subtle); font-size: 15px; }

/* ---- Sections ---- */
section { padding: 120px 0 0; }
.head { display: grid; gap: 18px; max-width: 46em; }
.head .lead { font-size: 18.5px; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.flip > .visual { order: -1; }
.visual { min-width: 0; }
.framed { border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-hi), 0 24px 70px rgba(0, 0, 0, 0.55); }

.points { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 12px; }
.points li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; color: var(--subtle); font-size: 16px; line-height: 1.5; }
.points li::before { content: ""; width: 8px; height: 8px; border-radius: 4px; margin-top: 8px; background: var(--accent); }
.points li b { color: var(--text); font-weight: 600; }

/* A layer strip header, as in the app. */
.strips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.strip { border-radius: 12px; overflow: hidden; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); }
.strip .name { padding: 12px 14px 10px; font-weight: 650; font-size: 15.5px; }
.strip .name small { display: block; font-weight: 500; font-size: 12.5px; color: var(--subtle); margin-top: 1px; }
.strip.piano .name { background: linear-gradient(rgba(91, 140, 255, 0.30), rgba(91, 140, 255, 0.12)); }
.strip.pad .name { background: linear-gradient(rgba(240, 128, 74, 0.30), rgba(240, 128, 74, 0.10)); }
.strip.strings .name { background: linear-gradient(rgba(70, 196, 126, 0.28), rgba(70, 196, 126, 0.10)); }
.strip.synth .name { background: linear-gradient(rgba(212, 85, 208, 0.30), rgba(212, 85, 208, 0.10)); }
.strip dl { margin: 0; padding: 4px 14px 14px; display: grid; gap: 7px; font-size: 12.5px; }
.strip dl div { display: flex; justify-content: space-between; gap: 6px; }
.strip dt { color: var(--dim); }
.strip dd { margin: 0; font-weight: 600; color: var(--text); white-space: nowrap; }
.strip .slot { height: 30px; display: flex; align-items: center; padding: 0 14px; }
.strip .meter { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.strip .meter i { display: block; height: 100%; border-radius: 2px; }
.strip.piano .meter i { width: 72%; background: var(--piano); }
.strip.pad .meter i { width: 54%; background: var(--pad); }
.strip.synth .meter i { width: 63%; background: var(--synth); }
.ring { display: inline-block; font: 600 11.5px/1 var(--sans); color: var(--amber); padding: 5px 8px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(245, 165, 36, 0.5); }

/* Snapshot tiles and the setlist, as in the app. */
.board { padding: 22px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line), 0 24px 70px rgba(0, 0, 0, 0.45); display: grid; gap: 18px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tiles span { display: flex; align-items: center; gap: 9px; min-width: 0; height: 52px; padding: 0 14px; border-radius: 11px; font-weight: 650; font-size: 16px; background: var(--inset); box-shadow: inset 0 0 0 1px var(--line); }
.tiles span b { font-weight: 500; font-size: 13px; color: var(--dim); }
.tiles span.on { background: linear-gradient(#6f9bff, #4a78e0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.tiles span.on b { color: rgba(255, 255, 255, 0.8); }
.tiles em { margin-left: auto; font: 700 12px/1 var(--sans); font-style: normal; color: var(--amber); padding: 4px 6px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(245, 165, 36, 0.55); }
.songs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.songs li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 6px; height: 46px; padding: 0 8px 0 14px; border-radius: 10px; font-weight: 600; }
.songs li b { font-weight: 500; color: var(--dim); font-size: 13.5px; }
.songs li i { font: 700 13px/1 var(--sans); font-style: normal; color: var(--subtle); width: 34px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--inset); }
.songs li.on { background: rgba(91, 140, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(91, 140, 255, 0.55); }
.songs li.on i { color: var(--amber); background: rgba(245, 165, 36, 0.12); }
.board .cap { display: flex; justify-content: space-between; font: 700 12px/1 var(--sans); letter-spacing: 0.12em; color: var(--dim); text-transform: uppercase; }
.board .cap span:last-child { letter-spacing: 0; font-weight: 500; text-transform: none; font-size: 13px; }

/* Small cards: reliability, control. */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.card { padding: 26px 24px 26px; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.card .chip { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(91, 140, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(91, 140, 255, 0.28); }
.card .chip svg { width: 20px; height: 20px; stroke: var(--accent-hi); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card .chip.red { background: rgba(216, 57, 63, 0.16); box-shadow: inset 0 0 0 1px rgba(216, 57, 63, 0.4); }
.card .chip.red svg { stroke: #ff8a8e; }
.card .chip.green { background: rgba(70, 196, 126, 0.12); box-shadow: inset 0 0 0 1px rgba(70, 196, 126, 0.32); }
.card .chip.green svg { stroke: var(--good); }
.card p { margin-top: 8px; color: var(--subtle); font-size: 15.5px; line-height: 1.55; }

/* ---- Pricing: the two editions ---- */
/* Launch prices until sale.js's launchEnds, then the regular ones. */
html:not(.after-launch) [data-regular], .after-launch [data-launch] { display: none !important; }
.editions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 48px; align-items: stretch; }
.edition { display: flex; flex-direction: column; padding: 34px 34px 32px; border-radius: 22px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line), 0 24px 70px rgba(0, 0, 0, 0.4); }
.edition.best { background: radial-gradient(ellipse 460px 320px at 0% 0%, rgba(91, 140, 255, 0.18), transparent 75%), var(--panel); box-shadow: inset 0 0 0 1.5px rgba(91, 140, 255, 0.55), 0 30px 90px rgba(0, 0, 0, 0.5), 0 0 80px rgba(91, 140, 255, 0.10); }
.ed-name { display: flex; align-items: center; gap: 10px; font: 700 21px/1.2 var(--display); letter-spacing: -0.015em; }
.ed-name .tag { font: 700 11px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-hi); padding: 5px 8px; border-radius: 6px; background: rgba(91, 140, 255, 0.14); }
.ed-for { margin-top: 6px; color: var(--subtle); font-size: 15.5px; }
.edition .amount { display: flex; align-items: flex-start; gap: 4px; margin-top: 22px; font: 760 76px/0.9 var(--display); letter-spacing: -0.05em; }
.edition .amount sup { font-size: 30px; margin-top: 8px; font-weight: 650; letter-spacing: 0; }
.was { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; color: var(--subtle); font-size: 14.5px; }
.badge { font: 700 11.5px/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: #ffc56a; padding: 6px 9px; border-radius: 7px; background: rgba(245, 165, 36, 0.14); box-shadow: inset 0 0 0 1px rgba(245, 165, 36, 0.45); }
.edition .points { margin: 24px 0 28px; flex: 1; align-content: start; }
.edition .points li::before { background: var(--good); }
.edition .btn { width: 100%; }
.upsell { margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; line-height: 1.45; color: var(--subtle); background: rgba(91, 140, 255, 0.10); box-shadow: inset 0 0 0 1px rgba(91, 140, 255, 0.32); }
.upsell b { color: var(--text); }
.upsell span { color: #9ab8ff; font-weight: 700; }
.both { list-style: none; margin: 22px 0 0; padding: 18px 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; border-radius: 16px; background: var(--inset); box-shadow: inset 0 0 0 1px var(--line); color: var(--subtle); font-size: 14.5px; }
.both b { color: var(--text); font-weight: 600; }

/* ---- Requirements and FAQ ---- */
.two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; margin-top: 48px; align-items: start; }
.specs { margin: 0; display: grid; gap: 0; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.specs div { padding: 16px 20px; display: grid; gap: 2px; }
.specs div + div { border-top: 1px solid var(--line); }
.specs dt { font-size: 13px; color: var(--dim); font-weight: 500; }
.specs dd { margin: 0; font-weight: 500; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg); transition: transform 0.15s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 20px 18px; color: var(--subtle); }

/* ---- Footer ---- */
.foot { margin-top: 130px; border-top: 1px solid var(--line); padding: 44px 0 calc(48px + env(safe-area-inset-bottom, 0px)); }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14.5px; }
.foot .links a { color: var(--subtle); text-decoration: none; }
.foot .links a:hover { color: var(--text); }
.foot .who { color: var(--dim); font-size: 14px; display: grid; gap: 6px; }
.foot .tm { grid-column: 1 / -1; color: #5d6274; font-size: 12.5px; line-height: 1.5; }
.mail { font-family: var(--mono); font-size: 0.95em; color: var(--text); user-select: all; }

/* ---- Documents (terms, refunds, privacy) ---- */
.doc { max-width: 720px; margin: 0 auto; padding: 72px 0 0; }
.doc .updated { margin-top: 14px; color: var(--dim); font-size: 14.5px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); }
.doc h2 { font-size: 22px; letter-spacing: -0.015em; margin-top: 46px; }
.doc p, .doc li { color: #cfd3de; font-size: 16.5px; line-height: 1.68; }
.doc p { margin-top: 14px; }
.doc ul { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc .short { margin-top: 30px; padding: 22px 24px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.doc .short p:first-child { margin-top: 0; }
.doc .short h2 { margin-top: 0; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.doc table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-top: 1px solid var(--line); color: #cfd3de; line-height: 1.5; }
.doc th { color: var(--dim); font-weight: 600; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.doc td:first-child { color: var(--text); font-weight: 600; min-width: 9em; }
.table { overflow-x: auto; }

/* ---- Small pages (buy, download, thanks, 404) ---- */
.solo { max-width: 620px; margin: 0 auto; padding: 88px 0 0; text-align: center; }
.solo .lead { margin: 18px auto 0; text-wrap: balance; }
.solo .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.solo .box { margin-top: 40px; padding: 28px; border-radius: 18px; text-align: left; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.solo .box h3 { margin-bottom: 8px; }
.solo .box ol, .solo .box ul { margin: 10px 0 0; padding-left: 22px; color: var(--subtle); display: grid; gap: 8px; }
.status { margin-top: 18px; color: var(--subtle); font-size: 15px; min-height: 24px; }

/* ---- Your instruments: an overlapping collage of layer-strip cards around
   Keyloft's icon (they all go into one window). Positions are card centres,
   in % of the stage; sizes and type scale with the stage's width. ---- */
.yours { overflow-x: clip; }
.yours .head { margin-inline: auto; text-align: center; justify-items: center; }
.yours .tile-label { justify-self: center; }
.collage { position: relative; container-type: inline-size; margin-top: 40px; }
.collage::before { content: ""; position: absolute; inset: 18% 30%; background: radial-gradient(closest-side, rgba(91, 140, 255, 0.28), transparent); filter: blur(30px); }
.collage ul { position: relative; list-style: none; margin: 0; padding: 0; aspect-ratio: 2.1 / 1; }
.collage .hub { position: absolute; left: 50%; top: 50%; width: 13%; height: auto; transform: translate(-50%, -50%); z-index: 40; border-radius: 22%; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 90px rgba(91, 140, 255, 0.45); }
.inst {
  --w: 13.5; --c: var(--accent);
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  width: calc(var(--w) * 1%);
  transform: translate(-50%, -50%) rotate(var(--r));
  font-size: max(11px, calc(var(--w) * 0.075cqw));
  border-radius: 0.95em; overflow: hidden;
  background: rgba(20, 22, 29, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 18px 50px rgba(0, 0, 0, 0.55);
  padding: 0.85em 1em 1.05em; display: grid; gap: 0.15em;
  z-index: var(--z, 1);
}
.inst::before { content: ""; position: absolute; inset: 0 0 auto; height: 3.4em; background: linear-gradient(color-mix(in srgb, var(--c) 34%, transparent), transparent); pointer-events: none; }
.inst::after { content: ""; position: absolute; left: 1em; bottom: 0.55em; width: 38%; height: 0.22em; border-radius: 1em; background: var(--c); opacity: 0.85; }
.inst > * { position: relative; }
.inst .kind { font-size: 0.72em; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 65%, white); }
.inst strong { font-size: 1.45em; line-height: 1.12; letter-spacing: -0.015em; font-weight: 700; color: var(--text); }
.inst small { font-size: 0.8em; color: var(--subtle); margin-bottom: 0.45em; }
.inst.xl { --w: 22; }
.inst.l { --w: 17; }
.inst.blue { --c: var(--piano); }
.inst.magenta { --c: var(--synth); }
.inst.green { --c: var(--strings); }
.inst.orange { --c: var(--pad); }
.inst.amber { --c: var(--amber); }
.inst:hover { transform: translate(-50%, -50%) rotate(0deg) scale(1.05); z-index: 50; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 24px 60px rgba(0, 0, 0, 0.65); }
.collage-note { text-align: center; margin: 30px auto 0; max-width: 42em; font-size: 12.5px; color: #5d6274; }
/* Animate only while the pointer is over the collage, so nothing moves as the page loads. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .collage:hover .inst { transition: transform 0.2s ease, box-shadow 0.2s ease; } }
@media (max-width: 640px) {
  .collage ul { aspect-ratio: 3 / 4; }
  .collage .hub { width: 24%; }
  .inst { left: calc(var(--mx) * 1%); top: calc(var(--my) * 1%); transform: translate(-50%, -50%) rotate(var(--mr)); }
  .inst:hover { transform: translate(-50%, -50%) rotate(0deg) scale(1.04); }
  .inst.wide { display: none; }
  .inst.xl { --w: 46; }
  .inst.l, .inst.m { --w: 36; }
}

/* ---- Buy and Upgrade ---- */
.solo.wide-solo { max-width: 880px; }
.solo .edition { text-align: left; }
.editions.compact { margin-top: 36px; }
.editions.compact .edition { padding: 28px 28px 26px; }
.editions.compact .amount { font-size: 60px; margin-top: 18px; }
.editions.compact .was { margin-bottom: 24px; flex: 1; align-content: flex-start; }
.upgrade-price { margin-top: 22px; display: flex; justify-content: center; color: var(--subtle); font-size: 15px; }
.upgrade-price > span { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.upgrade-price b { font: 760 36px/1.1 var(--display); letter-spacing: -0.03em; color: var(--text); }
.keyform { margin-top: 30px; text-align: left; padding: 24px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.keyform label { display: block; font-size: 14px; font-weight: 600; color: var(--subtle); margin-bottom: 10px; }
.keyrow { display: flex; gap: 10px; flex-wrap: wrap; }
.keyrow input { flex: 1 1 240px; min-width: 0; height: 52px; padding: 0 16px; border-radius: 12px; border: 0; background: rgba(0, 0, 0, 0.3); box-shadow: inset 0 0 0 1px var(--line-hi); color: var(--text); font: 600 19px/1 var(--mono); letter-spacing: 0.06em; }
.keyrow input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
.keyrow input::placeholder { color: #4d5263; }
.keyrow input[type=email] { font: 500 17px/1 var(--sans); letter-spacing: 0; }
.keyrow .btn { height: 52px; }
.keyform .status { text-align: left; margin-top: 12px; min-height: 22px; }
.status.good { color: var(--good); }

/* ---- Your Keyloft (account) ---- */
.account { max-width: 880px; margin: 0 auto; padding: 72px 0 0; }
.acct-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.acct-head h1 { font-size: clamp(36px, 5vw, 52px); }
.acct-head .lead { margin-top: 10px; font-size: 17px; }
.acct-head .lead b { color: var(--text); font-weight: 600; }
.account > .status { margin: 18px 0 0; color: var(--good); }
.acct-keys { display: grid; gap: 16px; margin-top: 22px; }
.acct-key { padding: 24px 26px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.acct-key-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 24px; flex-wrap: wrap; }
.acct-key .ed { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font: 700 19px/1.2 var(--display); }
.acct-key .tag { white-space: nowrap; font: 700 11px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-hi); padding: 5px 8px; border-radius: 6px; background: rgba(91, 140, 255, 0.14); }
.acct-keytext { margin-top: 10px; font: 600 20px/1.2 var(--mono); letter-spacing: 0.06em; user-select: all; }
.acct-key .fine { margin-top: 6px; }
.acct-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.acct-macs { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; }
.acct-macs li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 48px; padding: 6px 8px 6px 14px; border-radius: 11px; background: var(--inset); }
.acct-mac { flex: 1; min-width: 0; font-weight: 600; }
.acct-mac .since { margin-left: 10px; font-weight: 500; font-size: 13.5px; color: var(--dim); }
.acct-confirm { flex: 1 1 220px; min-width: 0; font-size: 14px; color: #ffb3b5; }
.acct-note { margin-top: 14px; }
.btn.danger { color: #fff; background: #c9393e; box-shadow: none; }
.btn.danger:hover { color: #fff; background: #d84348; }
.acct-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.acct-tile { display: grid; gap: 4px; padding: 18px 20px; border-radius: 14px; text-decoration: none; color: var(--subtle); font-size: 14.5px; background: var(--inset); box-shadow: inset 0 0 0 1px var(--line); }
.acct-tile b { color: var(--text); font-size: 15.5px; }
a.acct-tile:hover { color: var(--subtle); box-shadow: inset 0 0 0 1px var(--line-hi); }
@media (max-width: 640px) {
  .acct-more { grid-template-columns: minmax(0, 1fr); }
  .acct-key { padding: 20px 18px; }
  .acct-keytext { font-size: 17px; }
  .acct-mac .since { display: block; margin: 2px 0 0; }
}

/* ---- Narrow screens ---- */
@media (max-width: 900px) {
  .split, .split.flip, .two { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .split.flip > .visual { order: 0; }
  .cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .editions { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
  .hero { padding-top: 52px; }
  .hosts, .cards { grid-template-columns: minmax(0, 1fr); }
  .strips { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  section { padding-top: 88px; }
  .shot { margin-top: 44px; border-radius: 12px; }
  .edition { padding: 28px 22px 24px; }
  .edition .amount { font-size: 64px; }
  .both { justify-content: flex-start; }
  .foot .wrap { grid-template-columns: minmax(0, 1fr); }
  .board { padding: 16px; }
}

/* The app's tracks row (Keyloft app), drawn in HTML so it stays sharp. */
.tracks { gap: 14px; }
.tracks .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.tracks .play { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: #2f8f62; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.tracks .play i { display: block; width: 14px; height: 18px; border-left: 5px solid #fff; border-right: 5px solid #fff; }
.tracks .clock { display: grid; align-content: center; padding: 0 10px 0 6px; font: 650 19px/1.1 var(--sans); font-variant-numeric: tabular-nums; }
.tracks .clock small, .tracks .tempo small, .tracks .next small { display: block; font-size: 12px; font-weight: 500; color: var(--dim); }
.tracks .tempo { display: grid; align-content: center; padding: 0 14px; border-radius: 12px; font: 700 19px/1.1 var(--sans); box-shadow: inset 0 0 0 1.5px var(--accent); }
.tracks .tempo small { color: var(--accent-hi); font-weight: 700; letter-spacing: 0.04em; }
.tracks .sec { flex: 1 1 96px; min-width: 0; display: grid; gap: 7px; align-content: center; padding: 8px 11px; border-radius: 11px; background: var(--inset); box-shadow: inset 0 0 0 1px var(--line); font-weight: 650; font-size: 14.5px; white-space: nowrap; overflow: hidden; }
.tracks .sec b { font-weight: 500; font-size: 12px; color: var(--dim); margin-left: 6px; }
.tracks .sec i { display: block; height: 14px; border-radius: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 2px, transparent 2px 4px); }
.tracks .sec.done { color: var(--subtle); }
.tracks .sec.done i { opacity: 0.55; }
.tracks .sec.now { box-shadow: inset 0 0 0 1.5px var(--accent); background: rgba(91, 140, 255, 0.10); }
.tracks .sec.now i { background: linear-gradient(90deg, transparent 58%, rgba(10, 11, 14, 0.55) 58%), repeating-linear-gradient(90deg, #8fb0ff 0 2px, transparent 2px 4px); }
.tracks .sec.queued { box-shadow: none; outline: 1.5px dashed var(--accent); outline-offset: -1.5px; }
.tracks .sec.queued b { color: var(--accent-hi); font-weight: 600; }
.tracks .move { display: flex; align-items: center; gap: 9px; padding: 0 18px; height: 52px; border-radius: 12px; font-weight: 650; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line); }
.tracks .move.vamp { color: #ffc56a; background: rgba(245, 165, 36, 0.14); box-shadow: inset 0 0 0 1.5px rgba(245, 165, 36, 0.6); }
.tracks .move svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tracks .next { display: grid; align-content: center; padding: 0 6px 0 10px; font-weight: 650; font-size: 17px; line-height: 1.2; }
.tracks .next span { font: 700 11px/1 var(--sans); letter-spacing: 0.12em; color: var(--dim); margin-bottom: 4px; }
