/* ========================================================
   N·PLOT — Marketing site
   The app's dark surfaces and the logo's colours; Geist served from assets/fonts.
   ======================================================== */

@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('assets/fonts/geist-latin-ext-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('assets/fonts/geist-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Geist Mono';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('assets/fonts/geist-mono-latin-ext-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Geist Mono';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('assets/fonts/geist-mono-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg-deepest: #06060a;
    --bg-base: #0c0c14;
    --bg-surface: #13131e;
    --bg-elevated: #1a1a28;
    --bg-lighter: #242436;

    /* The logo's colours, one per letter. */
    --logo-red: #E94740;
    --logo-green: #3AAA35;
    --logo-lime: #AFCB08;
    --logo-blue: #2DAAE1;
    --logo-orange: #F39200;
    --logo-gold: #FDC300;
    --logo-yellow: #FFED00;

    --accent-primary: var(--logo-red);
    --accent-primary-light: #F27A74;
    --accent-primary-dim: rgba(233, 71, 64, 0.15);
    --accent-blue: var(--logo-blue);
    --accent-blue-light: #6CC6EE;
    --accent-blue-dim: rgba(45, 170, 225, 0.15);
    --accent-amber: var(--logo-orange);
    --accent-amber-dim: rgba(243, 146, 0, 0.15);
    --accent-green: var(--logo-green);
    --accent-green-light: #5FC25A;
    --accent-green-dim: rgba(58, 170, 53, 0.15);
    --accent-yellow: var(--logo-gold);
    --accent-yellow-dim: rgba(253, 195, 0, 0.14);

    --accent: var(--accent-primary);
    --accent-light: var(--accent-primary-light);
    --accent-dim: var(--accent-primary-dim);
    --accent-line: rgba(233, 71, 64, 0.45);
    --warn: var(--logo-orange);
    --warn-dim: rgba(243, 146, 0, 0.3);

    --text-primary: #f0f2f8;
    --text-secondary: #9aa1b8;
    --text-muted: #606880;

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.16);

    --font-ui: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Consolas, monospace;

    --ease: cubic-bezier(0.32, 0.72, 0, 1);
    --dur: 700ms;
    --dur-fast: 300ms;

    --shadow-media: 0 24px 64px rgba(0, 0, 0, 0.6);

    --z-toc: 40;
    --z-header: 100;
    --z-skip: 200;
    --z-grain: 300;

    --radius: 16px;
    --wrap: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.nav-locked { overflow: hidden; }

body {
    margin: 0;
    background-color: var(--bg-deepest);
    /* Plan paper: a fine dot grid with a stronger dot every fourth step. */
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1.6px),
        radial-gradient(rgba(255, 255, 255, 0.09) 1.4px, transparent 2px);
    background-size: 24px 24px, 96px 96px;
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 24px;
    -webkit-font-smoothing: antialiased;
}

/* Grain over everything, so the flat black doesn't read as digital. */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: var(--z-grain);
    pointer-events: none;
    opacity: 0.05;
    background-image: 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.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, h5 { font-weight: 600; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 2px;
    border-radius: 4px;
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

.wrap-narrow { max-width: 760px; }

.skip-link {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: var(--z-skip);
    padding: 8px 16px;
    border-radius: 9999px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    transform: translateY(-200%);
    transition: transform var(--dur-fast) var(--ease);
}
.skip-link:focus-visible { transform: none; }

.text-link {
    color: var(--accent-light);
    text-decoration: underline;
    text-decoration-color: var(--accent-line);
    text-underline-offset: 4px;
    transition: color var(--dur-fast) var(--ease), text-decoration-color var(--dur-fast) var(--ease);
}
.text-link:hover { color: var(--text-primary); text-decoration-color: currentColor; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        transform var(--dur) var(--ease),
        background-color var(--dur-fast) var(--ease),
        border-color var(--dur-fast) var(--ease),
        color var(--dur-fast) var(--ease),
        box-shadow var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.98); transition-duration: 200ms; }

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-primary-light) 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(233, 71, 64, 0.35);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(233, 71, 64, 0.5); }

.btn-outline {
    background: transparent;
    border-color: var(--border-medium);
    color: var(--text-primary);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-light); }

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-subtle);
    color: var(--text-primary);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.btn-lg { padding: 12px 24px; }
.btn-sm { padding: 8px 12px; font-size: 14px; line-height: 20px; }

/* --- Header: a floating glass island --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    padding-top: 24px;
    pointer-events: none;
}

.site-header .header-inner {
    position: relative;
    isolation: isolate;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 32px;
    width: max-content;
    max-width: calc(100% - 32px);
    margin: 0 auto;
    padding: 8px 8px 8px 24px;
    border-radius: 9999px;
}
/* The glass sits on a pseudo-element: backdrop-filter on the island itself would
   trap the fixed mobile menu inside it. */
.site-header .header-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: rgba(19, 19, 30, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.brand { display: flex; }
.brand-logo { height: 24px; width: auto; }

.main-nav {
    display: flex;
    gap: 24px;
}
.main-nav a {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--dur-fast) var(--ease);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text-primary); }

.header-actions { position: relative; z-index: 2; display: flex; align-items: center; gap: 16px; }

.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    color: var(--text-muted);
}
.lang-switch a { color: var(--text-secondary); padding: 2px 4px; transition: color var(--dur-fast) var(--ease); }
.lang-switch a:hover { color: var(--text-primary); }
.lang-switch a.active { color: var(--accent-light); }
.lang-switch span { color: var(--border-medium); }

.nav-toggle {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    padding: 0;
}
.nav-toggle span {
    position: absolute;
    left: 10px;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--text-primary);
    transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- Hero --- */
.hero { padding: 32px 0 80px; }

.eyebrow {
    display: block;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--accent-light);
    margin: 0 0 16px;
}

.hero h1, .manual-hero h1, .legal-hero h1 {
    font-size: 36px;
    line-height: 40px;
    letter-spacing: -0.03em;
    margin: 0 0 24px;
    max-width: 680px;
    background: linear-gradient(90deg, #FFFFFF, #9B9B9B);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
@media (min-width: 768px) {
    .hero h1 { font-size: 48px; line-height: 1; }
}

.hero-sub {
    font-size: 18px;
    line-height: 28px;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 0 32px;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
.dl-alt { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }
/* On a phone the price link gets its own line, so no separator is left hanging. */
@media (max-width: 560px) {
    .dl-sep { display: none; }
    .dl-more { display: table; margin-top: 4px; }
}

.hero-note { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }

/* --- Protocol bar --- */
.protocol-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 32px;
    padding-top: 16px;
    padding-bottom: 16px;
}
.protocol-lead { font-size: 14px; line-height: 20px; color: var(--text-muted); }
.protocol-item {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 20px;
    color: var(--text-secondary);
}
.protocol-item:nth-of-type(2) { color: var(--accent-blue-light); }
.protocol-item:nth-of-type(3) { color: var(--accent-green-light); }
.protocol-item:nth-of-type(4) { color: var(--accent-amber); }
.protocol-item:nth-of-type(5) { color: var(--accent-primary-light); }

/* --- Sections --- */
.section { padding: 80px 0 96px; }
.section-alt { background: rgba(12, 12, 20, 0.72); }

.section-title {
    font-size: 30px;
    line-height: 36px;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    max-width: 680px;
}
@media (min-width: 768px) {
    .section-title { font-size: 36px; line-height: 40px; }
}
#features .section-title { margin-bottom: 64px; }
.section-sub {
    color: var(--text-secondary);
    margin: 0 0 48px;
    font-size: 18px;
    line-height: 28px;
    max-width: 680px;
}

/* --- Problem / Solution split --- */
.split-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.split-col {
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
}
.split-problem { background: var(--bg-surface); }
.split-solution {
    background: linear-gradient(160deg, rgba(233, 71, 64, 0.1), var(--bg-surface) 60%);
    border-color: rgba(233, 71, 64, 0.3);
}
.split-col h2 { margin: 0 0 16px; font-size: 20px; line-height: 28px; }
.split-col ul { margin: 0; padding-left: 24px; color: var(--text-secondary); }
.split-col li { margin-bottom: 12px; }
.split-col li:last-child { margin-bottom: 0; }
.split-col li::marker { color: var(--text-muted); }
.split-solution li { color: var(--text-primary); }
.split-solution li::marker { color: var(--accent-light); }

/* --- Features --- */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 96px;
}
.feature-row.reverse { grid-template-columns: 1.2fr 1fr; }
/* Grid items default to their content's width; the screenshots must be able to shrink. */
.feature-row > * { min-width: 0; }
.feature-row.reverse .feature-media { order: -1; }
.feature-media.narrow { display: flex; justify-content: center; }
.feature-media.narrow img { max-width: 360px; }
.feature-copy h3 { font-size: 24px; line-height: 32px; letter-spacing: -0.01em; margin: 0 0 12px; }
.feature-copy p { margin: 0; color: var(--text-secondary); max-width: 65ch; }
.feature-media img {
    border-radius: 12px;
    border: 1px solid var(--border-medium);
    box-shadow: var(--shadow-media);
}

/* Each feature takes one of the logo's colours, in the logo's order. */
.feature-row { --c: var(--logo-red); }
.feature-row:nth-child(3) { --c: var(--logo-green); }
.feature-row:nth-child(4) { --c: var(--logo-blue); }
.feature-row:nth-child(5) { --c: var(--logo-orange); }
.feature-row:nth-child(6) { --c: var(--logo-gold); }
.feature-row:nth-child(7) { --c: var(--logo-lime); }
.feature-copy h3::before {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-bottom: 16px;
    background: var(--c);
    box-shadow: 0 0 16px color-mix(in srgb, var(--c) 50%, transparent);
}
.feature-row .feature-media img {
    border-color: color-mix(in srgb, var(--c) 35%, transparent);
    box-shadow: var(--shadow-media), 0 0 48px color-mix(in srgb, var(--c) 10%, transparent);
}

.feature-more {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    padding-top: 64px;
    border-top: 1px solid var(--border-subtle);
}
.feature-more h3 { margin: 0; font-size: 24px; line-height: 32px; letter-spacing: -0.01em; }
.feature-more dl {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.feature-more dt { font-weight: 600; }
.feature-more dl > div:nth-child(1) dt { color: var(--accent-blue-light); }
.feature-more dl > div:nth-child(2) dt { color: var(--accent-amber); }
.feature-more dl > div:nth-child(3) dt { color: var(--accent-green-light); }
.feature-more dd { margin: 8px 0 0; color: var(--text-secondary); font-size: 14px; line-height: 20px; }

/* Cards used by the manual. */
.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color var(--dur-fast) var(--ease), transform var(--dur) var(--ease);
}
.feature-card:hover { border-color: var(--card-accent, var(--border-medium)); transform: translateY(-2px); }
.feature-card { --card-accent: var(--accent-primary); border-color: var(--accent-primary-dim); }
.feature-card:nth-child(5n+2) { --card-accent: var(--accent-blue); border-color: var(--accent-blue-dim); }
.feature-card:nth-child(5n+3) { --card-accent: var(--accent-amber); border-color: var(--accent-amber-dim); }
.feature-card:nth-child(5n+4) { --card-accent: var(--accent-green); border-color: var(--accent-green-dim); }
.feature-card:nth-child(5n+5) { --card-accent: var(--accent-yellow); border-color: var(--accent-yellow-dim); }
.feature-card:nth-child(n):hover { border-color: var(--card-accent); }
.feature-card h4 { margin: 0 0 8px; font-size: 16px; line-height: 24px; }
.feature-card p { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 20px; }

/* --- Steps --- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.step { position: relative; --step-c: var(--logo-red); --next-c: var(--logo-blue); }
.step:nth-child(2) { --step-c: var(--logo-blue); --next-c: var(--logo-orange); }
.step:nth-child(3) { --step-c: var(--logo-orange); --next-c: var(--logo-green); }
.step:nth-child(4) { --step-c: var(--logo-green); }
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--step-c) 15%, transparent);
    color: var(--step-c);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 16px;
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--step-c) 55%, transparent),
        0 0 16px color-mix(in srgb, var(--step-c) 45%, transparent);
    text-shadow: 0 0 8px var(--step-c);
}
.step h3 { margin: 0 0 8px; font-size: 16px; line-height: 24px; }
.step p { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 20px; }

/* How it works: the signal runs through the steps once they're on screen (script.js). */
@media (min-width: 961px) {
    .step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 15px;
        left: 44px;
        right: -12px;
        height: 2px;
        border-radius: 2px;
        background: linear-gradient(90deg, var(--step-c), var(--next-c));
        filter: drop-shadow(0 0 3px var(--step-c))
                drop-shadow(0 0 8px color-mix(in srgb, var(--step-c), var(--next-c)));
    }
}
.steps.js-motion .step-num { opacity: 0.3; }
.steps.js-motion .step:not(:last-child)::after { transform: scaleX(0); transform-origin: left; }
.steps.js-motion.is-live .step-num {
    animation: step-arrive var(--dur) var(--ease) forwards;
    animation-delay: calc(var(--n) * 550ms);
}
.steps.js-motion.is-live .step:not(:last-child)::after {
    animation: step-line 500ms var(--ease) forwards;
    animation-delay: calc(var(--n) * 550ms + 100ms);
}
@keyframes step-arrive {
    0% { opacity: 0.3; }
    30% { opacity: 1; box-shadow: 0 0 0 6px transparent, 0 0 24px var(--step-c); }
    100% { opacity: 1; }
}
@keyframes step-line { to { transform: scaleX(1); } }

/* --- Pricing: each card spans five subgrid rows so titles, prices, lists and
       buttons line up across the row. --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 24px;
    row-gap: 0;
}
.pricing-grid-teams { grid-template-columns: repeat(2, 1fr); }
.price-card {
    position: relative;
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
    row-gap: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: border-color var(--dur-fast) var(--ease);
}
/* Each plan keeps a colour of its own, from the logo. */
.price-card { --plan-c: var(--border-medium); --plan-dim: var(--border-subtle); border-color: var(--plan-dim); }
.price-card:hover { border-color: var(--plan-c); }
.pricing-grid > .price-card:nth-child(3) { --plan-c: var(--accent-amber); --plan-dim: var(--accent-amber-dim); }
.pricing-grid-teams > .price-card:nth-child(1) { --plan-c: var(--accent-blue); --plan-dim: var(--accent-blue-dim); }
.pricing-grid-teams > .price-card:nth-child(2) { --plan-c: var(--accent-green); --plan-dim: var(--accent-green-dim); }
.price-featured {
    --plan-c: var(--accent-primary);
    --plan-dim: rgba(233, 71, 64, 0.45);
    background: linear-gradient(180deg, rgba(233, 71, 64, 0.08), var(--bg-surface) 40%);
}
.price-card h3 {
    font-size: 18px;
    line-height: 28px;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.price-flag {
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
}
.price-card .price {
    font-size: 36px;
    line-height: 40px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.price-card .price span { font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0; color: var(--text-muted); }
.price-note { font-size: 14px; line-height: 20px; color: var(--text-muted); margin: 4px 0 24px; }
.price-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 20px;
    color: var(--text-secondary);
}
.price-card ul li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 8px;
}
.price-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--logo-lime);
    font-weight: 600;
}
.price-card .btn { width: 100%; align-self: end; }

.pricing-group-title { font-size: 20px; line-height: 28px; margin: 64px 0 24px; }
.pricing-license { margin: 48px 0 0; max-width: 680px; color: var(--text-secondary); }
.pricing-license strong { color: var(--text-primary); font-weight: 600; }

/* --- FAQ: all answers visible, the title held beside them --- */
.faq-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    align-items: start;
}
.faq-intro { position: sticky; top: 112px; }
.faq-intro p { margin: 0; color: var(--text-secondary); }
.faq-list { display: grid; gap: 40px; }
.faq-item h3 { margin: 0 0 8px; font-size: 18px; line-height: 28px; }
.faq-item p { margin: 0; color: var(--text-secondary); max-width: 65ch; }

/* --- Final CTA --- */
.final-cta {
    text-align: center;
    background: radial-gradient(ellipse 800px 400px at 50% 0%, rgba(233, 71, 64, 0.16), transparent 70%);
}
.final-cta h2 { font-size: 30px; line-height: 36px; letter-spacing: -0.02em; margin: 0 0 12px; }
@media (min-width: 768px) {
    .final-cta h2 { font-size: 36px; line-height: 40px; }
}
.final-cta p { color: var(--text-secondary); margin: 0 0 32px; }
.final-ctas { align-items: center; margin-bottom: 0; }

/* --- Footer --- */
.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding-top: 48px;
    background: rgba(12, 12, 20, 0.78);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    padding-bottom: 40px;
}
.footer-logo { height: 24px; width: auto; margin-bottom: 12px; }
.footer-brand p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 20px; max-width: 260px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.footer-links > div { display: flex; flex-direction: column; gap: 8px; min-width: 120px; }
.footer-links h5 {
    font-size: 12px;
    line-height: 16px;
    color: var(--text-muted);
    margin: 0 0 4px;
}
.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 20px;
    transition: color var(--dur-fast) var(--ease);
}
.footer-links a:hover, .footer-legal a:hover { color: var(--text-primary); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 24px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
    padding-bottom: 32px;
    font-size: 12px;
    line-height: 16px;
    color: var(--text-muted);
}
.footer-bottom p { margin: 0; }
.footer-legal a { transition: color var(--dur-fast) var(--ease); }

/* --- Scroll reveal (script.js adds .is-revealed; without JS nothing is hidden) --- */
@media (prefers-reduced-motion: no-preference) {
    .js [data-reveal] {
        opacity: 0;
        transform: translateY(64px);
        filter: blur(12px);
        transition:
            opacity 900ms var(--ease),
            transform 900ms var(--ease),
            filter 900ms var(--ease);
    }
    .js [data-reveal].is-revealed { opacity: 1; transform: none; filter: none; }
}

/* --- Manual --- */
.manual-hero { padding: 64px 0 40px; text-align: center; }
.manual-hero .eyebrow { margin: 0 auto 16px; }
.manual-hero h1 { margin: 0 auto 16px; }
@media (min-width: 768px) {
    .manual-hero h1 { font-size: 48px; line-height: 1; }
}
.manual-hero p { color: var(--text-secondary); max-width: 640px; margin: 0 auto; font-size: 16px; }
.manual-hero-cta { margin-top: 24px; }

.manual-toc {
    position: sticky;
    top: 88px;
    z-index: var(--z-toc);
    background: rgba(6, 6, 10, 0.9);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}
.manual-toc-inner {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px 24px;
}
.manual-toc a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 9999px;
    border: 1px solid var(--border-subtle);
    transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.manual-toc a:hover { color: var(--text-primary); border-color: var(--border-medium); }
.manual-toc a .toc-num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.manual-section { padding: 64px 0 80px; scroll-margin-top: 144px; }
.manual-section-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 40px;
}
.manual-section-num {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
    background: var(--accent-dim);
    color: var(--accent-light);
}
.manual-section-head h2 { margin: 0; font-size: 30px; line-height: 36px; letter-spacing: -0.02em; }
.manual-section-head p { margin: 8px 0 0; color: var(--text-secondary); font-size: 14px; line-height: 20px; max-width: 640px; }

.manual-section-blue .manual-section-num { background: var(--accent-blue-dim); color: var(--accent-blue-light); }
.manual-section-amber .manual-section-num { background: var(--accent-amber-dim); color: var(--accent-amber); }
.manual-section-green .manual-section-num { background: var(--accent-green-dim); color: var(--accent-green-light); }
.manual-section-cyan .manual-section-num { background: var(--accent-yellow-dim); color: var(--accent-yellow); }

.manual-body { display: grid; grid-template-columns: 1fr; gap: 40px; }
.manual-body.with-media { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
.manual-body > *, .manual-subgrid > * { min-width: 0; }
.manual-shot {
    border-radius: 12px;
    border: 1px solid var(--border-medium);
    box-shadow: var(--shadow-media);
    overflow: hidden;
    position: sticky;
    top: 160px;
}
.manual-shot img { width: 100%; }

/* Screenshot of a step, inside the step's text. */
.manual-figure { margin: 24px 0 8px; }
.manual-figure img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-medium);
    box-shadow: var(--shadow-media);
}
.manual-figure figcaption { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.manual-figure.narrow img { max-width: 420px; }

.manual-steps { list-style: none; margin: 0; padding: 0; counter-reset: mstep; display: flex; flex-direction: column; gap: 24px; }
.manual-steps li { display: flex; gap: 16px; counter-increment: mstep; }
.manual-steps li::before {
    content: counter(mstep);
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
}
.manual-steps li > div h4 { margin: 4px 0 4px; font-size: 16px; line-height: 24px; }
.manual-steps li > div p { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 20px; }
.manual-steps li > div p + p { margin-top: 8px; }

.manual-subgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 32px;
}
.manual-body h3 { font-size: 20px; line-height: 28px; margin: 0 0 16px; }
.manual-body > div + div { margin-top: 48px; }
.manual-body p { color: var(--text-secondary); font-size: 16px; }
.manual-body table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
    font-size: 14px;
    line-height: 20px;
}
.manual-body th, .manual-body td {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}
.manual-body th {
    color: var(--text-primary);
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.02em;
    font-weight: 600;
}
.manual-body table strong { color: var(--text-primary); }

.note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    font-size: 14px;
    line-height: 20px;
    color: var(--text-secondary);
    margin: 24px 0 0;
}
.note svg { flex-shrink: 0; margin-top: 2px; color: var(--text-secondary); }
.note strong { color: var(--text-primary); }
.note-info { border-color: var(--accent-blue-dim); }
.note-info svg { color: var(--accent-blue-light); }
.note-tip { border-color: var(--accent-green-dim); }
.note-tip svg { color: var(--accent-green-light); }
.note-warn { border-color: var(--warn-dim); }
.note-warn svg { color: var(--warn); }

.ui-label {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    padding: 1px 8px;
    border-radius: 4px;
    color: var(--text-primary);
    white-space: nowrap;
}
kbd {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--bg-lighter);
    border: 1px solid var(--border-medium);
    border-bottom-width: 2px;
    padding: 1px 8px;
    border-radius: 4px;
    color: var(--text-primary);
}

/* Interactive manual: the index on the left, one section in the viewer,
   previous / next under it. Without JavaScript every section shows. */
.manual-hero-compact { padding: 48px 0 32px; }
.manual-app {
    display: grid;
    grid-template-columns: 264px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    padding-bottom: 64px;
}
.manual-nav {
    position: sticky;
    top: 104px;
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--bg-lighter) transparent;
}
.manual-nav-toggle { display: none; }
/* Each group of the index in one of the logo's colours: its name and the
   numbers of its sections. */
.manual-nav-sect { --c: var(--accent-light); }
.manual-nav-sect.c-red { --c: var(--logo-red); }
.manual-nav-sect.c-orange { --c: var(--logo-orange); }
.manual-nav-sect.c-gold { --c: var(--logo-gold); }
.manual-nav-sect.c-lime { --c: var(--logo-lime); }
.manual-nav-sect.c-green { --c: var(--logo-green); }
.manual-nav-sect.c-blue { --c: var(--logo-blue); }
.manual-nav-group {
    margin: 32px 0 8px;
    padding: 0 12px;
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--c);
}
.manual-nav-sect:first-child .manual-nav-group { margin-top: 0; }
.manual-nav-list a {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 20px;
    color: var(--text-secondary);
    transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.manual-nav-list a span {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 16px;
    font-weight: 600;
    color: var(--c);
    font-variant-numeric: tabular-nums;
}
.manual-nav-list a:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.04); }
.manual-nav-list a.active { color: var(--text-primary); background: var(--bg-elevated); font-weight: 500; }
.manual-nav-list a:focus-visible, .manual-pager a:focus-visible, .manual-nav-toggle:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 2px;
}

.manual-viewer {
    min-width: 0;
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 40px 48px 32px;
    scroll-margin-top: 104px;
}
.manual-viewer:focus { outline: none; }
.manual-page.manual-body { display: block; scroll-margin-top: 120px; }
.manual-page + .manual-page { margin-top: 64px; padding-top: 64px; border-top: 1px solid var(--border-subtle); }
.manual-page[hidden] { display: none !important; }
.js .manual-app.is-paged .manual-page { margin-top: 0; padding-top: 0; border-top: 0; }
.manual-page .manual-page-num {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--page-c, var(--accent-light));
}
.manual-page h2 { margin: 12px 0 20px; font-size: 48px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
.manual-body.manual-page h3 { margin: 40px 0 12px; font-size: 20px; line-height: 28px; }
.manual-page .manual-lead { color: var(--text-primary); font-size: 18px; line-height: 28px; max-width: 65ch; text-wrap: pretty; }
.manual-page p, .manual-page li { max-width: 72ch; text-wrap: pretty; }
.manual-page ul, .manual-page .manual-list { margin: 12px 0 0; padding-left: 20px; color: var(--text-secondary); font-size: 16px; }
.manual-page li + li { margin-top: 8px; }
.manual-page .manual-list li::marker { color: var(--page-c, var(--accent-light)); font-family: var(--font-mono); font-weight: 600; }
.manual-page li strong, .manual-page p strong { color: var(--text-primary); }
.manual-page a:not(.btn) { color: var(--accent-light); text-decoration: underline; text-underline-offset: 3px; }
.manual-page table { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
    .js .manual-app.is-paged .manual-page:not([hidden]) { animation: manual-in 500ms var(--ease); }
}
@keyframes manual-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.manual-pager {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}
.manual-pager[hidden] { display: none; }
.manual-pager a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.manual-pager a:hover { border-color: var(--border-medium); background: rgba(255, 255, 255, 0.03); transform: translateY(-1px); }
.manual-pager a:active { transform: translateY(1px); }
.manual-pager .manual-pager-next { text-align: right; align-items: flex-end; }
.manual-pager a.is-off { visibility: hidden; }
.manual-pager-dir { font-size: 12px; line-height: 16px; color: var(--text-muted); }
.manual-pager-title { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.manual-pager-count { font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

@media (max-width: 960px) {
    .manual-app { grid-template-columns: 1fr; gap: 16px; }
    .manual-nav { position: static; max-height: none; overflow: visible; padding-bottom: 0; }
    .js .manual-nav-toggle {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 16px;
        border: 1px solid var(--border-medium);
        border-radius: 12px;
        background: var(--bg-surface);
        color: var(--text-primary);
        font: inherit;
        font-size: 14px;
        line-height: 20px;
        font-weight: 500;
        cursor: pointer;
    }
    .manual-nav-toggle svg { flex-shrink: 0; transition: transform var(--dur-fast) var(--ease); }
    .manual-nav.is-open .manual-nav-toggle svg { transform: rotate(180deg); }
    .js .manual-nav-list {
        display: none;
        margin-top: 8px;
        padding: 8px;
        border: 1px solid var(--border-subtle);
        border-radius: 12px;
        background: var(--bg-surface);
    }
    .js .manual-nav.is-open .manual-nav-list { display: block; }
    .manual-nav-sect:first-child .manual-nav-group { margin-top: 8px; }
    .manual-viewer { padding: 24px 16px; }
    .manual-page h2 { font-size: 36px; line-height: 40px; }
    .manual-page .manual-page-num { font-size: 16px; line-height: 24px; }
    .manual-page table { display: block; overflow-x: auto; }
    .manual-pager-title { display: none; }
}

.manual-jump {
    text-align: center;
    padding: 48px 0 0;
}
.manual-jump .btn { margin-top: 4px; }

/* --- Legal pages (privacidad / términos) --- */
.legal-hero { padding: 64px 0 24px; }
.legal-hero h1 { margin: 0 0 8px; }
.legal-updated { color: var(--text-muted); font-size: 14px; line-height: 20px; margin: 0; }
.legal { padding: 8px 0 96px; color: var(--text-secondary); font-size: 16px; line-height: 28px; }
.legal h2 { color: var(--text-primary); font-size: 20px; line-height: 28px; margin: 48px 0 12px; }
.legal h3 { color: var(--text-primary); font-size: 16px; line-height: 24px; margin: 24px 0 8px; }
.legal p { margin: 0 0 16px; }
.legal ul { margin: 0 0 16px; padding-left: 24px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--text-primary); }
.legal a { color: var(--accent-light); }
.legal-lead { font-size: 18px; line-height: 28px; color: var(--text-primary); }
.legal-todo { background: var(--warn-dim); color: var(--warn); padding: 1px 8px; border-radius: 4px; font-family: var(--font-mono); font-size: 14px; }

/* --- Tutorials --- */
.tutorials { padding-top: 12px; }
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.video-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.video-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    padding: 0;
    background: radial-gradient(ellipse at 50% 40%, var(--accent-primary-dim), transparent 70%), var(--bg-elevated);
    color: var(--text-primary);
    font: inherit;
    cursor: pointer;
}
.video-frame.is-soon { cursor: default; background: var(--bg-elevated); }
.video-play {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    background: var(--accent);
    color: #fff;
    transition: transform var(--dur) var(--ease);
}
button.video-frame:hover .video-play,
button.video-frame:focus-visible .video-play { transform: scale(1.08); }
.video-consent { font-size: 12px; line-height: 16px; color: var(--text-muted); padding: 0 16px; text-align: center; }
.video-soon {
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 16px;
    color: var(--text-muted);
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    padding: 4px 12px;
}
.video-body { padding: 16px 24px 24px; }
.video-num { font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--accent-light); }
.video-body h3 { font-size: 18px; line-height: 28px; margin: 4px 0; }
.video-body p { color: var(--text-secondary); font-size: 14px; line-height: 20px; margin: 0; }
.video-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: 14px; line-height: 20px; }
.video-links a { color: var(--accent-light); }

/* --- 404 --- */
.not-found { padding: 96px 0 96px; }
.not-found .eyebrow { font-family: var(--font-mono); }
.not-found h1 {
    font-size: 36px;
    line-height: 40px;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
    background: linear-gradient(90deg, #FFFFFF, #9B9B9B);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.not-found p { color: var(--text-secondary); max-width: 540px; margin: 0 0 32px; }
.not-found-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

/* --- Responsive --- */
@media (max-width: 1100px) {
    .site-header .header-inner { width: auto; padding-left: 16px; justify-content: space-between; }
    .nav-toggle { display: block; }
    /* Full-screen menu: the links stagger up into place (script.js sets --n). */
    .main-nav {
        position: fixed;
        inset: 0;
        z-index: 1;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        padding: 96px 32px;
        background: rgba(6, 6, 10, 0.8);
        backdrop-filter: blur(64px);
        -webkit-backdrop-filter: blur(64px);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--dur-fast) var(--ease), visibility 0s linear var(--dur-fast);
    }
    .main-nav.nav-open {
        opacity: 1;
        visibility: visible;
        transition: opacity var(--dur-fast) var(--ease), visibility 0s;
    }
    .main-nav a {
        font-size: 30px;
        line-height: 36px;
        font-weight: 600;
        letter-spacing: -0.02em;
        color: var(--text-primary);
        padding: 8px 0;
        opacity: 0;
        transform: translateY(48px);
        transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), color var(--dur-fast) var(--ease);
    }
    .main-nav.nav-open a {
        opacity: 1;
        transform: none;
        transition-delay: calc(80ms + var(--n, 0) * 50ms);
    }
    .main-nav a:hover { color: var(--accent-light); }
}

@media (max-width: 960px) {
    .split-inner { grid-template-columns: 1fr; }
    .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 32px; margin-bottom: 80px; }
    .feature-row.reverse .feature-media { order: 0; }
    .feature-more { grid-template-columns: 1fr; gap: 24px; }
    .feature-more dl { grid-template-columns: 1fr; gap: 24px; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid, .pricing-grid-teams { grid-template-columns: 1fr; row-gap: 24px; }
    .price-card { grid-row: auto; grid-template-rows: none; }
    .faq-layout { grid-template-columns: 1fr; gap: 40px; }
    .faq-intro { position: static; }
    .manual-toc { top: 0; }
    .manual-body.with-media { grid-template-columns: 1fr; }
    .manual-shot { position: static; }
    .manual-subgrid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .site-header { padding-top: 16px; }
    /* No room for it in the island; it shows while the menu is open. */
    .lang-switch { display: none; }
    .nav-locked .lang-switch { display: flex; font-size: 14px; line-height: 20px; }
    .steps { grid-template-columns: 1fr; }
    .hero-ctas { align-items: stretch; }
    .hero-ctas .btn { width: 100%; }
    .final-ctas { align-items: stretch; }
    .manual-section-head { flex-direction: column; gap: 12px; }
    /* Long UI paths may wrap on a phone rather than push the page sideways. */
    .ui-label { white-space: normal; }
    .video-grid { grid-template-columns: 1fr; }
    .split-col { padding: 24px; }
}


/* --- Hero plan: the hero is a floor plan in neon; the copy sits in an empty room
       and live-plot.js puts the fixtures in the others. The neon and the fixture
       colours are the app's own rendering, so they stay as content, not accents. --- */
:root {
    --neon: #3dff6e;
    --neon-glow: rgba(61, 255, 110, 0.5);
}

.plan {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 0.6fr) minmax(0, 0.5fr);
}
.room {
    position: relative;
    min-height: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 32px 16px;
}
.room-copy {
    grid-row: 1 / span 3;
    display: block;
    padding: 48px 48px 40px;
}
.room-copy .hero-sub { max-width: 540px; }
[data-room="vortex"] { grid-column: 2 / 4; justify-content: space-evenly; }

/* Walls. Each room draws its top and left wall; the plan draws the outer right and
   bottom ones. A door leaves a 44px gap at --door-top / --door-left. */
.room::before, .room::after, .plan::before, .plan::after {
    content: "";
    position: absolute;
    z-index: 1;
    pointer-events: none;
    background: var(--neon);
}

/* Glow only while the plan is drawing in or coming apart; live-plot.js sets .is-moving
   for the load animation and while a scroll is changing it. At rest the lines are flat. */
.room::before, .room::after, .plan::before, .plan::after, .door, .plan-table {
    filter: drop-shadow(0 0 0 transparent) drop-shadow(0 0 0 transparent);
    transition: filter 400ms var(--ease);
}
.plan.is-moving .room::before, .plan.is-moving .room::after,
.plan.is-moving::before, .plan.is-moving::after,
.plan.is-moving .door, .plan.is-moving .plan-table {
    filter: drop-shadow(0 0 3px var(--neon)) drop-shadow(0 0 10px var(--neon-glow));
    transition-duration: 200ms;
}
.room::before {
    top: -2px; left: -2px; right: -2px; height: 4px;
    background: linear-gradient(90deg,
        var(--neon) var(--door-top, 200%), transparent 0 calc(var(--door-top, 200%) + 44px), var(--neon) 0);
    transform-origin: left;
}
.room::after {
    top: -2px; bottom: -2px; left: -2px; width: 4px;
    background: linear-gradient(180deg,
        var(--neon) var(--door-left, 200%), transparent 0 calc(var(--door-left, 200%) + 44px), var(--neon) 0);
    transform-origin: top;
}
.plan::before { top: -2px; bottom: -2px; right: -2px; width: 4px; transform-origin: bottom; }
.plan::after { left: -2px; right: -2px; bottom: -2px; height: 4px; transform-origin: right; }

/* Scroll: live-plot.js sets --p from 0 (plan in place) to 1 (scrolled past). The plan
   then comes apart in the reverse order it was drawn - fixtures, doors, walls - and
   scrolling back up draws it again. --v is how much of each piece is showing. The load
   animations only set their start state, so they end on these values. */
.plan { --p: 0; --a: calc(1 - var(--p)); }
.room::before, .room::after { --v: clamp(0, (var(--a) - var(--d) * 0.07) / 0.3, 1); }
.plan::before, .plan::after { --v: clamp(0, (var(--a) - 0.2) / 0.3, 1); }
.room::before, .plan::after { transform: scaleX(var(--v)); }
.room::after, .plan::before { transform: scaleY(var(--v)); }
.door, .plan-table { --v: clamp(0, (var(--a) - 0.55) / 0.12, 1); }
.fx { --v: clamp(0, (var(--a) - 0.62 - var(--i, 0) * 0.025) / 0.12, 1); }

.door {
    position: absolute;
    width: 44px;
    height: 44px;
    border: 0 solid var(--neon);
    border-right-width: 1.5px;
    border-bottom-width: 1.5px;
    border-bottom-right-radius: 100%;
    opacity: calc(0.7 * var(--v));
    pointer-events: none;
}
.door-top { top: 0; left: var(--door-top); border-left-width: 1.5px; }
.door-left { left: 0; top: var(--door-left); border-top-width: 1.5px; }
.plan-table {
    order: 1;
    width: 58px;
    height: 36px;
    border: 1.5px solid var(--neon);
    border-radius: 3px;
    opacity: calc(0.55 * var(--v));
}

/* Fixtures, drawn like the app's symbols. */
.fx {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: var(--v);
    transform: scale(calc(0.6 + 0.4 * var(--v)));
}
[data-room="vortex"] .fx:last-child { order: 2; }
.fx-body {
    position: relative;
    display: grid;
    place-items: center;
    border: 1.5px solid #000;
    background: #24242e;
}
.fx-val {
    position: relative;
    font-size: 12px;
    font-weight: 700;
    color: #e8e8f0;
    font-variant-numeric: tabular-nums;
}
.fx-val.on-light { color: #111; }
.fx-label {
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    white-space: nowrap;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    padding: 2px 8px;
}
.fx-panel .fx-body { width: 50px; height: 42px; border-radius: 4px; padding-top: 9px; }
.fx-panel .fx-body::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 10px;
    background: #111;
}
.fx-wide .fx-body { width: 62px; height: 32px; border-radius: 4px; }
.fx-diamond .fx-body { width: 36px; height: 36px; margin: 8px; transform: rotate(45deg); }
.fx-diamond .fx-val { transform: rotate(-45deg); }
.fx-tube .fx-body {
    width: 20px;
    height: 70px;
    border-radius: 10px;
    background: #15151c;
    overflow: hidden;
}
.fx-level {
    position: absolute;
    left: 2px; right: 2px; bottom: 2px;
    height: 0;
    border-radius: 8px;
}
.fx-tube .fx-val { font-size: 9px; text-shadow: 0 0 3px #000, 0 0 2px #000; }
[data-room="tubes"] { gap: 12px; }

@media (prefers-reduced-motion: no-preference) {
    .room::before, .plan::after { animation: wall-x 0.8s cubic-bezier(0.6, 0, 0.3, 1) both; }
    .room::after, .plan::before { animation: wall-y 0.8s cubic-bezier(0.6, 0, 0.3, 1) both; }
    .room::before, .room::after { animation-delay: calc(var(--d) * 110ms); }
    .plan::before, .plan::after { animation-delay: 300ms; }
    .door, .plan-table { animation: fade-in 500ms var(--ease) 0.8s both; }
    .fx { animation: fx-in 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; animation-delay: calc(900ms + var(--i) * 60ms); }
}
@keyframes wall-x { from { transform: scaleX(0); } }
@keyframes wall-y { from { transform: scaleY(0); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fx-in { from { opacity: 0; transform: scale(0.6); } }

@media (max-width: 960px) {
    .plan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .room { flex-wrap: wrap; }
    .room-copy { grid-row: auto; grid-column: 1 / -1; padding: 40px 24px 32px; }
    /* Rows on narrow screens: Titans | Evoke + Storm | Vortex8 | S360. */
    [data-room="tubes"], [data-room="vortex"], [data-room="s360"] { grid-column: 1 / -1; }
    [data-room="tubes"] { order: 1; }
    [data-room="evoke"] { order: 2; }
    [data-room="storm"] { order: 3; }
    [data-room="vortex"] { order: 4; }
    [data-room="s360"] { order: 5; }
}
@media (max-width: 560px) {
    .room { gap: 12px 16px; padding: 24px 8px; }
    [data-room="tubes"] { gap: 4px; }
    .fx-label { font-size: 10px; padding: 2px 4px; }
}
