/* ═══════════════════════════════════════════════════════
    simpleRetro — Product Page Stylesheet

    Everything here comes from the mascot, as the plugin's does (RetroTheme.cpp in
    sdkv2/simpleRetro): ink outlines and hard shadows like stickers, her teal bandana
    and jacket, plum hair, cream headphones and coral earcups. Light is the plugin's
    "Daylight" scheme and dark its "Console" scheme.
    ═══════════════════════════════════════════════════════ */

/* ── Fonts (Inter, for the shared header, is in site-header.css) ── */
@font-face {
    font-family: "Rubik";
    font-style: normal;
    font-weight: 300 900;
    font-display: block;
    src: url("/fonts/rubik-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Rubik Mono One";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("/fonts/rubik-mono-one-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    color-scheme: light dark;

    --font-display: "Rubik Mono One", "Arial Black", sans-serif;
    --font-body: "Rubik", -apple-system, "Segoe UI", Roboto, sans-serif;

    --bg: #eee0bf;
    --panel: #f8efd9;
    --panel-raised: #e6d5ad;
    --ink: #292432;
    --text: #292432;
    --muted: #5c5260;
    --dim: #8a7f80;
    --accent: #e8704a;
    --accent-dark: #b0502d;
    --accent-light: #f7a483;
    --accent-text: #292432;
    --teal: #477c80;
    --teal-dark: #2f5a5d;
    --teal-light: #6aa3a6;
    --plum: #473444;
    --cream: #fff4d8;
    --cream-dark: #c9b48c;
    --track: #dccaa2;
    --screen: #2f5a5d;
    --screen-text: #d8fff8;
    --stage: #e9d7ae;
    --dots: rgba(41, 36, 50, 0.09);
    --bubble: #ffffff;
    --bubble-text: #292432;
    --echo: #6aa3a6;
    --wordmark-shadow: #f7a483;
    --tag-text: #eee0bf;

    --radius: 12px;
    --line: 2px;
    --shadow: 3px 4px 0 var(--ink);
    --max-w: 1120px;
    --gutter: 20px;
    --pop: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ok: #2f5a5d;
    --link: #2f5a5d;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #231e2b;
        --panel: #2f2839;
        --panel-raised: #3d3449;
        --ink: #14111a;
        --text: #eee0bf;
        --muted: #bcb09a;
        --dim: #867c70;
        --accent: #ed7952;
        --accent-dark: #b95535;
        --teal-light: #7fb9ba;
        --cream: #eee0bf;
        --cream-dark: #a8977a;
        --track: #453b4f;
        --screen: #1f3b3e;
        --screen-text: #bfeee6;
        --stage: #282231;
        --dots: rgba(8, 6, 12, 0.45);
        --bubble: #fff7e2;
        --echo: #7fb9ba;
        --wordmark-shadow: #14111a;
        --ok: #9fd4cf;
        --link: #9fd4cf;
    }
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* No page scrollbar, as on simpleSoundbank's page. Scrolling works as usual. */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    /* A faint grid of dots, like a sticker sheet. */
    background-image:
        radial-gradient(circle, var(--dots) 1px, transparent 1.6px),
        radial-gradient(circle, var(--dots) 1px, transparent 1.6px);
    background-size: 16px 16px;
    background-position: 0 0, 8px 8px;
    overflow-x: hidden;
}

img, svg, canvas { display: block; }
a { color: inherit; }
strong { font-weight: 700; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 3px;
}

/* ── Type ── */
h1, h2, .price-amount {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.01em;
    word-spacing: -0.3em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.35rem); }

h3 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Pixel lettering: the letters are SVG, sized in whole-ish pixels. */
.pixel-text {
    --pixel: 2px;
    display: inline-block;
    width: calc(var(--columns) * var(--pixel));
    height: calc(var(--rows) * var(--pixel));
    vertical-align: middle;
    shape-rendering: crispEdges;
}

[data-pixel]:not(.is-pixelated) {
    font-family: var(--font-display);
    font-size: 0.72rem;
    text-transform: lowercase;
}

/* With scripts on, the label waits for its pixel letters instead of flashing
   as plain text first. */
.js [data-pixel]:not(.is-pixelated) {
    visibility: hidden;
}

/* ── Stickers, keys and tags ── */
.sticker {
    background: var(--panel);
    border: var(--line) solid var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* The belt player's chunky keys. They sit up on their shadow and press flat into it. */
.button, .key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font: 700 1rem/1.2 var(--font-body);
    color: var(--accent-text);
    text-decoration: none;
    white-space: nowrap;
    padding: 13px 22px 12px;
    background: var(--cream);
    border: var(--line) solid var(--ink);
    border-radius: 10px;
    box-shadow: 0 4px 0 var(--ink);
    cursor: pointer;
    user-select: none;
    transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.15s ease;
}

.button:hover, .key:hover { background: #fffaf0; }
.button:active, .key:active, .key[aria-pressed="true"] {
    transform: translateY(3px);
    box-shadow: 0 1px 0 var(--ink);
}

.button-primary { background: var(--accent); }
.button-primary:hover { background: var(--accent-light); }

.btn-icon { width: 14px; height: 14px; flex: none; }

.tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 12px;
    margin-right: 12px;
    color: var(--tag-text);
    background: var(--teal);
    border: 1.5px solid var(--ink);
    border-radius: 4px;
}

/* A little knot of bandana tails at the right-hand end. */
.tag::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    width: 12px;
    height: 20px;
    margin: -10px 0 0 -2px;
    background: var(--teal-dark);
    clip-path: polygon(0 20%, 100% 0, 70% 50%, 100% 100%, 0 80%);
    z-index: -1;
}

.tag .pixel-text { --pixel: 2px; }

/* ── Wordmark (hero and plugin cards; the header is site-header.css) ── */
.wordmark { width: 172px; height: auto; }
.wordmark-shadow { fill: var(--wordmark-shadow); }
.wordmark-face { fill: var(--text); }
.wordmark-fx { fill: var(--accent); }

/* ── Layout ── */
main > section {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 72px var(--gutter);
}

.section-header {
    display: grid;
    justify-items: start;
    gap: 14px;
    margin-bottom: 36px;
    max-width: 760px;
}

.section-text { color: var(--muted); font-size: 1.05rem; }

/* ── Stages: where she stands ── */
.stage {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    font: inherit;
    color: inherit;
    background: var(--stage);
    border: var(--line) solid var(--ink);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    cursor: pointer;
    isolation: isolate;
    -webkit-tap-highlight-color: transparent;
}

/* Behind her, a big octagon like her earcups, and her shadow on the floor. */
.stage::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 52%;
    width: 76%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    background: var(--teal);
    opacity: 0.22;
    clip-path: polygon(29.3% 0, 70.7% 0, 100% 29.3%, 100% 70.7%, 70.7% 100%, 29.3% 100%, 0 70.7%, 0 29.3%);
    z-index: -1;
}

.stage::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(3% + 4px);
    width: 38%;
    height: 5%;
    transform: translateX(-47%);
    background: var(--ink);
    opacity: 0.3;
    border-radius: 50%;
    z-index: -1;
}

/* Once she's live, her canvas draws these, following her figure. */
.stage.is-live::before, .stage.is-live::after { display: none; }

.stage-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Until her model loads, or if it can't, her hero render stands in. */
.stage-poster {
    position: absolute;
    left: 50%;
    bottom: 3%;
    height: 88%;
    width: auto;
    transform: translateX(-50%);
    image-rendering: pixelated;
    transition: opacity 0.35s ease;
}

.stage.is-live .stage-poster { opacity: 0; }

/* ── Hero ── */
/* The hero's layout (columns, padding, spacing) is the shared product-hero.css. */
.hero-copy { position: relative; }

.hero-text { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.hero-text strong { color: var(--text); }
.hero-note { font-size: 0.92rem; color: var(--dim); font-weight: 500; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 14px;
}

/* ── Launch offer: the blue menu window of a late-90s console RPG. Our own take on the
   genre's look: a diagonal blue gradient, a pale bevelled frame and shadowed white text. ── */
.offer-window {
    --window-top: #4256c8;
    --window-bottom: #0b1160;
    --window-frame: #e4e7f2;
    --window-text: #ffffff;
    --window-text-shadow: #0a0d3a;
    position: relative;
    display: grid;
    gap: 6px;
    padding: 12px 16px 12px;
    color: var(--window-text);
    text-decoration: none;
    text-shadow: 2px 2px 0 var(--window-text-shadow);
    background: linear-gradient(160deg, var(--window-top) 0%, #2433a0 45%, var(--window-bottom) 100%);
    border: 3px solid var(--window-frame);
    border-radius: 8px;
    /* A dark rim inside and out makes the pale frame read as raised. */
    box-shadow: 0 0 0 2px #2a2c48, inset 0 0 0 2px #8f95b8, 4px 5px 0 2px rgba(20, 17, 26, 0.55);
}

.offer-window .pixel-text { filter: drop-shadow(2px 2px 0 var(--window-text-shadow)); }
.offer-window .button { text-shadow: none; }

.offer-window > * { position: relative; }
.offer-window .pixel-text { --pixel: 2px; }

.offer-window-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--window-text);
}

/* The blinking "more text" arrow at the end of a game's line. */
.offer-cursor {
    width: 10px;
    height: 8px;
    background: var(--window-text);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    animation: offer-cursor 0.9s steps(1) infinite;
}

@keyframes offer-cursor { 50% { opacity: 0; } }

.offer-window-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
}

.offer-now { color: #ffffff; }
.offer-window .offer-now .pixel-text { --pixel: 4px; }

.offer-was {
    position: relative;
    color: #b9c0e8;
    text-decoration: none;
}

/* The pixel letters are SVG, so the strike is drawn: one chunky coral bar. */
.offer-was::after {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    top: 50%;
    height: 3px;
    margin-top: -2px;
    background: var(--accent);
    transform: rotate(-8deg);
}

.offer-save {
    padding: 4px 7px;
    text-shadow: none;
    color: var(--ink);
    background: var(--accent);
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    box-shadow: 2px 2px 0 var(--ink);
}

.offer-window-small {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--window-text);
}

.offer-save .pixel-text { filter: none; }

.offer-window-small .offer-save { margin-right: 8px; }

.offer-window-trial {
    display: flex;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: #c5fbf5;
    padding-top: 4px;
    margin-top: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-note strong { color: var(--text); font-weight: 700; }

/* In the hero it pops up over the stage's bottom corner, clear of her and her speech
   bubble, like a dialogue window. It takes no room of its own. */
.hero-visual { position: relative; }

.offer-window-hero {
    position: absolute;
    z-index: 2;
    left: -36px;
    bottom: -40px;
    width: max-content;
    transition: transform 0.18s var(--pop);
}

.offer-window-hero[hidden] { display: none; }
.offer-window-hero:hover { transform: scale(1.03); }
.offer-window-hero:active { transform: scale(0.99); }

.stage-hero { height: clamp(420px, 64vh, 620px); }

/* The other downloads, as in simpleSoundbank's page. */
.other-downloads { position: relative; }
.other-downloads > summary { list-style: none; }
.other-downloads > summary::-webkit-details-marker { display: none; }
.other-downloads-chevron { width: 12px; height: 8px; transition: transform 0.15s ease; }
.other-downloads[open] .other-downloads-chevron { transform: rotate(180deg); }

.other-downloads-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 5;
    min-width: 100%;
}

.other-downloads-menu {
    display: grid;
    gap: 10px;
    padding: 12px;
    background: var(--panel);
    border: var(--line) solid var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.other-downloads-menu .button { width: 100%; justify-content: flex-start; }

.platform-download { display: grid; gap: 6px; }

.linux-vst3-alt {
    font-size: 0.85rem;
    color: var(--muted);
    padding-left: 4px;
}

.unlock-next {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 16px;
    padding: 10px 40px 12px 16px;
    max-width: 560px;
}

.unlock-next[hidden] { display: none; }
.unlock-next .offer-window-title { grid-column: 1 / -1; }
.unlock-next-text { font-size: 0.95rem; line-height: 1.45; }
.unlock-next-text strong { color: #ffffff; }
.unlock-next-text s { color: #b9c0e8; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

/* Once a download starts the offer takes the buttons' place, so nothing moves and
   nothing needs scrolling to. Closing it brings them back. */
.hero-copy:has(.unlock-next:not([hidden])) :is(.hero-actions, .hero-note),
.download-inner:has(.unlock-next:not([hidden])) .download-actions {
    display: none;
}

.unlock-next-dismiss {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    color: var(--window-text);
    background: none;
    border: 0;
    cursor: pointer;
}

.unlock-next-dismiss svg { width: 10px; height: 10px; }

/* ── Screenshots ── */
.shot-viewer { display: grid; gap: 22px; }

.shot-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.key-tab { padding: 11px 20px 10px; min-width: 96px; }
.key-tab[aria-selected="true"] {
    background: var(--accent);
    transform: translateY(3px);
    box-shadow: 0 1px 0 var(--ink);
}

.shot { display: grid; gap: 16px; }
.shot[hidden] { display: none; }

.shot picture {
    background: var(--stage);
    border: var(--line) solid var(--ink);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.shot img {
    display: block;
    width: 100%;
    height: auto;
}

.shot figcaption { color: var(--muted); max-width: 46em; }

/* The trailer tab: a click-to-play YouTube embed framed like the screenshots */
.shot .video-facade,
.shot iframe {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--stage);
    border: var(--line) solid var(--ink);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.shot .video-facade img { height: 100%; object-fit: cover; }

.video-play {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 72px;
    height: 72px;
    transform: translate(-50%, -50%);
    border: var(--line) solid var(--ink);
    border-radius: 50%;
    background: var(--accent);
    box-shadow: var(--shadow);
    transition: transform 180ms var(--pop);
}

.video-play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 13px 0 13px 22px;
    border-color: transparent transparent transparent var(--cream);
}

.video-facade:hover .video-play,
.video-facade:focus-visible .video-play {
    transform: translate(-50%, -50%) scale(1.08);
}

/* ── Plugins ── */
.plugin-grid, .pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.plugin-card {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 28px;
}

.plugin-name { width: auto; height: 34px; }
.plugin-kind {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--accent-dark);
    text-transform: uppercase;
}

.ticks {
    list-style: none;
    display: grid;
    gap: 8px;
    color: var(--muted);
}

.ticks li {
    position: relative;
    padding-left: 26px;
}

/* A little pixel tick, or a cross. */
.ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 14px;
    height: 12px;
    background: var(--teal);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 6'%3E%3Cpath d='M6 0h1v1H6zM5 1h2v1H5zM0 2h1v1H0zM4 2h2v1H4zM0 3h2v1H0zM3 3h2v1H3zM1 4h3v1H1zM2 5h1v1H2z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 6'%3E%3Cpath d='M6 0h1v1H6zM5 1h2v1H5zM0 2h1v1H0zM4 2h2v1H4zM0 3h2v1H0zM3 3h2v1H3zM1 4h3v1H1zM2 5h1v1H2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ── Features ── */
.feature-grid, .faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.feature-card {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 24px;
}

.feature-card p { color: var(--muted); font-size: 0.97rem; }

.feature-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 4px;
    color: var(--ink);
    background: var(--accent);
    border: var(--line) solid var(--ink);
    border-radius: 10px;
}

.feature-card:nth-child(3n + 2) .feature-icon { background: var(--teal-light); }
.feature-card:nth-child(3n) .feature-icon { background: var(--cream); }
.feature-icon svg { width: 30px; height: 30px; }

/* ── Pricing ── */
.pricing-grid { max-width: 860px; }

.price-card {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 28px;
}

.price-card .ticks { margin-bottom: 8px; }
.price-tier .pixel-text { --pixel: 3px; }
.price-amount { font-size: 3rem; line-height: 1; }
.price-pence { font-size: 1.6rem; vertical-align: top; }
.price-was {
    margin-right: 0.15em;
    font-size: 1.6rem;
    color: var(--dim);
    text-decoration-thickness: 3px;
}
.price-card-highlight .price-was { color: var(--plum); opacity: 0.6; }
.price-desc { color: var(--muted); }
.price-btn { justify-self: start; }

.price-card-highlight {
    background: var(--cream);
    color: var(--ink);
    transform: rotate(-0.6deg);
}

/* The cream card stays light in the dark scheme, so its text stays dark too. */
.price-card-highlight .price-desc,
.price-card-highlight .ticks { color: var(--plum); }

.pricing-note { margin-top: 26px; color: var(--muted); font-size: 0.95rem; }

/* ── Download ── */
.download-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 28px;
    align-items: stretch;
}

.stage-download { min-height: 380px; }

.download-inner {
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 18px;
    padding: 36px;
}

.download-inner > p:not(.tag) { color: var(--muted); max-width: 36em; }

.download-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
}

/* ── FAQ ── */
.faq-card {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 24px;
}

.faq-card p { color: var(--muted); font-size: 0.97rem; }
.faq-card a { color: var(--link); font-weight: 700; }

.purchase-note {
    padding-top: 0 !important;
    color: var(--muted);
    font-size: 0.92rem;
}

/* ── Footer, with her peeking over it ── */
/* The footer itself is site-footer.css. She peeks over its top edge, so it
   needs room above it and to be her positioning box. */
.site-footer {
    position: relative;
    margin-top: 150px;
}

.stage-peek {
    position: absolute;
    bottom: calc(100% + var(--line));
    right: max(var(--gutter), calc((100% - var(--max-w)) / 2 + 60px));
    width: 190px;
    height: 150px;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.stage-peek::before, .stage-peek::after { display: none; }

/* ── Stickers slap onto the page as they scroll in ── */
[data-reveal] {
    opacity: 0;
    transform: translateY(14px) rotate(-1.2deg) scale(0.97);
    transition: opacity 0.35s ease, transform 0.45s var(--pop);
}

[data-reveal]:nth-child(even) { transform: translateY(14px) rotate(1.2deg) scale(0.97); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.price-card-highlight[data-reveal].is-visible { transform: rotate(-0.6deg); }

/* ── Waitlist (the coming-soon page) ── */

.waitlist-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    width: min(100%, 520px);
    align-items: center;
}

.waitlist-label,
.waitlist-status { grid-column: 1 / -1; }

.waitlist-label { font-weight: 700; }

.waitlist-form input {
    min-width: 0;
    width: 100%;
    font: 500 1rem/1.2 var(--font-body);
    color: var(--ink);
    background: var(--cream);
    border: var(--line) solid var(--ink);
    border-radius: 10px;
    padding: 13px 16px 12px;
    box-shadow: 0 4px 0 var(--ink);
}

.waitlist-form input::placeholder { color: #8a7f80; }
.waitlist-form.is-invalid input { background: #fff1ea; }

.waitlist-status { min-height: 1.4em; font-weight: 500; }
.waitlist-status.is-error { color: var(--accent-dark); }
.waitlist-status.is-success { color: var(--ok); }

.waitlist-note { color: var(--dim); font-size: 0.92rem; max-width: 38em; }
.waitlist-note a { color: var(--link); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-reveal], [data-reveal]:nth-child(even) { transform: none; transition: opacity 0.2s ease; }
    .offer-cursor { animation: none; }
}

/* ── Smaller screens ── */
@media (max-width: 960px) {
    .feature-grid, .faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .download-layout { grid-template-columns: minmax(0, 1fr); }
    .stage-hero { height: clamp(360px, 60vh, 480px); }
    /* One column: the window sits above her stage instead, overlapping its edge. */
    .hero-visual { display: flex; flex-direction: column; align-items: flex-start; }
    .offer-window-hero { position: relative; left: -4px; bottom: auto; margin-bottom: -14px; }
    .stage-download { min-height: 320px; order: 1; }
    .plugin-grid, .pricing-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
    :root { --gutter: 16px; }
    body { font-size: 16px; }
    main > section { padding-top: 52px; padding-bottom: 52px; }
    .wordmark { width: 140px; }
    .feature-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-actions > * { flex: 1 1 100%; }
    .hero-actions .button { width: 100%; }
    .waitlist-form { grid-template-columns: minmax(0, 1fr); }
    .waitlist-form .button { width: 100%; }
    .other-downloads-panel { position: static; margin-top: 10px; }
    .download-inner, .plugin-card, .price-card { padding: 22px; }
    .stage-peek { width: 150px; height: 120px; }
    .unlock-next { grid-template-columns: minmax(0, 1fr); }
    .unlock-next .button { width: 100%; }
    .site-footer { margin-top: 120px; }
}

/* ── Song demo (song.js) ── */
/* In the hero, a small link that starts the song. */
.song-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 7px 14px 7px 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    text-decoration: none;
    background: var(--panel);
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    box-shadow: 2px 2px 0 var(--ink);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.song-chip:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.song-chip:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }

.song-chip-icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    color: var(--ink);
    background: var(--accent);
    border: 1.5px solid var(--ink);
    border-radius: 50%;
}

.song-chip-icon svg { width: 8px; height: 11px; margin-left: 2px; }
.song-chip.is-playing .song-chip-icon { background: var(--teal-light); }

.song-chip-time { color: var(--dim); font-weight: 500; font-variant-numeric: tabular-nums; }

/* The player: a small sticker in the corner that stays while you scroll. */
.song-player {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 50;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    width: min(340px, calc(100vw - 32px));
    padding: 10px 10px 10px 12px;
    animation: song-player-in 0.25s var(--pop);
}

.song-player[hidden] { display: none; }

@keyframes song-player-in {
    from { transform: translateY(16px); opacity: 0; }
}

.song-player-toggle {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: var(--ink);
    background: var(--accent);
    border: var(--line) solid var(--ink);
    border-radius: 50%;
    box-shadow: 0 2px 0 var(--ink);
    cursor: pointer;
}

.song-player-toggle svg { width: 12px; height: 16px; }
.song-player-toggle .song-icon-play { margin-left: 3px; }
.song-player .song-icon-pause,
.song-player.is-playing .song-icon-play { display: none; }
.song-player.is-playing .song-icon-pause { display: block; }

.song-player-info { display: grid; gap: 1px; min-width: 0; }
.song-player-title { font-weight: 700; font-size: 0.9rem; line-height: 1.2; }
.song-player-credit { font-size: 0.75rem; color: var(--muted); line-height: 1.3; }

.song-player-seek {
    --progress: 0%;
    width: 100%;
    height: 14px;
    margin-top: 4px;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    cursor: pointer;
}

.song-player-seek::-webkit-slider-runnable-track {
    height: 6px;
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    background: linear-gradient(to right, var(--teal) var(--progress), var(--track) var(--progress));
}

.song-player-seek::-moz-range-track {
    height: 6px;
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    background: linear-gradient(to right, var(--teal) var(--progress), var(--track) var(--progress));
}

.song-player-seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    margin-top: -4.5px;
    background: var(--cream);
    border: 1.5px solid var(--ink);
    border-radius: 2px;
}

.song-player-seek::-moz-range-thumb {
    width: 10px;
    height: 10px;
    background: var(--cream);
    border: 1.5px solid var(--ink);
    border-radius: 2px;
}

.song-player-time { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 2.6em; text-align: right; }

.song-player-close {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: var(--muted);
    background: none;
    border: 0;
    cursor: pointer;
}

.song-player-close svg { width: 10px; height: 10px; }
.song-player-close:hover { color: var(--text); }

@media (max-width: 640px) {
    .song-player { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .song-player { animation: none; }
}
