/* CHAIN, Silver: the page made of the faceplate. Its brushed metal, its black keys with blue LEDs, its embossed name;
   white bands between, black type and buttons, one blue for names and links. The plugin's own display is the only
   dark screen on the page. Type: the system face (SF Pro on iPhone and Mac, where the buyers are), semibold and
   large like a product page, with size-specific tracking; the system mono for the printed labels. No web fonts. */
:root {
  --ground: #eef1f4;        /* the faceplate, lit */
  --surface: #ffffff;
  --line: #dde2e7;
  --ink: #0d1014;
  --muted: #4a5560;
  --dim: #5b6570;           /* small labels, 5:1 on the metal */
  --faint: #7b858e;         /* the artist wall at rest, 3:1 at its size */
  --accent: #0a6fd8;        /* the one blue */
  --accent-hi: #08529f;
  --accent-tint: #e6f0fb;
  --button: #0d1014;
  --button-hi: #2b3138;
  --gold: #a87200;          /* rating stars only */
  --lcd: #0c171e;           /* the plugin's display */
  --ice: #5ccbff;           /* its LEDs */
  --ice-hi: #b8ecff;
  --key-top: #2c3137;       /* its black keys */
  --key-bottom: #0d1014;
  --led-off: #3a4550;
  --rec: #ff3b30;           /* the record LED: the early-bird sale only */
  --rec-ink: #c62a1f;       /* its words, 4.9:1 on the metal */

  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --plugin: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Verdana, sans-serif;   /* the plugin's UI face */

  --m: clamp(16px, 3vw, 40px);              /* outer margins */
  --section: clamp(84px, 10vw, 148px);      /* between sections */
  --max: 1240px;
  --shadow-card: 0 1px 2px rgba(16, 24, 32, 0.06), 0 18px 40px -22px rgba(16, 24, 32, 0.35);
  --metal: radial-gradient(80% 70% at 50% 30%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 72%), url("../img/metal.webp") center / cover, #e9edf0;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--ground); color: var(--ink); overflow-x: clip;
  font: 400 17px/1.5 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #ffffff; }
[hidden] { display: none !important; }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 80; background: var(--button); color: #ffffff; padding: 10px 16px; text-decoration: none; border-radius: 999px; }
.skip:focus { top: 12px; }

h2 { font: 600 clamp(28px, 3vw, 40px)/1.1 var(--display); letter-spacing: -0.016em; text-wrap: balance; }
h3 { font: 600 19px/1.3 var(--text); letter-spacing: -0.006em; }
.eyebrow { font: 600 12px/1.3 var(--text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.fine { color: var(--dim); font-size: 14px; line-height: 1.5; }
.wrap {
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding-left: max(var(--m), env(safe-area-inset-left, 0px)); padding-right: max(var(--m), env(safe-area-inset-right, 0px));
}
.metal { background: var(--metal); }

/* ---------------------------------------------------------------- buttons: black pills, pressed on pointer-down */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px;
  border-radius: 999px; background: var(--button); color: #ffffff; font: 600 16px/1.1 var(--text);
  text-decoration: none; white-space: nowrap; touch-action: manipulation;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 24px -12px rgba(16, 24, 32, 0.7);
  transition: background-color 160ms ease, transform 90ms ease-out;
}
.btn:hover { background: var(--button-hi); }
.btn:active { transform: scale(0.97); transition-duration: 40ms; }
.btn .sep { opacity: 0.6; }
.btn-big { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-small { min-height: 36px; padding: 0 16px; font-size: 14px; box-shadow: none; }
.btn-wide { width: 100%; }
.was { opacity: 0.55; font-weight: 500; }
.link { color: var(--accent); font-weight: 500; text-decoration: none; }
.link:hover { color: var(--accent-hi); }

/* the early-bird sale: a lit record LED, the later price crossed out */
.sale {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 8px;
  font: 500 12px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
}
.sale-off { color: var(--rec-ink); font-weight: 600; }
.sale-ends { color: var(--muted); }
.sale-ends::before { content: "· "; }
@media (max-width: 599px) { .sale-ends { flex-basis: 100%; text-align: center; } .sale-ends::before { content: none; } }   /* its own line */
.sale-led {
  flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--rec);
  box-shadow: 0 0 0 1px rgba(110, 12, 6, 0.25), 0 0 9px 2px rgba(255, 59, 48, 0.55); animation: rec 1.8s ease-in-out infinite;
}
@keyframes rec { 50% { opacity: 0.6; box-shadow: 0 0 0 1px rgba(110, 12, 6, 0.25), 0 0 3px 1px rgba(255, 59, 48, 0.3); } }
.save {
  align-self: center; padding: 7px 10px; border-radius: 8px; font: 600 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #ffffff;
  background: linear-gradient(180deg, #d63327, #b3241a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 14px -6px rgba(179, 36, 26, 0.6);
}

/* a metal key, as on the faceplate */
.metal-key {
  background: linear-gradient(180deg, #ffffff, #e6eaee); border: 1px solid #cdd4da;
  box-shadow: inset 0 1px 0 #ffffff, 0 2px 5px rgba(16, 24, 32, 0.1);
}

/* ---------------------------------------------------------------- top bar */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 41; background: var(--ground); }
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: rgba(238, 241, 244, 0.82); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(13, 16, 20, 0.06);
}
.top-in {
  max-width: var(--max); margin: 0 auto; height: 60px; display: flex; align-items: center; gap: 28px;
  padding-left: max(var(--m), env(safe-area-inset-left, 0px)); padding-right: max(var(--m), env(safe-area-inset-right, 0px));
}
.logo { font: 800 20px/1 var(--display); letter-spacing: 0.08em; color: var(--ink); text-decoration: none; }
.top-nav { display: flex; gap: 26px; margin-left: auto; }
.top-nav a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color 140ms; }
.top-nav a:hover { color: var(--ink); }
.top .btn-small { transition: opacity 200ms, background-color 160ms, transform 90ms ease-out; }
/* Log in: the buyer's way back to the account, quiet next to the one black button */
.top-login { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; transition: color 140ms; }
.top-login:hover { color: var(--accent); }

/* The switch between the shop's two tabs: Presets (the presets shop, chainsaudio.com) and Plugin (this site), a small
   two-way key on the bar. The index page has the most in its bar: below 1024 px the switch takes its own slim row above
   it, and that row scrolls away while the bar itself stays (the sticky top is lifted by the row's height). */
.switch { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(13, 16, 20, 0.06); box-shadow: inset 0 1px 2px rgba(16, 24, 32, 0.08); }
.switch a {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px;
  font: 600 13px/1 var(--text); color: var(--muted); text-decoration: none; white-space: nowrap; transition: color 140ms, background-color 140ms;
}
.switch a:hover { color: var(--ink); }
.switch a[aria-current] { color: var(--ink); background: var(--surface); box-shadow: 0 1px 2px rgba(16, 24, 32, 0.12), inset 0 0 0 1px var(--line); }
.top-switch { flex: none; display: flex; }
.top-flat { position: relative; top: 0; }
.top-flat .top-switch { margin-left: auto; }
@media (max-width: 1023px) {
  .top-wrap { top: calc(env(safe-area-inset-top, 0px) - 40px); }
  .top-wrap .top-in { height: auto; flex-wrap: wrap; row-gap: 0; }
  .top-wrap .top-in > :not(.top-switch) { margin-block: 12px; }
  .top-wrap .top-switch { order: -1; flex: 0 0 100%; justify-content: center; align-items: flex-end; height: 40px; }
}

/* ---------------------------------------------------------------- the first screen, centred on the plugin */
.hero { position: relative; padding: clamp(16px, 3vw, 44px) 0 clamp(36px, 5vw, 64px); background: var(--metal); overflow: clip; }
.hero-in {
  max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-left: max(var(--m), env(safe-area-inset-left, 0px)); padding-right: max(var(--m), env(safe-area-inset-right, 0px));
}
.hero h1 { margin-top: 12px; font: 600 clamp(38px, 6.2vw, 84px)/1.05 var(--display); letter-spacing: -0.022em; text-wrap: balance; }
.h1-name { display: block; color: var(--accent); }
.hero-sub { margin-top: 10px; color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.45; max-width: 44ch; }

/* the plugin, whole, with its live parts laid on in its own 1836 x 1068 pixels */
.plate { position: relative; width: min(100%, 920px); aspect-ratio: 1836 / 1068; margin-top: clamp(14px, 3vw, 36px); container-type: inline-size; touch-action: pan-y; }
.plate::before {
  content: ""; position: absolute; inset: 6% 4% 2%; border-radius: 5%;
  box-shadow: 0 40px 70px -26px rgba(16, 24, 32, 0.6), 0 14px 26px -16px rgba(16, 24, 32, 0.4);
}
.plate-state { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 240ms ease; }
.plate-state.is-on { opacity: 1; }
.p-layer { --u: calc(100cqw / 1836); position: absolute; margin: 0; }
html:not(.js) .p-layer { display: none; }
.p-wave { left: calc(170 * var(--u)); top: calc(286 * var(--u)); width: calc(1020 * var(--u)); height: calc(60 * var(--u)); }
.p-hear { left: calc(899 * var(--u)); top: calc(242 * var(--u)); width: calc(281 * var(--u)); height: calc(56 * var(--u)); max-width: none; }
/* the request typed into the plugin's own field: its inside, the plugin's text size (a 26 px box, 22 px letters),
   centred like the plugin centres it */
.p-input {
  left: calc(136 * var(--u)); top: calc(591 * var(--u)); width: calc(1022 * var(--u)); height: calc(51 * var(--u));
  display: flex; align-items: center; padding-left: calc(34 * var(--u)); background: var(--lcd); color: var(--ice-hi);
  white-space: pre; overflow: hidden; text-align: left; font: calc(22 * var(--u)) / calc(26 * var(--u)) var(--plugin); opacity: 0;
}
.p-input.has-text { opacity: 1; }
.p-caret {
  flex: none; display: inline-block; width: calc(2.5 * var(--u)); height: calc(26 * var(--u));
  margin-left: calc(2 * var(--u)); background: var(--ice); animation: blink 1.05s steps(1) infinite;
}
.p-send { left: calc(1161 * var(--u)); top: calc(581 * var(--u)); width: calc(72 * var(--u)); height: calc(72 * var(--u)); border-radius: 50%; pointer-events: none; }
.p-send.press { animation: send-ring 520ms ease-out; }
@keyframes send-ring {
  0% { box-shadow: 0 0 0 0 rgba(92, 203, 255, 0.9); background: rgba(92, 203, 255, 0.35); }
  100% { box-shadow: 0 0 0 calc(28 * var(--u)) rgba(92, 203, 255, 0); background: rgba(92, 203, 255, 0); }
}
.p-hit { top: calc(244 * var(--u)); height: calc(38 * var(--u)); border-radius: calc(8 * var(--u)); }
.p-before { left: calc(985 * var(--u)); width: calc(84 * var(--u)); }
.p-after { left: calc(1070 * var(--u)); width: calc(97 * var(--u)); }
.p-seek { left: calc(170 * var(--u)); top: calc(286 * var(--u)); width: calc(1020 * var(--u)); height: calc(60 * var(--u)); cursor: pointer; touch-action: none; }

/* the request, big enough to read on a phone */
.prompt { width: min(100%, 620px); margin-top: 18px; text-align: left; }
.prompt-bar {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 9px 6px 18px;
  background: var(--surface); border-radius: 16px; box-shadow: 0 1px 2px rgba(16, 24, 32, 0.06), 0 12px 30px -14px rgba(16, 24, 32, 0.35);
}
.prompt-text { flex: 1; min-width: 0; font: 400 clamp(16px, 1.4vw, 18px)/1.3 var(--text); color: var(--ink); white-space: nowrap; overflow: hidden; }
.prompt-hint { color: #8a939c; }
.prompt:not(.is-empty) .prompt-hint { display: none; }
.caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 2px; vertical-align: -0.2em; background: var(--accent); animation: blink 1.05s steps(1) infinite; }
.prompt.is-sent .caret { opacity: 0; }
@keyframes blink { 50% { opacity: 0; } }
.prompt-send { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); }
.prompt-send svg { width: 18px; height: 18px; fill: none; stroke: #ffffff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.prompt-send.press { animation: send-press 300ms ease; }
@keyframes send-press { 40% { transform: scale(0.86); box-shadow: 0 0 0 6px rgba(10, 111, 216, 0.18); } }
.prompt-reply { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; min-height: calc(2 * 1.45em); font-size: 15px; line-height: 1.45; color: var(--muted); transition: opacity 220ms ease; }
.reply-tick { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.reply-tick circle { fill: var(--accent); }
.reply-tick path { fill: none; stroke: #ffffff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reply-dots { display: none; gap: 5px; align-self: center; }
.reply-dots i, .msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: dot 900ms ease-in-out infinite; }
.reply-dots i:nth-child(2), .msg.typing i:nth-child(2) { animation-delay: 150ms; }
.reply-dots i:nth-child(3), .msg.typing i:nth-child(3) { animation-delay: 300ms; }
@keyframes dot { 0%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.prompt.is-thinking .reply-dots { display: inline-flex; }
.prompt.is-thinking .reply-text, .prompt.is-thinking .reply-tick { display: none; }
.prompt.is-typing .prompt-reply, .prompt.is-empty .prompt-reply { opacity: 0; }
.prompt.is-new .reply-text { animation: reply-in 380ms ease-out; }
@keyframes reply-in { from { opacity: 0; transform: translateY(4px); } }

/* the player: previous, play, raw or the record, next */
.player { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
.play {
  position: relative; flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--button); color: #ffffff; touch-action: manipulation; transition: transform 90ms ease-out, background-color 160ms;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 22px -10px rgba(16, 24, 32, 0.8);
}
.play:hover { background: var(--button-hi); }
.play:active { transform: scale(0.94); transition-duration: 40ms; }
.play .icon { position: relative; width: 22px; height: 22px; fill: currentColor; }
.play .i-pause, .play.is-playing .i-play { display: none; }
.play.is-playing .i-pause { display: block; }
.play.is-loading .icon { animation: dot 900ms ease-in-out infinite; }
.ring { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); transform: rotate(-90deg); pointer-events: none; }
.ring-track, .ring-fill { fill: none; stroke-width: 2.5; }
.ring-track { stroke: rgba(13, 16, 20, 0.08); }
.ring-fill { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 188.5; stroke-dashoffset: 188.5; }
.skip-btn {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; touch-action: manipulation;
  background: linear-gradient(180deg, #ffffff, #e6eaee); border: 1px solid #cdd4da; box-shadow: inset 0 1px 0 #ffffff, 0 2px 5px rgba(16, 24, 32, 0.1);
  transition: transform 90ms ease-out;
}
.skip-btn:active { transform: scale(0.92); transition-duration: 40ms; }
.skip-btn svg { width: 16px; height: 16px; fill: var(--ink); stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ab { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(13, 16, 20, 0.08); }
.ab button {
  min-height: 42px; padding: 0 16px; border-radius: 9px; font: 600 14px/1 var(--text); color: var(--muted); white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease; touch-action: manipulation;
}
.ab button:hover { color: var(--ink); }
.ab button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(16, 24, 32, 0.2); }
.ab.flash button[data-ab="after"] { animation: flash 900ms ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(10, 111, 216, 0.55); } 100% { box-shadow: 0 0 0 12px rgba(10, 111, 216, 0); } }
.play-hint { margin-top: 10px; font-size: 13px; color: var(--dim); min-height: 1.5em; }

.hero-buy { display: grid; gap: 10px; justify-items: center; width: min(100%, 460px); margin-top: 16px; }
.hero-buy .btn { width: 100%; }
.buy-note { color: var(--dim); font-size: 14px; max-width: 52ch; }
.proof { color: var(--muted); font-size: 14px; }
.stars { color: var(--gold); letter-spacing: 2px; }

/* every artist, as the plugin's own keys: the lit LED is the one you hear */
.rail-wrap { margin-top: clamp(26px, 4vw, 44px); }
.pick-lead { text-align: center; font: 600 12px/1.3 var(--text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.rail {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding: 4px max(var(--m), env(safe-area-inset-left, 0px)) 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.rail::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 14px; border-radius: 13px; scroll-snap-align: center;
  background: linear-gradient(180deg, #ffffff, #e6eaee); border: 1px solid #cdd4da; box-shadow: inset 0 1px 0 #ffffff, 0 2px 5px rgba(16, 24, 32, 0.1);
  font: 600 15px/1 var(--text); color: var(--ink); white-space: nowrap; touch-action: manipulation;
  transition: background 160ms, color 160ms, transform 90ms ease-out;
}
.chip:active { transform: scale(0.97); }
.chip i { width: 9px; height: 9px; border-radius: 50%; background: #a4adb6; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.3); transition: background-color 160ms, box-shadow 160ms; }
.chip[aria-pressed="true"] {
  background: linear-gradient(180deg, var(--key-top), var(--key-bottom)); border-color: var(--key-bottom); color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 16px -8px rgba(16, 24, 32, 0.7);
}
.chip[aria-pressed="true"] i { background: var(--ice); box-shadow: 0 0 10px 2px rgba(92, 203, 255, 0.75); }
.chip.is-playing i { animation: led 1.2s ease-in-out infinite; }
@keyframes led { 50% { box-shadow: 0 0 4px 1px rgba(92, 203, 255, 0.4); } }

@media (max-width: 699px) {
  /* the first screen has to hold the headline, the plugin answering, the player and the button */
  .hero { padding-top: 12px; }
  .hero h1 { margin-top: 8px; }
  .hero-sub { margin-top: 8px; font-size: 16px; }
  .plate { margin-top: 14px; }
  .prompt { margin-top: 12px; }
  .prompt-bar { min-height: 50px; }
  .prompt-reply { margin-top: 6px; font-size: 14.5px; }
  .player { margin-top: 10px; gap: 8px; }
  .play { width: 52px; height: 52px; }
  .skip-btn { width: 40px; height: 40px; }
  .ab button { padding: 0 12px; font-size: 13px; }
  .ab [data-label] { display: inline-block; max-width: 116px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
  .play-hint { margin-top: 6px; }
  .hero-buy { margin-top: 10px; }
  .hero-buy .btn { padding: 8px 16px; font-size: 16px; white-space: normal; text-wrap: balance; line-height: 1.2; }
  .proof { font-size: 13px; }
}

/* ---------------------------------------------------------------- sections */
.sec { padding: var(--section) 0; }
.sec.white { background: var(--surface); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.sec h2, .final h2 { font: 600 clamp(34px, 5vw, 64px)/1.06 var(--display); letter-spacing: -0.02em; }
.sec-sub { color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); max-width: 56ch; }
.sec-sub a { color: var(--accent); }

/* the AI engineer: the chat on one side, the plugin turning to the module it just set on the other */
.convo { display: grid; gap: 28px; align-items: center; max-width: 1160px; margin: 0 auto; }
.convo-plugin { display: grid; justify-items: center; }
.convo-state { grid-area: 1 / 1; width: 100%; opacity: 0; transition: opacity 380ms ease; filter: drop-shadow(0 26px 30px rgba(16, 24, 32, 0.28)); }
.convo-state.is-on { opacity: 1; }
.convo-tag {
  grid-area: 2 / 1; margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px;
  background: linear-gradient(180deg, var(--key-top), var(--key-bottom)); color: #ffffff; font: 500 13px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 16px -8px rgba(16, 24, 32, 0.7);
}
.convo-tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 10px 2px rgba(92, 203, 255, 0.75); }
.convo-chat { position: relative; display: grid; gap: 10px; align-content: start; padding: clamp(18px, 2.6vw, 28px); background: var(--ground); border-radius: 28px; }
.msg { max-width: 86%; padding: 11px 16px; border-radius: 20px; font-size: 16px; line-height: 1.45; }
.msg.you { justify-self: end; color: #ffffff; background: var(--accent); border-bottom-right-radius: 6px; }
.msg.bot { justify-self: start; color: var(--ink); background: var(--surface); border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(16, 24, 32, 0.08); }
.msg.bot + .msg.you { margin-top: 6px; }
.convo.is-live .msg[data-page] { opacity: 0; transform: translateY(8px); transition: opacity 320ms ease, transform 320ms ease; }
.convo.is-live .msg[data-page].in { opacity: 1; transform: none; }
.msg.typing { position: absolute; left: clamp(18px, 2.6vw, 28px); display: inline-flex; gap: 5px; padding: 15px 16px; }
/* the engineer as a conversation you tap through: your request, its reply, and the take before and after */
.talk { display: grid; gap: 14px; align-content: start; min-width: 0; scroll-margin: 84px 0 104px; }   /* clear of the header and the phone's buy bar */
.talk-chat { align-content: end; }
.talk.is-on .talk-chat { min-height: 208px; }
/* before the first tap: a short hint in a small box, and every request right under it */
.talk:not(.is-on) .talk-chat { padding: 12px 16px; border-radius: 16px; }
.talk-start { text-align: center; color: var(--dim); font-size: 14px; line-height: 1.4; }
.talk .msg { animation: msg-in 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.talk .msg.pending { visibility: hidden; animation: none; }
.talk .msg.ok { display: grid; place-items: center; padding: 11px 15px; }
.talk .msg.ok svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.talk .msg.typing { animation: none; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } }
/* the requests: all of them before the first tap; after an answer, the others, under the player */
.talk-asks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 8px; transition: opacity 260ms ease; }
.talk-asks.is-answering { opacity: 0; visibility: hidden; transition: none; }   /* their place is kept while the engineer answers */
.talk-more { grid-column: 1 / -1; margin-top: 4px; font: 600 13px/1 var(--text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.ask {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 12px 12px 16px; border-radius: 16px;
  text-align: left; font: 500 16px/1.3 var(--text); color: var(--ink);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 6px 16px -12px rgba(16, 24, 32, 0.4); touch-action: manipulation;
  transition: transform 90ms ease-out, box-shadow 160ms, background-color 160ms;
}
.ask:hover { box-shadow: inset 0 0 0 1px var(--accent), 0 8px 18px -12px rgba(16, 24, 32, 0.45); }
.ask:active { transform: scale(0.98); transition-duration: 40ms; }
.ask-text::before { content: "“"; }
.ask-text::after { content: "”"; }
.ask-icon { flex: none; width: 32px; height: 32px; padding: 8px; border-radius: 50%; background: var(--button); fill: #ffffff; }
.ask.is-heard .ask-icon { background: transparent; fill: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }   /* heard already: still there to play again */
.talk-player { justify-content: flex-start; margin-top: 2px; }
.talk-player .play:disabled { opacity: 0.35; cursor: default; }
.talk-player .ab button:disabled { opacity: 0.4; cursor: default; }
/* computer: the plugin stays where it is while the chat next to it grows */
.convo.has-talk { align-items: start; }
.convo.has-talk .talk:not(.is-on) { align-self: center; }
@media (prefers-reduced-motion: reduce) { .talk .msg { animation: none; } .talk-asks { transition: none; } }
.ai .ticks { display: grid; gap: 12px; max-width: 1000px; margin: clamp(36px, 4vw, 56px) auto 0; }
@media (min-width: 860px) { .ai .ticks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 960px) { .convo { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; } }
.ticks li, .checks li { position: relative; padding-left: 32px; }
.ticks li::before, .checks li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5.5 10.3 3 3 6-6.4' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* everything inside: the faceplate's row of module keys, then that page, whole */
.keys { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 8px; max-width: 980px; margin: 0 auto; }
.keys button { display: grid; justify-items: center; gap: 9px; padding: 4px 0; touch-action: manipulation; }
.keys i {
  position: relative; width: 100%; max-width: 64px; height: 34px; border-radius: 10px;
  background: linear-gradient(180deg, var(--key-top), var(--key-bottom)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 3px 7px rgba(16, 24, 32, 0.35);
  transition: transform 90ms ease-out;
}
.keys i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--led-off); transition: background-color 160ms, box-shadow 160ms; }
.keys button:active i { transform: translateY(1px); }
.keys button[aria-selected="true"] i::after { background: var(--ice); box-shadow: 0 0 10px 3px rgba(92, 203, 255, 0.75); }
.keys span { font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); transition: color 160ms; }
.keys button[aria-selected="true"] span, .keys button:hover span { color: var(--ink); }
.module { max-width: 960px; margin: clamp(28px, 4vw, 44px) auto 0; text-align: center; }
.module img { width: 100%; filter: drop-shadow(0 30px 34px rgba(16, 24, 32, 0.32)); }
.module figcaption { margin: 22px auto 0; font-size: clamp(18px, 1.8vw, 22px); letter-spacing: -0.01em; max-width: 40ch; }
@media (min-width: 860px) { .keys { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; } }

/* how it works */
.how .steps { display: grid; gap: 14px; }
.how .steps li { display: grid; gap: 10px; align-content: start; padding: 26px 24px 28px; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-card); }
.step-n { font: 600 40px/1 var(--display); letter-spacing: -0.02em; color: var(--accent); }
.how .steps h3 { font-size: 20px; }
.how .steps p { color: var(--muted); }
.autokey { display: grid; gap: 24px 48px; align-items: center; margin-top: clamp(48px, 6vw, 80px); }
.autokey-text h3 { font: 600 clamp(28px, 3.2vw, 44px)/1.08 var(--display); letter-spacing: -0.018em; text-wrap: balance; }
.autokey-text p { margin-top: 14px; color: var(--muted); max-width: 46ch; }
/* the key, shown the way the plugin's display shows it */
.key-lcd {
  display: grid; gap: 14px; padding: clamp(24px, 3.4vw, 44px); border-radius: 26px;
  background: linear-gradient(180deg, #0d1318, #05080b 60%); border: 6px solid #2b2f34;
  box-shadow: 0 30px 60px -28px rgba(16, 24, 32, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.key-label { font: 500 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: #7895a6; }
.key-name { font: 600 clamp(56px, 9vw, 112px)/0.95 var(--display); letter-spacing: -0.03em; color: var(--ice); text-shadow: 0 0 34px rgba(92, 203, 255, 0.5); }
.key-notes { display: flex; flex-wrap: wrap; gap: 8px; }
.key-notes span { min-width: 44px; padding: 8px 10px; border-radius: 8px; text-align: center; font: 600 15px/1 var(--text); color: var(--ice-hi); background: rgba(92, 203, 255, 0.12); border: 1px solid rgba(92, 203, 255, 0.4); }
@media (min-width: 860px) { .how .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 900px) { .autokey { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

/* the artist sounds: the whole list, the ones you can hear underlined */
.wall { font: 600 clamp(28px, 4.4vw, 56px)/1.16 var(--display); letter-spacing: -0.018em; color: var(--faint); text-wrap: pretty; }
.wall .name { white-space: nowrap; font: inherit; letter-spacing: inherit; color: inherit; transition: color 160ms; }
.wall .name:hover { color: var(--muted); }
.wall .name::after { content: " ·"; color: #bdc5cc; }
.wall .name.is-lit { color: var(--ink); cursor: pointer; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 0.07em; text-underline-offset: 0.14em; }
.wall .name.is-lit:hover, .wall .name.is-playing { color: var(--accent); }
.wall-plus { color: var(--accent); }
.artists .fine { margin-top: 28px; }

/* works in your DAW: the DAWs as metal keys, CHAIN in a plain host window, and where it goes in three steps */
.daw-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 940px; margin: 0 auto; }
.daw-tabs button {
  min-height: 44px; padding: 0 18px; border-radius: 12px; font: 600 15px/1 var(--text); color: var(--ink); touch-action: manipulation;
  background: linear-gradient(180deg, #ffffff, #e6eaee); border: 1px solid #cdd4da; box-shadow: inset 0 1px 0 #ffffff, 0 2px 5px rgba(16, 24, 32, 0.1);
  transition: background 160ms, color 160ms, transform 90ms ease-out;
}
.daw-tabs button:active { transform: scale(0.97); }
.daw-tabs button[aria-selected="true"] {
  background: linear-gradient(180deg, var(--key-top), var(--key-bottom)); border-color: var(--key-bottom); color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 16px -8px rgba(16, 24, 32, 0.7);
}
.daw-stage { display: grid; gap: 28px; align-items: center; max-width: 1080px; margin: clamp(28px, 4vw, 44px) auto 0; }
.daw-stage.swap .daw-how { animation: reply-in 360ms ease-out; }
.host { overflow: hidden; border-radius: 14px; background: #dfe4e9; box-shadow: 0 30px 60px -28px rgba(16, 24, 32, 0.55), 0 0 0 1px rgba(13, 16, 20, 0.08); }
.host-bar { position: relative; display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; background: linear-gradient(180deg, #f7f8fa, #e3e7eb); border-bottom: 1px solid #cfd5db; }
.host-bar i { width: 11px; height: 11px; border-radius: 50%; background: #c5ccd3; box-shadow: inset 0 0 0 1px rgba(13, 16, 20, 0.12); }
.host-bar span { position: absolute; left: 50%; transform: translateX(-50%); font: 500 12px/1 var(--text); color: var(--dim); white-space: nowrap; }
.host img { width: 100%; }
.daw-name { font: 600 clamp(28px, 3vw, 40px)/1.08 var(--display); letter-spacing: -0.018em; }
.daw-steps { counter-reset: step; display: grid; gap: 14px; margin-top: 18px; }
.daw-steps li { counter-increment: step; position: relative; min-height: 30px; padding-left: 44px; color: var(--muted); }
.daw-steps li::before {
  content: counter(step); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  font: 600 14px/1 var(--mono); color: #ffffff; background: linear-gradient(180deg, var(--key-top), var(--key-bottom));
}
.daw-format { margin-top: 18px; font: 600 12px/1 var(--text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.formats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin-top: clamp(28px, 4vw, 44px); }
.formats li { padding: 9px 14px; border-radius: 999px; background: var(--ground); font: 500 14px/1 var(--text); letter-spacing: 0; color: var(--muted); }
.daws .fine { margin-top: 14px; }
.fine.center { text-align: center; }
@media (min-width: 900px) { .daw-stage { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 52px; } }
@media (max-width: 699px) {
  .daw-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--m)); padding: 2px var(--m) 8px; }
  .daw-tabs::-webkit-scrollbar { display: none; }
  .daw-tabs button { flex: none; }
}

/* what artists say about the chains CHAIN is built from */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; max-width: 1080px; margin: 0 auto; }
.quotes li { display: grid; gap: 12px; align-content: start; padding: 26px 24px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-card); }
.q-stars { color: var(--gold); letter-spacing: 3px; font-size: 15px; }
.quotes blockquote { margin: 0; font: 600 clamp(21px, 2.2vw, 28px)/1.18 var(--display); letter-spacing: -0.012em; }
.q-who { font: 500 14px/1 var(--text); letter-spacing: 0; color: var(--dim); }
.reviews .fine { margin-top: 22px; }
@media (max-width: 599px) {
  .quotes { grid-template-columns: 1fr 1fr; gap: 10px; }
  .quotes li { padding: 18px 16px; }
  .quotes blockquote { font-size: 19px; }
}

/* the point of it all: the song, not the knobs */
.focus-in { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.focus-in h2 { margin-top: 14px; max-width: 20ch; }
.focus-lead { margin-top: 18px; max-width: 58ch; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); }
.gains { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; width: 100%; max-width: 1080px; margin: clamp(32px, 4vw, 48px) 0; text-align: left; }
.gains li { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: 18px; background: var(--ground); }
.gains i { position: relative; width: 38px; height: 24px; border-radius: 8px; background: linear-gradient(180deg, var(--key-top), var(--key-bottom)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.gains i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 8px 2px rgba(92, 203, 255, 0.7); }
.gains h3 { margin-top: 6px; font-size: 19px; }
.gains p { color: var(--muted); font-size: 15px; }

/* pricing: two plans side by side, the AI credits in three numbers on the plugin's display, what both include */
.plans { display: grid; gap: 16px; max-width: 980px; margin: 0 auto; }
.plan {
  display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 40px); border-radius: 28px;
  background: var(--surface); box-shadow: var(--shadow-card), 0 40px 80px -60px rgba(16, 24, 32, 0.45);
}
.offer-badge {
  display: flex; width: fit-content; align-items: center; gap: 8px; padding: 8px 13px 8px 11px; border-radius: 999px;
  font: 500 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #ffffff;
  background: linear-gradient(180deg, var(--key-top), var(--key-bottom)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 16px -10px rgba(16, 24, 32, 0.7);
}
.plan-name { font: 600 13px/1 var(--text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font: 600 clamp(52px, 6vw, 72px)/0.98 var(--display); letter-spacing: -0.03em; }
.plan-price .was { font-size: 0.42em; color: var(--dim); letter-spacing: -0.02em; }
.plan-unit { font: 500 18px/1 var(--text); letter-spacing: 0; color: var(--muted); }
.plan-line { color: var(--muted); font-size: 16px; }
.plan-line strong { color: var(--ink); font-weight: 600; }
.plan .btn { margin-top: auto; }   /* both buttons on one line, whatever the text above them */
.plan-fine { margin-top: -4px; font-size: 14px; color: var(--dim); text-align: center; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
/* one plan on sale: its card sits in the middle (the monthly card waits in a <template>, see index.html) */
.plans > .plan:only-of-type { grid-column: 1 / -1; width: 100%; max-width: 560px; justify-self: center; }
template { display: none !important; }

.credits {
  max-width: 980px; margin: clamp(20px, 3vw, 32px) auto 0; padding: clamp(24px, 3vw, 40px); border-radius: 28px;
  background: var(--surface); box-shadow: var(--shadow-card);
}
.credits h3 { font: 600 clamp(24px, 2.6vw, 32px)/1.12 var(--display); letter-spacing: -0.015em; }
.credit-list { display: grid; gap: 18px; margin-top: 22px; }
.credit-list li { display: grid; grid-template-columns: 138px minmax(0, 1fr); gap: 16px; align-items: start; }
.credit-list h4 { font: 600 17px/1.25 var(--text); color: var(--ink); }
.credit-list li p:not(.lcd-num) { margin-top: 4px; font-size: 15px; color: var(--muted); }
/* a number on the plugin's own display, its LEDs lit */
.lcd-num {
  display: flex; align-items: baseline; gap: 8px; padding: 10px 14px 9px; border-radius: 12px;
  font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: #6b8494;
  background: var(--lcd); box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.9);
}
.lcd-num b { font: 500 30px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--ice); text-shadow: 0 0 12px rgba(92, 203, 255, 0.55); }
.credits-note { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.credits-note strong { color: var(--ink); font-weight: 600; }
@media (min-width: 860px) {
  .credit-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .credit-list li { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .lcd-num { width: fit-content; min-width: 128px; }
}

.included { max-width: 980px; margin: clamp(32px, 4vw, 48px) auto 0; }
.included h3 { margin-bottom: 18px; font: 600 13px/1 var(--text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.checks { display: grid; gap: 12px; color: var(--muted); }
.checks strong { color: var(--ink); font-weight: 600; }
@media (min-width: 760px) { .included .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; } }

.offer-trust { display: grid; gap: 16px; max-width: 980px; margin: clamp(28px, 4vw, 40px) auto 0; }
.secure { display: flex; gap: 8px; justify-content: center; font-size: 14px; color: var(--dim); text-align: center; }
.secure svg { flex: none; width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: var(--dim); stroke-width: 1.8; stroke-linejoin: round; }
.guarantee { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--accent-tint); }
.guarantee svg { flex: none; width: 34px; height: 34px; fill: rgba(10, 111, 216, 0.12); stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; }
.guarantee .tick { fill: none; stroke-linecap: round; }
.guarantee p { font-size: 15px; color: var(--muted); }
.guarantee strong { color: var(--ink); font-weight: 600; }
.anchor { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; text-align: center; }

/* the second button of a pair: white, the same pill */
.btn-alt { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), 0 10px 24px -14px rgba(16, 24, 32, 0.45); }
.btn-alt:hover { background: #f4f6f8; }
.final-buy { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
/* phones: the hero button in two lines, the artist on top and the lowest price under it */
@media (max-width: 699px) {
  .hero-buy .btn { flex-direction: column; gap: 3px; padding: 10px 18px; }
  .hero-buy .btn .sep { display: none; }
  .hero-buy .btn [data-from] { font-size: 14px; font-weight: 500; opacity: 0.75; }
}
@media (max-width: 599px) { .final-buy { width: 100%; } .final-buy .btn { width: 100%; } }

/* questions */
.faq-grid { display: grid; gap: 28px; }
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 22px 0; list-style: none; cursor: pointer; font: 600 18px/1.35 var(--text); letter-spacing: -0.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; font: 400 28px/0.8 var(--text); color: var(--accent); transition: transform 200ms ease; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { padding-bottom: 22px; color: var(--muted); max-width: 62ch; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; } .faq .sec-head { position: sticky; top: 100px; } }

/* the close, centred on the metal that runs on into the footer */
.final { padding: var(--section) 0 clamp(36px, 5vw, 64px); }
.final-in { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.final h2 { max-width: 12ch; font-size: clamp(48px, 7.4vw, 104px); letter-spacing: -0.028em; }
.final-in > p { margin: 20px 0 28px; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); }
.final-in .buy-note { max-width: none; margin: 14px 0 0; font-size: 14px; text-wrap: balance; }
.final-in .sale { margin: -12px 0 14px; font-size: 12px; color: var(--ink); }

/* footer: the name stamped into the metal, as on the faceplate */
.footer { padding: 24px 0 calc(48px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(13, 16, 20, 0.06); }
.footer-in { display: grid; gap: 18px; }
.footer-mark {
  font: 800 clamp(84px, 22vw, 280px)/0.86 var(--display); letter-spacing: -0.03em; color: #dde2e7;
  text-shadow: 0 2px 1px rgba(255, 255, 255, 0.95), 0 -1px 1px rgba(16, 24, 32, 0.22);
}
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer nav a { color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--ink); }
.contact { color: var(--muted); }
.contact a { color: var(--accent); }
.legal { font-size: 13px; color: var(--dim); max-width: 92ch; }

/* phones: the price and the button under the thumb */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-top: 1px solid rgba(13, 16, 20, 0.08); transform: translateY(110%); transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.buybar.is-on { transform: none; }
.buybar-text { flex: 1; min-width: 0; }
.buybar-name { font: 600 18px/1.1 var(--display); letter-spacing: -0.01em; }
.buybar-name span { color: var(--accent); }
.buybar-sub { font-size: 13px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar-name .was { font-size: 0.8em; color: var(--dim); }
.buybar-sale { color: var(--rec-ink); font-weight: 600; }
.buybar-sale .sale-led { width: 7px; height: 7px; margin-right: 7px; vertical-align: 1px; }
.buybar .btn { min-height: 48px; }
.bar-on .top .btn-small { opacity: 0; pointer-events: none; }
@media (min-width: 861px) { .buybar { display: none; } .bar-on .top .btn-small { opacity: 1; pointer-events: auto; } }
/* phones: Log in sits at the right edge, so the bar still reads right when its button gives way to the buy bar */
@media (max-width: 860px) { .top-nav { display: none; } .top .btn-small { margin-left: auto; } .top-in { gap: 16px; } .top-login { order: 3; } }

/* cookie consent, only when ad pixels are set */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60; max-width: 560px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 14px 16px; font-size: 15px;
  background: var(--surface); border-radius: 16px; box-shadow: 0 20px 50px -20px rgba(16, 24, 32, 0.5);
}
.consent p { flex: 1 1 220px; }
.consent button { min-height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 600; background: var(--button); color: #ffffff; }
.bar-on .consent { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }   /* above the phone buy bar */
@media (max-width: 699px) { .consent { padding: 10px 12px; font-size: 14px; } .consent p { flex-basis: 100%; } .consent button { min-height: 38px; } }
.consent [data-consent-no] { background: transparent; color: var(--muted); border: 1px solid var(--line); }

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