/* ==========================================================================
   Rainy — website
   Dark stage, cobalt rig, rain-blue highlights. Mono labels read like a
   lighting desk; Instrument Serif italics are the "voice".
   ========================================================================== */

:root {
    color-scheme: dark;
    --ink: #0b1222;
    --ink-2: #0e1730;
    --panel: #111c36;
    --panel-2: #15213f;
    --line: rgba(170, 195, 255, 0.11);
    --line-2: rgba(170, 195, 255, 0.19);
    --text: #eef2f8;
    --mute: #a0abbe;
    --dim: #5b6576;
    --cobalt: #3d7dc4;
    --cobalt-hi: #5b9be0;
    --navy: #2b497c;
    --rain: #8fd3ff;
    --amber: #ffb547;
    --mint: #7be0a0;
    --violet: #8b7bff;

    --sans: 'Geist', ui-sans-serif, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
    --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;

    --gutter: clamp(16px, 4vw, 48px);
    --wrap: 1280px;
    --radius: 18px;
    --ease: cubic-bezier(.2, .7, .1, 1);
    --kick: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: linear-gradient(180deg, #0b1222, #0d1530 45%, #0b1222) var(--ink);
    color: var(--text);
    font: 400 16px/1.55 var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
main { overflow-x: clip; } /* nothing wider than the screen scrolls it sideways; clip (not hidden) keeps sticky working */
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
code { font: 500 0.88em var(--mono); background: rgba(143, 211, 255, .08); color: var(--rain); padding: .12em .4em; border-radius: 6px; }
kbd {
    display: inline-block; min-width: 1.7em; padding: .1em .45em; text-align: center;
    font: 500 .78em/1.5 var(--mono); color: var(--text);
    border: 1px solid var(--line-2); border-bottom-width: 3px; border-radius: 6px; background: var(--panel-2);
}
em { font-style: normal; }
.mono { font-family: var(--mono); }
::selection { background: var(--cobalt); color: #fff; }
:focus-visible { outline: 2px solid var(--rain); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.grain {
    position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
    0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
    60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* The sky behind every page (sky.js): a low-resolution canvas, softened here. */
.sky { position: fixed; inset: -24px; z-index: -1; width: calc(100% + 48px); height: calc(100% + 48px); pointer-events: none; filter: blur(10px); }

/* ------------------------------------------------------------------ buttons */
.btn {
    display: inline-flex; align-items: center; gap: .55em; height: 48px; padding: 0 22px;
    border-radius: 999px; font-weight: 550; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap;
    transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--text); color: #05070b; }
.btn-primary:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(11, 18, 34, .35); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: rgba(143, 211, 255, .5); }
/* The nav already blurs what is behind it; a second backdrop-filter inside it makes the button flicker out while scrolling fast. */
.nav .btn-ghost { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(11, 18, 34, .55); }
.btn-ghost svg { transition: transform .25s var(--ease); }
.btn-ghost:hover svg { transform: translateX(3px); }
.btn-pill { height: 38px; padding: 0 18px; font-size: 14px; background: var(--text); color: #05070b; }
.btn-pill:hover { background: #fff; }
.link { color: var(--rain); text-decoration: underline; text-decoration-color: rgba(143, 211, 255, .35); text-underline-offset: 3px; }
.link:hover { text-decoration-color: var(--rain); }

/* ---------------------------------------------------------------------- nav */
.nav {
    position: fixed; inset: 0 0 auto; z-index: 50; height: 68px;
    display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px;
    padding: 0 var(--gutter);
    transition: background .35s, border-color .35s, height .35s var(--ease);
    border-bottom: 1px solid transparent;
}
.nav.scrolled, .page-docs .nav {
    height: 58px; background: rgba(11, 18, 34, .7); border-bottom-color: var(--line);
    backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
}
.page-docs .nav { background: rgba(11, 18, 34, .94); }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 650; font-size: 19px; letter-spacing: -0.03em; }
.brand-mark { position: relative; width: 34px; height: 34px; border-radius: 11px; overflow: hidden;
    box-shadow: 0 0 0 1px var(--line-2), 0 0 calc(var(--kick) * 28px) rgba(91, 155, 224, calc(var(--kick) * .9)); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.nav-links { display: flex; gap: 30px; font-size: 14px; color: var(--mute); }
.nav-links a { transition: color .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--text); }
.brand { grid-column: 1; justify-self: start; }
.nav-end { grid-column: 3; display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.nav-gh { display: inline-flex; align-items: center; gap: 6px; color: var(--mute); font: 500 13px var(--mono); }
.nav-gh:hover { color: var(--text); }

/* Language picker: a <details> of links. */
.lang { position: relative; }
.lang summary {
    display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 999px; cursor: pointer;
    list-style: none; color: var(--mute); font: 500 12.5px var(--mono); letter-spacing: .04em; transition: color .2s, background .2s;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--text); background: rgba(170, 195, 255, .08); }
.lang summary:focus-visible { outline: 2px solid var(--rain); outline-offset: 2px; }
.lang ul {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 150px; margin: 0; padding: 6px; list-style: none;
    background: rgba(17, 28, 54, .94); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.lang li a { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 9px; font-size: 14px; color: var(--mute); }
.lang li a:hover { color: var(--text); background: rgba(170, 195, 255, .08); }
.lang li a[aria-current] { color: var(--text); }
.lang li a[aria-current]::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--rain); box-shadow: 0 0 10px var(--rain); }

/* --------------------------------------------------------------------- hero */
/* The product, Apple-style: pinned while the laptop flattens and grows (hero.js). */
.hero { position: relative; height: 250vh; }
.hero-pin {
    position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column; align-items: center;
}
.hero-aura {
    position: absolute; z-index: -1; left: 50%; top: 58%; width: min(1500px, 140vw); aspect-ratio: 1.6; pointer-events: none;
    transform: translate(-50%, -50%); opacity: 0;
    background:
        radial-gradient(50% 50% at 50% 50%, rgba(61, 125, 196, .34), rgba(61, 125, 196, 0) 70%),
        radial-gradient(28% 22% at 50% 38%, rgba(143, 211, 255, .16), rgba(143, 211, 255, 0) 70%);
    filter: blur(10px);
}
.hero-pin::after { /* floor fade so the laptop sits on something; gone once it's up */
    content: ''; position: absolute; inset: auto 0 0; height: 18%; z-index: 5; pointer-events: none; opacity: calc(1 - var(--a, 0));
    background: linear-gradient(180deg, rgba(11, 18, 34, 0), rgba(11, 18, 34, .85));
}
.hero-copy {
    position: relative; z-index: 3; text-align: center; padding: clamp(96px, 14vh, 140px) var(--gutter) 0;
    will-change: transform, opacity;
}
.hero-title {
    margin: 0; font-weight: 640; font-size: clamp(3rem, 8.4vw, 8.4rem); line-height: .9; letter-spacing: -0.058em;
}
.hero-title .line { display: inline-block; overflow: hidden; padding: 0 .06em .24em; margin: 0 -.02em -.24em; vertical-align: top; } /* room for the serif g's tail */
.hero-title .line > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-title em, h2 em, .cta h2 em {
    font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.025em; color: var(--rain);
}
.hero-title em { font-size: 1.07em; padding-right: .05em; }
@keyframes rise { from { transform: translateY(140%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-lede { margin: 22px auto 28px; max-width: 34ch; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: #c5cedb; animation: fade-up 1s .3s var(--ease) both; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; animation: fade-up 1s .42s var(--ease) both; }

.product {
    position: relative; z-index: 4; width: min(1160px, 84vw); margin-top: clamp(36px, 6vh, 64px);
    perspective: 2400px; opacity: 0; will-change: transform;
}
.laptop { position: relative; transform-origin: 50% 100%; transform: rotateX(52deg); will-change: transform; }
.lid {
    position: relative; padding: 1.5% 1.5% 2.4%; border-radius: 2.4% / 3.6%;
    background: linear-gradient(180deg, #1c2029, #0b0d11 60%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .09), inset 0 1px 0 rgba(255, 255, 255, .14),
        0 0 0 1px rgba(0, 0, 0, .8), 0 40px 120px -20px rgba(0, 0, 0, .9), 0 0 140px -30px rgba(61, 125, 196, .45);
}
.lid::before { /* camera */
    content: ''; position: absolute; left: 50%; top: .55%; width: .5%; aspect-ratio: 1; border-radius: 50%;
    transform: translateX(-50%); background: #1d2533; box-shadow: inset 0 0 0 1px #2a3445;
}
.screen {
    position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: .5%; background: #000;
    container-type: inline-size;
}
.screen img { position: absolute; display: block; max-width: none; }
.scr-base { inset: 0; width: 100%; height: 100%; opacity: 0; filter: brightness(1.8) saturate(0); transition: opacity .7s .15s, filter 1.2s .15s var(--ease); }
.scr-card { opacity: 0; transform: translateY(8%) scale(.94); transform-origin: 50% 100%;
    transition: opacity .6s calc(.75s + var(--i) * 70ms), transform .9s calc(.75s + var(--i) * 70ms) var(--ease); }
.scr-player { position: absolute; left: 0; right: 0; bottom: 0; height: 9.7778%; transform: translateY(102%); transition: transform .9s 1.7s var(--ease); }
.scr-player img { inset: 0; width: 100%; height: 100%; }
/* The capture's progress bar and elapsed time, redrawn so the song keeps playing. */
.scr-clock {
    position: absolute; left: 30.2%; width: 2.3%; top: 71.5%; height: 17.2%; display: flex; align-items: center; justify-content: flex-end;
    background: #242424; color: #747474; font: 500 .84cqw/1 var(--sans); letter-spacing: 0; font-variant-numeric: tabular-nums;
}
.scr-track { position: absolute; left: 32.847%; width: 35%; top: 78.4%; height: 4.55%; border-radius: 99px; background: #505050; overflow: hidden; }
.scr-track i { position: absolute; inset: 0; transform-origin: 0 50%; border-radius: inherit; background: linear-gradient(90deg, #5294d9, #2d4d82); will-change: transform; }
.scr-glare {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .09) 45%, rgba(255, 255, 255, 0) 58%) no-repeat;
    background-size: 250% 100%; background-position: 120% 0;
}
.screen::after { /* faint glass */
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 38%);
}
.hero.ready .scr-base { opacity: 1; filter: none; }
.hero.ready .scr-card { opacity: 1; transform: none; }
.hero.ready .scr-player { transform: none; }
.hero.ready .scr-glare { animation: glare 1.8s 1.1s var(--ease) both; }
@keyframes glare { from { background-position: 120% 0; } to { background-position: -40% 0; } }
.deck {
    position: relative; width: 114%; margin-left: -7%; aspect-ratio: 100 / 2.6;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    background: linear-gradient(180deg, #3a414d 0%, #1a1e25 35%, #0b0d11 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 30px 60px -10px rgba(0, 0, 0, .9);
}
.deck::before { content: ''; position: absolute; left: 50%; top: 0; width: 13%; height: 42%; transform: translateX(-50%);
    border-radius: 0 0 12px 12px; background: linear-gradient(180deg, #11141a, #20252e); }
.hero-phone {
    --in: 0;
    position: absolute; z-index: 2; right: -1%; bottom: 7%; width: 17%; margin: 0; padding: 1.1%; border-radius: 15% / 7%;
    background: linear-gradient(160deg, #262b35, #0b0d11);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 0 0 1px #000, 0 40px 80px -10px rgba(0, 0, 0, .9);
    opacity: var(--in); transform: translate3d(calc((1 - var(--in)) * 40%), calc((1 - var(--in)) * 60%), 0) rotate(calc((1 - var(--in)) * 6deg));
}
.hp-screen { position: relative; aspect-ratio: 1170 / 2532; overflow: hidden; border-radius: 12.5% / 5.8%; background: #000; }
.hp-screen img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- the stage */
.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }

.play-btn { display: inline-flex; align-items: center; gap: 14px; text-align: left; }
.play-ring {
    position: relative; width: 64px; height: 64px; border-radius: 50%; flex: none;
    display: grid; place-items: center; background: var(--text); color: #05070b;
    transform: scale(calc(1 + var(--kick) * .09));
    box-shadow: 0 0 0 calc(6px + var(--kick) * 10px) rgba(143, 211, 255, calc(.1 + var(--kick) * .18)), 0 10px 40px rgba(61, 125, 196, .45);
    transition: background .25s;
}
.play-btn:hover .play-ring { background: #fff; }
.play-ring svg { position: absolute; inset: -7px; width: 78px; height: 78px; transform: rotate(-90deg); overflow: visible; }
.play-ring circle { fill: none; stroke-width: 2; }
.ring-bg { stroke: transparent; }
.ring-fg { stroke: var(--rain); stroke-dasharray: 182.2; stroke-dashoffset: 182.2; transition: stroke-dashoffset .3s; }
.play-btn.loading .ring-bg { stroke: rgba(143, 211, 255, .2); }
.play-glyph {
    width: 18px; height: 20px; background: currentColor; margin-left: 4px;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    transition: clip-path .2s, margin .2s;
}
.play-glyph.is-pause { margin-left: 0; clip-path: polygon(0 0, 36% 0, 36% 100%, 0 100%, 0 0, 64% 0, 100% 0, 100% 100%, 64% 100%, 64% 0); }
.play-text b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.play-text small { display: block; margin-top: 2px; font: 500 11.5px var(--mono); color: var(--mute); letter-spacing: .02em; }

.beats { display: inline-flex; align-items: center; gap: 5px; height: 15px; }
.beats i { width: 6px; height: 6px; border-radius: 50%; background: #253248; transition: background .06s, box-shadow .06s; }
.beats i.on { background: var(--rain); box-shadow: 0 0 8px var(--rain); }
.beats i.on:first-child { background: #fff; }

.toast {
    position: absolute; z-index: 6; left: 50%; bottom: 104px; margin: 0; padding: 10px 16px;
    font: 500 13px var(--mono); color: var(--text); background: rgba(17, 28, 54, .88); border: 1px solid var(--line-2); border-radius: 10px;
    transform: translate(-50%, 10px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* mini player, when the stage is off-screen */
.mini {
    position: fixed; z-index: 60; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px;
    padding: 8px 10px 8px 8px; border-radius: 999px; border: 1px solid var(--line-2);
    background: rgba(14, 23, 48, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5), 0 0 calc(var(--kick) * 30px) rgba(91, 155, 224, calc(var(--kick) * .5));
    transform: translateY(0); transition: transform .35s var(--ease), opacity .35s;
}
.mini[hidden] { display: flex; transform: translateY(140%); opacity: 0; pointer-events: none; }
.mini-btn { width: 38px; height: 38px; border-radius: 50%; background: var(--text); color: #05070b; display: grid; place-items: center; }
.mini-btn .play-glyph { width: 12px; height: 13px; }
.mini-btn .play-glyph:not(.is-pause) { margin-left: 3px; }
.mini-info { display: flex; flex-direction: column; line-height: 1.25; }
.mini-info b { font-size: 13px; font-weight: 600; }
.mini-info span { font-size: 10.5px; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.mini-up { width: 30px; height: 30px; display: grid; place-items: center; color: var(--mute); border-radius: 50%; }
.mini-up:hover { color: var(--text); background: rgba(255, 255, 255, .06); }

/* ---------------------------------------------------------------- sections */
.section { position: relative; max-width: var(--wrap); margin: 0 auto; padding: clamp(96px, 13vw, 180px) var(--gutter) 0; }
.section-head { max-width: 980px; margin: 0 auto clamp(48px, 6vw, 84px); text-align: center; }
h2 {
    margin: 0; font-weight: 620; font-size: clamp(2.5rem, 6.4vw, 5.6rem); line-height: .95; letter-spacing: -0.048em;
    text-wrap: balance;
}
.section-lede { margin: 22px auto 0; max-width: 44ch; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.5; color: var(--mute); }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- manifesto */
.manifesto { position: relative; padding: clamp(120px, 18vw, 240px) var(--gutter); overflow: hidden; }
.rain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.manifesto-text {
    position: relative; max-width: 1180px; margin: 0 auto; text-align: center;
    font-size: clamp(2.2rem, 5.4vw, 5rem); line-height: 1.09; font-weight: 540; letter-spacing: -0.035em; text-wrap: pretty;
}
.manifesto-text .w { opacity: .14; transition: opacity .35s, color .35s; }
.manifesto-text .w.on { opacity: 1; }
.manifesto-text .w.hl { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--rain); }

.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; }
.ticker-track { display: flex; width: max-content; gap: 28px; animation: marquee 48s linear infinite;
    font: 500 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.ticker-track i { font-style: normal; color: var(--cobalt-hi); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------- app tour */
/* Apple-style highlights: big cards slide across; the current dot stretches and fills as its card plays (tour.js). */
.hl { --gap: 20px; --pad: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); --card: min(1120px, calc(100vw - 2 * var(--pad) - 36px)); position: relative; }
.hl-viewport { width: 100vw; margin-left: calc(50% - 50vw); padding-left: var(--pad); overflow: hidden; touch-action: pan-y; }
.hl-track {
    --i: 0; display: flex; gap: var(--gap); margin: 0; padding: 0; list-style: none;
    transform: translateX(calc(var(--i) * -1 * (var(--card) + var(--gap)))); transition: transform 1s cubic-bezier(.65, 0, .25, 1);
}
.hl-card {
    --c: 61, 125, 196;
    position: relative; flex: none; width: var(--card); aspect-ratio: 1120 / 640; overflow: hidden; border-radius: 28px; cursor: pointer;
    background:
        radial-gradient(70% 65% at 50% 105%, rgba(var(--c), .55), rgba(var(--c), 0) 70%),
        radial-gradient(40% 40% at 85% 10%, rgba(var(--c), .18), rgba(var(--c), 0) 70%),
        linear-gradient(180deg, #131c33, #0a1020);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
    transition: opacity .6s var(--ease);
}
.hl-card:not(.on) { opacity: .55; }
.hl-card:not(.on):hover { opacity: .8; }
.hl-card.on { cursor: default; }
.hl-mixes { --c: 214, 76, 160; }
.hl-albums { --c: 230, 150, 60; }
.hl-recent { --c: 43, 179, 163; }
.hl-playlist { --c: 139, 123, 255; }
.hl-fullscreen { --c: 255, 90, 150; }
.hl-caption {
    position: absolute; top: clamp(24px, 4.4%, 44px); left: 50%; width: min(640px, calc(100% - 48px)); margin: 0; transform: translateX(-50%);
    text-align: center; font-size: clamp(19px, 2.3vw, 28px); font-weight: 600; line-height: 1.18; letter-spacing: -0.015em; color: rgba(255, 255, 255, .58); text-wrap: balance;
}
.hl-caption b { font-weight: inherit; color: #f5f5f7; }
.hl-card .hl-browser { position: absolute; left: 50%; top: clamp(120px, 25%, 170px); width: 74%; transform: translateX(-50%); }
.hl-card .hl-phone { right: 6%; bottom: -16%; width: 16%; }
.hl-controls { position: sticky; bottom: 28px; z-index: 6; display: flex; justify-content: center; gap: 14px; margin-top: 32px; pointer-events: none; }
.hl-dots, .hl-play {
    pointer-events: auto; height: 56px; border-radius: 28px; background: rgba(32, 40, 64, .72);
    backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 10px 30px -10px rgba(0, 0, 0, .6);
}
.hl-dots { display: flex; align-items: center; gap: 16px; padding: 0 24px; }
.hl-dot { position: relative; width: 8px; height: 8px; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, .36); transition: width .5s var(--ease), background .3s; }
.hl-dot::before { content: ''; position: absolute; inset: -12px -6px; }
.hl-dot:hover { background: rgba(255, 255, 255, .6); }
.hl-dot[aria-current] { width: 48px; background: rgba(255, 255, 255, .36); }
.hl-dot i { position: absolute; inset: 0; border-radius: inherit; background: #f5f5f7; transform: scaleX(0); transform-origin: 0 50%; }
.hl-dot[aria-current] i { animation: hl-fill 6s linear forwards; }
.hl.paused .hl-dot i { animation-play-state: paused; }
@keyframes hl-fill { to { transform: scaleX(1); } }
.hl-play { width: 56px; display: grid; place-items: center; color: #f5f5f7; transition: background .25s; }
.hl-play:hover { background: rgba(48, 58, 90, .82); }
.hl-play path { display: none; }
.hl-play[data-state="playing"] .i-pause, .hl-play[data-state="paused"] .i-play, .hl-play[data-state="ended"] .i-replay { display: block; }
.browser {
    position: relative; margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #0d0d0d;
    box-shadow: 0 50px 140px -40px rgba(61, 125, 196, .45), 0 30px 70px -30px rgba(0, 0, 0, .85);
}
.browser-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #161616; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2e2e2e; flex: none; }
.browser-url { margin: 0 auto; padding: 4px 14px; border-radius: 7px; background: #0e0e0e; font-size: 11.5px; color: #8a8a8a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; transform: translateX(-24px); }
.browser-view { position: relative; aspect-ratio: 16 / 10; background: #0d0d0d; }
.browser-view img, .browser-view video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.browser-view img { opacity: 0; transition: opacity .6s var(--ease); }
.browser-view img.on { opacity: 1; }
.phone {
    position: absolute; right: 0; bottom: -40px; margin: 0; width: clamp(150px, 19vw, 260px); aspect-ratio: 1170 / 2532;
    padding: 9px; border-radius: 38px; background: #0a0a0a; border: 1px solid var(--line-2);
    box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .9), 0 0 0 6px rgba(255, 255, 255, .02);
}
.phone::before { content: ''; position: absolute; z-index: 2; top: 18px; left: 50%; width: 30%; height: 18px; border-radius: 12px; background: #000; transform: translateX(-50%); }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #0d0d0d; }
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.phone-screen img.on { opacity: 1; }

/* ------------------------------------------------------ light show in app */
.browser-video .browser-view { aspect-ratio: 1440 / 900; }
.ls-settings { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(48px, 7vw, 96px); }
.ls-settings h3 { margin: 0 0 12px; font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.ls-settings p { margin: 0; color: var(--mute); }
.ls-settings img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line-2); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }

.dev-img { opacity: .42; transition: opacity .6s; }
.dev.on .dev-img { opacity: 1; }
.tile-shot { margin-top: auto; width: 100%; height: 132px; object-fit: cover; object-position: 0% 60%; border-radius: 10px; border: 1px solid var(--line); }

.spec { margin: 0; }
.spec div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.spec div:last-child { border-bottom: 1px solid var(--line); }
.spec dt { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--rain); padding-top: 3px; }
.spec dd { margin: 0; color: #c5cedb; font-size: 15px; }

/* ----------------------------------------------------------------- discover */
.eq-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.eq-presets button {
    height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2);
    font-size: 13.5px; color: var(--mute); transition: all .2s;
}
.eq-presets button:hover { color: var(--text); border-color: rgba(143, 211, 255, .35); }
.eq-presets button.on { background: var(--text); color: #05070b; border-color: var(--text); }
@keyframes slide-in { to { opacity: 1; transform: none; } }

/* -------------------------------------------------------------------- mixes */
.mix { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.mx-grid { --n: 14; --gap: 3px; position: relative; width: 100%; max-width: 620px; aspect-ratio: 1; margin: 0 auto; }
.mx-cell {
    position: absolute; left: 0; top: 0; width: calc((100% - (var(--n) - 1) * var(--gap)) / var(--n)); aspect-ratio: 1; border-radius: 4px;
    transform: translate(calc(var(--x) * (100% + var(--gap))), calc(var(--y) * (100% + var(--gap))));
    transition: transform 1s var(--ease), box-shadow .3s;
}
.mx-cell:not(.mx-song):hover { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7); z-index: 3; }
.mx-song { z-index: 2; border-radius: 6px; background: center / cover no-repeat; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); }
.mx-song:hover, .mx-song:focus-visible { box-shadow: 0 0 0 2px var(--text); outline: 0; }
.mx-cell.step { z-index: 1; box-shadow: 0 0 0 1.5px var(--amber); }
.mix[data-mode="rainy"] .mx-cell.step { box-shadow: 0 0 0 1.5px #fff, 0 0 16px rgba(143, 211, 255, .75); }
.mx-readout { max-width: 620px; min-height: 2.8em; margin: 18px auto 0; font-size: 12px; line-height: 1.5; color: var(--mute); text-align: center; }

.mix-shot { display: block; width: 100%; max-width: 1080px; height: auto; margin: 0 auto clamp(48px, 6vw, 80px); border-radius: 16px;
    border: 1px solid var(--line-2); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9), 0 0 120px -50px rgba(61, 125, 196, .5); }
.mix-kinds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.mix-kinds li { border-top: 1px solid var(--line); padding-top: 18px; font-size: 15px; color: var(--mute); }
.mix-kinds b { display: block; margin-bottom: 6px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.mix-flow { margin-top: clamp(80px, 10vw, 140px); }
.mix-flow-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.mix-flow-head h3 { margin: 0 0 16px; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 620; line-height: 1; letter-spacing: -0.04em; }
.mix-flow-head h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: var(--rain); }
.mix-flow-head p { margin: 0 auto; max-width: 58ch; font-size: 17px; color: var(--mute); }
.mix-rule { display: none; margin-top: 30px; }
.mix[data-mode="shuffle"] .mix-rule[data-for="shuffle"], .mix[data-mode="rainy"] .mix-rule[data-for="rainy"] { display: block; animation: fade-up .5s var(--ease); }
.formula { margin: 0 0 14px; font-family: var(--serif); font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.3; color: var(--text); }
.formula i { font-style: italic; }
.formula sub { font-size: .55em; margin-left: .1em; }
.frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; font-size: .85em; line-height: 1.15; margin-left: .15em; }
.frac > span:first-child { border-bottom: 1.5px solid currentColor; padding: 0 .2em .05em; }
.frac > span:last-child { padding: .08em .2em 0; }
.formula-key { margin: 18px 0 0; }
.formula-key div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.formula-key dt { font-family: var(--serif); font-size: 17px; line-height: 1.2; color: var(--rain); }
.formula-key dd { margin: 0; color: var(--mute); line-height: 1.5; }
.mix-how { margin: 26px 0 30px; font-size: 15px; line-height: 1.6; color: #c5cedb; }
.mix-note { margin: 22px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--dim); }
@media (max-width: 1080px) { .mix-kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .mix-kinds { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.mix-modes { display: inline-flex; gap: 2px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; }
.mix-modes button { height: 38px; padding: 0 22px; border-radius: 999px; font-size: 14px; font-weight: 550; color: var(--mute); transition: background .25s, color .25s; }
.mix-modes button:hover { color: var(--text); }
.mix-modes button[aria-pressed="true"] { background: var(--text); color: #05070b; }
.mix-stats { width: 100%; border-collapse: collapse; }
.mix-stats th, .mix-stats td { padding: 14px 0 14px 12px; border-top: 1px solid var(--line); text-align: right; font-weight: 400; }
.mix-stats thead th { padding-top: 0; padding-bottom: 10px; border-top: 0; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); transition: color .3s; }
.mix-stats tbody th { padding-left: 0; text-align: left; font-size: 15px; color: #c5cedb; }
.mix-stats th small { display: block; margin-top: 3px; font: 500 10.5px var(--mono); letter-spacing: .03em; color: var(--dim); }
.mix-stats td { width: 6ch; font: 500 21px var(--mono); letter-spacing: -0.02em; color: var(--dim); transition: color .3s; }
.mix[data-mode="shuffle"] td[data-col="shuffle"], .mix[data-mode="shuffle"] .c-shuffle { color: var(--amber); }
.mix[data-mode="rainy"] td[data-col="rainy"], .mix[data-mode="rainy"] .c-rainy { color: var(--rain); }
@media (max-width: 960px) {
    .mix { grid-template-columns: minmax(0, 1fr); }
    .mix-side { max-width: 560px; width: 100%; margin: 0 auto; }
}
@media (max-width: 620px) {
    .mx-grid { --gap: 2px; }
    .mx-cell { border-radius: 2px; }
    .mx-song { border-radius: 3px; }
    .mix-stats td { font-size: 18px; }
}

/* --------------------------------------------------------------------- show */
/* The pinned block is a full viewport tall and centres its content, so it brings its own space above the heading
   (more on a taller screen). Pull it up over its own empty top edge instead of adding a margin. */
.show { position: relative; height: 400vh; margin-top: calc(-1 * clamp(0px, (100svh - 760px) * .35, 120px)); }
.show-sticky {
    position: sticky; top: 0; height: 100svh; max-width: var(--wrap); margin: 0 auto; padding: 80px var(--gutter) 40px;
    display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 72px); align-items: center;
}
.show-copy h2 { font-size: clamp(2.4rem, 5vw, 4.6rem); margin-bottom: 36px; }
.show-steps { list-style: none; margin: 0; padding: 0; }
.show-steps li {
    position: relative; padding: 14px 0 14px 22px; color: var(--dim); transition: color .4s;
    border-left: 1px solid var(--line);
}
.show-steps li::before { content: ''; position: absolute; left: -1px; top: 0; bottom: 0; width: 1px; background: var(--rain); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease); }
.show-steps li.on { color: #c5cedb; }
.show-steps li.on::before { transform: scaleY(1); }
.show-steps b { display: block; font-size: 17px; font-weight: 600; color: var(--mute); margin-bottom: 4px; letter-spacing: -0.01em; transition: color .4s; }
.show-steps li.on b { color: var(--text); }
.show-steps span { display: block; font-size: 15px; line-height: 1.5; }
.show-steps em { font-family: var(--serif); font-style: italic; color: var(--rain); font-size: 1.1em; }
.viz-frame { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; border: 1px solid var(--line-2); overflow: hidden;
    background: radial-gradient(100% 80% at 50% 100%, #13224a, #0a1124 70%); }
.viz-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bench {
    position: absolute; inset: auto 18px 18px; padding: 18px; border-radius: 14px; border: 1px solid var(--line-2);
    background: rgba(11, 18, 38, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s var(--ease); pointer-events: none;
}
.bench.on { opacity: 1; transform: none; }
.bench-title { margin: 0 0 12px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.bench-row { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr) 46px; align-items: center; gap: 14px; padding: 5px 0; font-size: 13px; color: #c5cedb; }
.bench-row i { height: 8px; border-radius: 4px; background: #2a3a55; transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease); }
.bench.on .bench-row i { transform: scaleX(var(--v)); }
.bench-row.hot i { background: linear-gradient(90deg, var(--cobalt), var(--rain)); }
.bench-row b { text-align: right; font-size: 13px; }
.bench-row.hot b { color: var(--rain); }
.show-after { padding-top: 24px; }
.show-facts {
    list-style: none; position: relative; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; color: var(--mute); font-size: 15px;
}
.show-facts li { border-top: 1px solid var(--line); padding-top: 18px; }
.show-facts b { color: var(--text); font-weight: 600; }

/* --------------------------------------------------------------- everywhere */
.devices { position: relative; max-width: 1000px; margin: 0 auto; }
.devices svg { width: 100%; height: auto; overflow: visible; }
.dev-body { fill: #131e38; stroke: rgba(170, 195, 255, .16); stroke-width: 1.5; }
.dev-screen { fill: #0a1124; stroke: rgba(170, 195, 255, .06); transition: fill .6s; }
.dev-detail { fill: #1c2433; }
.dev.on .dev-screen { fill: #0f2242; }
.arc { fill: none; stroke: url(#arc); stroke-width: 2; stroke-dasharray: 6 10; animation: flow 1.6s linear infinite; opacity: .8; }
.arc-low { opacity: .35; animation-duration: 2.4s; }
@keyframes flow { to { stroke-dashoffset: -32; } }
.np-card {
    position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 9px;
    border-radius: 12px; border: 1px solid var(--line-2); background: rgba(17, 28, 54, .92);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .5), 0 0 30px rgba(61, 125, 196, .25);
    transition: left .9s var(--ease), top .9s var(--ease); transform: translate(-50%, -50%); white-space: nowrap;
}
.np-card .cv { width: 34px; height: 34px; border-radius: 7px; }
.np-card b { display: block; font-size: 13.5px; font-weight: 600; }
.np-card small { display: block; font-size: 10.5px; color: var(--mute); }
.eq-mini { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; margin-left: 4px; }
.eq-mini i { width: 3px; background: var(--rain); border-radius: 1px; animation: eqm .9s ease-in-out infinite alternate; }
.eq-mini i:nth-child(2) { animation-delay: -.3s; }
.eq-mini i:nth-child(3) { animation-delay: -.6s; }
@keyframes eqm { from { height: 20%; } to { height: 100%; } }
.ew-list { list-style: none; counter-reset: e; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.ew-list li { counter-increment: e; border-top: 1px solid var(--line); padding-top: 18px; color: var(--mute); font-size: 15px; }
.ew-list li::before { content: counter(e, decimal-leading-zero); display: block; font: 500 11px var(--mono); color: var(--rain); margin-bottom: 14px; }
.ew-list b { display: block; color: var(--text); font-size: 17px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }

/* -------------------------------------------------------------------- bento */
.bento {
    display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas: "eq eq ly ly" "eq eq xf ge" "du im im fr" "ke ke pl pl";
}
.tile {
    position: relative; border-radius: var(--radius); border: 1px solid var(--line); padding: 22px; overflow: hidden;
    background: linear-gradient(180deg, rgba(21, 33, 63, .72), rgba(14, 23, 48, .6)); min-height: 210px; display: flex; flex-direction: column;
}
.tile header { margin-bottom: 18px; }
.tile h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.tile header p { margin: 0; font-size: 14px; color: var(--mute); line-height: 1.45; }
.tile-eq { grid-area: eq; }
.tile-lyrics { grid-area: ly; }
.tile-xf { grid-area: xf; }
.tile-genre { grid-area: ge; }
.tile-dupe { grid-area: du; }
.tile-import { grid-area: im; }
.tile-friends { grid-area: fr; }
.tile-keys { grid-area: ke; }
.tile-play { grid-area: pl; }

.eq-sliders { position: relative; flex: 1; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; min-height: 220px; margin-bottom: 18px; }
.eq-spec { position: absolute; left: 0; right: 0; top: 0; bottom: 24px; width: 100%; height: calc(100% - 24px); pointer-events: none; }
.eq-band { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.eq-track { position: relative; flex: 1; width: 100%; max-width: 30px; border-radius: 8px; background: #0b1328; cursor: ns-resize; touch-action: none; }
.eq-track::before { content: ''; position: absolute; left: 50%; top: 8px; bottom: 8px; width: 2px; transform: translateX(-50%); background: #1d2738; border-radius: 2px; }
.eq-track::after { content: ''; position: absolute; left: 4px; right: 4px; top: 50%; height: 1px; background: rgba(170, 195, 255, .15); }
.eq-fill { position: absolute; left: 50%; width: 2px; transform: translateX(-50%); background: var(--rain); box-shadow: 0 0 8px rgba(143, 211, 255, .6); border-radius: 2px; }
.eq-thumb { position: absolute; left: 50%; width: 22px; height: 10px; transform: translate(-50%, -50%); border-radius: 4px; background: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, .5); transition: background .2s; }
.eq-track:focus-visible .eq-thumb, .eq-track:hover .eq-thumb { background: var(--rain); }
.eq-band label { font: 500 10px var(--mono); color: var(--dim); white-space: nowrap; }
.eq-play { margin-left: auto; color: var(--rain) !important; border-color: rgba(143, 211, 255, .35) !important; }

.karaoke { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.karaoke p { margin: 0; letter-spacing: -0.02em; }
.k-prev, .k-next { color: var(--dim); font-size: 16px; }
.k-now { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 600; line-height: 1.15; min-height: 1.2em; }
.k-now .kw { color: #3a465a; transition: color .15s; }
.k-now .kw.sung { color: var(--text); }
.k-now .kw.now { color: var(--rain); text-shadow: 0 0 20px rgba(143, 211, 255, .6); }

.xf { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; }
.xf svg { width: 100%; height: 80px; overflow: visible; }
.xf path { fill: none; stroke-width: 2.2; transition: d .4s var(--ease); }
.xf-a { stroke: var(--cobalt-hi); }
.xf-b { stroke: var(--rain); }
.xf-ctl { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; }
.xf-ctl b { color: var(--text); min-width: 3ch; }
input[type="range"] { flex: 1; accent-color: var(--rain); height: 4px; }

.genre-bars { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.genre-bars li { position: relative; display: flex; justify-content: space-between; font-size: 13px; color: #c5cedb; padding-bottom: 7px; }
.genre-bars li::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; border-radius: 3px; background: #1a2333; }
.genre-bars li::before { content: ''; position: absolute; left: 0; bottom: 0; z-index: 1; height: 3px; width: calc(var(--v) * 100%); border-radius: 3px; background: var(--rain);
    transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease); }
.tile-genre.in .genre-bars li::before { transform: scaleX(1); }
.genre-bars b { font-size: 11px; color: var(--mute); }

.dupe { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.dupe-file { padding: 9px 11px; border-radius: 10px; background: rgba(11, 18, 38, .7); border: 1px solid var(--line); }
.dupe-file span { display: block; font-size: 11px; color: var(--mute); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dupe-file svg { width: 100%; height: 18px; }
.dupe-file path { fill: none; stroke: var(--cobalt-hi); stroke-width: 1.4; stroke-linejoin: round; }
.dupe-match { margin: 4px 0 0; font-size: 11px; color: var(--mute); }

.jobs { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.jobs li { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(60px, 140px) 48px; align-items: center; gap: 12px; font-size: 13.5px; }
.src { font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 4px 7px; border-radius: 6px; text-align: center; }
.src.yt { background: rgba(255, 82, 82, .12); color: #ff8a8a; }
.src.sp { background: rgba(123, 224, 160, .12); color: var(--mint); }
.src.sync { background: rgba(143, 211, 255, .12); color: var(--rain); }
.job-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #c5cedb; }
.job-bar { height: 5px; border-radius: 5px; background: #1a2333; overflow: hidden; }
.job-bar i { display: block; height: 100%; width: calc(var(--p) * 100%); border-radius: 5px; background: var(--cobalt-hi); }
.jobs li:nth-child(2) .job-bar i { background: repeating-linear-gradient(-45deg, var(--cobalt-hi) 0 6px, var(--cobalt) 6px 12px); background-size: 17px 17px; animation: stripes .8s linear infinite; }
@keyframes stripes { to { background-position: 17px 0; } }
.job-n { font-size: 11px; color: var(--mute); text-align: right; }

.keys { margin: auto 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.keys div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.keys dt { display: flex; gap: 4px; }
.keys kbd { font-size: 12px; }
@media (max-width: 620px) { .keys { grid-template-columns: minmax(0, 1fr); } }
.keys dd { margin: 0; color: var(--mute); }

.chips { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 12px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: #c5cedb; }

/* ---------------------------------------------------------------- self-host */
.term { border-radius: 18px; border: 1px solid var(--line-2); background: #0a1124; overflow: hidden; box-shadow: 0 40px 100px -40px rgba(61, 125, 196, .35); }
.term-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #0e1730; }
.term-tabs { display: flex; gap: 4px; overflow-x: auto; }
.term-tabs button { height: 32px; padding: 0 14px; border-radius: 8px; font-size: 13px; color: var(--mute); white-space: nowrap; }
.term-tabs button[aria-selected="true"] { background: rgba(255, 255, 255, .07); color: var(--text); }
.term-copy { height: 32px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 12px; color: var(--mute); }
.term-copy:hover { color: var(--text); }
.term-body { margin: 0; padding: 22px 24px; min-height: 360px; font: 400 13.5px/1.75 var(--mono); color: #c5cedb; white-space: pre-wrap; word-break: break-word; overflow-x: auto; }
.term-body .p { color: var(--cobalt-hi); user-select: none; }
.term-body .o { color: var(--dim); }
.term-body .ok { color: var(--mint); }
.term-body .hl { color: var(--rain); }
.term-body .am { color: var(--amber); }
.term-body .cursor { display: inline-block; width: .6em; height: 1.1em; vertical-align: -0.2em; background: var(--rain); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.reqs { margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.reqs div { border-top: 1px solid var(--line); padding-top: 16px; }
.reqs dt { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--rain); margin-bottom: 6px; }
.reqs dd { margin: 0; font-size: 15px; color: #c5cedb; }

/* ---------------------------------------------------------------------- cta */
.cta {
    position: relative; isolation: isolate; overflow: hidden; margin-top: clamp(96px, 13vw, 180px);
    min-height: max(620px, 92svh); display: grid; place-items: center; text-align: center; padding: 120px var(--gutter);
    background:
        radial-gradient(90% 60% at 50% 110%, rgba(36, 76, 150, .75), rgba(36, 76, 150, 0) 70%),
        radial-gradient(50% 45% at 85% 20%, rgba(139, 123, 255, .22), rgba(139, 123, 255, 0) 70%);
    border-top: 1px solid var(--line);
}
.cta-inner { position: relative; max-width: 900px; }
.cta h2 { font-size: clamp(3rem, 10vw, 8.6rem); line-height: .9; letter-spacing: -0.055em; text-shadow: 0 4px 40px rgba(0, 0, 0, .5); }
.cta p { margin: 22px auto 34px; max-width: 46ch; font-size: 18px; color: #c5cedb; text-shadow: 0 2px 20px rgba(0, 0, 0, .7); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; }
.cta .toast { bottom: 40px; }
.cta .play-text { text-shadow: 0 2px 18px rgba(0, 0, 0, .8); }
.mascot { position: absolute; right: clamp(8px, 6vw, 90px); bottom: 0; margin: 0; width: clamp(130px, 16vw, 210px); z-index: 2;
    transform: translateY(42%); transition: transform .6s var(--ease), opacity .6s var(--ease); }
.mascot:hover, .mascot.peek { transform: translateY(12%); }
.cta.playing .mascot { opacity: 0; transform: translateY(60%); pointer-events: none; }
.mascot img { width: 100%; height: auto; border-radius: 50% 50% 0 0; box-shadow: 0 0 0 1px var(--line-2), 0 -10px 60px rgba(61, 125, 196, .35);
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.bubble {
    position: absolute; right: 78%; top: 6%; white-space: nowrap; padding: 8px 12px; border-radius: 12px 12px 2px 12px;
    background: var(--text); color: #05070b; font-size: 13px; font-weight: 550;
    opacity: 0; transform: translateY(6px) scale(.96); transition: opacity .3s .1s, transform .3s .1s var(--ease);
}
.bubble kbd { background: #05070b; color: var(--text); border-color: #05070b; }
.mascot:hover .bubble, .mascot.peek .bubble { opacity: 1; transform: none; }

/* ------------------------------------------------------------------- dialog */
.keys-dialog { border: 1px solid var(--line-2); border-radius: 18px; background: var(--panel); color: var(--text); padding: 26px; width: min(420px, calc(100% - 32px)); }
.keys-dialog::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); }
.keys-dialog h3 { margin: 0 0 16px; font-size: 18px; }
.keys-dialog dl { margin: 0 0 20px; }
.keys-dialog dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.keys-dialog dd { margin: 0; color: var(--mute); }

/* ------------------------------------------------------------------- footer */
.footer { max-width: var(--wrap); margin: 0 auto; padding: 72px var(--gutter) 40px; border-top: 1px solid var(--line); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { border-radius: 12px; }
.footer-brand strong { display: block; font-size: 18px; letter-spacing: -0.02em; }
.footer-brand span { font-family: var(--serif); font-style: italic; color: var(--mute); font-size: 17px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; color: var(--mute); align-items: center; }
.footer-links a:hover { color: var(--text); }
.footer-legal { max-width: 88ch; margin: 0 0 24px; font-size: 12.5px; line-height: 1.6; color: var(--dim); }
.footer-copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 0; font-size: 12.5px; color: var(--dim); }
.footer-copy .mono { font-size: 11px; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-langs a { color: var(--mute); }
.footer-langs a:hover, .footer-langs a[aria-current] { color: var(--text); }

/* ----------------------------------------------------------------- download */
.dl-hero { max-width: var(--wrap); margin: 0 auto; padding: 150px var(--gutter) 0; }
.dl-hero h1 { margin: 0 0 18px; font-size: clamp(3rem, 9vw, 7.4rem); font-weight: 640; letter-spacing: -0.055em; line-height: .9; }
.dl-hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--rain); }
.dl-hero > p { margin: 0; max-width: 56ch; font-size: 18px; color: var(--mute); }
.dl-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; margin-top: 56px; }
.dl-card { border-radius: 22px; border: 1px solid var(--line-2); padding: clamp(22px, 3vw, 34px); background: linear-gradient(180deg, rgba(21, 33, 63, .72), rgba(14, 23, 48, .6)); }
.dl-card.main { position: relative; overflow: hidden; }
.dl-card.main::before { content: ''; position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; background: radial-gradient(circle, rgba(61, 125, 196, .28), transparent 65%); pointer-events: none; }
.dl-status { margin: 0; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.dl-card h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 18px 0 10px; }
.dl-card > p { color: var(--mute); margin: 0 0 24px; max-width: 52ch; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.assets { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.assets li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.assets a { color: var(--rain); }
.assets span { font: 500 12px var(--mono); color: var(--mute); }
.notes { margin-top: 24px; font-size: 14.5px; color: #c5cedb; max-height: 320px; overflow: auto; }
.notes h1, .notes h2, .notes h3 { font-size: 16px; letter-spacing: -0.01em; margin: 1em 0 .4em; }
.notes a { color: var(--rain); }
.os-tabs { display: flex; gap: 4px; margin: 0 0 18px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; width: fit-content; }
.os-tabs button { height: 32px; padding: 0 14px; border-radius: 9px; font-size: 13px; color: var(--mute); }
.os-tabs button[aria-selected="true"] { background: rgba(255, 255, 255, .08); color: var(--text); }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 40px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 500 12px var(--mono); color: var(--rain); border: 1px solid var(--line-2); }
.steps p { margin: 2px 0 8px; font-size: 14.5px; color: #c5cedb; }
.cmd { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 14px; border-radius: 10px; background: #0a1124; border: 1px solid var(--line); font: 400 13px var(--mono); color: var(--text); overflow-x: auto; }
.cmd code { background: none; color: inherit; padding: 0; white-space: pre; }
.cmd button { flex: none; font: 500 11px var(--mono); color: var(--mute); padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line-2); }
.cmd button:hover { color: var(--text); }
.faq { max-width: var(--wrap); margin: 0 auto; padding: clamp(80px, 10vw, 140px) var(--gutter) 40px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.faq h2 { grid-column: 1 / span 4; font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.faq-list { grid-column: 6 / -1; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 17px; font-weight: 550; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 20px var(--mono); color: var(--rain); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--mute); max-width: 62ch; }

.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter); }
.notfound img { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 28px; box-shadow: 0 0 0 1px var(--line-2), 0 20px 60px rgba(61, 125, 196, .35); }
.notfound h1 { margin: 0 0 12px; font-size: clamp(2.6rem, 7vw, 5rem); letter-spacing: -0.05em; line-height: .95; }
.notfound h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--rain); }
.notfound p { color: var(--mute); margin: 0 0 28px; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
    .show-facts, .ew-list, .reqs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "eq eq" "ly ly" "xf ge" "im im" "du fr" "ke ke" "pl pl"; }
}
/* The Spanish labels are the longest; they need about 920px. */
@media (max-width: 940px) { :lang(es) .nav-links { display: none; } :lang(es) .nav { grid-template-columns: auto minmax(0, 1fr); } :lang(es) .nav-end { grid-column: 2; } }
@media (max-width: 860px) {
    .nav-links { display: none; }
    .nav { grid-template-columns: auto minmax(0, 1fr); }
    .nav-end { grid-column: 2; }
    .show { height: 380vh; }
    .show-sticky { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 18px; padding-top: 70px; }
    .show-copy h2 { font-size: clamp(2rem, 8vw, 3rem); margin-bottom: 14px; }
    .show-steps li { display: none; padding: 10px 0 0 16px; }
    .show-steps li.on { display: block; animation: fade-up .4s var(--ease); }
    .bench-row { grid-template-columns: minmax(0, 1fr) 70px 42px; font-size: 11.5px; }
    .bench { inset: auto 10px 10px; padding: 12px; }
    .viz-frame { aspect-ratio: 4 / 3; }
    .faq h2, .faq-list { grid-column: 1 / -1; }
    .dl-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
    .nav-gh span { display: none; }
    .spec div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .show-facts, .ew-list, .reqs { grid-template-columns: minmax(0, 1fr); }
    .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "eq" "ly" "xf" "ge" "im" "du" "fr" "ke" "pl"; }
    .eq-sliders { gap: 4px; min-height: 180px; }
    .eq-band label { font-size: 8.5px; }
    .eq-play { margin-left: 0; }
    .jobs li { grid-template-columns: 62px minmax(0, 1fr) 44px; }
    .job-bar { display: none; }
    .term-body { font-size: 12px; padding: 16px; min-height: 320px; }
    .mascot { right: 4px; }
    .bubble { right: 60%; font-size: 12px; }
    .mini-info span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .reveal { opacity: 1; transform: none; }
    .grain { animation: none; }
    .ticker-track { animation: none; }
    .hl-dot[aria-current] i { animation: none; transform: scaleX(1); }
    .hl-play { display: none; }
}

/* download: what's inside (shown until there are release notes) */
.inside { margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.inside div { padding: 12px 0; border-top: 1px solid var(--line); }
.inside dt { font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--rain); margin-bottom: 3px; }
.inside dd { margin: 0; font-size: 14px; color: #c5cedb; }
.term-tabs { scrollbar-width: none; }
.term-tabs::-webkit-scrollbar { display: none; }
@media (max-width: 620px) { .inside { grid-template-columns: minmax(0, 1fr); } }

/* tour + gallery, smaller screens */
@media (max-width: 860px) {
    .ls-settings { grid-template-columns: minmax(0, 1fr); }
    .phone { right: -6px; bottom: -48px; width: 30vw; max-width: 170px; border-radius: 26px; padding: 6px; }
    .phone-screen { border-radius: 21px; }
    .phone::before { top: 11px; height: 11px; }
}
@media (max-width: 620px) {
    .browser-url { max-width: 70%; font-size: 10px; transform: none; }
    .browser-bar { height: 28px; }
    .browser-bar i { width: 8px; height: 8px; }
    .hl { --gap: 12px; --card: calc(100vw - 2 * var(--pad) - 20px); }
    .hl-card { aspect-ratio: 4 / 5; border-radius: 22px; }
    .hl-card .hl-browser { width: 94%; top: auto; bottom: 16%; }
    .hl-card .hl-phone { right: 4%; bottom: -6%; width: 30%; }
    .hl-controls { bottom: 18px; margin-top: 24px; gap: 10px; }
    .hl-dots, .hl-play { height: 48px; }
    .hl-dots { gap: 13px; padding: 0 20px; }
    .hl-play { width: 48px; }
    .hl-dot[aria-current] { width: 36px; }
    .np-card { gap: 6px; padding: 5px 8px 5px 5px; border-radius: 9px; }
    .np-card .cv { width: 22px; height: 22px; border-radius: 5px; }
    .np-card b { font-size: 10.5px; }
    .np-card small { font-size: 8.5px; }
    .eq-mini { height: 10px; }
}

/* product hero, smaller screens and reduced motion */
@media (max-width: 700px) {
    .hero { height: 190vh; }
    .hero-copy { padding-top: 104px; }
        .hero-title { font-size: clamp(2.9rem, 14.5vw, 4.6rem); }
    .hero-title .line { display: block; }
    .hero-lede { font-size: 16px; margin: 18px auto 24px; }
    .product { width: 92vw; margin-top: 40px; }
    .hero-phone { width: 40%; right: 9%; bottom: -44%; border-radius: 16% / 7.5%; padding: 1.6%; }
    .hero-cta .btn { height: 44px; padding: 0 17px; font-size: 14px; }
    .hero-cta { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero { height: auto; }
    .hero-pin { position: relative; height: auto; min-height: 0; padding-bottom: 120px; }
    .hero-phone { --in: 1; }
}

/* documentation: /docs and /docs/<page> */
.docs-layout { max-width: var(--wrap); margin: 0 auto; padding: 118px var(--gutter) 96px; display: grid; grid-template-columns: 232px minmax(0, 1fr) 200px; gap: 56px; align-items: start; }
.docs-side, .docs-toc { position: sticky; top: 104px; }
.docs-side { max-height: calc(100vh - 124px); overflow-y: auto; padding-right: 4px; }
.docs-nav-home { display: block; padding: 6px 10px; margin: 0 0 8px -10px; border-radius: 8px; font-size: 14px; color: var(--mute); transition: color .2s; }
.docs-nav-home:hover { color: var(--text); background: rgba(170, 195, 255, .06); }
.docs-nav-home[aria-current="page"] { color: var(--rain); background: rgba(143, 211, 255, .08); box-shadow: inset 2px 0 0 var(--rain); }
.docs-nav-group + .docs-nav-group { margin-top: 6px; }
.docs-nav-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none; padding: 8px 0; margin: 0; user-select: none; transition: color .2s; }
.docs-nav-title::-webkit-details-marker { display: none; }
.docs-nav-title::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .2s; }
.docs-nav-group[open] > .docs-nav-title::after { transform: rotate(45deg); }
.docs-nav-title:hover { color: var(--text); }
.docs-nav-group[open] > .docs-nav-title { color: var(--rain); }
.docs-nav-group ul { margin-bottom: 8px; }
.docs-nav-title, .docs-toc-title { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 0 0 8px; }
.docs-nav ul, .docs-toc ul { list-style: none; margin: 0; padding: 0; }
.docs-nav a { display: block; padding: 6px 10px; margin-left: -10px; border-radius: 8px; color: var(--mute); font-size: 14px; line-height: 1.35; transition: color .2s; }
.docs-nav a:hover { color: var(--text); background: rgba(170, 195, 255, .06); }
.docs-nav a[aria-current="page"] { color: var(--rain); background: rgba(143, 211, 255, .08); box-shadow: inset 2px 0 0 var(--rain); }
.docs-toc { font-size: 13px; }
.docs-toc a { display: block; padding: 4px 0; color: var(--mute); line-height: 1.4; transition: color .2s; }
.docs-toc a:hover { color: var(--text); }
.docs-toc ul ul { padding-left: 12px; }
.docs-toc ul ul a { font-size: 12px; color: var(--dim); }

.docs-body { min-width: 0; max-width: 72ch; color: #c5cedb; font-size: 16px; line-height: 1.72; }
.docs-body h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); margin: 10px 0 14px; }
.docs-body .docs-lead { font-size: 18px; color: var(--mute); margin: 0 0 32px; }
.docs-crumbs { font: 500 12px var(--mono); color: var(--dim); margin: 0; }
.docs-crumbs a:hover { color: var(--text); }
.docs-body h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 52px 0 14px; scroll-margin-top: 110px; }
.docs-body h3 { font-size: 1.2rem; margin: 34px 0 10px; color: var(--text); scroll-margin-top: 110px; }
.docs-body p { margin: 0 0 16px; }
.docs-body a { color: var(--rain); text-decoration: underline; text-decoration-color: rgba(143, 211, 255, .35); text-underline-offset: 3px; }
.docs-body a:hover { text-decoration-color: var(--rain); }
.docs-body ol, .docs-body ul { padding-left: 22px; margin: 0 0 18px; }
.docs-body li { margin: 6px 0; }
.docs-body li::marker { color: var(--dim); }
.docs-body code { font: 13px var(--mono); background: rgba(170, 195, 255, .08); padding: 2px 6px; border-radius: 6px; color: var(--text); }
.docs-body pre { background: #0a1124; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; overflow-x: auto; }
.docs-body pre code { background: none; padding: 0; color: #d6e2f4; }
.docs-body kbd { font: 500 12px var(--mono); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--panel); color: var(--text); white-space: nowrap; }
.docs-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 8px 0 24px; font-size: 14px; }
.docs-body th, .docs-body td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.docs-body th { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--rain); white-space: nowrap; }
.docs-body img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--ink-2); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .6); }
.docs-body img.shot-phone { aspect-ratio: 390 / 844; width: min(100%, 300px); margin-inline: auto; }
.docs-body p:has(> img) { margin: 28px 0 0; }
.docs-body p:has(> img) + p { margin: 10px 0 30px; font-size: 13px; color: var(--dim); }
.docs-body blockquote { margin: 0 0 22px; padding: 16px 20px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--rain); color: #c5cedb; }
.docs-body blockquote p { margin: 0; }
.docs-body blockquote.callout-tip { border-left-color: var(--mint); }
.docs-body blockquote.callout-warning { border-left-color: var(--amber); }

.docs-section-lead { margin: 0 0 16px; color: var(--mute); }
.docs-body .docs-section-pages { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.docs-body .docs-section-pages li { margin: 0; }
.docs-body .docs-section-pages a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); text-decoration: none; transition: border-color .2s; }
.docs-body .docs-section-pages a:hover { border-color: var(--rain); }
.docs-section-pages b { font-weight: 500; color: var(--text); }
.docs-section-pages span { font-size: 13px; line-height: 1.5; color: var(--dim); }

.docs-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 64px; }
.docs-pager-link { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font-size: 17px; text-decoration: none; transition: border-color .2s; }
.docs-pager-link span { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.docs-pager-link:hover { border-color: var(--rain); }
.docs-pager-link.prev { grid-column: 1; }
.docs-pager-link.next { grid-column: 2; text-align: right; }

.docs-mobile-nav { display: none; border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 16px; background: var(--panel); }
.docs-mobile-nav summary { cursor: pointer; font: 500 13px var(--mono); color: var(--mute); }
.docs-mobile-nav .docs-nav { margin-top: 14px; max-height: 60vh; overflow-y: auto; }

@media (max-width: 1180px) {
    .docs-layout { grid-template-columns: 210px minmax(0, 1fr); }
    .docs-toc { display: none; }
}
@media (max-width: 860px) {
    .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 108px; }
    .docs-side { display: none; }
    .docs-mobile-nav { display: block; }
    .docs-pager, .docs-section-pages { grid-template-columns: minmax(0, 1fr); }
    .docs-pager-link.prev, .docs-pager-link.next { grid-column: 1; text-align: left; }
}

/* top bar: the hero carries the docs button on phones, so the bar keeps room for Download */
@media (max-width: 620px) { .nav-docs { display: none; } }
