@font-face {
    font-family: Bricolage;
    src: url("fonts/bricolage.woff2") format("woff2");
    font-weight: 400 800;
    font-display: swap;
}

@font-face {
    font-family: Inter;
    src: url("fonts/inter.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
}

@font-face {
    font-family: Caveat;
    src: url("fonts/caveat-click-here.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}

:root {
    color-scheme: light;
    --plum: #1b1428;
    --ivory: #fff4e8;
    --tangerine: #ff6846;
    --lavender: #d7c6ff;
    --ember: #be351c;
    --muted: #63566e;
    --line: #e2d4d7;
    --display: Bricolage, system-ui, sans-serif;
    --body: Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--plum); background: var(--ivory); font: 400 1rem/1.6 var(--body); }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #6b3db8; outline-offset: 4px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: .96; letter-spacing: -.045em; }
h2 { font-size: clamp(2.6rem, 5.8vw, 5.3rem); text-wrap: balance; }
h3 { font-size: 1.65rem; line-height: 1.12; }
section[id] { scroll-margin-top: 1.5rem; }
.wrap { width: min(100% - 3.5rem, 76rem); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; top: .5rem; left: .5rem; z-index: 3; padding: .65rem 1rem; background: var(--ivory); }

.nav { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .25rem; flex-shrink: 0; }
.brand-icon { width: 2.38rem; height: 2.38rem; }
.brand-wordmark { width: auto; height: 2rem; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.65rem; }
.nav-links a { text-decoration: none; font-size: .94rem; font-weight: 600; }
.nav-links a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .26em; }
.button { display: inline-flex; min-height: 3rem; padding: .66rem 1.15rem; border: 1.5px solid var(--plum); border-radius: .8rem; align-items: center; justify-content: center; text-align: center; text-decoration: none; font-weight: 650; cursor: pointer; }
.button:disabled, .text-link:disabled, .effect-option:disabled { cursor: default; opacity: .65; }
.button-outline { min-height: 2.65rem; padding: .45rem .95rem; }
.button-outline:hover { background: var(--lavender); }
.button-plum { color: var(--ivory); background: var(--plum); }
.button-plum:hover:not(:disabled) { background: #44305f; }
.text-link { appearance: none; border: 0; background: transparent; padding: .4rem .1rem; font-weight: 650; text-decoration: underline; text-underline-offset: .28em; cursor: pointer; }
.text-link:hover:not(:disabled) { text-decoration-thickness: .16em; }

.hero { background: var(--lavender); border-block: 1px solid #b9a2ee; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr); align-items: center; gap: clamp(2.25rem, 5vw, 5rem); padding-block: clamp(3.35rem, 8vw, 7.7rem) clamp(2.75rem, 7vw, 6.7rem); }
.hero-product { display: flex; align-items: center; gap: .48rem; margin-bottom: .85rem; font-size: .94rem; font-weight: 650; }
.hero-product img { object-fit: contain; }
h1 { font-size: clamp(3.4rem, 6vw, 6rem); font-weight: 800; line-height: .92; text-wrap: balance; }
.hero-copy > p { max-width: 34ch; font-size: clamp(1.02rem, 1.7vw, 1.22rem); margin-block: 1.5rem 1.6rem; }
.hero-actions, .play-actions { display: flex; align-items: center; gap: .65rem 1.08rem; flex-wrap: wrap; }
.hero-figure { min-width: 0; }
.film-shell { overflow: hidden; border: 2px solid var(--plum); border-radius: 1.3rem; background: #171125; box-shadow: .48rem .52rem 0 var(--plum); }
.film-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 2.65rem; padding-inline: .75rem; background: var(--ivory); border-bottom: 2px solid var(--plum); font-size: .86rem; font-weight: 600; white-space: nowrap; }
.film-bar b { color: var(--ember); }
.lights { display: flex; align-items: center; gap: .32rem; }
.lights i { width: .56rem; height: .56rem; border-radius: 50%; background: #f36661; }
.lights i:nth-child(2) { background: #efb04e; }
.lights i:nth-child(3) { background: #5da976; }
.hero-video { width: 100%; aspect-ratio: 8/5; background: #1e1533; }
.film-caption { display: flex; align-items: center; justify-content: flex-end; gap: .44rem; margin: 1.1rem .1rem 0; font-size: .84rem; font-weight: 600; }
.caption-dot { width: .5rem; height: .5rem; border-radius: 100%; background: var(--ember); }

.playground { padding-block: clamp(4.5rem, 9.5vw, 8rem) clamp(4.1rem, 8vw, 7rem); }
.section-intro { margin: 0 auto clamp(1.8rem, 4vw, 3.2rem); text-align: center; }
.section-intro p { margin-top: .95rem; font-size: 1.09rem; }
.play-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(16rem, .8fr); gap: clamp(2.2rem, 6vw, 5rem); align-items: center; }
.monitor { min-width: 0; margin-bottom: 1rem; }
.monitor-frame { padding: .63rem; background: #21182c; border-radius: 1.25rem 1.25rem .4rem .4rem; border: 1px solid #392950; overflow: hidden; }
.desktop-bar { display: flex; gap: .5rem; justify-content: space-between; align-items: center; min-height: 1.75rem; padding: .15rem .55rem; background: #483563; color: var(--ivory); font-size: .74rem; border-radius: .55rem .55rem 0 0; }
.desktop-bar > span:first-child { display: flex; gap: .8rem; }
.desktop-screen {
    /* Centers of the native traffic lights in the 960 × 600 preview frames. */
    --close-x: 24.64%;
    --minimize-x: 27.03%;
    --traffic-y: 28.75%;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    container-type: inline-size;
    background: #221732;
}
.desktop-screen video { width: 100%; height: auto; aspect-ratio: 8/5; }
.mock-traffic { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.mock-traffic[hidden] { display: none; }
.traffic {
    position: absolute;
    top: var(--traffic-y);
    translate: -50% -50%;
    display: grid;
    place-items: center;
    width: 2.39cqw;
    height: max(24px, 3.2cqw);
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
}
.traffic-close { left: var(--close-x); --traffic-color: #ff615e; }
.traffic-minimize { left: var(--minimize-x); --traffic-color: #ffc553; }
.traffic span {
    display: grid;
    place-items: center;
    width: 1.66cqw;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--traffic-color);
    box-shadow: inset 0 0 0 .5px #0003;
    color: transparent;
    font: 800 1.34cqw/1 system-ui, sans-serif;
}
.mock-traffic:hover .traffic span,
.traffic:focus-visible span { color: #39171b; }
.traffic:active span { filter: brightness(.75); }
.traffic:focus-visible { outline-color: var(--ivory); outline-offset: 0; border-radius: .3rem; }
.click-hint {
    position: absolute;
    z-index: 2;
    top: calc(var(--traffic-y) - 1.65cqw);
    left: var(--close-x);
    width: clamp(30px, 7cqw, 56px);
    translate: -19% -100%;
    color: #fff;
    pointer-events: none;
    filter: drop-shadow(0 1px 2px #10071b80);
}
.click-hint svg { display: block; width: 100%; }
.click-hint span {
    position: absolute;
    top: -.48em;
    left: 91%;
    rotate: -7deg;
    font: 600 clamp(17px, 4.2cqw, 29px)/1 Caveat, "Bradley Hand", cursive;
    white-space: nowrap;
}
.desktop-screen:not([data-preview-state=ready]) .click-hint { display: none; }
.mock-dock { position: absolute; bottom: 3%; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: .43rem; padding: .22rem .45rem; border: 1px solid #b195d26e; border-radius: .68rem; background: #a48ac23d; pointer-events: none; }
.mock-dock i { width: clamp(.85rem, 2.5vw, 1.65rem); aspect-ratio: 1; border-radius: 29%; background: #c9acf5; }
.mock-dock img { width: clamp(1.05rem, 3vw, 2.05rem); height: auto; }
.mock-dock i:nth-child(2) { background: #ee876d; }
.mock-dock i:last-of-type { background: #83b9df; }
.dock-window {
    display: grid;
    place-items: center;
    width: clamp(28px, 5.5cqw, 42px);
    height: max(24px, 3.8cqw);
    padding: 0 0 0 .34rem;
    border: 0;
    border-left: 1px solid #b195d288;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
}
.dock-window[hidden] { display: none; }
.dock-window span {
    width: 100%;
    aspect-ratio: 1.78;
    border: 1px solid #bfa7e5;
    border-radius: .22rem;
    background: center / 176% auto no-repeat var(--window-image), #353047;
    box-shadow: 0 2px 4px #10071b80;
    animation: dock-arrive .25s cubic-bezier(.2, .75, .25, 1) both;
}
.dock-window:focus-visible { outline-color: var(--ivory); outline-offset: 1px; }
@keyframes dock-arrive {
    from { transform: translateY(-10px) scale(.8); opacity: 0; }
    to { transform: none; opacity: 1; }
}
.monitor-lip { height: .95rem; background: #544164; border: 1px solid #392950; border-radius: 0 0 .72rem .72rem; }
.monitor-foot { width: 23%; height: 1.48rem; margin-inline: auto; background: #544164; clip-path: polygon(18% 0, 82% 0, 100% 90%, 100% 100%, 0 100%, 0 90%); }
.effect-list { margin-top: 1.15rem; display: flex; gap: .52rem; flex-wrap: wrap; }
.effect-option { display: inline-flex; gap: .5rem; align-items: center; padding: .5rem .65rem; border: 1px solid #a798b1; border-radius: .64rem; background: var(--ivory); font-size: .91rem; font-weight: 600; cursor: pointer; text-align: left; }
.effect-option:hover { border-color: var(--plum); background: #eee1fa; }
.effect-option[aria-pressed=true] { border-color: var(--plum); box-shadow: inset 0 0 0 1px var(--plum); background: var(--lavender); }
.effect-dot { width: .68rem; height: .68rem; border-radius: 50%; background: #597dbc; flex: none; }
.effect-dot.burn { background: #d95035; }
.effect-dot.space { background: #6b40a5; }
.effect-dot.flight { background: #347b62; }
.effect-dot.party { background: #bd4886; }
.effect-edition { color: var(--muted); font-size: .73rem; }
.effect-detail { max-width: 36ch; min-height: 3.2em; margin-block: 1.15rem .85rem; color: var(--muted); }

.privacy { background: var(--plum); color: var(--ivory); }
.privacy-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(2.4rem, 8vw, 7rem); padding-block: clamp(4rem, 8vw, 7rem); }
.privacy h2 { text-wrap: initial; }
.privacy-copy > p { max-width: 40ch; margin-top: 1.2rem; font-size: clamp(1rem, 1.6vw, 1.18rem); }
.privacy-copy .privacy-note { color: var(--lavender); font-size: .96rem; }
.permission-slip { background: var(--ivory); color: var(--plum); border-radius: 1.15rem; padding: clamp(1.35rem, 4vw, 2.45rem); box-shadow: .44rem .44rem 0 var(--tangerine); }
.permission-slip dl { margin-top: 1.2rem; }
.permission-slip dl > div { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.permission-slip dt { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.permission-slip dd { margin: .15rem 0 0 2.2rem; }
.permission-icon { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: .38rem; background: var(--lavender); font-weight: 600; }
.permission-slip > p { margin-top: 1rem; color: var(--muted); font-size: .94rem; }

.pricing { padding-block: clamp(4rem, 8vw, 7.5rem) 0; }
.pricing-box { display: grid; grid-template-columns: 1fr minmax(13rem, .58fr); gap: 1.8rem 3rem; align-items: center; background: var(--tangerine); padding: clamp(1.65rem, 5.5vw, 4.65rem); border: 2px solid var(--plum); border-radius: 1.35rem; box-shadow: .42rem .45rem 0 var(--plum); }
.pricing-box h2 { text-wrap: initial; }
.pricing-box h2 + p { max-width: 36ch; margin-top: 1rem; font-weight: 550; }
.price-side { padding-left: clamp(1.4rem, 4vw, 3.5rem); border-left: 1px solid #813525; display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; }
.price { font: 800 clamp(1.75rem, 3.6vw, 3.3rem)/1.01 var(--display); letter-spacing: -.045em; }
.price-pending { font-size: clamp(1.6rem, 3.05vw, 2.5rem); }
.price-side > span { font-size: .88rem; font-weight: 600; }

.editions-intro { text-align: left; }
.pricing-devices { margin: 0 0 1.75rem; min-width: 0; padding: 0; border: 0; }
.pricing-devices legend { padding: 0; margin-bottom: .5rem; font-weight: 700; }
.device-options { display: flex; flex-wrap: wrap; gap: .45rem; }
.device-options label { position: relative; cursor: pointer; }
.device-options span { display: block; padding: .5rem .85rem; border: 1.5px solid var(--plum); border-radius: .65rem; font-weight: 650; }
.device-options input:checked + span { background: var(--plum); color: var(--ivory); }
.device-options input:focus-visible + span { outline: 3px solid #6b3db8; outline-offset: 3px; }
.pricing-devices p { margin-top: .55rem; color: var(--muted); font-size: .92rem; }
.edition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.15rem, 3vw, 2rem); }
.edition-card { display: flex; flex-direction: column; gap: .9rem; align-items: flex-start; padding: clamp(1.4rem, 4vw, 3rem); border: 2px solid var(--plum); border-radius: 1.35rem; background: var(--tangerine); box-shadow: .36rem .39rem 0 var(--plum); }
.edition-card.edition-pro { background: var(--lavender); }
.edition-card h3 { font-size: clamp(2rem, 4vw, 3rem); }
.edition-card > p { max-width: 40ch; }
.edition-card ul { margin: 0 0 .45rem; padding-left: 1.2em; }
.edition-card li + li { margin-top: .35rem; }
.edition-offers { margin-top: auto; }
.edition-action { display: flex; flex-wrap: wrap; gap: .75rem 1.1rem; align-items: center; }
.edition-action small { font: 650 .8rem/1 var(--body); letter-spacing: 0; }
.pricing:not(:has(input[value="3"]:checked)) .edition-action[data-devices="3"],
.pricing:has(input[value="3"]:checked) .edition-action[data-devices="1"] { display: none; }
.edition-note { margin-top: 1.45rem; }

.terms { max-width: 48rem; padding-block: clamp(2.5rem, 7vw, 6rem); }
.terms h1 { font-size: clamp(2.6rem, 7vw, 4.7rem); max-width: none; text-wrap: balance; }
.terms h2 { font-size: clamp(1.65rem, 4vw, 2.45rem); text-wrap: initial; }
.terms section { margin-top: 2rem; }
.terms p { margin-top: .9rem; }

.faq { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 1.7rem 4rem; padding-block: clamp(4.5rem, 9vw, 8rem); }
.faq h2 { text-wrap: initial; }
.faq-list { border-top: 1px solid #c9b9cf; }
details { border-bottom: 1px solid #c9b9cf; }
summary { display: grid; grid-template-columns: 1fr auto; gap: .9rem; align-items: center; padding: 1.1rem .15rem; font-size: 1.04rem; line-height: 1.4; font-weight: 650; list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary > span { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--lavender); }
summary > span::before { content: "+"; line-height: 1; }
details[open] summary > span::before { content: "−"; }
details p { padding: 0 2.7rem 1.2rem .15rem; max-width: 65ch; color: var(--muted); }
.footer { background: var(--plum); color: var(--ivory); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; padding-block: 1.9rem; font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.35rem; text-underline-offset: .23em; }

@media (max-width: 58rem) {
    .hero-grid { gap: 2.1rem; }
    h1 { font-size: clamp(3rem, 7.05vw, 4.7rem); }
    .play-grid { grid-template-columns: minmax(0, 1.3fr) minmax(13rem, .7fr); gap: 1.85rem; }
}

@media (max-width: 43rem) {
    .wrap { width: calc(100% - 2.1rem); }
    .nav { gap: .35rem .7rem; flex-wrap: wrap; padding-block: .6rem; }
    .nav-links { order: 3; flex-basis: 100%; justify-content: flex-start; padding-top: .15rem; gap: 1.15rem; }
    .nav-links a { min-height: 2rem; display: inline-flex; align-items: center; }
    .hero-grid, .play-grid, .privacy-grid, .pricing-box, .edition-grid, .faq { grid-template-columns: minmax(0, 1fr); }
    .hero-grid { gap: 2rem; padding-top: 2.4rem; padding-bottom: 2.2rem; }
    .hero-product { margin-bottom: .45rem; }
    h1 { font-size: clamp(2.9rem, 10.1vw, 4.45rem); text-wrap: initial; max-width: 10ch; }
    .hero-copy > p { margin-block: 1.05rem 1.3rem; }
    .film-shell, .pricing-box, .permission-slip, .edition-card { box-shadow: .27rem .31rem 0 var(--plum); }
    .permission-slip { box-shadow: .27rem .31rem 0 var(--tangerine); }
    .film-bar { min-height: 2.28rem; font-size: .77rem; }
    .film-caption { margin-top: .7rem; }
    .play-grid { gap: 1.2rem; }
    .monitor { margin-bottom: 0; }
    .effect-detail { min-height: 0; }
    .price-side { border-left: 0; border-top: 1px solid #813525; padding: 1.15rem 0 0; }
    .footer-inner p { order: 3; flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .dock-window span { animation: none; }
}
