/* ==========================================================================
   MirrorDesk — Website design system
   ========================================================================== */

:root {
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", system-ui, Roboto, Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    --bg: #000;
    --bg-2: #0b0b0d;
    --surface: #161617;
    --surface-2: #1d1d1f;
    --line: rgba(255, 255, 255, 0.1);
    --line-2: rgba(255, 255, 255, 0.16);
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #6e6e73;
    --accent: #2997ff;
    --accent-btn: #0071e3;
    --accent-btn-hover: #0077ed;
    --red: #ff453a;
    --green: #30d158;

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --radius-xl: 36px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

    --container: 1180px;
    --gutter: clamp(20px, 5vw, 48px);
    --section-y: clamp(96px, 13vw, 168px);
    --nav-h: 52px;
}

.theme-light {
    --bg: #f5f5f7;
    --bg-2: #fff;
    --surface: #fff;
    --surface-2: #e8e8ed;
    --line: rgba(0, 0, 0, 0.08);
    --line-2: rgba(0, 0, 0, 0.14);
    --text: #1d1d1f;
    --text-2: #6e6e73;
    --text-3: #86868b;
    --accent: #0066cc;
    background: var(--bg);
    color: var(--text);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.5;
    letter-spacing: -0.012em;
    background: #000;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
kbd { font-family: var(--font); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(41, 151, 255, 0.35); }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 200;
    background: var(--accent-btn); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600;
    transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(780px + var(--gutter) * 2); }
.text-center { text-align: center; }

.ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico--sm { width: 17px; height: 17px; stroke-width: 1.9; }
.ico--lg { width: 32px; height: 32px; stroke-width: 1.4; }
.ico--tight { margin-left: -9px; }

/* ---------- Type ---------- */
.h1, .h2 { text-wrap: balance; }
.h1 {
    font-size: clamp(44px, 7vw, 88px);
    line-height: 1.03;
    font-weight: 700;
    letter-spacing: -0.038em;
}
.h2 {
    font-size: clamp(36px, 5.2vw, 64px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.034em;
}
.h3 {
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.12;
    font-weight: 650;
    letter-spacing: -0.026em;
}
.eyebrow {
    font-size: clamp(17px, 1.6vw, 21px);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--accent);
    margin-bottom: 14px;
}
.lede {
    font-size: clamp(19px, 1.9vw, 23px);
    line-height: 1.42;
    font-weight: 500;
    letter-spacing: -0.018em;
    color: var(--text-2);
    max-width: 640px;
    margin-top: 22px;
}
.fineprint { font-size: 13px; line-height: 1.5; color: var(--text-3); letter-spacing: -0.005em; margin-top: 18px; }
.fineprint--center { text-align: center; }

.text-gradient {
    background: linear-gradient(100deg, #fff 0%, #b9dcff 35%, #2997ff 70%, #8a7dff 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}

.section { position: relative; padding-block: var(--section-y); background: var(--bg); }
.section-head { margin-bottom: clamp(44px, 6vw, 72px); }
.section-head--center { text-align: center; }
.section-head--center .lede { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 44px; padding: 0 22px; border-radius: 980px;
    font-size: 17px; font-weight: 500; letter-spacing: -0.015em; white-space: nowrap;
    transition: background-color .2s, color .2s, transform .15s var(--ease), opacity .2s;
}
.btn:active { transform: scale(0.97); }
.btn--sm { height: 30px; padding: 0 14px; font-size: 13px; }
.btn--primary { background: var(--accent-btn); color: #fff; }
.btn--primary:hover { background: var(--accent-btn-hover); }
.btn--link { height: auto; padding: 0; color: var(--accent); font-size: 19px; }
.btn--link:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn--link .ico { transition: transform .2s var(--ease); }
.btn--link:hover .ico { transform: translateX(3px); }

.appstore-badge { display: inline-block; border-radius: 10px; transition: transform .2s var(--ease), opacity .2s; }
.appstore-badge img { width: 168px; height: auto; }
.appstore-badge--lg img { width: 196px; }
.appstore-badge:hover { opacity: .88; }
.appstore-badge:active { transform: scale(0.97); }

.tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; letter-spacing: 0;
    padding: 4px 10px; border-radius: 980px;
    background: var(--line); color: var(--text-2);
}
.tag--blue { background: rgba(41, 151, 255, 0.14); color: var(--accent); }

/* ---------- Segmented control ---------- */
.segmented {
    display: inline-flex; gap: 2px; padding: 3px;
    border-radius: 980px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    max-width: 100%;
}
.segmented button {
    display: inline-flex; align-items: center; gap: 6px; justify-content: center;
    height: 36px; padding: 0 18px; border-radius: 980px;
    font-size: 15px; font-weight: 500; color: var(--text-2); white-space: nowrap;
    transition: background-color .25s var(--ease), color .2s, box-shadow .25s;
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-selected="true"], .segmented button[aria-checked="true"] {
    background: rgba(255, 255, 255, 0.95); color: #1d1d1f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.segmented--light { background: rgba(0, 0, 0, 0.06); }
.segmented--light button[aria-selected="true"], .segmented--light button[aria-checked="true"] {
    background: #fff; color: #1d1d1f; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.segmented--center { display: flex; width: fit-content; margin-inline: auto; }
.segmented--scroll { overflow-x: auto; scrollbar-width: none; }
.segmented--scroll::-webkit-scrollbar { display: none; }
.segmented--block { display: flex; width: 100%; border-radius: 12px; }
.segmented--block button { flex: 1; border-radius: 9px; padding: 0 10px; }
.segmented--sm button { height: 30px; padding: 0 12px; font-size: 13px; }

/* ---------- Navigation ---------- */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    height: var(--nav-h);
    background: rgba(0, 0, 0, 0.72);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, background-color .3s;
}
.nav.is-scrolled { border-bottom-color: rgba(255, 255, 255, 0.08); }
.nav__inner {
    height: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter);
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.nav__brand img { border-radius: 6px; }
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 32px); }
.nav__links a { font-size: 13px; color: rgba(245, 245, 247, 0.8); transition: color .2s; }
.nav__links a:hover, .nav__links a[aria-current] { color: #fff; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; width: 36px; height: 36px; position: relative; border-radius: 8px; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__toggle span:first-child { top: 14px; }
.nav__toggle span:last-child { top: 21px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 17.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 17.5px; transform: rotate(-45deg); }
.nav__sheet {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgba(0, 0, 0, 0.94);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    padding: 16px var(--gutter) 32px;
    border-bottom: 1px solid var(--line);
    height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
}
.nav__sheet nav { display: flex; flex-direction: column; }
.nav__sheet nav a { font-size: 26px; font-weight: 600; letter-spacing: -0.025em; padding: 12px 0; border-bottom: 1px solid var(--line); }
.nav__sheet.is-open nav a { animation: sheetIn .45s var(--ease) both; }
.nav__sheet.is-open nav a:nth-child(2) { animation-delay: .03s; }
.nav__sheet.is-open nav a:nth-child(3) { animation-delay: .06s; }
.nav__sheet.is-open nav a:nth-child(4) { animation-delay: .09s; }
.nav__sheet.is-open nav a:nth-child(5) { animation-delay: .12s; }
.nav__sheet.is-open nav a:nth-child(6) { animation-delay: .15s; }
.appstore-badge--sheet { margin-top: 28px; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding-top: calc(var(--nav-h) + clamp(44px, 6vw, 72px));
    padding-bottom: clamp(40px, 6vw, 72px);
    background: #000;
    overflow: hidden;
    isolation: isolate;
}
.hero__light {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(60% 45% at 50% 78%, rgba(10, 132, 255, 0.28), transparent 70%),
        radial-gradient(40% 30% at 30% 85%, rgba(94, 92, 230, 0.18), transparent 70%),
        radial-gradient(35% 30% at 72% 82%, rgba(48, 209, 88, 0.08), transparent 70%);
}
.hero__copy { text-align: center; padding-inline: var(--gutter); max-width: 1240px; margin-inline: auto; }
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; color: var(--text); margin-bottom: 20px;
}
.hero__eyebrow img { border-radius: 7px; }
.hero__title {
    font-size: clamp(44px, 7.2vw, 96px);
    line-height: 1.0;
    text-wrap: balance;
    font-weight: 700;
    letter-spacing: -0.045em;
}
.hero__lede {
    font-size: clamp(19px, 2vw, 24px);
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-2);
    max-width: 700px;
    margin: 22px auto 0;
    text-wrap: pretty;
}
.hero__actions { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 30px; }

/* Windows are shown at their real point size (Retina screenshots ÷ 2) so they stay sharp */
.hero__stage {
    --fw: min(389px, 66vw);
    position: relative;
    width: 100%;
    height: calc(var(--fw) * 1.78 + 24px);
    margin: clamp(40px, 5vw, 64px) auto 0;
}
.hero__win { position: absolute; width: var(--fw); will-change: transform; }
.hero__win img { width: 100%; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.1)); }
.hero__win--front { left: 50%; top: 0; transform: translateX(-50%); z-index: 3; }
.hero__win--left { left: calc(50% - var(--fw) * 1.42); top: calc(var(--fw) * 0.16); z-index: 1; }
.hero__win--right { left: calc(50% + var(--fw) * 0.42); top: calc(var(--fw) * 0.16); z-index: 2; }
.hero__win--left img, .hero__win--right img { filter: brightness(0.55) saturate(0.9) drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5)); }
.hero__phone {
    position: absolute; z-index: 4; left: calc(50% + var(--fw) * 0.5); top: calc(var(--fw) * 0.2); width: calc(var(--fw) * 0.62);
    display: none;
}
.hero__phone.is-loaded { display: block; }
.hero__phone img { width: 100%; border-radius: 9% / 4.2%; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.hero__stage:has(.hero__phone.is-loaded) .hero__win--right { opacity: 0.0; }

.hero__more {
    display: grid; place-items: center;
    width: 44px; height: 44px; margin: clamp(8px, 2vw, 24px) auto 0; border-radius: 50%;
    color: var(--text-2); border: 1px solid var(--line);
    transition: color .2s, border-color .2s, transform .2s var(--ease);
}
.hero__more:hover { color: var(--text); border-color: var(--line-2); transform: translateY(2px); }

/* Entrance */
.js .hero__eyebrow, .js .hero__title, .js .hero__lede, .js .hero__actions { animation: rise 1s var(--ease) both; }
.js .hero__title { animation-delay: .08s; }
.js .hero__lede { animation-delay: .16s; }
.js .hero__actions { animation-delay: .24s; }
.js .hero__win--front { animation: riseCenter 1.3s var(--ease) .3s both; }
.js .hero__win--left { animation: slideL 1.4s var(--ease) .5s both; }
.js .hero__win--right { animation: slideR 1.4s var(--ease) .5s both; }
.js .hero__phone.is-loaded { animation: slideR 1.4s var(--ease) .6s both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes riseCenter { from { opacity: 0; transform: translate(-50%, 60px) scale(0.96); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes slideL { from { opacity: 0; transform: translateX(60px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes slideR { from { opacity: 0; transform: translateX(-60px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ---------- Statement ---------- */
.statement { background: #000; padding: clamp(80px, 12vw, 160px) var(--gutter); }
.statement__text {
    max-width: 980px; margin-inline: auto;
    font-size: clamp(30px, 4.4vw, 56px);
    line-height: 1.16; font-weight: 650; letter-spacing: -0.032em;
}
.statement__text .w { color: rgba(245, 245, 247, var(--o, 1)); transition: color .25s linear; }
.js .statement__text .w { --o: 0.18; }

/* ---------- Screens & placeholders ---------- */
.screen { position: relative; margin-inline: auto; }
.screen img { width: 100%; border-radius: inherit; }
.screen--phone { width: clamp(240px, 26vw, 340px); border-radius: clamp(28px, 3vw, 40px); }
.screen--wide { width: min(100%, 720px, 72vh); border-radius: var(--radius); }
.clarity__shot { margin: 0; }
.clarity__shot .screen { box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55); }
.clarity__shot figcaption { margin-top: 14px; text-align: center; }
/* Mirror screenshots already carry their real window shape (transparent corners) */
.screen img[data-shot] {
    border-radius: 0;
    filter: drop-shadow(0 50px 60px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.18));
}

.shot-placeholder {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 28px 20px;
    border-radius: inherit;
    text-align: center;
    background:
        linear-gradient(160deg, rgba(41, 151, 255, 0.10), rgba(94, 92, 230, 0.06) 45%, rgba(255, 255, 255, 0.02)),
        #0d0d10;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: var(--text-2);
    box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.75);
}
.theme-light .shot-placeholder { background: linear-gradient(160deg, rgba(0, 113, 227, 0.08), #fff); border-color: rgba(0, 0, 0, 0.18); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.2); }
.shot-placeholder .ico { width: 30px; height: 30px; opacity: 0.7; }
.shot-placeholder strong { font-size: 15px; color: var(--text); font-weight: 600; }
.shot-placeholder span { font-size: 13px; max-width: 260px; line-height: 1.4; }
.shot-placeholder code {
    font-family: var(--font-mono); font-size: 12px;
    padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); color: var(--accent);
    word-break: break-all;
}

/* ---------- Tour / showcase ---------- */
.tour { background: #000; padding-top: clamp(40px, 6vw, 80px); }
.tour .segmented { margin-bottom: 40px; }
.tour__panel {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center;
    background: linear-gradient(180deg, #111113, #0a0a0b);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: clamp(28px, 5vw, 64px);
    overflow: hidden;
}
.tour__copy { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.tour__copy.is-switching { opacity: 0; transform: translateY(8px); }
.tour__title { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.tour__desc { margin-top: 16px; color: var(--text-2); font-size: clamp(17px, 1.5vw, 19px); line-height: 1.5; }
.tour__note { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; font-size: 13px; font-weight: 600; color: var(--green); }
.tour__note.is-missing { color: #ff9f0a; }
.tour__media { position: relative; min-height: clamp(360px, 46vw, 600px); display: grid; place-items: center; }
.tour__media::before {
    content: ""; position: absolute; inset: 10% 5%; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(41, 151, 255, 0.25), transparent);
    filter: blur(20px); pointer-events: none;
}
.tour__zoom { position: relative; display: block; width: 100%; height: 100%; cursor: zoom-in; border-radius: var(--radius-lg); }
.tour__frame { position: relative; display: grid; place-items: center; height: 100%; }
.tour__frame > * { grid-area: 1 / 1; transition: opacity .45s var(--ease), transform .6s var(--ease); }
.tour__frame img { width: auto; max-width: min(100%, var(--pt-w, 100%)); max-height: min(var(--pt-h, 600px), 600px); margin-inline: auto; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.55)); }
.tour__frame .shot-placeholder { max-width: 380px; min-height: 380px; border-radius: var(--radius-lg); }
.tour__frame .is-leaving { opacity: 0; transform: scale(0.97); }
.tour__frame .is-entering { opacity: 0; transform: scale(1.02); }
.tour__zoom-hint {
    position: absolute; right: 8px; bottom: 8px;
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.12); color: #fff;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    opacity: 0; transform: scale(0.9); transition: opacity .2s, transform .2s var(--ease);
}
.tour__zoom:hover .tour__zoom-hint, .tour__zoom:focus-visible .tour__zoom-hint { opacity: 1; transform: none; }

/* ---------- Effortless mirroring ---------- */
.mirror { background: radial-gradient(70% 50% at 50% 55%, #0c1a2e 0%, #000 70%); }
.mirror__stage { display: grid; place-items: center; margin-bottom: clamp(64px, 9vw, 112px); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 48px); max-width: 980px; margin-inline: auto; counter-reset: s; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps__n {
    flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
    font-size: 15px; font-weight: 600; color: var(--accent); border: 1px solid rgba(41, 151, 255, 0.4);
}
.steps h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.steps p { margin-top: 4px; color: var(--text-2); font-size: 15px; }

/* ---------- Dual ---------- */
.dual { background: #000; }
.dual .segmented { margin-bottom: clamp(40px, 5vw, 64px); }
.dual__stage { display: grid; place-items: center; min-height: clamp(420px, 50vw, 760px); }
.dual__view { grid-area: 1 / 1; width: 100%; display: grid; place-items: center; transition: opacity .5s var(--ease), transform .7s var(--ease); }
.dual__stage[data-mode="dual"] .dual__view--single,
.dual__stage[data-mode="single"] .dual__view--dual { opacity: 0; transform: scale(0.94); pointer-events: none; visibility: hidden; transition: opacity .4s var(--ease), transform .6s var(--ease), visibility 0s .4s; }

/* ---------- 60 FPS ---------- */
.motion__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.motion .section-head { margin-bottom: 0; }
.fps-demo {
    background: #fff; border-radius: var(--radius-xl); padding: clamp(24px, 3.4vw, 40px);
    box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.35);
}
.fps-demo__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.fps-demo__val { font-size: 15px; color: var(--text-2); }
.fps-demo__val b { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; margin-right: 4px; }
.fps-demo__track {
    position: relative; height: 140px; margin: 28px 0; border-radius: var(--radius);
    background: linear-gradient(180deg, #f5f5f7, #ececf0);
    overflow: hidden;
}
.fps-demo__track::after {
    content: ""; position: absolute; inset: 50% 28px auto; height: 2px; transform: translateY(-1px);
    background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0 6px, transparent 6px 12px);
}
.fps-demo__ball {
    position: absolute; top: 50%; left: 0; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; z-index: 1;
    background: radial-gradient(circle at 35% 30%, #6cb8ff, #0071e3 70%);
    box-shadow: 0 10px 24px -6px rgba(0, 113, 227, 0.55);
    will-change: transform;
}
.fps-demo .segmented { display: flex; }
.fps-demo .segmented button { flex: 1; }
.fps-demo__caption { margin-top: 16px; font-size: 13px; color: var(--text-3); }

/* ---------- Wired ---------- */
.wired { background: linear-gradient(180deg, #000, #07070a); }
.wired__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.wired .section-head { margin-bottom: 0; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.duo__item .ico { color: var(--accent); margin-bottom: 14px; }
.duo__item h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.duo__item p { margin-top: 6px; font-size: 15px; color: var(--text-2); }
/* Wired / wireless line illustration */
.link { position: relative; display: grid; gap: 28px; justify-items: center; }
.link::before {
    content: ""; position: absolute; inset: 10% 0 0; z-index: -1; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(41, 151, 255, 0.18), transparent); filter: blur(10px);
}
.link__art { width: 100%; max-width: 560px; overflow: visible; }
.link__device > * { fill: rgba(255, 255, 255, 0.03); stroke: rgba(245, 245, 247, 0.55); stroke-width: 1.5; }
.link__device .link__screen { fill: rgba(41, 151, 255, 0.05); stroke: rgba(245, 245, 247, 0.16); }
.link__device .link__notch { fill: none; stroke: rgba(245, 245, 247, 0.25); }
.link__device .link__island { fill: rgba(245, 245, 247, 0.5); stroke: none; }
.link__mirror { fill: rgba(41, 151, 255, 0.2); stroke: rgba(108, 196, 255, 0.7); stroke-width: 1.5; }
.link__path, .link__cable { fill: none; stroke: rgba(245, 245, 247, 0.22); stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; }
.link__cable { stroke: rgba(245, 245, 247, 0.5); stroke-width: 3.5; stroke-dasharray: none; }
.link__flow { fill: none; stroke: #6cc4ff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 14 220; animation: flow 1.8s linear infinite; filter: drop-shadow(0 0 6px #2997ff); }
.link__waves path { fill: none; stroke: #6cc4ff; stroke-width: 2.4; stroke-linecap: round; }
.link__waves circle { fill: #6cc4ff; }
.link__wifi, .link__usb { transition: opacity .5s var(--ease); }
.link[data-mode="usb"] .link__wifi, .link[data-mode="wifi"] .link__usb { opacity: 0; }
.link figcaption { font-size: 15px; color: var(--text-2); text-align: center; min-height: 1.5em; }
@keyframes flow { from { stroke-dashoffset: 234; } to { stroke-dashoffset: 0; } }

/* ---------- Studio ---------- */
.studio { background: #000; }
.studio__grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center;
    margin-bottom: clamp(72px, 9vw, 120px);
}
.studio__shot { position: relative; }
.studio__shot::before {
    content: ""; position: absolute; inset: 15% 10%; border-radius: 50%; z-index: 0;
    background: radial-gradient(closest-side, rgba(255, 69, 58, 0.28), transparent);
    filter: blur(30px);
}
.studio__shot picture { position: relative; z-index: 1; }
.studio__shot img { width: min(100%, 389px); margin-inline: auto; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.55)); }
.studio__shot figcaption { position: relative; z-index: 1; text-align: center; font-size: 13px; color: var(--text-3); margin-top: 8px; }

.studio__demo {
    background: linear-gradient(180deg, #161618, #101012);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: clamp(22px, 3vw, 36px);
}
.studio__demo-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 26px; }
.studio__demo-note { font-size: 13px; color: var(--text-3); }
.field + .field { margin-top: 24px; }
.field legend { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.field__hint { margin-top: 10px; font-size: 13px; color: var(--text-3); min-height: 1.5em; }
.studio__demo .segmented button[aria-checked="true"] { background: var(--accent-btn); color: #fff; box-shadow: 0 4px 14px -4px rgba(0, 113, 227, 0.6); }
.audio-list { display: grid; gap: 6px; }
.audio-list button {
    display: flex; align-items: center; gap: 12px; text-align: left;
    padding: 12px 14px; border-radius: 12px;
    background: rgba(255, 255, 255, 0.04); border: 1px solid transparent;
    font-size: 15px; font-weight: 500; color: var(--text-2);
    transition: background-color .2s, border-color .2s, color .2s;
}
.audio-list button:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.audio-list button[aria-checked="true"] { background: rgba(41, 151, 255, 0.12); border-color: rgba(41, 151, 255, 0.5); color: var(--text); }
.audio-list button[aria-checked="true"] .ico { color: var(--accent); }
.recbar { display: flex; gap: 10px; margin-top: 28px; }
.recbar__btn {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 50px; border-radius: 14px; font-size: 17px; font-weight: 600;
    background: rgba(255, 255, 255, 0.08); color: var(--text);
    transition: background-color .25s, color .25s, transform .15s var(--ease);
}
.recbar__btn:hover { background: rgba(255, 255, 255, 0.12); }
.recbar__btn:active, .recbar__snap:active { transform: scale(0.97); }
.recbar__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--red); }
.recbar__btn[aria-pressed="true"] { background: rgba(255, 69, 58, 0.16); color: #ff6961; box-shadow: inset 0 0 0 1px rgba(255, 69, 58, 0.45); }
.recbar__btn[aria-pressed="true"] .recbar__dot { animation: blink 1.2s ease-in-out infinite; }
.recbar__snap { display: grid; place-items: center; width: 56px; height: 50px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); transition: background-color .2s, transform .15s var(--ease); }
.recbar__snap:hover { background: rgba(255, 255, 255, 0.12); }
.recbar__status { margin-top: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.studio__demo.is-flash { animation: flash .5s ease-out; }
@keyframes blink { 50% { opacity: 0.25; } }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6), inset 0 0 0 100vmax rgba(255, 255, 255, 0.12); } 100% { box-shadow: 0 0 0 0 transparent, inset 0 0 0 100vmax transparent; } }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
.trio__item .ico { color: var(--accent); margin-bottom: 16px; }
.trio__item h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.022em; }
.trio__item p { margin-top: 8px; color: var(--text-2); font-size: 16px; }

.keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(56px, 7vw, 88px); }
.keys__item { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 980px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.keys kbd {
    min-width: 44px; padding: 6px 10px; border-radius: 9px; text-align: center;
    background: linear-gradient(180deg, #3a3a3c, #2c2c2e);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 0 #111;
    color: #fff; font-size: 14px; font-weight: 600;
}

/* ---------- Frameless ---------- */
.frameless { overflow: hidden; background: #000; isolation: isolate; }
.frameless__light {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(45% 55% at 75% 50%, rgba(94, 92, 230, 0.24), transparent 70%),
        radial-gradient(35% 45% at 85% 70%, rgba(41, 151, 255, 0.18), transparent 70%);
}
.frameless__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.frameless .section-head { margin-bottom: 0; }
.controls { margin-top: 40px; border-top: 1px solid var(--line); }
.controls__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.controls__label { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; }
.controls__label .ico { color: var(--text-2); }
.chip { height: 30px; padding: 0 14px; border-radius: 980px; font-size: 13px; font-weight: 500; background: rgba(255, 255, 255, 0.1); transition: background-color .2s; }
.chip:hover { background: rgba(255, 255, 255, 0.16); }
.chip[aria-pressed="true"] { background: var(--accent-btn); color: #fff; }
.switch { position: relative; width: 46px; height: 28px; border-radius: 980px; background: rgba(255, 255, 255, 0.18); transition: background-color .25s; }
.switch span { position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); transition: transform .3s var(--ease); }
.switch[aria-checked="true"] { background: var(--green); }
.switch[aria-checked="true"] span { transform: translateX(18px); }
.frameless__stage { display: grid; place-items: center; min-height: clamp(460px, 52vw, 680px); }
.frameless__window {
    --pw: clamp(190px, 18vw, 250px);              /* portrait width; height follows the iPhone ratio */
    --ph: calc(var(--pw) * 1920 / 886);
    position: relative;
    transform: scale(var(--s, 1));
    transition: transform .7s var(--ease);
}
.frameless__screen {
    position: relative; overflow: hidden;
    width: var(--pw); height: var(--ph);
    border-radius: calc(var(--pw) * 0.125);
    background: #000;
    box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.12);
    transition: width .7s var(--ease), height .7s var(--ease), border-radius .7s var(--ease);
}
/* Landscape: the window takes the stream's sideways shape */
.frameless__window[data-orientation="landscape"] .frameless__screen {
    width: calc(var(--ph) * 0.92); height: calc(var(--pw) * 0.92);
    border-radius: calc(var(--pw) * 0.1);
}
.frameless__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .45s var(--ease); }
.frameless__img[hidden] { display: none; }
/* Real portrait + landscape pair: fill the window and crossfade as it turns */
.has-pair .frameless__img { object-fit: cover; }
.has-pair .frameless__img--landscape { opacity: 0; }
.has-pair.show-landscape .frameless__img--landscape { opacity: 1; transition-delay: .15s; }
.has-pair.show-landscape .frameless__img--portrait { opacity: 0; }
.frameless__pin {
    position: absolute; top: -40px; left: 50%; transform: translateX(-50%) rotate(calc(var(--r, 0deg) * -1));
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    padding: 5px 12px; border-radius: 980px; font-size: 12px; font-weight: 600;
    background: rgba(48, 209, 88, 0.15); color: var(--green);
    transition: opacity .3s, transform .3s var(--ease);
}
.frameless__window[data-pinned="false"] .frameless__pin { opacity: 0; transform: translateX(-50%) translateY(6px); }

/* ---------- Use cases ---------- */
.usecases .segmented { margin-bottom: 40px; }
.uc { max-width: 1000px; margin-inline: auto; }
.uc__panel {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center;
    background: #fff; border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 64px);
    box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.25);
    animation: fadeUp .5s var(--ease) both;
}
.uc__panel[hidden] { display: none; }
.uc__panel p { margin-top: 16px; color: var(--text-2); font-size: 17px; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 500; }
.checklist li:last-child { border-bottom: 0; }
.checklist .ico { color: var(--accent); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Privacy ---------- */
.privacy { background: radial-gradient(60% 50% at 50% 0%, #0b1726 0%, #000 70%); }
.privacy__icon {
    display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 28px; border-radius: 22px;
    background: linear-gradient(160deg, #1f2a3a, #10151e); border: 1px solid var(--line-2); color: var(--accent);
}
.privacy__icon .ico { width: 34px; height: 34px; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px); margin-bottom: 56px; }
.pillars__item { padding-top: 28px; border-top: 1px solid var(--line-2); }
.pillars__item .ico { color: var(--text); margin-bottom: 16px; }
.pillars__item h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.pillars__item p { margin-top: 6px; font-size: 15px; color: var(--text-2); }

/* ---------- Pricing ---------- */
.price-card {
    max-width: 760px; margin-inline: auto;
    background: #fff; border-radius: var(--radius-xl);
    padding: clamp(28px, 5vw, 56px);
    box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.price-card__top { display: flex; align-items: center; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.price-card__top img { border-radius: 20px; width: 80px; height: 80px; }
.price-card__top h3 { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.price-card__top p { color: var(--text-2); font-size: 15px; margin-top: 2px; }
.price-card__list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 32px; padding: 24px 0; }
.price-card__list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 16px; }
.price-card__list .ico { color: var(--green); stroke-width: 2.4; }
.price-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); }
.price-card__foot .fineprint { margin-top: 0; }
.theme-light .appstore-badge img { filter: none; }
.badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; color: var(--text-2); font-size: 15px; font-weight: 500; }
.badges span { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Languages ---------- */
.langs { background: #000; }
.langs__preview { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-bottom: 48px; min-height: 120px; }
.langs__button {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-width: min(100%, 420px); height: 68px; padding: 0 36px; border-radius: 16px;
    background: linear-gradient(180deg, #2f8cff, #0a6ae8);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 20px 50px -14px rgba(10, 132, 255, 0.7);
    font-size: clamp(20px, 2.4vw, 26px); font-weight: 650; color: #fff; letter-spacing: -0.01em;
}
.langs__button .ico { width: 20px; height: 20px; }
.langs__button[dir="rtl"] .ico { transform: scaleX(-1); }
#langSampleText { transition: opacity .25s, transform .25s var(--ease); }
#langSampleText.is-switching { opacity: 0; transform: translateY(6px); }
.langs__caption { font-size: 14px; color: var(--text-3); }
.langs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 980px; margin-inline: auto; }
.langs__list button {
    padding: 8px 16px; border-radius: 980px; font-size: 15px; font-weight: 500;
    background: rgba(255, 255, 255, 0.06); color: var(--text-2); border: 1px solid transparent;
    transition: background-color .2s, color .2s, border-color .2s;
}
.langs__list button:hover { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.langs__list button[aria-checked="true"] { background: rgba(41, 151, 255, 0.14); border-color: rgba(41, 151, 255, 0.55); color: var(--text); }

/* ---------- FAQ ---------- */
.faq { background: #000; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__item h3 { font-size: inherit; font-weight: inherit; }
.faq__item button {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    width: 100%; padding: 24px 0; text-align: left;
    font-size: clamp(18px, 1.8vw, 21px); font-weight: 600; letter-spacing: -0.02em;
    transition: color .2s;
}
.faq__item button:hover { color: var(--accent); }
.faq__icon { position: relative; flex: none; width: 18px; height: 18px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.8px; margin-top: -0.9px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item button[aria-expanded="true"] .faq__icon::after { transform: rotate(0); }
.faq__a { overflow: hidden; }
.faq__a p { padding-bottom: 26px; color: var(--text-2); font-size: 17px; max-width: 680px; }
.faq__a.is-animating { transition: height .4s var(--ease); }

/* ---------- Final CTA ---------- */
.final { position: relative; padding: clamp(110px, 15vw, 200px) 0; background: #000; overflow: hidden; isolation: isolate; }
.final__light { position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 55% at 50% 40%, rgba(10, 132, 255, 0.26), transparent 70%); }
.final__icon { width: 120px; height: 120px; margin: 0 auto 36px; border-radius: 27px; filter: drop-shadow(0 30px 50px rgba(10, 132, 255, 0.4)); }
.final .lede { margin: 20px auto 40px; }

/* ---------- Footer ---------- */
.footer { background: #0b0b0d; border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 56px 0 40px; font-size: 13px; color: var(--text-3); }
.footer__top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer__brand { display: flex; align-items: flex-start; gap: 14px; max-width: 320px; }
.footer__brand img { border-radius: 8px; flex: none; }
.footer__brand strong { font-size: 15px; color: var(--text); }
.footer__brand p { margin-top: 4px; }
.footer__cols { display: flex; gap: clamp(32px, 6vw, 88px); flex-wrap: wrap; }
.footer__cols h2 { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 12px; letter-spacing: 0; }
.footer__cols a { display: block; padding: 4px 0; color: var(--text-2); transition: color .2s; }
.footer__cols a:hover { color: var(--text); }
.footer__bottom { padding-top: 24px; display: grid; gap: 8px; line-height: 1.6; }

/* ---------- Lightbox ---------- */
.lightbox {
    width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
    background: rgba(0, 0, 0, 0.9); color: #fff;
    -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);
}
.lightbox[open] { display: grid; grid-template-columns: 72px 1fr 72px; grid-template-rows: 64px 1fr; animation: lbIn .3s var(--ease); }
.lightbox::backdrop { background: transparent; }
.lightbox__bar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.lightbox__title { font-size: 15px; font-weight: 600; color: var(--text-2); }
.lightbox__close, .lightbox__nav { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); transition: background-color .2s; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox__nav { align-self: center; justify-self: center; }
.lightbox__figure { display: grid; place-items: center; min-height: 0; padding: 0 0 24px; }
.lightbox__figure img { max-height: min(calc(100dvh - 100px), var(--pt-h, 100dvh)); max-width: 100%; width: auto; object-fit: contain; animation: lbImg .4s var(--ease); }
.lightbox__figure .shot-placeholder { max-width: 420px; min-height: 420px; border-radius: var(--radius-lg); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbImg { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }

/* ---------- Toast ---------- */
.toast {
    position: fixed; left: 50%; bottom: 28px; z-index: 300;
    max-width: calc(100vw - 32px);
    transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
    padding: 14px 20px; border-radius: 16px;
    background: rgba(40, 40, 42, 0.92); color: #fff; font-size: 15px; font-weight: 500;
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: opacity .3s, transform .4s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Legal page ---------- */
.legal-hero { padding: calc(var(--nav-h) + clamp(64px, 9vw, 112px)) 0 clamp(40px, 6vw, 64px); text-align: center; background: radial-gradient(60% 60% at 50% 0%, #0b1726 0%, #000 70%); }
.legal-hero .lede { margin-inline: auto; }
.legal-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.legal-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 980px; font-size: 14px; font-weight: 500; background: rgba(255, 255, 255, 0.07); color: var(--text-2); transition: background-color .2s, color .2s; }
.legal-tabs a:hover { background: rgba(255, 255, 255, 0.12); color: var(--text); }
.legal { background: #000; padding-bottom: var(--section-y); }
.legal-card {
    max-width: 820px; margin: 0 auto 24px;
    background: linear-gradient(180deg, #111113, #0b0b0c);
    border: 1px solid var(--line); border-radius: var(--radius-xl);
    padding: clamp(28px, 5vw, 56px);
    scroll-margin-top: calc(var(--nav-h) + 20px);
}
.legal-card__head { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.legal-card__icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: rgba(41, 151, 255, 0.12); color: var(--accent); }
.legal-card__kicker { font-size: 13px; font-weight: 600; color: var(--text-3); }
.legal-card h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 700; letter-spacing: -0.028em; line-height: 1.15; margin-top: 2px; }
.legal-card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin: 32px 0 10px; }
.legal-card p, .legal-card li { color: var(--text-2); font-size: 16px; line-height: 1.65; }
.legal-card p + p { margin-top: 14px; }
.legal-card ul { display: grid; gap: 10px; }
.legal-card li { position: relative; padding-left: 20px; }
.legal-card li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.legal-card strong { color: var(--text); }
.legal-card code { font-family: var(--font-mono); font-size: 14px; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); color: var(--text); }
.legal-highlight { padding: 18px 22px; border-radius: var(--radius); background: rgba(48, 209, 88, 0.08); border: 1px solid rgba(48, 209, 88, 0.25); }
.legal-highlight p { color: var(--text); }
.legal-note { font-size: 13px !important; color: var(--text-3) !important; }
.legal-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 980px; font-size: 13px; font-weight: 600; color: var(--accent); background: rgba(41, 151, 255, 0.1); border: 1px solid rgba(41, 151, 255, 0.3); margin-bottom: 18px; }
.legal-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.btn-github { display: inline-flex; align-items: center; gap: 10px; margin: 22px 0; padding: 12px 20px; border-radius: 980px; background: #fff; color: #000; font-weight: 600; font-size: 15px; transition: opacity .2s, transform .15s var(--ease); }
.btn-github:hover { opacity: .88; }
.btn-github:active { transform: scale(0.97); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .nav__links { display: none; }
    .nav__toggle { display: block; }
    .tour__panel, .motion__grid, .wired__grid, .studio__grid, .frameless__grid, .uc__panel { grid-template-columns: minmax(0, 1fr); }
    .tour__copy { text-align: center; }
    .tour__desc { margin-inline: auto; max-width: 560px; }
    .tour__panel { padding-top: 40px; }
    .tour__media { order: 2; }
    .pillars { grid-template-columns: repeat(2, 1fr); }
    .motion .section-head, .wired .section-head, .frameless .section-head { text-align: center; }
    .motion .lede, .wired .lede, .frameless .lede { margin-inline: auto; }
    .duo { text-align: left; }
    .studio__shot { order: 2; }
    .controls { text-align: left; max-width: 520px; margin-inline: auto; }
}

@media (max-width: 734px) {
    body { font-size: 16px; }
    .hero__actions { flex-direction: column; gap: 18px; }
    .steps, .trio { grid-template-columns: 1fr; }
    .duo { grid-template-columns: 1fr; }
    .pillars { grid-template-columns: 1fr; }
    .price-card__list { grid-template-columns: 1fr; }
    .price-card__foot { flex-direction: column; align-items: flex-start; }
    .segmented button { padding: 0 14px; font-size: 14px; }
    .segmented--block button { height: 40px; padding: 0 6px; font-size: 13px; gap: 5px; }
    .tour .segmented { display: flex; margin-inline: calc(var(--gutter) * -1); border-radius: 0; border-inline: 0; padding-inline: var(--gutter); background: transparent; border: 0; }
    .tour .segmented button { background: rgba(255, 255, 255, 0.08); }
    .tour .segmented button[aria-selected="true"] { background: #fff; }
    .tour__panel { padding: 28px 20px; border-radius: var(--radius-lg); }
    .tour__media { min-height: 0; }
    .tour__frame img { max-height: min(var(--pt-h, 460px), 460px); }
    .tour__frame .shot-placeholder { min-height: 300px; }
    .tour__zoom-hint { opacity: 1; transform: none; }
    .keys__item { font-size: 14px; }
    .lightbox[open] { grid-template-columns: 0 1fr 0; grid-template-rows: 60px 1fr 72px; }
    .lightbox__nav { position: fixed; bottom: 18px; }
    .lightbox__nav--prev { left: calc(50% - 56px); }
    .lightbox__nav--next { right: calc(50% - 56px); }
    .frameless__window { --pw: 160px; }
    .usecases .segmented, .dual .segmented { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
    .js .statement__text .w { --o: 1; }
}

/* Split-layout headings sit in a half-width column */
.motion .h1, .wired .h1, .frameless .h1 { font-size: clamp(40px, 5.4vw, 72px); }
