            /* ── scroll-reveal (gated on html.js so no-JS users see all) ── */
            html.js .reveal,
            html.js .feature-block, html.js .pricing-card,
            html.js .diagram-wrap {
                opacity: 0; transform: translateY(18px);
                transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
            html.js .in { opacity: 1 !important; transform: none !important; }
            .reveal-d1 { transition-delay: .08s; }
            .reveal-d2 { transition-delay: .16s; }
            .reveal-d3 { transition-delay: .24s; }

            /* ── hero glow (emerald, dim) behind the copy ──────────────── */
            .hero-glow { position: absolute; z-index: 0; pointer-events: none;
                top: -140px; left: -120px; width: 680px; height: 560px;
                background: radial-gradient(ellipse at center,
                    rgba(16,185,129,0.18) 0%, rgba(16,185,129,0.05) 34%, transparent 66%);
                filter: blur(46px); }
            .hero-glow-2 { position: absolute; z-index: 0; pointer-events: none;
                top: 40px; right: -160px; width: 520px; height: 460px;
                background: radial-gradient(ellipse at center,
                    rgba(96,165,250,0.10) 0%, transparent 62%);
                filter: blur(52px); }

            /* ════════════════════════════════════════════════════════════
               1:1 Auracle IDE — the real nimbalyst-fork dark theme, animated.
               Palette + chrome verified against the shipped v1.0.3 source.
               Scoped tokens (--n*) so nothing leaks into the emerald page.
               ════════════════════════════════════════════════════════════ */
            .aide { position: relative; isolation: isolate;
                --nb: #1e1e1e; --nb2: #252526; --nb3: #2d2d30;
                --nline: #3c3c3c; --ntx: #e5e7eb; --nmut: #9ca3af; --nfaint: #6b7280;
                --nprim: #60a5fa; --nprimh: #3b82f6; --nerr: #ef4444; --nok: #10b981; --nwarn: #f59e0b;
                --nmono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Monaco, Consolas, monospace;
                border: 1px solid var(--nline); border-radius: 12px; overflow: hidden;
                background: var(--nb); color: var(--ntx); font-family: var(--sans);
                box-shadow: 0 46px 110px -44px rgba(0,0,0,0.92), 0 0 0 1px rgba(255,255,255,0.02),
                            0 0 90px -46px rgba(96,165,250,0.30); }
            .aide svg { display: block; }

            /* title bar — native macOS traffic lights, centered "name - Auracle" */
            .aide-titlebar { position: relative; display: flex; align-items: center; gap: 12px;
                height: 38px; padding: 0 14px; background: var(--nb2); border-bottom: 1px solid var(--nline); }
            .aide-lights { display: flex; gap: 8px; }
            .aide-lights i { width: 12px; height: 12px; border-radius: 50%; display: block; }
            .aide-lights i:nth-child(1) { background: #ff5f57; }
            .aide-lights i:nth-child(2) { background: #febc2e; }
            .aide-lights i:nth-child(3) { background: #28c840; }
            .aide-title { position: absolute; left: 50%; transform: translateX(-50%);
                font-size: 12px; color: var(--nmut); white-space: nowrap; }

            .aide-body { display: flex; height: 452px; }
            .aide-gutter { width: 48px; flex: none; background: var(--nb2);
                border-right: 1px solid var(--nline); display: flex; flex-direction: column;
                align-items: center; padding: 8px 0; gap: 3px; }
            .aide-gi { width: 36px; height: 36px; border-radius: 8px; display: flex;
                align-items: center; justify-content: center; color: var(--nmut);
                transition: background .2s ease, color .2s ease; }
            .aide-gi svg { width: 20px; height: 20px; }
            .aide-gi.active { background: var(--nprim); color: #fff; }
            .aide-gspacer { flex: 1; }
            .aide-gbottom { display: flex; flex-direction: column; align-items: center; gap: 1px;
                padding-top: 7px; margin-top: 5px; border-top: 1px solid var(--nline); }
            .aide-gbottom .aide-gi { width: 32px; height: 32px; }
            .aide-gbottom .aide-gi svg { width: 17px; height: 17px; }

            /* file-tree sidebar */
            .aide-sidebar { width: 190px; flex: none; background: var(--nb2);
                border-right: 1px solid var(--nline); display: flex; flex-direction: column; }
            .aide-sb-head { display: flex; align-items: center; gap: 6px; padding: 10px 11px 8px; }
            .aide-sb-head .bar { width: 3px; height: 13px; border-radius: 2px; background: var(--nprim); }
            .aide-sb-head b { font-size: 12px; font-weight: 600; color: var(--ntx); }
            .aide-sb-actions { margin-left: auto; display: flex; gap: 8px; color: var(--nfaint); }
            .aide-sb-actions svg { width: 14px; height: 14px; }
            .aide-sb-label { padding: 3px 12px 5px; font-size: 10px; letter-spacing: .09em;
                text-transform: uppercase; color: var(--nfaint); }
            .aide-tree { list-style: none; margin: 0; padding: 0 6px; font-size: 12.5px; }
            .aide-tree li { display: flex; align-items: center; gap: 7px; padding: 4px 7px;
                border-radius: 5px; color: var(--nmut); }
            .aide-tree li svg { width: 14px; height: 14px; opacity: .85; flex: none; }
            .aide-tree li.sel { background: var(--nb3); color: var(--ntx); }
            .aide-tree li .tag { margin-left: auto; font-family: var(--nmono); font-size: 10px; }
            .aide-tree li .tag.m { color: var(--nwarn); }
            .aide-tree li .tag.a { color: var(--nok); }
            .aide-tree li.new { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; overflow: hidden;
                transition: max-height .4s ease, opacity .4s ease, padding .4s ease; }
            .aide-tree li.new.show { max-height: 32px; padding-top: 4px; padding-bottom: 4px; opacity: 1; }

            /* editor + tabs */
            .aide-main { flex: 1; min-width: 0; display: flex; }
            .aide-editor { flex: 1; min-width: 0; position: relative; display: flex;
                flex-direction: column; background: var(--nb); overflow: hidden; }
            .aide-tabs { display: flex; align-items: flex-end; height: 36px;
                background: var(--nb2); border-bottom: 1px solid var(--nline); padding-left: 6px; }
            .aide-tab { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px;
                min-width: 118px; max-width: 200px; font-size: 12px; color: var(--nmut);
                background: var(--nb2); border: 1px solid var(--nline); border-bottom: none;
                border-radius: 6px 6px 0 0; margin-right: 2px; }
            .aide-tab svg { width: 13px; height: 13px; flex: none; }
            .aide-tab .dirty { width: 7px; height: 7px; border-radius: 50%; background: var(--nmut);
                margin-left: auto; opacity: 0; transition: opacity .2s; }
            .aide-tab .dirty.on { opacity: 1; }
            .aide-tab.active { background: var(--nb); color: var(--ntx); margin-bottom: -1px;
                border-bottom: 1px solid var(--nb); }
            .aide-tab.strategy { max-width: 0; min-width: 0; padding: 0; margin: 0; border: none; opacity: 0;
                overflow: hidden; white-space: nowrap;
                transition: max-width .4s ease, min-width .4s ease, padding .4s ease, opacity .3s ease; }
            .aide-tab.strategy.show { max-width: 200px; min-width: 118px; padding: 0 11px; opacity: 1;
                border: 1px solid var(--nline); border-bottom: none; margin-right: 2px; }
            .aide-tabs-actions { margin-left: auto; display: flex; align-items: center; gap: 8px;
                padding: 0 12px 6px 0; color: var(--nfaint); }
            .aide-tabs-actions svg { width: 15px; height: 15px; }

            .aide-code { flex: 1; overflow: hidden; padding: 12px 0; position: relative;
                font-family: var(--nmono); font-size: 12.5px; line-height: 1.8; }
            .aide-pane { position: absolute; inset: 12px 0; }
            .aide-pane[hidden] { display: none; }
            .aide-ln { display: grid; grid-template-columns: 46px 1fr; white-space: pre; }
            .aide-ln .n { text-align: right; padding-right: 14px; color: var(--nfaint); user-select: none; }
            /* Monaco Dark+ token colors — the real editor palette */
            .aide-kw { color: #569cd6; } .aide-cls { color: #4ec9b0; } .aide-fn { color: #dcdcaa; }
            .aide-str { color: #ce9178; } .aide-num { color: #b5cea8; } .aide-cm { color: #6a9955; }
            .aide-var { color: #9cdcfe; } .aide-op { color: #d4d4d4; }
            .aide-ecaret { display: inline-block; width: 2px; height: 15px; background: var(--nprim);
                margin-bottom: -3px; opacity: 0; }
            .aide-ecaret.on { opacity: 1; animation: aide-blink 1.05s steps(1) infinite; }
            @keyframes aide-blink { 50% { opacity: 0; } }

            /* Live Algorithms panel + Deploy wizard (overlay the editor, beats 5–6) */
            .aide-live { position: absolute; inset: 0; z-index: 3; background: var(--nb);
                display: flex; flex-direction: column; opacity: 0; pointer-events: none;
                transition: opacity .4s ease; }
            .aide-live.show { opacity: 1; }
            .aide-live-h { display: flex; align-items: center; gap: 9px; padding: 11px 14px;
                border-bottom: 1px solid var(--nline); }
            .aide-live-h svg { width: 16px; height: 16px; color: var(--nprim); }
            .aide-live-h b { font-size: 13px; color: var(--ntx); }
            .aide-deploy { margin-left: auto; font-size: 11px; padding: 5px 13px; border-radius: 7px;
                background: var(--nprim); color: #fff; font-weight: 500; }
            .aide-ltable { width: 100%; border-collapse: collapse; }
            .aide-ltable th { text-align: left; padding: 9px 12px; color: var(--nmut); font-weight: 500;
                border-bottom: 1px solid var(--nline); font-family: var(--nmono); font-size: 10px;
                letter-spacing: .02em; }
            .aide-ltable td { padding: 10px 12px; color: var(--ntx); font-size: 11.5px;
                border-bottom: 1px solid var(--nline); font-variant-numeric: tabular-nums; }
            .aide-lrow { opacity: 0; transform: translateY(-4px); transition: opacity .4s, transform .4s; }
            .aide-lrow.show { opacity: 1; transform: none; }
            .aide-badge { font-size: 10px; padding: 2px 8px; border-radius: 999px;
                background: rgba(96,165,250,.16); color: var(--nprim); }
            .aide-badge.run { background: rgba(16,185,129,.16); color: #34d399; }
            .aide-wizard { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
                background: var(--nb2); border-top: 1px solid var(--nline); padding: 14px 16px 16px;
                transform: translateY(105%); transition: transform .5s cubic-bezier(.16,1,.3,1);
                box-shadow: 0 -18px 40px -20px rgba(0,0,0,.6); }
            .aide-wizard.show { transform: none; }
            .aide-wz-t { font-size: 12px; font-weight: 600; color: var(--ntx); margin-bottom: 4px; }
            .aide-wz-l { font-size: 10.5px; color: var(--nmut); }
            .aide-seg { display: inline-flex; border: 1px solid var(--nline); border-radius: 7px;
                overflow: hidden; margin: 9px 0 12px; }
            .aide-seg span { padding: 5px 16px; font-size: 11px; color: var(--nmut); }
            .aide-seg span.on { background: var(--nprim); color: #fff; }
            .aide-wz-go { display: inline-block; font-size: 12px; font-weight: 500; padding: 8px 20px;
                border-radius: 8px; background: var(--nprim); color: #fff; }

            /* right-hand Auracle Agent (ChatSidebar) */
            .aide-chat { width: 300px; flex: none; display: flex; flex-direction: column;
                background: var(--nb); border-left: 1px solid var(--nline); }
            .aide-chat-head { display: flex; align-items: center; gap: 8px; padding: 9px 11px;
                border-bottom: 1px solid var(--nline); }
            .aide-chat-head .sess { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--nmut); }
            .aide-chat-head .sess svg { width: 13px; height: 13px; }
            .aide-chat-head .sp { margin-left: auto; display: flex; gap: 9px; color: var(--nfaint); }
            .aide-chat-head .sp svg { width: 15px; height: 15px; }
            .aide-thread { flex: 1; overflow-y: auto; padding: 11px 11px 4px;
                display: flex; flex-direction: column; scrollbar-width: none; }
            .aide-thread::-webkit-scrollbar { display: none; }
            .aide-empty { margin: auto; text-align: center; color: var(--nfaint); font-size: 11.5px;
                display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 0 14px; }
            .aide-empty .k { font-family: var(--nmono); font-size: 10.5px; color: var(--nmut);
                border: 1px solid var(--nline); border-radius: 6px; padding: 3px 8px; }
            .aide-msg { padding: 9px 10px; border-radius: 8px; margin-bottom: 8px;
                opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; }
            .aide-msg.show { opacity: 1; transform: none; }
            .aide-msg.user { background: var(--nb2); }
            .aide-mh { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
            .aide-av { width: 22px; height: 22px; border-radius: 50%; flex: none; display: flex;
                align-items: center; justify-content: center; }
            .aide-av svg { width: 13px; height: 13px; }
            .aide-av.u { background: var(--nb3); color: var(--nmut); }
            .aide-av.b { background: linear-gradient(135deg, var(--nprim), var(--nprimh)); color: #fff; }
            .aide-who { font-size: 11.5px; font-weight: 600; color: var(--ntx); }
            .aide-plan { font-size: 9px; padding: 1px 6px; border-radius: 999px;
                background: rgba(96,165,250,.16); color: var(--nprim); font-weight: 600; }
            .aide-ts { margin-left: auto; font-size: 10px; color: var(--nfaint); }
            .aide-mb { font-size: 12px; color: var(--ntx); line-height: 1.55; }
            .aide-mb b { color: var(--nprim); font-weight: 600; }
            .aide-think { display: flex; align-items: center; gap: 8px; font-size: 11.5px;
                color: var(--nmut); padding: 3px 1px; }
            .aide-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--nmut);
                display: inline-block; margin-right: 4px; animation: aide-pulse 1.15s infinite; }
            .aide-dots i:nth-child(2) { animation-delay: .18s; }
            .aide-dots i:nth-child(3) { animation-delay: .36s; }
            @keyframes aide-pulse { 0%,100% { opacity: .28; } 50% { opacity: 1; } }
            .aide-tool { border: 1px solid var(--nline); background: var(--nb3); border-radius: 7px;
                margin-top: 8px; overflow: hidden; }
            .aide-tool-h { display: flex; align-items: center; gap: 7px; padding: 7px 9px; }
            .aide-tool-h svg.wr { width: 14px; height: 14px; color: var(--nmut); flex: none; }
            .aide-tool-h .nm { font-family: var(--nmono); font-size: 11px; color: var(--ntx); }
            .aide-tool-h svg.chev { width: 13px; height: 13px; color: var(--nfaint); }
            .aide-pill { font-family: var(--sans); font-size: 9.5px; padding: 1.5px 8px; border-radius: 999px; }
            .aide-pill.ok { background: rgba(16,185,129,.15); color: #34d399; }
            .aide-tool-b { border-top: 1px solid var(--nline); padding: 8px 9px; font-family: var(--nmono);
                font-size: 10.5px; color: var(--nmut); max-height: 0; overflow: hidden;
                padding-top: 0; padding-bottom: 0; border-top-color: transparent;
                transition: max-height .35s ease, padding .35s ease; }
            .aide-tool-b.open { max-height: 120px; padding-top: 8px; padding-bottom: 8px;
                border-top-color: var(--nline); }
            .aide-tool-b .lbl { color: var(--nfaint); }
            .aide-chart { border: 1px solid var(--nline); border-radius: 8px; background: var(--nb2);
                padding: 10px 11px 11px; margin-top: 8px; }
            .aide-chart svg { width: 100%; height: 58px; }
            .aide-curve { fill: none; stroke: var(--nok); stroke-width: 1.8; stroke-linecap: round;
                stroke-linejoin: round; stroke-dasharray: 360; stroke-dashoffset: 360;
                transition: stroke-dashoffset 1.9s cubic-bezier(.16,1,.3,1); }
            .aide-curve.draw { stroke-dashoffset: 0; }
            .aide-grid { stroke: var(--nline); stroke-width: .5; }
            .aide-stats { display: flex; gap: 14px; margin-top: 10px; }
            .aide-stat b { display: block; font-size: 9px; letter-spacing: .04em; text-transform: uppercase;
                color: var(--nmut); font-weight: 500; margin-bottom: 2px; }
            .aide-stat em { font-family: var(--nmono); font-style: normal; font-size: 13px;
                color: var(--ntx); font-variant-numeric: tabular-nums; }
            .aide-stat em.pos { color: #34d399; } .aide-stat em.neg { color: var(--nerr); }

            /* composer */
            .aide-composer { border-top: 1px solid var(--nline); background: var(--nb2); padding: 8px; }
            .aide-ctools { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; flex-wrap: wrap; }
            .aide-mode { font-size: 10px; padding: 2px 9px; border-radius: 999px;
                background: rgba(96,165,250,.16); color: var(--nprim); font-weight: 600; }
            .aide-chipx { font-size: 10px; padding: 2px 8px; border-radius: 6px; background: var(--nb3);
                color: var(--nmut); display: inline-flex; align-items: center; gap: 4px; }
            .aide-chipx svg { width: 11px; height: 11px; }
            .aide-inputwrap { display: flex; align-items: flex-end; gap: 8px; background: var(--nb);
                border: 1px solid var(--nline); border-radius: 8px; padding: 8px 8px 8px 10px;
                transition: border-color .2s, box-shadow .2s; }
            .aide-inputwrap.focus { border-color: var(--nprim); box-shadow: 0 0 0 3px rgba(96,165,250,.14); }
            .aide-ta { flex: 1; min-height: 34px; font-size: 12px; color: var(--ntx); line-height: 1.5;
                word-break: break-word; }
            .aide-ta .ph { color: var(--nfaint); }
            .aide-caret { display: inline-block; width: 1.5px; height: 14px; background: var(--nprim);
                margin-bottom: -2px; vertical-align: text-bottom; opacity: 0; }
            .aide-caret.on { animation: aide-blink 1.05s steps(1) infinite; }
            .aide-send { width: 30px; height: 30px; flex: none; border-radius: 7px; background: var(--nprim);
                color: #fff; display: flex; align-items: center; justify-content: center;
                transition: background .2s ease, transform .12s ease; }
            .aide-send svg { width: 15px; height: 15px; }
            .aide-send.cancel { background: var(--nerr); }

            /* compact StatusChip — pinned to the top-right on the title-bar
               border; a status dot + ONE word (Paper → Live). */
            .aide-status { position: absolute; top: 9px; right: 12px; z-index: 20;
                display: flex; align-items: center; gap: 5px; padding: 3px 8px;
                background: var(--nb3); border: 1px solid var(--nline); border-radius: 999px;
                font-family: var(--nmono); font-size: 9px; letter-spacing: .03em; color: var(--nmut);
                box-shadow: 0 6px 16px -8px rgba(0,0,0,.55); }
            .aide-status .dot { width: 5.5px; height: 5.5px; border-radius: 50%; flex: none;
                background: var(--nwarn); box-shadow: 0 0 0 2.5px rgba(245,158,11,.18);
                transition: background .5s ease, box-shadow .5s ease; }
            .aide-status.live { color: var(--ntx); }
            .aide-status.live .dot { background: var(--nok); box-shadow: 0 0 0 2.5px rgba(16,185,129,.22); }
            .aide-status.live { animation: aide-chip-pop .55s ease; }
            @keyframes aide-chip-pop { 0% { transform: scale(1); } 40% { transform: scale(1.1); }
                100% { transform: scale(1); } }

            /* the scripted cursor */
            .aide-cursor { position: absolute; top: 0; left: 0; width: 22px; height: 22px; z-index: 30;
                pointer-events: none; transform: translate(140px, 160px);
                transition: transform .82s cubic-bezier(.5,0,.18,1);
                filter: drop-shadow(0 3px 5px rgba(0,0,0,.55)); }
            .aide-cursor::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px;
                border-radius: 50%; border: 2px solid var(--nprim); opacity: 0; }
            .aide-cursor.click::after { animation: aide-ring .45s ease-out; }
            @keyframes aide-ring { 0% { opacity: .75; transform: scale(.35); }
                100% { opacity: 0; transform: scale(1.5); } }

            /* responsive: drop the file-tree, then stack editor over chat */
            @media (max-width: 960px) { .aide-sidebar { display: none; } }
            @media (max-width: 680px) {
                .aide-body { height: auto; }
                .aide-main { flex-direction: column; }
                .aide-editor { min-height: 240px; }
                .aide-chat { width: auto; border-left: none; border-top: 1px solid var(--nline); height: 300px; }
                .aide-cursor { display: none; }
            }

            /* ══ creative motion pass — diversified, not one uniform fade ══ */

            /* hero copy: staggered rise on first paint (load, not scroll) */
            @keyframes hero-rise { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: none; } }
            html.js .hero-lift { opacity: 0; animation: hero-rise .72s cubic-bezier(.16,1,.3,1) both; }
            html.js .hero-lift.d1 { animation-delay: .04s; }
            html.js .hero-lift.d2 { animation-delay: .11s; }
            html.js .hero-lift.d3 { animation-delay: .20s; }
            html.js .hero-lift.d4 { animation-delay: .27s; }
            html.js .hero-lift.d5 { animation-delay: .34s; }
            html.js .hero-lift.d6 { animation-delay: .42s; }

            /* hero glows: slow ambient drift so the backdrop breathes */
            @keyframes glow-drift-a { 0%,100% { transform: translate(0,0) scale(1); }
                50% { transform: translate(26px,-20px) scale(1.07); } }
            @keyframes glow-drift-b { 0%,100% { transform: translate(0,0) scale(1); }
                50% { transform: translate(-32px,22px) scale(1.1); } }
            .hero-glow { animation: glow-drift-a 15s ease-in-out infinite; }
            .hero-glow-2 { animation: glow-drift-b 19s ease-in-out infinite; }

            /* pricing grid: gentle left-to-right stagger within the row */
            html.js .pricing-card:nth-child(2) { transition-delay: .09s; }
            html.js .pricing-card:nth-child(3) { transition-delay: .18s; }

            @media (prefers-reduced-motion: reduce) {
                html.js .reveal, html.js .feature-block,
                html.js .pricing-card, html.js .diagram-wrap {
                    opacity: 1 !important; transform: none !important; transition: none !important; }
                html.js .hero-lift { opacity: 1 !important; animation: none !important; }
                .hero-glow, .hero-glow-2 { animation: none !important; }
                .aide-cursor { display: none !important; }
                .aide-ecaret, .aide-caret, .aide-dots i, .aide-status.live { animation: none !important; }
                .aide-curve { transition: none !important; }
            }
            /* ── plan / checkout modal (Clerk PricingTable renders inside) ── */
            .plans-dialog { width: min(560px, calc(100vw - 28px)); max-height: 88vh;
                overflow: auto; padding: 0; border: 1px solid rgba(255,255,255,0.12);
                border-radius: 16px; background: #0a0a0a; color: #fff;
                box-shadow: 0 30px 90px rgba(0,0,0,0.6); }
            .plans-dialog::backdrop { background: rgba(0,0,0,0.74); }
            .plans-head { position: sticky; top: 0; z-index: 1; display: flex;
                align-items: center; justify-content: space-between; padding: 16px 20px;
                background: #0a0a0a; border-bottom: 1px solid rgba(255,255,255,0.08); }
            .plans-head b { font-size: 15px; font-weight: 600; }
            .plans-x { background: transparent; border: 0; color: rgba(255,255,255,0.55);
                font-size: 18px; line-height: 1; padding: 4px 6px; cursor: pointer; }
            .plans-x:hover { color: #fff; }
            .plans-table { padding: 10px; }
            .plans-table:empty { display: none; }
            .plans-fallback { padding: 22px 20px; text-align: center; }
            .plans-fallback p { margin: 0 0 16px; font-size: 14px; line-height: 1.55;
                color: rgba(255,255,255,0.7); }
            .plans-note { margin: 0; padding: 4px 20px 18px; text-align: center;
                font-size: 11px; color: rgba(255,255,255,0.4); }
            @media (prefers-reduced-motion: no-preference) {
                .plans-dialog[open] { animation: plans-in .18s cubic-bezier(.22,1,.36,1); }
                @keyframes plans-in { from { opacity: 0; transform: translateY(10px) scale(.98); }
                    to { opacity: 1; transform: none; } }
            }
        /* ── Factory-system reskin (homepage-only): Geist + terminal grammar.
           Self-hosted variable fonts (official Geist release, OFL) so the CSP
           gains no external origins. The shared css/index.css is untouched;
           every override here is scoped to this page. ── */
        @font-face {
          font-family: "Geist";
          src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
          font-weight: 100 900; font-style: normal; font-display: swap;
        }
        @font-face {
          font-family: "Geist Mono";
          src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2");
          font-weight: 100 900; font-style: normal; font-display: swap;
        }
        body { font-family: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif; background: #020202; }
        .mono-ui, .mono-label, .mono-feature-num { font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
        .nav-link {
          font-family: "Geist Mono", ui-monospace, monospace;
          font-size: 11px; letter-spacing: .09em; text-transform: uppercase;
          color: rgba(255,255,255,.62); transition: color .15s ease;
        }
        .nav-link:hover { color: #fff; }
        header .btn-pill, .btn-primary, .btn-secondary {
          font-family: "Geist Mono", ui-monospace, monospace;
          text-transform: uppercase; letter-spacing: .08em; font-size: 12px;
          border-radius: 4px;
        }
        .chapter-kicker {
          font-family: "Geist Mono", ui-monospace, monospace;
          font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
          color: rgba(255,255,255,.4);
        }
        .chapter-sub {
          font-family: "Geist Mono", ui-monospace, monospace;
          font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.55);
        }
        .gridpaper {
          border: 1px solid rgba(255,255,255,.08); border-radius: 12px;
          background-color: #050505;
          background-image:
            repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 36px),
            repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 36px);
        }
        .surface-pill {
          display: inline-flex; align-items: center; gap: 8px;
          font-family: "Geist Mono", ui-monospace, monospace;
          font-size: 12px; color: rgba(255,255,255,.72); white-space: nowrap;
        }
        .surface-pill .dot { width: 5px; height: 5px; border-radius: 50%; background: #60a5fa; }
        .cta-card {
          position: relative; overflow: hidden; border-radius: 16px;
          color: #0a0a0a;
          background-color: #ececea;
          background-image:
            radial-gradient(120% 90% at 20% 0%, rgba(255,255,255,.9), rgba(220,220,216,.65) 60%, rgba(200,200,196,.8)),
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
        }
        .btn-cta-dark {
          display: inline-flex; align-items: center; gap: 8px;
          font-family: "Geist Mono", ui-monospace, monospace;
          font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
          background: #0a0a0a; color: #fff; padding: 10px 18px; border-radius: 4px;
          transition: background .15s ease;
        }
        .btn-cta-dark:hover { background: #1d1d1d; }
        .footer-wordmark {
          font-family: "Geist", ui-sans-serif, sans-serif;
          font-weight: 600; letter-spacing: .04em; line-height: .9;
          font-size: clamp(3rem, 9vw, 6.5rem); color: #fff; user-select: none;
        }

        /* ── Factory-exact system: nav + mega menu + hero board ── */
        :root { --acc: #60a5fa; --ink: #eeeeee; --mut: #8a8380; --hair: rgba(255,255,255,.09); }
        .fnav { position: fixed; inset: 0 0 auto 0; z-index: 60; height: 72px; }
        .fnav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 28px; position: relative; z-index: 61; }
        .fnav-links { display: none; align-items: center; gap: 26px; }
        @media (min-width: 900px) { .fnav-links { display: flex; } }
        .fnav a.fl, .fnav .fl {
          font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; font-weight: 400;
          letter-spacing: -0.24px; text-transform: uppercase; color: var(--ink);
          display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
        }
        .fnav a.fl:hover, .fnav .fl:hover { color: #fff; opacity: .85; }
        .fl .chev { font-size: 9px; opacity: .7; transform: translateY(.5px); }
        .nav-btn {
          font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: -0.24px;
          text-transform: uppercase; height: 26px; display: inline-flex; align-items: center;
          padding: 0 13px; border-radius: 3px; white-space: nowrap;
        }
        .nav-btn-light { background: #fafafa; color: #0a0a0a; }
        .nav-btn-light:hover { background: #fff; }
        .nav-btn-dark { background: #1f1d1c; color: var(--ink); }
        .nav-btn-dark:hover { background: #2a2827; }
        #clerk-auth a { font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: -0.24px; text-transform: uppercase; }
        /* Mega menu: full-width dark sheet under the bar, opened by hover. */
        .mega { position: fixed; left: 0; right: 0; top: 0; padding-top: 72px; z-index: 55;
          background: #0a0908; border-bottom: 1px solid var(--hair);
          opacity: 0; pointer-events: none; transform: translateY(-6px);
          transition: opacity .18s ease, transform .18s ease; }
        .has-mega:hover .mega, .mega:hover { opacity: 1; pointer-events: auto; transform: none; }
        .mega-in { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0;
          max-width: 980px; margin: 0 0 0 26vw; padding: 26px 0 40px; }
        .mega-col { padding: 0 40px; border-left: 1px solid var(--hair); }
        .mega-col:first-child { border-left: 0; }
        .mega-k { font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .06em;
          text-transform: uppercase; color: var(--mut); margin-bottom: 18px; }
        .mega-col a { display: block; font-size: 15px; color: #d6d3d1; padding: 8px 0; }
        .mega-col a:hover { color: #fff; }
        /* Hero: factory grid — copy left, board right, board bleeds right. */
        .fhero { position: relative; max-width: 1920px; margin: 0 auto; padding: 150px 28px 90px;
          display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 44px; align-items: start; overflow: visible; }
        @media (max-width: 1023px) { .fhero { grid-template-columns: 1fr; padding-top: 120px; } }
        .fhero h1 { font-family: "Geist", ui-sans-serif, sans-serif; font-size: clamp(44px, 5vw, 72px);
          line-height: 1; font-weight: 400; letter-spacing: -0.04em; color: var(--ink); max-width: 580px; }
        .fhero-sub { font-family: "Geist Mono", ui-monospace, monospace; font-size: 16px; line-height: 1.2;
          color: var(--mut); margin-top: 28px; max-width: 430px; }
        .fhero-ctas { display: flex; gap: 10px; margin-top: 34px; }
        .fbtn { font-family: "Geist Mono", ui-monospace, monospace; font-size: 12.5px; letter-spacing: -0.2px;
          text-transform: uppercase; height: 30px; display: inline-flex; align-items: center; gap: 7px;
          padding: 0 15px; border-radius: 3px; }
        .fbtn-light { background: #fafafa; color: #0a0a0a; } .fbtn-light:hover { background: #fff; }
        .fbtn-dark { background: #1f1d1c; color: var(--ink); } .fbtn-dark:hover { background: #2a2827; }
        /* The board: DOM-built product frame, factory proportions. */
        /* Marquee band */
        .mq-band { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 34px 0 30px; overflow: hidden; }
        .mq-line { text-align: center; font-size: 13px; color: #b8b3b0; margin-bottom: 26px; font-family: "Geist", sans-serif; }
        .mq { display: flex; gap: 72px; width: max-content; animation: mq 38s linear infinite; }
        .mq span { font-family: "Geist Mono", ui-monospace, monospace; font-size: 15px; letter-spacing: .1em;
          text-transform: uppercase; color: rgba(255,255,255,.34); white-space: nowrap; }
        @keyframes mq { to { transform: translateX(-50%); } }
        @media (prefers-reduced-motion: reduce) { .mq { animation: none; } }
        /* Scroll text fill */
        .fillwrap { max-width: 1100px; margin: 0 auto; padding: 150px 28px 120px; }
        .fillhead { font-family: "Geist", sans-serif; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.04;
          letter-spacing: -0.03em; font-weight: 400; }
        .fillhead .w { color: rgba(255,255,255,.16); transition: color .25s linear; }
        .fillhead .w.lit { color: var(--ink); }
        .fillhead .w.acc.lit { color: var(--acc); }
        .fillsub { font-family: "Geist Mono", ui-monospace, monospace; font-size: 14px; line-height: 1.6;
          color: var(--mut); max-width: 560px; margin-top: 34px; }


        /* Hero carries the real IDE frame; the board lives on the platform stage. */
        .heroide { position: relative; width: calc(100% + 28px); }
        @media (max-width: 1023px) { .heroide { width: 100%; } }
        .heroide .aide { box-shadow: 0 30px 80px rgba(0,0,0,.55); }
        .stage .frame { border-radius: 8px; }
        /* Feature chapters, factory-form: centered heads, framed mono detail. */
        .feature-block { text-align: center; }
        .feature-block .tw-grid { display: block; }
        .feature-block .mono-feature-num { font-size: 12px; color: var(--acc); margin-bottom: 6px; }
        .feature-block .mono-label { margin-bottom: 20px; }
        .feature-block h3 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.02em; }
        .feature-block p { font-family: "Geist Mono", ui-monospace, monospace; font-size: 13px;
          line-height: 1.65; color: rgba(255,255,255,.55); max-width: 640px; margin-left: auto; margin-right: auto; }
        .feature-block .feature-bullets { display: inline-block; text-align: left;
          border: 1px solid var(--hair); border-radius: 12px; padding: 22px 30px;
          background-color: #050505;
          background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 36px),
            repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 36px);
          font-family: "Geist Mono", ui-monospace, monospace; font-size: 12.5px; color: rgba(255,255,255,.72); }
        .cta-card { box-shadow: 0 0 140px rgba(255,255,255,.06); }
        /* Surface chapters: reference chapter grammar. Copy column left, product
           frame right; chapters you have scrolled past step back for the active one. */
        .schap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
          gap: 56px; align-items: center; margin-bottom: 110px; transition: opacity .6s ease; }
        .schap.past, .schap-head.past { opacity: .4; }
        .schap-head { margin-bottom: 40px; transition: opacity .6s ease; }
        .schap-dot { display: block; width: 5px; height: 5px; border-radius: 1px;
          background: rgba(255,255,255,.35); margin-bottom: 18px; }
        .schap h3, .schap-head h3 { font-size: clamp(26px, 2.4vw, 36px); line-height: 1.1;
          letter-spacing: -0.031em; font-weight: 400; color: #eee; margin-bottom: 14px; }
        .schap-para { font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px;
          line-height: 1.6; letter-spacing: -0.24px; color: rgb(138,131,128); max-width: 46ch; }
        .schap-para-c { max-width: 56ch; }
        .schap-head .schap-para { max-width: 60ch; }
        .schap-link { display: inline-block; margin-top: 18px; font-family: "Geist Mono", ui-monospace, monospace;
          font-size: 12px; letter-spacing: -0.24px; text-transform: uppercase; color: #eee; }
        .schap-link:hover { text-decoration: underline; text-underline-offset: 3px; }
        @media (max-width: 900px) { .schap { display: block; margin-bottom: 80px; } .schap .frame { margin-top: 26px; } }

        /* Product frames: reference frame shell. */
        .frame { background: rgb(15,14,13); border: 1px solid rgb(38,33,29);
          border-radius: 6px; overflow: hidden; }

        /* Mini IDE frame: static twin of the hero rendition, real dark theme. */
        .side { font-size: 11.5px; position: relative; background: #1e1e1e; }
        .side-tb { display: flex; align-items: center; gap: 6px; height: 34px;
          background: #2d2d30; border-bottom: 1px solid #3c3c3c; padding: 0 12px; }
        .side-tb span { flex: 1; text-align: center; font-size: 11px; color: rgba(255,255,255,.55); }
        .tl { width: 11px; height: 11px; border-radius: 50%; flex: none; }
        .tl.r { background: #ff5f57; } .tl.y { background: #febc2e; } .tl.g { background: #28c840; }
        .side-cols { display: grid; grid-template-columns: minmax(0, 1fr) 250px; min-height: 400px; }
        .side-tabs { display: flex; gap: 2px; background: #252526; padding: 6px 8px 0; }
        .side-tabs span { padding: 7px 13px; font-size: 12px; color: rgba(255,255,255,.45); border-radius: 4px 4px 0 0; }
        .side-tabs span.on { background: #1e1e1e; color: rgba(255,255,255,.85); }
        .side-code { margin: 0; padding: 18px 20px 26px; font-family: "Geist Mono", ui-monospace, monospace;
          font-size: 12.5px; line-height: 1.8; color: #d4d4d4; overflow-x: auto; }
        .side-code .k { color: #c586c0; } .side-code .t { color: #4ec9b0; }
        .side-code .f { color: #dcdcaa; } .side-code .c { color: #6a9955; }
        .side-code .n { color: #b5cea8; }
        .side-rail { border-left: 1px solid #3c3c3c; background: #252526; padding: 10px;
          display: flex; flex-direction: column; gap: 8px; }
        .side-rail-h { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: rgba(255,255,255,.4); }
        .side-msg { font-size: 11.5px; line-height: 1.5; color: rgba(255,255,255,.8);
          background: #1e1e1e; border: 1px solid #3c3c3c; border-radius: 6px; padding: 7px 8px; }
        .side-msg.you { background: rgba(96,165,250,.12); border-color: rgba(96,165,250,.35); }
        .side-input { margin-top: auto; display: flex; align-items: center; gap: 6px;
          font-size: 11px; color: rgba(255,255,255,.3); background: #1e1e1e;
          border: 1px solid #3c3c3c; border-radius: 6px; padding: 7px 8px; }
        .side-send { width: 18px; height: 18px; border-radius: 4px; background: #60a5fa; margin-left: auto; flex: none; }
        .side-chip { position: absolute; left: 10px; bottom: 10px; display: inline-flex;
          align-items: center; gap: 6px; font-size: 10px; color: rgba(255,255,255,.75);
          background: #2d2d30; border: 1px solid #3c3c3c; border-radius: 999px; padding: 3px 10px; }
        .side-chip i { width: 6px; height: 6px; border-radius: 50%; background: #60a5fa; }

        /* CLI frame: the auracle binary in a dark terminal. */
        .term { background: #101010; }
        .term-body { margin: 0; min-height: 320px; padding: 18px 20px 24px;
          font-family: "Geist Mono", ui-monospace, monospace; font-size: 13px; line-height: 1.75;
          color: rgba(255,255,255,.82); overflow-x: auto; white-space: pre; }
        .term-body .p { color: #60a5fa; }
        .term-body .o { color: rgba(255,255,255,.55); }
        .term-body .ok { color: #2ea043; }
        .term-caret { display: inline-block; width: 7px; height: 13px; background: rgba(255,255,255,.7);
          vertical-align: -2px; animation: tblink 1.1s steps(1) infinite; }
        @keyframes tblink { 50% { opacity: 0; } }

        /* Live Algorithms desk: the IDE loop on the platform stage. */
        .mide { position: relative; font-family: "Geist Mono", ui-monospace, monospace;
          font-size: 12.5px; background: #1e1e1e; }
        .mide-bar { display: flex; align-items: center; gap: 2px; background: #252526;
          border-bottom: 1px solid #3c3c3c; padding: 6px 10px 0; }
        .mide-tab { padding: 6px 12px; font-size: 11px; color: rgba(255,255,255,.45); border-radius: 4px 4px 0 0; }
        .mide-tab.on { background: #1e1e1e; color: rgba(255,255,255,.85); }
        .mide-live { margin-left: auto; padding-bottom: 6px; font-size: 9.5px; letter-spacing: .06em;
          color: #60a5fa; display: inline-flex; align-items: center; gap: 5px; }
        .mide-live i { width: 5px; height: 5px; border-radius: 50%; background: #60a5fa; animation: midepulse 1.6s infinite; }
        @keyframes midepulse { 50% { opacity: .25; } }
        .mide-tbl { width: 100%; border-collapse: collapse; }
        .mide-tbl th { text-align: left; font-weight: 400; font-size: 9.5px; letter-spacing: .05em;
          text-transform: uppercase; color: rgba(255,255,255,.35); padding: 10px 14px 8px; border-bottom: 1px solid #3c3c3c; }
        .mide-tbl td { padding: 11px 16px; border-bottom: 1px solid rgba(255,255,255,.06);
          color: rgba(255,255,255,.8); font-variant-numeric: tabular-nums; }
        .mide-tbl .r, .mide-tbl th.r { text-align: right; }
        .st { display: inline-flex; align-items: center; gap: 6px; font-size: 10px;
          border: 1px solid #3c3c3c; border-radius: 999px; padding: 2px 9px; }
        .st i { width: 5px; height: 5px; border-radius: 50%; }
        .st.live { color: #2ea043; } .st.live i { background: #2ea043; }
        .st.paper { color: #60a5fa; } .st.paper i { background: #60a5fa; }
        .up { color: #2ea043; } .dn { color: #c4554d; }
        .mide-bh { font-size: 9.5px; letter-spacing: .05em; color: rgba(255,255,255,.35); padding: 12px 14px 6px; }
        .mide-blot { height: 152px; overflow: hidden; padding: 0 6px 10px; }
        .mide-row { display: grid; grid-template-columns: 86px 70px 56px 1fr 92px; gap: 10px;
          padding: 5px 10px; font-size: 11.5px; color: rgba(255,255,255,.62); font-variant-numeric: tabular-nums; }
        .mide-row .sym { color: rgba(255,255,255,.85); }
        .mide-row .side.b { color: #2ea043; } .mide-row .side.s { color: #c4554d; }
        .mide-row .ok { color: rgba(255,255,255,.4); text-align: right; }
        .mide-row.new { animation: midein .35s ease; }
        @keyframes midein { from { opacity: 0; transform: translateY(4px); } }
        .mide-inc { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center;
          gap: 7px; font-size: 10px; color: rgba(255,255,255,.75); background: #2d2d30;
          border: 1px solid #3c3c3c; border-radius: 999px; padding: 4px 11px;
          opacity: 0; transition: opacity .5s ease; pointer-events: none; }
        .mide-inc.show { opacity: 1; }
        .mide-inc i { width: 5px; height: 5px; border-radius: 50%; background: #d4a017; flex: none; }

        /* Honest states for what is not shipped yet. */
        .mega-soon { display: block; padding: 6px 0; font-size: 13px; color: rgba(255,255,255,.28); cursor: default; }
        .surface-pill.soon { opacity: .45; }

        @media (prefers-reduced-motion: reduce) {
          .term-caret, .mide-live i { animation: none; }
          .schap, .schap-head { transition: none; }
          .schap.past, .schap-head.past { opacity: 1; }
        }

        /* Feature demo frames: every feature shows itself working, on a loop.
           Markup ships the finished state; scripts rewind it when motion is on. */
        .fdemo { max-width: 960px; margin: 34px auto 30px; text-align: left;
          font-family: "Geist Mono", ui-monospace, monospace; }
        .fdemo-hd { display: flex; align-items: center; justify-content: space-between;
          padding: 12px 16px 6px; font-size: 10.5px; color: rgba(255,255,255,.45); }
        .fdemo-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 10px;
          border: 1px solid #3c3c3c; border-radius: 999px; padding: 2px 9px; color: #60a5fa; }
        .fdemo-chip i { width: 5px; height: 5px; border-radius: 50%; background: #60a5fa; }
        .fdemo-chip.ok { color: #2ea043; } .fdemo-chip.ok i { background: #2ea043; }
        .fdemo-svg { display: block; width: 100%; height: 195px; }
        #bt-fill { transition: opacity .6s ease; }
        .fdemo-stats { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 12px 18px 18px;
          font-size: 11.5px; color: rgba(255,255,255,.45); }
        .fdemo-stats b { color: rgba(255,255,255,.85); font-weight: 400; }
        .fdemo-stats .ok { color: #2ea043; }
        .fdemo-bt.anim .fdemo-stats span { opacity: 0; }
        .fdemo-bt.anim .fdemo-stats span.on { opacity: 1; transition: opacity .4s ease; }

        .br-lane { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center;
          gap: 10px; padding: 20px 16px 14px; }
        .br-node { border: 1px solid #3c3c3c; border-radius: 6px; background: #1e1e1e;
          padding: 8px 12px; text-align: center; min-width: 0; }
        .br-node b { display: block; font-size: 11px; font-weight: 400; color: rgba(255,255,255,.85); }
        .br-node small { display: block; margin-top: 2px; font-size: 9px; color: rgba(255,255,255,.35); }
        .br-node small span.ok { color: #2ea043; }
        .br-wire { position: relative; height: 1px; background: #3c3c3c; }
        .br-dot { position: absolute; top: -2.5px; left: 0; width: 6px; height: 6px;
          border-radius: 50%; background: #60a5fa; opacity: 0; }
        .br-dot.go { left: calc(100% - 6px); opacity: 1;
          transition: left .9s linear, opacity .15s ease; }
        .br-audit { padding: 0 6px 12px; min-height: 68px; }

        .ag-h { padding: 12px 16px 4px; font-size: 10px; text-transform: uppercase;
          letter-spacing: .04em; color: rgba(255,255,255,.4); }
        .ag-thread { min-height: 210px; display: flex; flex-direction: column; gap: 8px;
          padding: 8px 12px 4px; }
        .ag-thread .side-msg { font-size: 12px; max-width: 78%; }
        .ag-thread .side-msg.you { align-self: flex-end; }
        .fdemo-ag .side-input { margin: 8px 12px 12px; }
        .side-caret { display: inline-block; width: 6px; height: 11px; margin-left: 4px;
          background: rgba(255,255,255,.5); animation: tblink 1.1s steps(1) infinite; }

        .ws-tabs span { cursor: default; }
        .ws-body { background: #1e1e1e; }
        .ws-pane { display: none; min-height: 240px; }
        .ws-pane.on { display: block; }
        .ws-tear { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 20px;
          padding: 20px 22px 8px; font-size: 11.5px; color: rgba(255,255,255,.45); }
        .ws-tear b { color: rgba(255,255,255,.85); font-weight: 400; margin-left: 6px; }
        .ws-svg { height: 104px; padding: 0 12px 12px; }
        .ws-blot { padding: 14px 6px; }
        .ws-nb .o2 { color: rgba(255,255,255,.55); }
        #side-m2 { transition: opacity .35s ease; }

        .fdemo-dt { max-width: 520px; }
        .dt-list { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
        .dt-row { display: flex; align-items: center; gap: 10px; font-size: 12px;
          color: rgba(255,255,255,.38); }
        .dt-row .dt-i { width: 12px; height: 12px; border-radius: 50%;
          border: 1px solid #3c3c3c; flex: none; position: relative; }
        .dt-row.busy { color: rgba(255,255,255,.75); }
        .dt-row.busy .dt-i { border-color: rgba(96,165,250,.25); border-top-color: #60a5fa;
          animation: dtspin .7s linear infinite; }
        .dt-row.done { color: rgba(255,255,255,.75); }
        .dt-row.done .dt-i { border-color: #2ea043; }
        .dt-row.done .dt-i::after { content: ""; position: absolute; left: 3px; top: 1px;
          width: 3.5px; height: 6.5px; border: solid #2ea043; border-width: 0 1.5px 1.5px 0;
          transform: rotate(45deg); }
        .dt-row.acc.done { color: #60a5fa; }
        @keyframes dtspin { to { transform: rotate(360deg); } }

        @media (prefers-reduced-motion: reduce) { .side-caret, .dt-row.busy .dt-i { animation: none; } }

        /* Homepage accent swap: retired emerald reads as Nous-blue here. */
        .tw-text-emerald-400 { color: #60a5fa !important; }

        /* ── Product surface pages (/product/ide, /product/cli). ───────── */
        /* The body is a flex column; auto side-margins alone would shrink these
           wrappers to content width, so pin them to the full row first. */
        .phero, .phero-frame, .pfeat-label, .prow, .route-wrap { width: 100%; }
        .phero { max-width: 1152px; margin: 0 auto; padding: 150px 24px 40px; }
        .pkick { display: block; font-family: "Geist Mono", ui-monospace, monospace;
          font-size: 12px; letter-spacing: -0.24px; text-transform: uppercase;
          color: #60a5fa; margin-bottom: 18px; }
        .phero h1 { font-size: clamp(40px, 4.6vw, 64px); line-height: 1.03;
          letter-spacing: -0.035em; font-weight: 400; color: #eee; max-width: 740px;
          margin-bottom: 18px; }
        .psub { font-family: "Geist Mono", ui-monospace, monospace; font-size: 13px;
          line-height: 1.65; letter-spacing: -0.24px; color: rgb(138,131,128);
          max-width: 54ch; margin-bottom: 26px; }
        .phero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
        .phero-frame { max-width: 1152px; margin: 16px auto 0; padding: 0 24px 40px; }
        .pfeat-label { max-width: 1152px; margin: 0 auto; padding: 34px 24px 6px;
          font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px;
          letter-spacing: -0.24px; text-transform: uppercase; color: rgba(255,255,255,.35); }
        .prow { max-width: 1152px; margin: 0 auto; padding: 48px 24px 64px;
          display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
          gap: 56px; align-items: center; }
        .prow-line { border-top: 1px solid rgba(255,255,255,.1); }
        @media (max-width: 900px) { .prow { display: block; } .prow .frame { margin-top: 26px; } }
        .term-tall .term-body { min-height: 430px; }
        .vtbl { padding: 16px 20px 20px; }
        .vtbl div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px;
          padding: 7.5px 0; border-bottom: 1px solid rgba(255,255,255,.05);
          font-family: "Geist Mono", ui-monospace, monospace; font-size: 11.5px; }
        .vtbl div:last-child { border-bottom: 0; }
        .vtbl b { color: #60a5fa; font-weight: 400; }
        .vtbl span { color: rgba(255,255,255,.55); }
        .route-wrap { padding: 24px 24px 8px; }
        .route-card { max-width: 1104px; margin: 0 auto; border-radius: 12px;
          background: #edeae7; color: #131110; padding: 44px 44px 40px;
          display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
          gap: 44px; align-items: end; }
        .route-card h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em;
          font-weight: 400; color: #131110; }
        .route-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
        .route-cols a { display: block; }
        .route-cols .rk { font-family: "Geist Mono", ui-monospace, monospace;
          font-size: 11px; letter-spacing: .02em; text-transform: uppercase;
          color: #3a3634; margin-bottom: 8px; }
        .route-cols p { font-family: "Geist Mono", ui-monospace, monospace;
          font-size: 11.5px; line-height: 1.55; color: #6b6560; }
        .route-cols a:hover .rk { text-decoration: underline; text-underline-offset: 3px; }
        @media (max-width: 900px) { .route-card { display: block; padding: 30px; }
          .route-cols { grid-template-columns: 1fr; gap: 18px; margin-top: 24px; } }


        /* Footer signs off with the mark alone. */
        .footer-mark { display: block; height: 118px; width: auto; opacity: .96; }
        @media (max-width: 640px) { .footer-mark { height: 72px; } }

        /* The mark ghosts large behind the footer panel, cropped by its edge. */
        .footer-panel { position: relative; overflow: hidden; }
        .footer-panel > * { position: relative; z-index: 1; }
        .footer-ghost { position: absolute; z-index: 0; left: -60px; bottom: -150px;
          height: 560px; width: auto; opacity: .07; pointer-events: none;
          filter: grayscale(1) brightness(2); }
        @media (max-width: 640px) { .footer-ghost { height: 320px; bottom: -80px; } }

        /* Secondary pages sit under the fixed nav. */
        .subpage-pad { height: 72px; }
