/* Plugin sales page prototype (Note Analyzer), in the Sidechain product page language:
   ribbons behind, media left / buy column right, uppercase kickers, Archivo wide titles.
   The media is the plugin itself in a hardware frame, playable. Sizes on an 8px grid. Breakpoint 960px. */

:root {
  color-scheme: dark;
  --bg: #000;
  --ink: #ece9e2;
  --body: #d4d2cb;
  --muted: #a9a79f;
  --rule: rgba(236, 233, 226, .12);
  --rule-strong: rgba(236, 233, 226, .22);
  --brass: #d8b46a;
  --button: #1b1b1a;

  /* The app's screen colours: deep teal glass and a signal green. */
  --glass: #06141a;
  --glass-panel: rgba(20, 46, 54, .55);
  --glass-line: rgba(120, 220, 200, .16);
  --glass-text: #d9f2ea;
  --glass-dim: #8fb3aa;
  --signal: #3fe08a;
  --signal-rgb: 63, 224, 138;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  font-family: "Archivo", Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; position: relative; isolation: isolate; overflow-x: clip; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 20; background: var(--ink); color: #000; padding: 8px 16px; }

/* ---------- Ribbons (same as the pack pages) ---------- */
.ribbons { position: fixed; left: 0; top: 0; width: 100%; contain: paint; height: 100vh; height: 100lvh; z-index: -2; overflow: hidden; pointer-events: none; background: #000; }
.ribbons__img { position: absolute; left: 50%; top: 0; height: max(calc(100vw * 1672 / 941), 130vh); aspect-ratio: 941 / 1672;
  background: url("assets/bg-ribbons.webp") center top / 100% 100% no-repeat; opacity: .55; transform: translate3d(-50%, var(--ribbons-y, 0px), 0); will-change: transform; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 16px var(--gutter);
  background: linear-gradient(rgba(0, 0, 0, .85), rgba(0, 0, 0, .55)); backdrop-filter: blur(10px); }
.brand img { width: 32px; height: 32px; }
.site-nav { display: flex; gap: 32px; }
.site-nav a, .cart-link { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.site-nav a { opacity: .8; }
.site-nav a[aria-current="page"], .site-nav a:hover { opacity: 1; color: #fff; }
.cart-link { justify-self: end; color: var(--muted); }
@media (max-width: 960px) { .site-nav { display: none; } }

.page { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.crumbs { grid-column: 1 / -1; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; font-size: 12px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs a { text-decoration: none; }

.section-kicker, .product__kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; display: flex; align-items: center; gap: 16px; }
.section-kicker::before, .product__kicker::before { content: ""; width: 24px; height: 1px; background: currentColor; }

/* ---------- 1. Product ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 32px 56px; align-items: start; padding-top: 24px; padding-bottom: 96px; }
.product__media, .product__info { min-width: 0; }
.product__info { position: sticky; top: 96px; padding-top: 16px; }
.product__info::after { content: ""; position: absolute; z-index: -1; inset: -40px -48px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .9), rgba(0, 0, 0, .75) 70%, transparent); }
.product__title { font-size: 48px; line-height: 1.08; font-weight: 600; font-stretch: 116%; letter-spacing: -.03em; margin: 0 0 24px; }
.product__lede { font-size: 16px; line-height: 24px; font-weight: 450; color: var(--body); margin: 0 0 32px; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--rule); }
.price, .purchase__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin: 0; }
.price__now { font-size: 32px; font-weight: 600; font-stretch: 110%; letter-spacing: -.02em; }
.price__was { color: var(--muted); font-size: 14px; }
.price__save { align-self: center; font-size: 11px; font-weight: 600; color: var(--brass); border: 1px solid rgba(216, 180, 106, .5); background: rgba(216, 180, 106, .08); border-radius: 4px; padding: 4px 8px; }
.add-to-cart { background: var(--button); border: 1px solid var(--rule-strong); border-radius: 8px; padding: 16px 32px; font-size: 14px; font-weight: 600; cursor: pointer; }
.add-to-cart:hover { border-color: var(--ink); }
.add-to-cart--solid { background: var(--ink); color: #0b0b0a; border-color: var(--ink); }
.price-links { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin: 16px 0 32px; }
.row { border-top: 1px solid var(--rule); }
.row:last-child { border-bottom: 1px solid var(--rule); }
.row summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; padding: 24px 0; font-weight: 600; font-size: 14px; }
.row summary::-webkit-details-marker { display: none; }
.row summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 18px; line-height: 16px; }
.row[open] summary::after { content: "–"; }
.row__list, .row__text { margin: 0 0 24px; color: var(--body); font-size: 14px; line-height: 24px; }
.row__list { padding-left: 16px; }

.media-note { font-size: 12px; line-height: 16px; color: var(--muted); margin: 16px 0 0; text-align: center; }

@media (max-width: 1100px) {
  .product { grid-template-columns: 1fr; }
  .product__info { position: relative; top: 0; }
  .product__title { font-size: 40px; }
}

/* ---------- The plugin window: a compact copy of the real app, sized to fit the screen height ---------- */
.app { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px;
  height: clamp(420px, calc(100svh - 128px), 560px); padding: 12px; border-radius: 16px; color: var(--glass-text); font-size: 12px;
  background: radial-gradient(70% 50% at 50% 0%, rgba(63, 224, 138, .10), transparent 70%), linear-gradient(180deg, #0b1d22, #06121a);
  border: 1px solid rgba(120, 220, 200, .22);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 30px 80px rgba(0, 0, 0, .7), 0 0 60px rgba(63, 224, 138, .08); }
.app.is-dragging { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal), 0 0 40px rgba(63, 224, 138, .3); }

/* Top bar: brand, current file, play. */
.app__bar { display: flex; align-items: center; gap: 12px; min-width: 0; }
.app__brand { margin: 0; display: flex; align-items: center; gap: 8px; flex: none; }
.app__brand img { display: block; }
.app__brand span { font-size: 12px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; line-height: 1.1; color: #eef7f3; }
.app__brand small { display: block; font-size: 8px; letter-spacing: .3em; color: var(--glass-dim); }
.file { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 6px 0 10px; border-radius: 10px;
  background: rgba(20, 46, 54, .5); border: 1px solid var(--glass-line); }
.file__wave { width: 56px; height: 18px; flex: none; }
.file__name { flex: 1; min-width: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--glass-text); }
.file__step { width: 24px; height: 24px; flex: none; border: 0; border-radius: 6px; background: transparent; color: var(--glass-dim); font-size: 16px; line-height: 1; cursor: pointer; }
.file__step:hover { background: rgba(255, 255, 255, .06); color: var(--glass-text); }
.app__play { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 18px; border-radius: 10px; cursor: pointer;
  font: inherit; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #eafff4;
  border: 1px solid rgba(63, 224, 138, .7); background: linear-gradient(180deg, rgba(63, 224, 138, .35), rgba(20, 110, 70, .35));
  box-shadow: 0 0 18px rgba(63, 224, 138, .35), 0 1px 0 rgba(255, 255, 255, .15) inset; }
.app__play:disabled { opacity: .45; cursor: default; box-shadow: none; }
.app__play-icon { width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.app.is-playing .app__play-icon { width: 8px; height: 8px; border: 0; background: currentColor; border-radius: 1px; }

/* Body: input · neural · results. */
.app__body { display: grid; grid-template-columns: minmax(132px, .8fr) minmax(0, 2fr) minmax(140px, .9fr); gap: 10px; min-height: 0; }
.panel { background: rgba(20, 46, 54, .42); border: 1px solid var(--glass-line); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.panel__title { margin: 0 0 8px; display: flex; align-items: center; gap: 6px; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--glass-dim); }
.panel__spark { color: var(--signal); }
.panel__chip { margin-left: auto; letter-spacing: 0; text-transform: none; font-family: "JetBrains Mono", monospace; font-size: 10px; color: #f2c14e; }

.panel--input { display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.panel--input .panel__title { margin: 0; }
.panel--input .panel__title:not(:first-child) { margin-top: 6px; }
.samples { display: flex; flex-direction: column; gap: 4px; }
.sample { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; border-radius: 7px; cursor: pointer; font: inherit; font-size: 11px; text-align: left;
  color: var(--glass-text); background: rgba(255, 255, 255, .03); border: 1px solid transparent; }
.sample:hover { background: rgba(255, 255, 255, .06); }
.sample[aria-pressed="true"] { border-color: rgba(63, 224, 138, .6); background: rgba(63, 224, 138, .12); box-shadow: 0 0 12px rgba(63, 224, 138, .18); }
.sample__bars { width: 12px; height: 10px; flex: none; background: repeating-linear-gradient(90deg, var(--glass-dim) 0 2px, transparent 2px 4px); opacity: .7; }
.sample[aria-pressed="true"] .sample__bars { background: repeating-linear-gradient(90deg, var(--signal) 0 2px, transparent 2px 4px); opacity: 1; }
.sample--drop { border: 1px dashed rgba(120, 220, 200, .3); color: var(--glass-dim); }
.sample--drop.is-over { border-color: var(--signal); color: var(--glass-text); }

.ctl__row { margin: 0 0 4px; display: flex; justify-content: space-between; font-size: 10px; color: var(--glass-dim); }
.ctl__row span:last-child { font-family: "JetBrains Mono", monospace; color: var(--glass-text); }
.slider { --p: 1; position: relative; height: 14px; cursor: pointer; touch-action: none; outline: none; }
.slider::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .12); }
.slider__fill { position: absolute; left: 0; top: 6px; height: 2px; border-radius: 2px; width: calc(var(--p) * 100%); background: var(--signal); box-shadow: 0 0 8px var(--signal); }
.slider__thumb { position: absolute; top: 2px; left: calc(var(--p) * 100% - 5px); width: 10px; height: 10px; border-radius: 50%; background: #eafff4; box-shadow: 0 0 0 3px rgba(63, 224, 138, .35), 0 0 10px var(--signal); }
.slider:focus-visible .slider__thumb { box-shadow: 0 0 0 3px var(--signal), 0 0 12px var(--signal); }

.seg { display: flex; gap: 2px; padding: 2px; margin-top: 4px; border-radius: 8px; background: rgba(0, 0, 0, .3); border: 1px solid var(--glass-line); }
.seg button { flex: 1; height: 24px; border: 0; border-radius: 6px; background: transparent; color: var(--glass-dim); font: inherit; font-size: 10px; cursor: pointer; }
.seg button[aria-checked="true"] { background: rgba(63, 224, 138, .18); color: var(--glass-text); box-shadow: 0 0 0 1px rgba(63, 224, 138, .5) inset; }
.app__export { margin-top: auto; height: 30px; border-radius: 8px; cursor: pointer; font: inherit; font-size: 11px; font-weight: 600; color: var(--glass-text);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(120, 220, 200, .3); }
.app__export:hover:not(:disabled) { border-color: var(--signal); }
.app__export:disabled { opacity: .45; cursor: default; }

/* Neural panel with the keyboard inside, like the app. */
.neural { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; min-height: 0; overflow: hidden; border-radius: 10px;
  border: 1px solid rgba(63, 224, 138, .45); background: radial-gradient(80% 70% at 50% 30%, rgba(30, 90, 70, .35), transparent 70%), #04110f;
  box-shadow: 0 0 24px rgba(63, 224, 138, .12) inset, 0 0 14px rgba(63, 224, 138, .14); }
.neural__head { position: absolute; left: 12px; top: 10px; right: 12px; z-index: 1; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; }
.neural__title { margin: 0; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--glass-text); font-weight: 600; }
.neural__state { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 9px; color: var(--glass-dim); white-space: nowrap; }
.neural__dot { width: 7px; height: 7px; border-radius: 50%; border: 2px solid var(--signal); box-shadow: 0 0 8px var(--signal); }
.neural__canvas { display: block; width: 100%; height: 100%; min-height: 0; }
.neural__keys { position: relative; height: 34px; margin: 0 8px 8px; display: flex; border-radius: 4px; overflow: hidden; background: #dfe9e6; box-shadow: 0 0 16px rgba(63, 224, 138, .15); }
.neural__keys .w { flex: 1; border-right: 1px solid #9fb2ad; position: relative; }
.neural__keys .w:last-child { border-right: 0; }
.neural__keys .b { position: absolute; top: 0; height: 60%; background: #0d1a1e; border-radius: 0 0 2px 2px; z-index: 1; }
.neural__keys .is-hit { background: var(--signal) !important; box-shadow: 0 0 16px var(--signal); }
.neural__keys .w.is-target::after, .neural__keys .b.is-target::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #f2c14e; }

/* Right column. */
.side { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; }
.note { display: flex; align-items: center; gap: 10px; }
.note__name { font-size: 40px; font-weight: 600; font-stretch: 112%; line-height: 1; letter-spacing: -.03em; color: #effff7; text-shadow: 0 0 22px rgba(63, 224, 138, .5); }
.note__meta { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; font-family: "JetBrains Mono", monospace; font-size: 10px; color: var(--glass-dim); min-width: 0; }
.note__hz { color: var(--glass-text); font-size: 12px; }
.note__key { display: inline-block; margin-top: 8px; border: 1px solid rgba(120, 220, 200, .35); border-radius: 6px; padding: 2px 8px; color: var(--glass-text); text-transform: uppercase; font-size: 9px; letter-spacing: .08em; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.conf { display: grid; grid-template-columns: auto 1fr auto; gap: 6px; align-items: center; margin-top: 10px; font-family: "JetBrains Mono", monospace; font-size: 9px; color: var(--glass-dim); text-transform: uppercase; letter-spacing: .06em; }
.conf [data-conf] { color: var(--signal); }
.bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--signal); box-shadow: 0 0 8px var(--signal); transition: width .4s ease; }
.panel--tuner { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.meter__svg { flex: 1; min-height: 0; width: 100%; max-height: 140px; margin: auto; overflow: visible; }
.meter__ticks line { stroke: rgba(217, 242, 234, .35); stroke-width: 1; }
.meter__ticks line.is-major { stroke: rgba(217, 242, 234, .7); stroke-width: 1.5; }
.meter__label { font-family: "JetBrains Mono", monospace; font-size: 9px; fill: var(--glass-dim); }
.meter__needle { transform-origin: 110px 112px; transform: rotate(var(--needle, 0deg)); transition: transform .6s cubic-bezier(.3, 1.6, .5, 1); }
.meter__needle line { stroke: #f2c14e; stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(242, 193, 78, .7)); }
.meter__needle circle { fill: #1b2b30; stroke: #f2f7f4; stroke-width: 1.5; }

.app__status { margin: 0; font-family: "JetBrains Mono", monospace; font-size: 10px; color: var(--glass-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Small screens: stack, no fixed height. */
@media (max-width: 760px) {
  .app { height: auto; }
  .app__bar { flex-wrap: wrap; }
  .app__brand { flex: 1; }
  .file { order: 3; flex-basis: 100%; }
  .app__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .neural { grid-column: 1 / -1; order: -1; height: 300px; }
  .app__status { white-space: normal; }
}
@media (max-width: 520px) {
  .app__body { grid-template-columns: 1fr; }
  .neural { height: 260px; }
}

/* ---------- 2. Film: the video on its own, sharp, no player and no frame ---------- */
.film { padding-top: 96px; padding-bottom: 96px; border-top: 1px solid var(--rule); }
.film__intro { max-width: 860px; margin: 0 auto 32px; }
.film__intro h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; font-weight: 600; font-stretch: 112%; letter-spacing: -.02em; margin: 0; }
.film__video { display: block; width: 100%; max-width: min(860px, calc((100svh - 160px) * 16 / 9)); margin: 0 auto; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: transparent; pointer-events: none; }
.steps__title { max-width: 720px; margin: 48px auto 0; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.15; letter-spacing: -0.01em; }
.steps { list-style: none; max-width: 860px; margin: 28px auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.step { padding-top: 24px; border-top: 1px solid var(--rule); }
.step__n { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--signal); }
.step h3 { font-size: 24px; font-weight: 600; font-stretch: 112%; margin: 8px 0 8px; }
.step p { font-size: 16px; line-height: 24px; color: var(--body); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 0; } .step { padding-bottom: 24px; } .film__video { border-radius: 8px; } }

/* ---------- 3. Features ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; padding-top: 96px; padding-bottom: 96px; position: relative; }
.feature::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: var(--rule); }
.feature--flip .feature__head { order: 2; }
.feature__head h2, .purchase h2, .specs h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; font-weight: 600; font-stretch: 112%; letter-spacing: -.02em; margin: 0; }
.feature__head p:not(.section-kicker) { font-size: 16px; line-height: 24px; color: var(--body); margin: 24px 0 0; max-width: 440px; }
.points { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-content: start; }
.points div { padding: 24px 0; border-top: 1px solid var(--rule); }
.points dt { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.points dd { margin: 0; font-size: 16px; line-height: 24px; color: var(--body); }
@media (max-width: 960px) { .feature { grid-template-columns: 1fr; } .feature--flip .feature__head { order: 0; } }
@media (max-width: 560px) { .points { grid-template-columns: 1fr; } }

/* ---------- 4. Purchase ---------- */
.purchase { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding-top: 96px; padding-bottom: 96px; border-top: 1px solid var(--rule); }
.purchase .section-kicker { margin: 0; }
.purchase__price { justify-content: center; }
.assurances { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: left; width: 100%; }
.assurances li { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; border-top: 1px solid var(--rule); }
.assurances strong { font-size: 14px; }
.assurances span { color: var(--body); font-size: 14px; line-height: 24px; }
@media (max-width: 760px) { .assurances { grid-template-columns: 1fr; gap: 0; } .assurances li { padding-bottom: 24px; } }

/* ---------- 5. Specs and questions ---------- */
.specs { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 64px; padding-top: 96px; padding-bottom: 96px; border-top: 1px solid var(--rule); }
.sheet { margin: 0; }
.sheet div { display: grid; grid-template-columns: 128px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--rule); }
.sheet dt { color: var(--muted); font-size: 14px; }
.sheet dd { margin: 0; font-size: 14px; line-height: 24px; color: var(--body); }
.faq { grid-column: 2; }
@media (max-width: 960px) { .specs { grid-template-columns: 1fr; } .faq { grid-column: auto; } }

.site-footer { border-top: 1px solid var(--rule); padding: 32px var(--gutter); text-align: center; color: var(--muted); font-size: 12px; }



/* Cart as a toolbox (plugin pages): icon with a small count badge. */
.cart-link--tools { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: var(--ink); transition: background .2s, color .2s; }
.cart-link--tools:hover { background: rgba(236,233,226,.08); color: #fff; }
.cart-link--tools .toolbox { display: block; }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; display: grid; place-items: center;
  font-size: 9px; font-weight: 700; letter-spacing: 0; line-height: 1; color: #04110f; background: var(--signal); box-shadow: 0 0 8px rgba(63,224,138,.6); }
.cart-link--tools { grid-column: 3; justify-self: end; }
/* Commerce header cluster: account entry (sign in / gear) + cart, right-aligned. */
.header-actions { grid-column: 3; justify-self: end; display: inline-flex; align-items: center; }
button.cart-link--tools { border: 0; background: transparent; cursor: pointer; font: inherit; }
button.cart-link--tools:hover { background: rgba(236,233,226,.08); }

/* More demo samples: the list scrolls inside the input panel when it is taller than the space. */
.samples { flex: 0 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(120,220,200,.3) transparent; }
.sample { flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Specs: title row, a strip of four key facts, then "In the box" and "Questions" side by side ---------- */
.specs { --accent: var(--signal); display: block; padding-top: 112px; padding-bottom: 112px; }
.specs__top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; margin-bottom: 56px; }
.specs__top h2 { max-width: 640px; }
.specs__lede { margin: 0; max-width: 420px; justify-self: end; font-size: 16px; line-height: 24px; color: var(--body); }

/* Facts: read at a glance. Big values, small labels, thin rules between, a line of the plugin's colour on top. */
.facts { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 72px; border-bottom: 1px solid var(--rule); }
.facts::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 25%, transparent) 60%, var(--rule)); }
.facts div { display: flex; flex-direction: column; gap: 12px; padding: 32px 24px 32px 0; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.facts dt { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts dt::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.facts dd { margin: 0; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.1; font-weight: 600; font-stretch: 112%; letter-spacing: -.02em; color: var(--ink); }

/* Two balanced columns. */
.specs__cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 64px; align-items: start; }
.specs__h3 { margin: 0 0 16px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.inbox__list { list-style: none; margin: 0; padding: 0; }
.inbox__list li { position: relative; padding: 16px 0 16px 32px; border-top: 1px solid var(--rule); font-size: 16px; line-height: 24px; color: var(--ink); }
.inbox__list li:last-child { border-bottom: 1px solid var(--rule); }
.inbox__list li::before { content: ""; position: absolute; left: 0; top: 20px; width: 16px; height: 16px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent); }
.inbox__list li::after { content: ""; position: absolute; left: 5px; top: 24px; width: 5px; height: 8px; border: solid var(--accent); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.inbox__meta { margin: 20px 0 0; font-size: 13px; line-height: 20px; color: var(--muted); }
.specs__help { display: inline-block; margin-top: 24px; font-size: 14px; color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); padding-bottom: 2px; }
.specs__help:hover { border-bottom-color: var(--accent); }
.specs .faq { grid-column: auto; }
.specs .faq .row:first-of-type { border-top: 1px solid var(--rule); }

@media (max-width: 960px) {
  .specs__top { grid-template-columns: 1fr; margin-bottom: 40px; }
  .specs__lede { justify-self: start; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 56px; }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .specs__cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .specs { padding-top: 72px; padding-bottom: 72px; } .facts div { padding: 24px 12px 24px 0; } .facts div:nth-child(even) { padding-left: 12px; } }
.specs__top h2 { text-wrap: balance; }
.facts dd { font-size: clamp(20px, 2vw, 28px); white-space: nowrap; }
@media (max-width: 560px) { .facts dd { font-size: 18px; } }

/* ---------- Product pages: the background covers the whole page content. Its canvas stays on screen while you
   scroll through the page (sticky), then leaves with the last section, so the footer simply follows. ---------- */
.has-abg { position: relative; }
.has-abg > .abg { position: absolute; left: 0; right: 0; top: -72px; bottom: 0; height: auto; z-index: -2; pointer-events: none;
  background: #000; }
/* Fade at the end of the content: a small gradient overlay instead of a mask over the whole page (much cheaper). */
.has-abg > .abg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 240px; background: linear-gradient(transparent, #000); }
.has-abg > .abg .abg__canvas { position: sticky; top: 0; display: block; width: 100%; height: 100vh; height: 100lvh; }
.has-abg > .abg .abg__canvas { opacity: .55; }
/* With an animated background, a blurred header has to be recomputed every frame: use a solid header there. */
body:has(.has-abg) .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(rgba(0,0,0,.92), rgba(0,0,0,.8)); }

/* "Tune & export" note where the demo removed the tuning controls (they live in the plugin). */
.in-plugin { margin-top: 6px; padding: 10px 12px; border-radius: 8px; border: 1px dashed var(--glass-line); background: rgba(255,255,255,.02); }
.in-plugin .panel__title { margin: 0 0 4px; }
.in-plugin__text { margin: 0; font-size: 11px; line-height: 1.5; color: var(--glass-dim); }

/* ---- Intro: pitch + film + steps, centred at the top of the page ---- */
.intro { padding-top: 24px; padding-bottom: 88px; text-align: center; }
.intro__head { position: relative; max-width: 820px; margin: 0 auto; }
.intro__head::before { content: ""; position: absolute; inset: -48px -12% -28px; z-index: -1; pointer-events: none; background: radial-gradient(62% 130% at 50% 46%, rgba(2,6,15,.82) 0%, rgba(2,6,15,.55) 45%, rgba(2,6,15,0) 72%); }
.intro__eyebrow { display: inline-block; margin: 0 0 16px; font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--signal); }
.intro .product__title { font-size: clamp(28px, 3.8vw, 44px); line-height: 1.08; font-stretch: 108%; letter-spacing: -.025em; margin: 0; }
.intro__video { margin-top: 32px; max-width: min(760px, calc((100svh - 300px) * 16 / 9)); pointer-events: none; }
.intro .product__lede { max-width: 580px; margin: 0 auto; }
.intro__sub { max-width: 580px; margin: 40px auto 0; }
.intro__sub .steps__title { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--signal); margin: 0 0 12px; }

/* ---- Try it: the real plugin embedded, with the price ---- */
.try { padding-top: 88px; padding-bottom: 88px; border-top: 1px solid var(--rule); text-align: center; position: relative; }
.try__head { max-width: 680px; margin: 0 auto 36px; }
.try__head h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; font-weight: 600; font-stretch: 112%; letter-spacing: -.02em; margin: 0; }
.try__head p { font-size: 16px; line-height: 24px; color: var(--body); margin: 20px auto 0; max-width: 520px; }
.try__frame { max-width: 1120px; margin: 0 auto; border-radius: 16px; overflow: hidden; border: 1px solid rgba(63,224,138,.22); box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 30px 80px rgba(0,0,0,.5), 0 0 40px rgba(63,224,138,.08); background: #02060f; }
.plugin-frame { display: block; width: 100%; aspect-ratio: 1536 / 1024; border: 0; background: #02060f; }
.try__note { font-size: 12px; line-height: 16px; color: var(--muted); margin: 16px 0 0; }
.try__buy { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 36px; }
.try__buy .price { justify-content: center; }
.try__buy .price-links { margin: 0; }
@media (max-width: 760px) { .plugin-frame { aspect-ratio: 4 / 3; } .try__frame { border-radius: 10px; } }
