/* Desko site. Warm huus palette, Shottr-style layout. Tokens first; never hard-code colours below. */

@font-face {
    font-family: "Nunito";
    src: url("/static/fonts/nunito-latin.woff2") format("woff2");
    font-weight: 400 800;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Nunito";
    src: url("/static/fonts/nunito-latin-ext.woff2") format("woff2");
    font-weight: 400 800;
    font-display: swap;
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --bg: #FFF9F0;
    --surface: #FFFFFF;
    --surface-sunk: #FDF2E3;
    --border: #F0E2CE;
    --ink: #3D3229;
    --ink-muted: #6F5F51;
    --ink-subtle: #9C8B7C;
    --accent: #CE3B1D;
    --accent-bright: #FF7A55;
    --accent-soft: #FFE3DA;
    --on-accent: #FFFFFF;

    --lavender: #DCD3F0;
    --peach: #FFD3B6;
    --sky: #C3E1F2;
    --mint: #BFE9D6;
    --butter: #FFE9A8;

    --stage-line: #3D3229;
    --scene-shade: rgba(28, 22, 18, .38);
    --glass: rgba(255, 255, 255, .78);
    --glass-ink: #3D3229;
    --glass-border: rgba(61, 50, 41, .12);

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    --shadow-sm: 0 2px 8px rgba(61, 50, 41, .06);
    --shadow-md: 0 6px 20px rgba(61, 50, 41, .08);
    --shadow-lg: 0 16px 40px rgba(61, 50, 41, .12);
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --ease-pop: cubic-bezier(.2, 1.6, .4, 1);
    --tap: 44px;
    --font: "Nunito", "Quicksand", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #1B1714;
        --surface: #25201B;
        --surface-sunk: #201B17;
        --border: #3A3129;
        --ink: #F6EEE4;
        --ink-muted: #C4B6A6;
        --ink-subtle: #8F8173;
        --accent: #FF7A55;
        --accent-bright: #FF9774;
        --accent-soft: #3D2620;
        --on-accent: #1B1714;
        --lavender: #3A3450;
        --peach: #4A3325;
        --sky: #233A48;
        --mint: #223F33;
        --butter: #463B1E;
        --stage-line: #0F0C0A;
        --glass: rgba(37, 32, 27, .82);
        --glass-ink: #F6EEE4;
        --glass-border: rgba(246, 238, 228, .12);
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, .25);
        --shadow-md: 0 6px 20px rgba(0, 0, 0, .3);
        --shadow-lg: 0 16px 40px rgba(0, 0, 0, .4);
    }
}
:root[data-theme="dark"] {
    --bg: #1B1714;
    --surface: #25201B;
    --surface-sunk: #201B17;
    --border: #3A3129;
    --ink: #F6EEE4;
    --ink-muted: #C4B6A6;
    --ink-subtle: #8F8173;
    --accent: #FF7A55;
    --accent-bright: #FF9774;
    --accent-soft: #3D2620;
    --on-accent: #1B1714;
    --lavender: #3A3450;
    --peach: #4A3325;
    --sky: #233A48;
    --mint: #223F33;
    --butter: #463B1E;
    --stage-line: #0F0C0A;
    --glass: rgba(37, 32, 27, .82);
    --glass-ink: #F6EEE4;
    --glass-border: rgba(246, 238, 228, .12);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .25);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, .3);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, .4);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 17px/1.55 var(--font);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { font-weight: 800; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 6vw, 60px); }
h2 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 28px; }
h3 { font-size: 20px; }
p { margin: 0; }
kbd {
    display: inline-grid;
    place-items: center;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    border-radius: 7px;
    background: var(--surface);
    font: 700 13px/1 var(--font);
    color: var(--ink);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(680px, 100% - 32px); }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 3px; border-radius: 6px; }

/* macOS look of the hero replicas (light, then dark below). */
:root {
    --mac-window: #FFFFFF;
    --mac-bar: #F3F3F5;
    --mac-canvas: #E9E9EC;
    --mac-chip: #E4E4E8;
    --mac-line: rgba(0, 0, 0, .1);
    --mac-ink: #1D1D1F;
    --mac-sub: #6E6E73;
    --mac-sel: #0A84FF;
    --mac-hl: rgba(10, 132, 255, .18);
    --mac-glass: rgba(246, 246, 248, .82);
    --tone-ink: var(--ink);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --mac-window: #2A2A2D;
        --mac-bar: #323236;
        --mac-canvas: #1E1E21;
        --mac-chip: #46464B;
        --mac-line: rgba(255, 255, 255, .1);
        --mac-ink: #F5F5F7;
        --mac-sub: #A1A1A6;
        --mac-hl: rgba(10, 132, 255, .38);
        --mac-glass: rgba(44, 44, 48, .8);
        --tone-ink: #1D1D1F;
    }
}
:root[data-theme="dark"] {
    --mac-window: #2A2A2D;
    --mac-bar: #323236;
    --mac-canvas: #1E1E21;
    --mac-chip: #46464B;
    --mac-line: rgba(255, 255, 255, .1);
    --mac-ink: #F5F5F7;
    --mac-sub: #A1A1A6;
    --mac-hl: rgba(10, 132, 255, .38);
    --mac-glass: rgba(44, 44, 48, .8);
    --tone-ink: #1D1D1F;
}

/* Header and footer */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; }
.brand img { border-radius: 7px; }
.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav a { padding: 8px 12px; border-radius: var(--radius-pill); text-decoration: none; font-weight: 600; color: var(--ink-muted); }
.header-nav a:hover, .header-nav a.current { color: var(--ink); background: var(--surface-sunk); }
.theme-toggle { width: var(--tap); height: var(--tap); display: grid; place-items: center; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink-muted); cursor: pointer; }
.theme-toggle:hover { background: var(--surface-sunk); color: var(--ink); }
.icon-sun, .icon-moon { width: 18px; height: 18px; border-radius: 50%; }
.icon-sun { background: currentColor; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px currentColor; transform: scale(.62); }
.icon-moon { display: none; box-shadow: inset -5px -3px 0 0 currentColor; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .icon-sun { display: none; }
    :root:not([data-theme="light"]) .icon-moon { display: block; }
}
.site-footer { border-top: 1px solid var(--border); margin-top: 96px; padding: 28px 0 40px; color: var(--ink-muted); font-size: 15px; }
.footer-row { display: flex; justify-content: flex-end; gap: 16px; flex-wrap: wrap; }
.footer-row nav { display: flex; gap: 20px; }
.footer-row a { text-decoration: none; }
.footer-row a:hover { color: var(--ink); }
@media (max-width: 560px) {
    .header-nav a[href="/#tools"] { display: none; }
}

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 24px; border-radius: var(--radius-pill); border: 0; font: 800 17px/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out), background .15s; }
.button.primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-md); }
.button.primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.button.primary:active { transform: translateY(0); }
.button.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.button.secondary:hover { background: var(--surface-sunk); }
.button.disabled { opacity: .55; cursor: default; box-shadow: none; }
.button.small { min-height: 36px; padding: 0 14px; font-size: 14px; background: var(--surface-sunk); color: var(--ink); border: 1px solid var(--border); }
.button.small.quiet { background: transparent; color: var(--ink-muted); }
.download { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.download-meta { color: var(--ink-muted); font-size: 14px; }

/* Hero */
.hero { padding: 72px 0 24px; }
.hero-copy { text-align: center; display: grid; justify-items: center; gap: 20px; margin-bottom: 48px; }
.hero-copy h1 { max-width: 14ch; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-muted); max-width: 40ch; }
.hero-copy .lead { margin-bottom: 8px; }

@property --a { syntax: "<percentage>"; inherits: true; initial-value: 33.333%; }
@property --b { syntax: "<percentage>"; inherits: true; initial-value: 66.667%; }

.stage {
    --a: 33.333%;
    --b: 66.667%;
    --k: 3.2%;   /* half the slant of a separator */
    --g: .35%;   /* half the separator width */
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--stage-line);
    box-shadow: var(--shadow-lg);
    container-type: inline-size;
    transition: --a .7s var(--ease-out), --b .7s var(--ease-out);
    isolation: isolate;
}
.stage[data-active="wall"] { --a: 70%; --b: 85%; }
.stage[data-active="shot"] { --a: 15%; --b: 85%; }
.stage[data-active="launch"] { --a: 15%; --b: 30%; }

.pane { position: absolute; inset: 0; outline: none; cursor: pointer; }
.pane-wall { clip-path: polygon(0 0, calc(var(--a) + var(--k) - var(--g)) 0, calc(var(--a) - var(--k) - var(--g)) 100%, 0 100%); }
.pane-shot { clip-path: polygon(calc(var(--a) + var(--k) + var(--g)) 0, calc(var(--b) + var(--k) - var(--g)) 0, calc(var(--b) - var(--k) - var(--g)) 100%, calc(var(--a) - var(--k) + var(--g)) 100%); }
.pane-launch { clip-path: polygon(calc(var(--b) + var(--k) + var(--g)) 0, 100% 0, 100% 100%, calc(var(--b) - var(--k) + var(--g)) 100%); }

/* The desk spans the stage; the scene is the pane's visible slice (a query container). */
.scene { position: absolute; top: 0; bottom: 0; container-type: inline-size; }
.pane-wall .scene { left: 0; width: var(--a); }
.pane-shot .scene { left: var(--a); width: calc(var(--b) - var(--a)); }
.pane-launch .scene { left: var(--b); width: calc(100% - var(--b)); }

.pane-label {
    position: absolute;
    left: 50%;
    bottom: 5%;
    transform: translateX(-50%);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: var(--glass);
    color: var(--glass-ink);
    border: 1px solid var(--glass-border);
    font-weight: 800;
    font-size: clamp(12px, 1.4vw, 16px);
    white-space: nowrap;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: opacity .3s;
}
.stage[data-active] .pane:not(.playing) .pane-label { opacity: 0; }
.pane:focus-visible .pane-label { outline: 3px solid var(--accent-bright); outline-offset: 2px; }

.desk { position: absolute; inset: 0; }

/* A fixed-aspect mock centred in the slice; children are laid out in % of it. */
.mock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 2.6cqw; color: var(--mac-ink); }
.mock-shot { width: 92cqw; height: 66cqw; }
.mock-launch { width: 94cqw; height: 58cqw; }
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lights { display: inline-flex; gap: .45em; }
.lights span { width: .75em; height: .75em; border-radius: 50%; background: #FF5F57; }
.lights span:nth-child(2) { background: #FEBC2E; }
.lights span:nth-child(3) { background: #28C840; }

/* Scene: live wallpaper, the real Aurora shader. */
.desk-wall { background: #070A16; }
.wall-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Scene: the screenshot editor. One 8 s timeline: arrow, steps, note, pixelate, backdrop change, copied. */
.desk-shot { background: linear-gradient(135deg, #FFC9A8 0%, #FFE4C7 45%, #F6C7D8 100%); }
:root[data-theme="dark"] .desk-shot { background: linear-gradient(135deg, #5A3A2C 0%, #4A3528 45%, #4B2E3A 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .desk-shot { background: linear-gradient(135deg, #5A3A2C 0%, #4A3528 45%, #4B2E3A 100%); } }
.ed-window { position: absolute; inset: 0; display: grid; grid-template-rows: auto auto 1fr; border-radius: 1.1em; overflow: hidden; background: var(--mac-window); border: 1px solid var(--mac-line); box-shadow: 0 2em 4em rgba(0, 0, 0, .28); }
.ed-titlebar { position: relative; display: flex; align-items: center; justify-content: center; height: 2.4em; background: var(--mac-bar); }
.ed-titlebar .lights { position: absolute; left: 1em; }
.ed-title { font-weight: 700; font-size: .85em; color: var(--mac-sub); }
.ed-toolbar { display: flex; align-items: center; gap: .3em; padding: .45em .8em; background: var(--mac-bar); border-bottom: 1px solid var(--mac-line); }
.ed-tool { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: .5em; font-size: .95em; color: var(--mac-sub); }
.ed-tool .ico { width: 1.15em; height: 1.15em; }
.ed-tool.on { background: var(--mac-sel); color: #fff; }
.ed-sep { width: 1px; height: 1.4em; margin: 0 .4em; background: var(--mac-line); }
.ed-color { width: 1.1em; height: 1.1em; border-radius: 50%; background: #FF453A; box-shadow: 0 0 0 .14em var(--mac-window), 0 0 0 .26em #FF453A; }
.ed-color.c-yellow { background: #FFD60A; box-shadow: none; }
.ed-color.c-blue { background: #0A84FF; box-shadow: none; }
.ed-actions { display: flex; gap: .4em; margin-left: auto; }
.ed-btn { padding: .3em .8em; border-radius: .45em; font-size: .8em; font-weight: 700; background: var(--mac-chip); }
.ed-btn.primary { background: var(--mac-sel); color: #fff; }
.ed-body { display: grid; grid-template-columns: 1fr 28%; min-height: 0; }
.ed-canvas { position: relative; overflow: hidden; display: grid; place-items: center; background: var(--mac-canvas); }
.ed-backdrop { position: absolute; inset: 7% 6%; border-radius: .8em; }
.bd0 { background: linear-gradient(135deg, #FF9A8B 0%, #FF6A88 55%, #FF99AC 100%); }
.bd1 { background: linear-gradient(135deg, #5EE7DF 0%, #6A8BFF 100%); opacity: 0; animation: bd-swap 8s var(--ease-out) infinite; }
@keyframes bd-swap { 0%, 64% { opacity: 0; } 70%, 92% { opacity: 1; } 98%, 100% { opacity: 0; } }
.ed-shot { position: relative; width: 70%; aspect-ratio: 16 / 10; border-radius: .6em; overflow: hidden; background: #fff; box-shadow: 0 1.2em 2.4em rgba(0, 0, 0, .3); animation: shot-pad 8s var(--ease-out) infinite; }
@keyframes shot-pad { 0%, 52% { transform: none; } 58%, 92% { transform: scale(.9); } 98%, 100% { transform: none; } }
.ed-shot-bar { height: 9%; display: flex; align-items: center; padding: 0 .7em; background: #F2F2F4; font-size: .7em; }
.ed-shot-body { display: grid; gap: .55em; padding: 6% 8%; }
.ed-shot-hero { height: 3.6em; border-radius: .45em; background: url("/static/media/aurora.jpg") center / cover; }
.ed-shot-line { height: .55em; border-radius: .3em; background: #E4E4E8; }
.ed-shot-line.w70 { width: 70%; } .ed-shot-line.w90 { width: 90%; } .ed-shot-line.w55 { width: 55%; }
.ed-shot-line.pixelated { position: relative; overflow: hidden; }
.ed-shot-line.pixelated::after { content: ""; position: absolute; inset: -.2em 0; background: repeating-conic-gradient(#9A9AA4 0 25%, #C8C8D0 0 50%) 0 0 / .55em .55em; opacity: 0; animation: pixelate 8s steps(1) infinite; }
@keyframes pixelate { 0%, 47% { opacity: 0; } 48%, 94% { opacity: 1; } 95%, 100% { opacity: 0; } }
.shot-arrow { position: absolute; left: 34%; top: 30%; width: 34%; overflow: visible; }
.arrow-line, .arrow-head { fill: none; stroke: #FF453A; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.arrow-line { stroke-dasharray: 110; stroke-dashoffset: 110; animation: draw 8s var(--ease-out) infinite; }
.arrow-head { stroke-dasharray: 40; stroke-dashoffset: 40; animation: head 8s var(--ease-out) infinite; }
@keyframes draw { 0%, 12% { stroke-dashoffset: 110; opacity: 1; } 24%, 92% { stroke-dashoffset: 0; opacity: 1; } 98%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes head { 0%, 23% { stroke-dashoffset: 40; opacity: 1; } 28%, 92% { stroke-dashoffset: 0; opacity: 1; } 98%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.ed-step { position: absolute; display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: #FF453A; color: #fff; font-weight: 800; font-size: .8em; border: .15em solid #fff; box-shadow: 0 .2em .5em rgba(0, 0, 0, .25); opacity: 0; animation: 8s var(--ease-pop) infinite; }
.s1 { left: 12%; top: 18%; animation-name: step1; }
.s2 { left: 12%; top: 66%; animation-name: step2; }
@keyframes step1 { 0%, 30% { opacity: 0; transform: scale(.4); } 34%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes step2 { 0%, 36% { opacity: 0; transform: scale(.4); } 40%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
.ed-note { position: absolute; right: 8%; top: 12%; padding: .15em .5em; border-radius: .35em; background: #FF453A; color: #fff; font-weight: 800; font-size: .9em; opacity: 0; animation: note 8s var(--ease-pop) infinite; }
@keyframes note { 0%, 41% { opacity: 0; transform: scale(.6); } 45%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
.ed-inspector { display: grid; align-content: start; gap: .7em; padding: 1em .9em; background: var(--mac-bar); border-left: 1px solid var(--mac-line); font-size: .85em; }
.ed-heading { font-weight: 800; font-size: .9em; }
.ed-slider { display: grid; gap: .3em; }
.ed-label { font-size: .8em; color: var(--mac-sub); }
.ed-track { position: relative; height: .3em; border-radius: .3em; background: var(--mac-line); }
.ed-knob { position: absolute; top: 50%; width: 1em; height: 1em; border-radius: 50%; background: #fff; box-shadow: 0 .1em .3em rgba(0, 0, 0, .3); transform: translate(-50%, -50%); }
.k1 { left: 30%; animation: knob 8s var(--ease-out) infinite; }
.k2 { left: 60%; }
.k3 { left: 45%; }
@keyframes knob { 0%, 52% { left: 30%; } 58%, 92% { left: 62%; } 98%, 100% { left: 30%; } }
.ed-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45em; }
.ed-preset { aspect-ratio: 1; border-radius: .45em; }
.p0 { background: linear-gradient(135deg, #FF9A8B, #FF6A88); }
.p1 { background: linear-gradient(135deg, #5EE7DF, #6A8BFF); }
.p2 { background: linear-gradient(135deg, #FBD786, #F7797D); }
.p3 { background: linear-gradient(135deg, #A18CD1, #FBC2EB); }
.p4 { background: linear-gradient(135deg, #43E97B, #38F9D7); }
.p5 { background: linear-gradient(135deg, #30CFD0, #330867); }
.p0 { animation: chosen-first 8s var(--ease-out) infinite; }
.p1 { animation: chosen-second 8s var(--ease-out) infinite; }
@keyframes chosen-first { 0%, 64% { box-shadow: 0 0 0 .14em var(--mac-bar), 0 0 0 .3em var(--mac-sel); } 70%, 92% { box-shadow: none; } 98%, 100% { box-shadow: 0 0 0 .14em var(--mac-bar), 0 0 0 .3em var(--mac-sel); } }
@keyframes chosen-second { 0%, 64% { box-shadow: none; } 70%, 92% { box-shadow: 0 0 0 .14em var(--mac-bar), 0 0 0 .3em var(--mac-sel); } 98%, 100% { box-shadow: none; } }
.ed-toast { position: absolute; left: 50%; bottom: -3.4em; padding: .5em 1.3em; border-radius: var(--radius-pill); background: rgba(30, 30, 32, .86); color: #fff; font-weight: 800; font-size: .9em; opacity: 0; transform: translateX(-50%); animation: toast 8s var(--ease-out) infinite; }
@keyframes toast { 0%, 76% { opacity: 0; transform: translate(-50%, 1em); } 80%, 90% { opacity: 1; transform: translate(-50%, 0); } 96%, 100% { opacity: 0; transform: translate(-50%, 0); } }

/* Scene: the launcher. Typing, results with a preview, → opens the actions. */
.desk-launch { background: linear-gradient(160deg, #BFDDF0 0%, #DCD3F0 60%, #F2DDEA 100%); }
:root[data-theme="dark"] .desk-launch { background: linear-gradient(160deg, #1F3442 0%, #2E2A45 60%, #3D2B3A 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .desk-launch { background: linear-gradient(160deg, #1F3442 0%, #2E2A45 60%, #3D2B3A 100%); } }
.ln-panel { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr; border-radius: 1.4em; overflow: hidden; background: var(--mac-glass); border: 1px solid var(--mac-line); box-shadow: 0 1.6em 3.6em rgba(0, 0, 0, .3); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); }
.ln-field { display: flex; align-items: center; gap: .55em; height: 2.9em; padding: 0 1.1em; font-size: 1.35em; border-bottom: 1px solid var(--mac-line); }
.ln-glass { color: var(--mac-sub); display: grid; }
.typed { display: flex; }
.ch { opacity: 0; animation: 8s steps(1) infinite; }
.c0 { animation-name: type0; } .c1 { animation-name: type1; } .c2 { animation-name: type2; }
.c3 { animation-name: type3; } .c4 { animation-name: type4; } .c5 { animation-name: type5; }
@keyframes type0 { 0%, 3% { opacity: 0; } 4%, 92% { opacity: 1; } 93%, 100% { opacity: 0; } }
@keyframes type1 { 0%, 6% { opacity: 0; } 7%, 92% { opacity: 1; } 93%, 100% { opacity: 0; } }
@keyframes type2 { 0%, 9% { opacity: 0; } 10%, 92% { opacity: 1; } 93%, 100% { opacity: 0; } }
@keyframes type3 { 0%, 12% { opacity: 0; } 13%, 92% { opacity: 1; } 93%, 100% { opacity: 0; } }
@keyframes type4 { 0%, 15% { opacity: 0; } 16%, 92% { opacity: 1; } 93%, 100% { opacity: 0; } }
@keyframes type5 { 0%, 18% { opacity: 0; } 19%, 92% { opacity: 1; } 93%, 100% { opacity: 0; } }
.caret { width: .08em; height: 1.1em; margin-left: .04em; background: #0A84FF; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ln-split { display: grid; grid-template-columns: 52% 1fr; min-height: 0; opacity: 0; animation: results 8s var(--ease-out) infinite; }
@keyframes results { 0%, 10% { opacity: 0; } 15%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
.ln-lists { position: relative; overflow: hidden; border-right: 1px solid var(--mac-line); }
.ln-list { position: absolute; inset: 0; display: grid; align-content: start; gap: .15em; padding: .5em; transition: none; }
.ln-results { animation: list-out 8s var(--ease-out) infinite; }
.ln-actions { transform: translateX(100%); animation: list-in 8s var(--ease-out) infinite; }
@keyframes list-out { 0%, 66% { transform: none; } 71%, 88% { transform: translateX(-100%); } 93%, 100% { transform: none; } }
@keyframes list-in { 0%, 66% { transform: translateX(100%); } 71%, 88% { transform: none; } 93%, 100% { transform: translateX(100%); } }
.ln-row { display: flex; align-items: center; gap: .6em; height: 2.5em; padding: 0 .6em; border-radius: .55em; }
.ln-row.on { background: var(--mac-hl); }
.ln-icon { display: grid; place-items: center; width: 1.7em; height: 1.7em; font-size: 1em; }
.ln-icon .ico { width: 1.6em; height: 1.6em; }
.ln-icon-safari .dial, .ln-big .dial { fill: #1E90FF; stroke: #fff; stroke-width: 1.2; }
.ln-icon-safari .needle-r, .ln-big .needle-r { fill: #FF3B30; stroke: none; }
.ln-icon-safari .needle-w, .ln-big .needle-w { fill: #fff; stroke: none; }
.ln-icon-web { border-radius: 50%; background: var(--mac-chip); color: var(--mac-sub); }
.ln-icon-web .ico { width: 1em; height: 1em; }
.ln-icon-folder .fill { fill: #5AB3F0; stroke: #3E9BDD; stroke-width: 1; }
.ln-icon-doc .paper { fill: #fff; stroke: #B9B9C0; }
.ln-icon-doc { color: #9A9AA4; }
.ln-text { display: grid; line-height: 1.2; min-width: 0; }
.ln-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .95em; }
.ln-sub { font-size: .72em; color: var(--mac-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ln-key { margin-left: auto; font-size: .72em; color: var(--mac-sub); flex: none; }
.ln-back { display: flex; justify-content: space-between; padding: .3em .6em .4em; font-size: .8em; font-weight: 700; color: var(--mac-sub); }
.ln-hint { font-weight: 600; }
.ln-act-icon { display: grid; color: var(--mac-sub); }
.ln-act-icon .ico { width: 1.2em; height: 1.2em; }
.ln-preview { display: grid; place-content: center; justify-items: center; gap: .55em; padding: 1em; text-align: center; }
.ln-big .ico { width: 4.6em; height: 4.6em; }
.ln-name { font-weight: 800; font-size: 1.05em; }
.ln-keys { font-size: .68em; color: var(--mac-sub); }

/* Phones: panes stack, each plays while on screen. */
@media (max-width: 760px) {
    .stage { aspect-ratio: auto; display: grid; gap: 8px; background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
    .pane { position: relative; clip-path: none !important; aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); container-type: inline-size; }
    .pane .scene { left: 0 !important; width: 100% !important; }
    .mock { font-size: 1.8cqw; }
    .mock-shot { width: 76cqw; height: 54cqw; }
    .mock-launch { width: 80cqw; height: 50cqw; }
}

/* Tools grid */
.tools { padding: 88px 0 0; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.tool-card { position: relative; display: grid; align-content: start; gap: 10px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.tool-card p { color: var(--ink-muted); }
.tool-dot { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tone); color: var(--tone-ink); margin-bottom: 6px; }
.tool-dot .ico { width: 22px; height: 22px; }
.tone-wall { --tone: var(--lavender); }
.tone-shot { --tone: var(--peach); }
.tone-launch { --tone: var(--sky); }
.tone-win { --tone: var(--mint); }
.tone-ocr { --tone: var(--butter); }
.tone-keys { --tone: var(--accent-soft); }
.tool-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; color: var(--ink-muted); font-size: 14px; }
.tool-keys:empty { display: none; }
.keys { display: inline-flex; gap: 3px; }

/* Command line and agents */
.agents { padding: 88px 0 0; }
.agent-band { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; padding: 40px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.agent-copy { display: grid; gap: 16px; }
.agent-copy p { color: var(--ink-muted); }
.eyebrow { font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.agent-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.agent-points li { display: flex; gap: 12px; align-items: flex-start; }
.agent-points .ico { width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .92em; }
.terminal { border-radius: var(--radius-md); overflow: hidden; background: #1C1C1E; box-shadow: var(--shadow-lg); min-width: 0; }
.term-bar { padding: 12px 14px; background: #2C2C2E; font-size: 14px; }
.terminal pre { margin: 0; padding: 18px 20px 22px; overflow-x: auto; color: #F5F5F7; font-size: 14px; line-height: 1.7; }
.terminal .prompt { color: #FF9F0A; }
.terminal .output { color: #A1A1A6; }
@media (max-width: 860px) { .agent-band { grid-template-columns: 1fr; padding: 28px; } }

/* Full feature list */
.features { padding: 88px 0 0; }
.feature-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 36px 32px; }
.feature-group h3 { margin-bottom: 12px; }
.feature-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; color: var(--ink-muted); }
.feature-group li { position: relative; padding-left: 20px; }
.feature-group li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-bright); }

/* Board teaser */
.board-teaser { padding: 88px 0 0; }
.teaser { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 36px; border-radius: var(--radius-lg); background: var(--surface-sunk); border: 1px solid var(--border); }
.teaser h2 { margin: 0; }

/* Feedback board */
.board { padding: 64px 0 0; }
.board h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 12px; }
.board h2 { font-size: 22px; margin: 36px 0 14px; }
.board .lead { margin-bottom: 28px; }
.board-form { display: grid; gap: 12px; margin-bottom: 36px; }
.board-form label { font-weight: 700; }
.field { width: 100%; padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface); color: var(--ink); font: inherit; resize: vertical; min-height: var(--tap); }
.field:focus { outline: none; border-color: var(--accent-bright); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-bright) 25%, transparent); }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hint { color: var(--ink-subtle); font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.notice { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--mint); }
.notice.error { background: var(--lavender); }
.empty { color: var(--ink-muted); }
.board-list { display: grid; gap: 12px; }
.entry { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.entry.waiting { border-style: dashed; box-shadow: none; }
.entry-body { display: grid; gap: 6px; min-width: 0; flex: 1; }
.entry-body p { white-space: pre-wrap; overflow-wrap: anywhere; }
.entry-meta { color: var(--ink-muted); font-size: 14px; }
.vote-form { margin: 0; }
.vote { width: 52px; min-height: 56px; display: grid; place-items: center; align-content: center; gap: 2px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-sunk); color: var(--ink); font: 800 16px/1 var(--font); cursor: pointer; flex: none; transition: background .15s, transform .15s var(--ease-pop); }
.vote:hover { background: var(--accent-soft); }
.vote:active { transform: scale(.94); }
.vote[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.vote-arrow { width: 0; height: 0; border: 6px solid transparent; border-bottom: 8px solid currentColor; border-top: 0; }
.vote[aria-pressed="true"] .vote-arrow { color: var(--accent); }
.vote.static { cursor: default; border-style: dashed; background: transparent; }
.vote-mark { color: var(--ink-muted); }
.more { justify-self: center; margin-top: 12px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.admin-actions form { margin: 0; }

@media (prefers-reduced-motion: reduce) {
    .stage, .button, .vote { transition: none; }
}

/* After the shorthands above, which reset it. site.js drives playback. */
.blob, .selection, .sel-size, .shot-toolbar, .arrow-line, .arrow-head, .shot-text, .shot-toast, .ch, .caret, .launch-results, .launch-hl, .launch-actions { animation-play-state: paused; }
