/* BsonJet landing page - light and dark theme (system setting or the switch in the header) */

:root {
    --bg: #f6f8fc;
    --bg-alt: #eef2fa;
    --surface: #ffffff;
    --border: #dfe5f0;
    --text: #0f172a;
    --muted: #5b6478;
    --accent: #2563eb;
    --accent-2: #4f8dff;
    --accent-text: #ffffff;
    --button-from: #3b7bff;
    --button-to: #1d4ed8;
    --accent-soft: rgba(37, 99, 235, 0.10);
    --shadow: 0 24px 60px -24px rgba(15, 23, 42, 0.30);
    --code-key: #7c3aed;
    --code-str: #047857;
    --code-num: #b45309;
    --code-op: #be185d;
    --radius: 14px;
    color-scheme: light;
}

/* Dark theme: by the system setting, or chosen with the switch in the header (theme.js sets data-theme). */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0a0f1c;
        --bg-alt: #0e1526;
        --surface: #121a2e;
        --border: #22304d;
        --text: #e6ebf5;
        --muted: #94a0b8;
        --accent: #4f8dff;
        --accent-2: #8ab4ff;
        --accent-text: #ffffff;
        --button-from: #3b7bff;
        --button-to: #2155e6;
        --accent-soft: rgba(79, 141, 255, 0.14);
        --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
        --code-key: #c4a5ff;
        --code-str: #6ee7b7;
        --code-num: #fbbf24;
        --code-op: #f9a8d4;
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #0a0f1c;
    --bg-alt: #0e1526;
    --surface: #121a2e;
    --border: #22304d;
    --text: #e6ebf5;
    --muted: #94a0b8;
    --accent: #4f8dff;
    --accent-2: #8ab4ff;
    --accent-text: #ffffff;
    --button-from: #3b7bff;
    --button-to: #2155e6;
    --accent-soft: rgba(79, 141, 255, 0.14);
    --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
    --code-key: #c4a5ff;
    --code-str: #6ee7b7;
    --code-num: #fbbf24;
    --code-op: #f9a8d4;
    color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); letter-spacing: -0.02em; text-align: center; }
h3 { font-size: 1.08rem; }
p { margin: 0; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

.icon {
    width: 24px; height: 24px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.icon.filled { fill: currentColor; stroke: none; }
.icon.accent { color: var(--accent); }

/* Buttons */
.button {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 18px; border-radius: 10px;
    font-weight: 600; font-size: 0.95rem;
    border: 1px solid var(--border); background: var(--surface); color: var(--text);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button.primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--button-from), var(--button-to));
    color: var(--accent-text);
    box-shadow: 0 8px 24px -10px var(--accent);
}
.button.primary:hover { box-shadow: 0 12px 28px -10px var(--accent); }
.button.small { padding: 7px 14px; font-size: 0.88rem; }
.button.large { padding: 14px 24px; font-size: 1.05rem; }
.button .icon { width: 20px; height: 20px; }

/* Navigation */
.nav {
    position: sticky; top: 0; z-index: 10;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(1.6) blur(12px);
    -webkit-backdrop-filter: saturate(1.6) blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
    display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; cursor: pointer;
    color: var(--muted); background: transparent; border: 1px solid var(--border); border-radius: 10px;
}
.theme-toggle:hover { color: var(--text); border-color: var(--muted); }
.theme-toggle .icon { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }

/* Hero */
.hero {
    padding: 80px 0 72px;
    background:
        radial-gradient(900px 420px at 85% 0%, var(--accent-soft), transparent 70%),
        radial-gradient(700px 380px at 0% 100%, var(--accent-soft), transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em; margin-bottom: 16px; }
.hero h1 { font-size: clamp(3.2rem, 7.5vw, 5.6rem); letter-spacing: -0.04em; font-weight: 800; }
/* Lightning: the bolt next to "Just fast." strikes twice every few seconds and lights up the sky behind the hero.
   Two flashes in a quarter of a second - well under the limit of three flashes per second (WCAG 2.3.1). */
.hero { position: relative; overflow: hidden; }
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
    background: radial-gradient(700px 360px at 28% 32%, rgba(255, 221, 120, 0.32), transparent 70%);
    animation: sky-flash 9s ease-out infinite;
}
.hero-inner { position: relative; z-index: 1; }
.bolt { display: inline-block; width: 0.62em; height: 0.62em; margin-left: 0.12em; vertical-align: 0.06em; }
.bolt svg { width: 100%; height: 100%; fill: #ffc531; stroke: #e8a400; stroke-width: 0.6; stroke-linejoin: round; animation: bolt-strike 9s ease-out infinite; }
@keyframes bolt-strike {
    0%, 90%, 100% { filter: none; transform: none; }
    90.8% { filter: drop-shadow(0 0 0.18em rgba(255, 205, 60, 0.95)) brightness(1.35); transform: scale(1.06); }
    92% { filter: none; transform: none; }
    93% { filter: drop-shadow(0 0 0.28em rgba(255, 205, 60, 1)) brightness(1.5); transform: scale(1.1); }
    95.5% { filter: drop-shadow(0 0 0.08em rgba(255, 205, 60, 0.5)); transform: none; }
}
@keyframes sky-flash {
    0%, 90%, 100% { opacity: 0; }
    90.8% { opacity: 0.8; }
    92% { opacity: 0.1; }
    93% { opacity: 1; }
    96.5% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .hero::after, .bolt svg { animation: none; }
}.hero-sub { margin-top: 14px; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.gradient {
    background: linear-gradient(120deg, var(--accent-2), var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin-top: 22px; font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.version-badge {
    font-size: 0.85rem; font-weight: 600; color: var(--muted);
    padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
}
.cta-other { margin-top: 14px; font-size: 0.92rem; }

/* App illustration */
.app-window {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden; font-size: 0.78rem; line-height: 1.4;
    min-width: 0;
}
.app-titlebar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.app-title { margin-left: 10px; color: var(--muted); font-weight: 600; }
.app-body { display: grid; grid-template-columns: 34% minmax(0, 1fr); min-height: 300px; }
.app-explorer { padding: 10px 6px; background: var(--bg-alt); border-right: 1px solid var(--border); white-space: nowrap; overflow: hidden; }
.tree-item { padding: 3px 8px; border-radius: 6px; overflow: hidden; text-overflow: ellipsis; }
.tree-item.server { font-weight: 600; }
.tree-item.level1 { padding-left: 18px; }
.tree-item.level2 { padding-left: 34px; }
.tree-item.selected { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.app-main { padding: 0 12px 12px; min-width: 0; display: flex; flex-direction: column; }
.app-tab {
    align-self: flex-start; margin-top: 8px; padding: 4px 12px; font-weight: 600;
    border-bottom: 2px solid var(--accent);
}
.app-query {
    display: flex; align-items: center; gap: 8px; margin: 10px 0;
    padding: 7px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg);
    min-width: 0;
}
.app-query code {
    flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-family: "Cascadia Code", "JetBrains Mono", Consolas, Menlo, monospace; font-size: 0.74rem;
}
.q-label { color: var(--muted); }
.q-run { padding: 2px 10px; border-radius: 6px; background: var(--accent); color: var(--accent-text); font-weight: 600; }
.k { color: var(--code-key); }
.s { color: var(--code-str); }
.n { color: var(--code-num); }
.o { color: var(--code-op); }
.app-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.app-table th, .app-table td { text-align: left; padding: 6px 6px; border-bottom: 1px solid var(--border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-table th { color: var(--muted); font-weight: 600; }
.app-table td:first-child { font-family: "Cascadia Code", Consolas, Menlo, monospace; font-size: 0.72rem; color: var(--muted); }
.app-table tbody tr:nth-child(even) { background: var(--bg-alt); }
.app-pager { margin-top: auto; padding-top: 10px; color: var(--muted); text-align: right; }

/* Main claims: rows with a small picture of the application, then a strip of short claims */
.claims { padding: 96px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.claims code { font-family: "Cascadia Code", Consolas, Menlo, monospace; font-size: 0.88em; padding: 1px 5px; border-radius: 4px; background: var(--surface); color: var(--text); }
.pain { color: var(--muted); font-size: 0.95rem; font-style: italic; }
.showcases { display: grid; gap: 72px; margin-top: 64px; }
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.showcase:nth-child(even) .showcase-visual { order: -1; }
.showcase-text h3 { margin: 8px 0 12px; font-size: clamp(1.4rem, 2.4vw, 1.8rem); letter-spacing: -0.02em; }
.showcase-text p + p { margin-top: 10px; }
.showcase-text p:not(.pain) { color: var(--muted); }
.mini {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 14px; font-size: 0.8rem; line-height: 1.4; overflow: hidden;
}
.mini-table td.obj.on { color: var(--accent); }
.mini-table tr.sub-on td { background: var(--accent-soft); white-space: normal; padding-top: 4px; padding-bottom: 5px; }
.mini-table tbody tr.sub-on:nth-child(even) { background: none; }
.mini-explorer { max-width: 420px; margin: 0 auto; width: 100%; }
.mini-explorer .tree-item { padding-top: 3px; padding-bottom: 3px; }
.mini-explorer { height: 500px; }
.tree-item.dim { opacity: 0.45; }
.mini-ai { display: grid; gap: 12px; }
.ai-ask { display: flex; gap: 8px; align-items: center; padding: 9px 12px; border-radius: 10px; color: var(--accent-text); background: linear-gradient(135deg, var(--button-from), var(--button-to)); font-weight: 600; }
.ai-ask .icon { width: 16px; height: 16px; flex: none; }
.ai-filled { position: relative; display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--accent); border-radius: 10px; background: var(--bg); box-shadow: 0 0 0 2px var(--accent-soft); }
.ai-filled code { font-family: "Cascadia Code", Consolas, Menlo, monospace; font-size: 0.74rem; }
.ai-tag { position: absolute; top: -9px; right: 10px; padding: 1px 8px; border-radius: 999px; font-size: 0.66rem; font-weight: 700; color: var(--accent); background: var(--surface); border: 1px solid var(--accent); }
.ai-table td:first-child { font-family: inherit; font-size: inherit; color: var(--text); }
.ai-across { display: grid; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--border); }.mini-chat { display: grid; gap: 10px; }
.bubble { padding: 10px 12px; border-radius: 10px; max-width: 92%; }
.bubble.user { justify-self: end; background: linear-gradient(135deg, var(--button-from), var(--button-to)); color: var(--accent-text); }
.bubble.assistant { background: var(--bg-alt); border: 1px solid var(--border); }
.bubble.consent { background: var(--surface); border: 1px dashed var(--accent); color: var(--text); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pipeline { display: block; margin-top: 8px; white-space: pre-wrap; font-family: "Cascadia Code", Consolas, Menlo, monospace; font-size: 0.72rem; }
.ai-result { margin-top: 8px; color: var(--code-str); font-weight: 600; font-size: 0.75rem; }
.chip { padding: 2px 9px; border-radius: 6px; border: 1px solid var(--border); font-size: 0.72rem; font-weight: 600; }
.chip.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.copy-ends { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.copy-node { display: grid; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-alt); }
.copy-node span, .meta { color: var(--muted); font-size: 0.75rem; }
.copy-arrow { position: relative; display: grid; justify-items: center; gap: 4px; }
.copy-line { width: 100%; height: 2px; background: var(--accent); position: relative; }
.copy-line::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--accent); border-right: 0; }
.kbd { font-size: 0.7rem; font-weight: 600; padding: 1px 6px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; background: var(--surface); }
.progress { height: 6px; margin: 16px 0 12px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; }
.progress-bar { width: 62%; height: 100%; background: linear-gradient(90deg, var(--button-from), var(--button-to)); }
.proto { display: grid; gap: 6px; }
.proto > div { display: flex; gap: 8px; }
.proto .num { margin-left: auto; color: var(--muted); }
.ok { color: var(--code-str); font-weight: 700; }
.run { color: var(--accent); }
.wait { color: var(--muted); }
.zip { display: flex; gap: 14px; align-items: center; padding: 12px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-alt); }
.zip div { display: grid; }
.zip span { color: var(--muted); font-size: 0.75rem; }
.zip-icon { width: 40px; height: 40px; color: var(--accent); }
.attention { padding: 8px 10px; margin-bottom: 12px; border-radius: 8px; background: color-mix(in srgb, var(--code-num) 14%, transparent); color: var(--text); font-weight: 600; }
.warn { color: var(--code-num); }
.nodes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.node { display: grid; gap: 4px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-alt); font-size: 0.75rem; }
.node.warn-node { border-color: var(--code-num); }
.role { font-size: 0.68rem; font-weight: 700; color: var(--muted); }
.role.primary { color: var(--accent); }
.bar { height: 5px; border-radius: 999px; background: var(--border); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--code-str); }
.bar i.w40 { width: 40%; } .bar i.w42 { width: 42%; } .bar i.w86 { width: 86%; background: var(--code-num); }
.spark { width: 100%; height: 60px; margin-top: 14px; }
.spark path { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.center { text-align: center; }
.mini-claims { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 88px; padding-top: 48px; border-top: 1px solid var(--border); }
.mini-claim h3 { margin: 12px 0 6px; font-size: 1rem; }
.mini-claim p { color: var(--muted); font-size: 0.92rem; }
/* Our principle (quote) */
.principle { padding: 24px 0 24px; text-align: center; }
.principle figure { margin: 0 auto; max-width: 860px; }
.principle blockquote { margin: 0; }
.principle blockquote p {
    font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance;
    background: linear-gradient(120deg, var(--text), var(--accent));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.principle figcaption { margin-top: 16px; color: var(--muted); font-size: 0.95rem; }
.principle figcaption::before { content: "— "; }
.principle-note { margin: 22px auto 0; max-width: 34em; color: var(--muted); }
/* Features */
.features { padding: 72px 0 96px; }
.section-lead { text-align: center; color: var(--muted); margin: 14px auto 0; max-width: 40em; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; margin-top: 52px; }
.feature { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start; }
.feature .icon {
    grid-row: span 2; width: 36px; height: 36px; padding: 8px; border-radius: 10px;
    background: var(--accent-soft); color: var(--accent);
}
.feature h3 { margin: 6px 0 4px; }
.feature p { color: var(--muted); font-size: 0.93rem; }

/* Pricing */
.pricing { padding: 96px 0; background: var(--bg-alt); border-top: 1px solid var(--border); }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 52px; align-items: stretch; }
.price-card {
    position: relative; display: flex; flex-direction: column;
    padding: 30px 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.price-badge {
    position: absolute; top: -12px; left: 28px; padding: 3px 10px; border-radius: 999px;
    font-size: 0.75rem; font-weight: 600; color: var(--accent-text); background: linear-gradient(135deg, var(--button-from), var(--button-to));
}
.price-card h3 { font-size: 1.15rem; }
.price { margin-top: 14px; }
.price .amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.price .per { color: var(--muted); font-weight: 600; }
.price-note { color: var(--muted); font-size: 0.9rem; }
.price-list { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 10px; font-size: 0.95rem; }
.price-list li { position: relative; padding-left: 26px; }
.price-list li::before { content: "✓"; position: absolute; left: 0; color: var(--code-str); font-weight: 700; }
.price-button { margin-top: auto; justify-content: center; }
.button.disabled { opacity: 0.55; cursor: default; pointer-events: none; }
.price-footer { margin-top: 18px; text-align: center; color: var(--muted); font-size: 0.9rem; }
.price-footer + .price-footer { margin-top: 6px; }

/* Download */.download { padding: 88px 0 100px; border-top: 1px solid var(--border); }
.download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.platform {
    position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 32px 24px 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.platform.current { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.platform-icon { width: 40px; height: 40px; color: var(--text); }
.platform h3 { margin-top: 14px; font-size: 1.25rem; }
.platform-req { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }
.platform-links { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 22px; width: 100%; }
.platform-links .button { width: 100%; max-width: 260px; justify-content: center; }
.platform-links a.secondary { font-size: 0.92rem; font-weight: 500; }
.your-system {
    display: none; position: absolute; top: 14px; right: 14px;
    font-size: 0.75rem; font-weight: 600; color: var(--accent);
    padding: 2px 8px; border-radius: 999px; background: var(--accent-soft);
}
.platform.current .your-system { display: inline-block; }

/* Animated demo in the hero (main.js) */
.demo .app-body { height: 392px; overflow: hidden; }
.demo .app-main { position: relative; }
.demo-filter {
    position: relative; display: flex; align-items: center; gap: 6px; min-height: 28px;
    margin: 0 4px 8px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.demo-filter.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.demo-filter .icon { width: 13px; height: 13px; color: var(--muted); }
.demo-placeholder { position: absolute; left: 27px; color: var(--muted); }
.caret { display: none; width: 1px; height: 13px; margin-left: 1px; background: var(--text); animation: blink 1s steps(1) infinite; vertical-align: middle; }
.typing .caret { display: inline-block; }
@keyframes blink { 50% { opacity: 0; } }
.tree-item.level3 { padding-left: 46px; }
.tree-item.group { color: var(--muted); }
.tree-item.more { color: var(--muted); font-style: italic; }
.tree-item.hidden { display: none; }
.tree-item mark { background: var(--accent-soft); color: var(--accent); border-radius: 3px; font-weight: 700; }
.count { color: var(--accent); font-weight: 600; }
.app-table td.obj { color: var(--muted); font-family: "Cascadia Code", Consolas, Menlo, monospace; font-size: 0.7rem; }
.app-table tr.sub { display: none; }
.show-sub tr.sub { display: table-row; animation: fade-in 0.4s ease; }
.show-sub td.obj { color: var(--accent); }
.app-table tr.sub td { background: var(--accent-soft); white-space: normal; padding-top: 4px; padding-bottom: 5px; }
.sub-key { color: var(--accent); font-weight: 600; margin-right: 6px; }
.app-table tbody tr.sub:nth-child(even) { background: none; }
.demo-hint {
    display: none; align-self: flex-end; margin-top: 8px; padding: 4px 10px; font-size: 0.72rem;
    background: var(--surface); border: 1px solid var(--accent); border-radius: 6px; color: var(--accent); box-shadow: var(--shadow);
}
.demo-hint.show { display: inline-block; animation: fade-in 0.3s ease; }
.app-query { transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.app-query.flash { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.demo-ai {
    position: absolute; right: 12px; bottom: 34px; width: min(250px, calc(100% - 24px));
    padding: 10px 12px; background: var(--surface); border: 1px solid var(--accent); border-radius: 10px; box-shadow: var(--shadow);
    opacity: 0; transform: translateY(10px); transition: opacity 0.3s ease, transform 0.3s ease; pointer-events: none;
}
.demo-ai.show { opacity: 1; transform: none; }
.demo-ai-head { display: flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 0.72rem; }
.demo-ai-head .icon { width: 14px; height: 14px; }
.demo-ai-ask { margin-top: 6px; min-height: 1.4em; font-size: 0.8rem; }
.demo-ai-answer { display: none; margin-top: 6px; font-size: 0.72rem; color: var(--code-str); font-weight: 600; }
.demo-ai-answer.show { display: block; animation: fade-in 0.3s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Comparison */
.compare { padding: 96px 0; }
.compare-wrap { margin-top: 48px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table thead th { font-size: 1rem; background: var(--bg-alt); }
.compare-table tbody th { font-weight: 500; }
.compare-table td { color: var(--muted); }
.compare-table .ours { background: var(--accent-soft); color: var(--text); }
.compare-table thead .ours { color: var(--accent); }
.yes, .no, .partial { display: inline-block; width: 1.2em; font-weight: 700; }
.yes { color: var(--code-str); }
.no { color: var(--code-op); }
.partial { color: var(--code-num); }
.compare-note { margin-top: 14px; font-size: 0.82rem; color: var(--muted); text-align: center; }
.compare-links { margin-top: 18px; text-align: center; font-weight: 600; }
.soon { margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 0.7rem; font-weight: 600; vertical-align: middle; color: var(--accent); background: var(--accent-soft); }
/* Sub pages: alternatives, legal pages, 404 */
.page-hero { padding: 72px 0 32px; background: radial-gradient(900px 420px at 85% 0%, var(--accent-soft), transparent 70%); }
.page-hero .container { max-width: 868px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.03em; font-weight: 800; max-width: 18em; }
.page-hero .lead { max-width: 40em; }
.page-hero .cta { margin-top: 28px; }
.prose { max-width: 820px; margin: 0 auto; padding: 24px 0 88px; }
.prose h2 { text-align: left; font-size: 1.6rem; margin: 52px 0 14px; }
.prose h3 { margin: 26px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; display: grid; gap: 8px; margin: 12px 0 0; }
.prose strong { color: var(--text); }
.prose .compare-wrap { margin-top: 20px; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 16px 0 0; }
.prose dt { font-weight: 600; }
.prose dd { margin: 0; color: var(--muted); }
.updated { margin-top: 10px; color: var(--muted); font-size: 0.9rem; }
.license-box { padding: 4px 24px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.license-box h2 { margin-top: 22px; }
.license-key {
    display: block; width: 100%; margin-top: 4px; padding: 12px 14px; resize: none; word-break: break-all;
    font-family: "Cascadia Code", "JetBrains Mono", Consolas, Menlo, monospace; font-size: 0.85rem; line-height: 1.5;
    color: var(--text); background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px;
}
.license-actions { display: flex; align-items: center; gap: 14px; margin: 14px 0 16px; }
.license-copied { color: var(--code-str); font-weight: 600; }
.faq details { padding: 14px 0; border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--text); }
.faq details p { margin-top: 10px; }
.cta-band { margin-top: 56px; padding: 32px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--border); text-align: center; }
.cta-band h2 { text-align: center; margin: 0 0 16px; }
.not-found { padding: 120px 0; text-align: center; }
.not-found h1 { font-size: clamp(2.6rem, 6vw, 4rem); letter-spacing: -0.03em; }
.not-found p { margin-top: 14px; color: var(--muted); }
.not-found .cta { justify-content: center; }

/* Checksums of the installers */
.checksums { margin-top: 16px; width: 100%; text-align: left; font-size: 0.78rem; color: var(--muted); }
.checksums summary { cursor: pointer; text-align: center; }
.checksums code { display: block; margin-top: 6px; word-break: break-all; font-family: "Cascadia Code", Consolas, Menlo, monospace; }

/* Footer */
.footer { padding: 28px 0; border-top: 1px solid var(--border); font-size: 0.85rem; }
.footer-inner { display: grid; gap: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); }
.hero h1 .eyebrow { display: block; margin-bottom: 16px; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em; }

/* Responsive */
@media (max-width: 980px) {
    .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mini-claims { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .showcase { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .showcase:nth-child(even) .showcase-visual { order: 0; }
    .price-grid { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 720px) {
    .container { padding: 0 16px; }
    .nav-links { display: none; }
    .nav-actions { margin-left: auto; }
    .hero { padding: 52px 0 48px; }
    .download-grid, .feature-grid, .price-grid, .mini-claims { grid-template-columns: minmax(0, 1fr); }
    .showcases { gap: 56px; margin-top: 44px; }
    .nodes { grid-template-columns: minmax(0, 1fr); }
    .price-grid { gap: 28px; }
    .pricing { padding: 64px 0; }
    .claims { padding: 64px 0; }
    .features { padding: 64px 0; }
    .download { padding: 64px 0 72px; }
    .app-window { font-size: 0.7rem; }
    .app-body { grid-template-columns: 42% minmax(0, 1fr); }
    .app-table:not(.ai-table) th:first-child, .app-table:not(.ai-table) td:first-child, .app-table:not(.ai-table) th:nth-child(4), .app-table:not(.ai-table) td:nth-child(4) { display: none; }
    .compare { padding: 64px 0; }
    .prose dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .prose dd { margin-bottom: 10px; }
    .compare-table { font-size: 0.82rem; }
    .compare-table th, .compare-table td { padding: 10px 8px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button { transition: none; }
}
