/* FilterMate website — shared design system.
 *
 * The identity borrows from the map itself: the paper of the QGIS canvas,
 * the slate of the QGIS interface, the yellow of a QGIS selection (what a
 * filter keeps), the blue of the hydrography and the red of the buildings.
 * Every video section is a "map sheet": real QGIS footage in the background
 * and a cartouche (the title block of a map) holding the text.
 */

:root {
    --ink: #16232b;
    --ink-2: #22333d;
    --paper: #f3f4ef;
    --paper-2: #e7e9e1;
    --select: #ffd83d;
    --select-deep: #e0b400;
    --qgis: #3f7a22;
    --qgis-bright: #589632;
    --water: #1f66b8;
    --water-light: #7db6f5;
    --building: #d64545;

    --text: var(--ink);
    --text-2: #4a5a63;
    --rule: #cfd3c8;
    --bg: var(--paper);
    --bg-2: #fbfbf8;
    --link: var(--water);
    --code-bg: #e4e7de;

    --on-ink: #eef1ec;
    --on-ink-2: #a9b6bd;

    --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --body: 'Barlow', 'Segoe UI', system-ui, sans-serif;
    --mono: ui-monospace, 'Cascadia Mono', Consolas, 'Liberation Mono', monospace;

    --nav-h: 60px;
    --gutter: clamp(16px, 4vw, 48px);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --text: #e7ece8;
        --text-2: #a9b6bd;
        --rule: #33454f;
        --bg: #111b21;
        --bg-2: #16232b;
        --link: var(--water-light);
        --code-bg: #22333d;
        --qgis: #7fbf5a;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --text: #e7ece8;
    --text-2: #a9b6bd;
    --rule: #33454f;
    --bg: #111b21;
    --bg-2: #16232b;
    --link: var(--water-light);
    --code-bg: #22333d;
    --qgis: #7fbf5a;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 18px);
    scrollbar-gutter: stable;
    -webkit-text-size-adjust: 100%;
}
body {
    margin: 0;
    font: 400 18px/1.6 var(--body);
    color: var(--text);
    background: var(--bg);
    font-variant-numeric: tabular-nums;
}
img, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--select); outline-offset: 2px; border-radius: 2px; }
.skip {
    position: absolute; left: 8px; top: -60px; z-index: 300;
    background: var(--select); color: var(--ink); padding: 8px 14px; font-weight: 600;
}
.skip:focus { top: 8px; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

/* ------------------------------------------------------------------ buttons */
.btn {
    display: inline-flex; align-items: center; gap: 0.5em;
    min-height: 44px; padding: 0.55em 1.1em;
    font: 600 1rem/1.1 var(--body);
    border-radius: 3px; border: 1.5px solid transparent;
    text-decoration: none; cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--select); color: var(--ink); }
.btn-primary:hover { background: #ffe36e; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* ------------------------------------------------------------------ navigation */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    height: var(--nav-h);
    display: flex; align-items: center; gap: 24px;
    padding: 0 var(--gutter);
    color: var(--text);
    background: var(--bg);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rule);
}
.nav-brand {
    display: flex; align-items: center; gap: 10px;
    color: inherit; text-decoration: none;
    font: 700 1.5rem/1 var(--display); letter-spacing: 0.01em;
}
.nav-brand img { width: 32px; height: 32px; }
.nav-links {
    display: flex; align-items: center; gap: 22px;
    margin: 0 0 0 auto; padding: 0; list-style: none;
}
.nav-links a {
    color: inherit; text-decoration: none; font-weight: 500; font-size: 1rem;
    padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover { border-bottom-color: currentColor; }
.nav-links a[aria-current="page"] { border-bottom-color: var(--select-deep); }
.nav-links a.btn { border-bottom: 1.5px solid transparent; padding: 0.4em 0.9em; }
.nav-links a.btn-primary { color: var(--ink); }
.lang { display: flex; border: 1px solid currentColor; border-radius: 3px; overflow: hidden; }
.lang a { padding: 3px 9px; font-size: 0.85rem; font-weight: 600; border: 0; }
.language-menu { position: relative; font-size: .9rem; }
.language-menu summary { cursor: pointer; padding: 9px 12px; min-height: 44px; border: 1px solid currentColor; border-radius: 3px; white-space: nowrap; }
.language-menu > ul { position: absolute; z-index: 150; right: 0; top: 100%; display: grid; list-style: none; margin: 8px 0 0; padding: 8px; min-width: 205px; max-height: 65svh; overflow: auto; background: var(--bg); color: var(--text); border: 1px solid var(--rule); box-shadow: 0 8px 25px #0004; }
.nav-links .language-menu li { padding: 0; border: 0; }
.nav-links .language-menu a { display: block; min-height: 44px; padding: 9px 12px; border: 0; }
.language-menu a:hover, .language-menu a[aria-current] { background: var(--code-bg); }
.demo-download { margin-top: 24px; }
.demo-download p { margin: 8px 0 14px; }
.home:lang(zh) { --display: 'PingFang TC', 'Microsoft JhengHei', 'Microsoft YaHei', sans-serif; --body: 'PingFang TC', 'Microsoft JhengHei', 'Microsoft YaHei', sans-serif; }
.home:lang(ja) { --display: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif; --body: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif; line-break: strict; }
.home:lang(ru) { --display: 'Segoe UI', Arial, sans-serif; --body: 'Segoe UI', Arial, sans-serif; }
.home:lang(ru) .home-hero h1 { max-width: 17ch; font-size: clamp(2.4rem, 5vw, 5.5rem); line-height: 1.12; }
.home:is(:lang(zh), :lang(ja)) .home-hero h1 { max-width: 16em; font-size: clamp(2.6rem, 5.3vw, 5rem); line-height: 1.18; }
.home:is(:lang(zh), :lang(ja)) .section-heading h2 { line-height: 1.2; }
.nav-links small { white-space: nowrap; font-size: .7em; }
.lang a[aria-current="true"] { background: var(--select); color: var(--ink); }
.nav .btn { min-height: 38px; padding: 0.4em 0.9em; }
.nav-toggle {
    display: none; margin-left: auto;
    background: none; border: 0; color: inherit; padding: 8px; cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* over a video sheet the bar starts transparent, on ink */
.nav.on-video { color: var(--on-ink); background: linear-gradient(rgba(22, 35, 43, 0.92), rgba(22, 35, 43, 0.55)); border-color: transparent; backdrop-filter: blur(4px); }
.nav.on-video.scrolled { background: rgba(22, 35, 43, 0.9); backdrop-filter: blur(10px); border-color: rgba(238, 241, 236, 0.12); }

@media (max-width: 1100px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: absolute; top: var(--nav-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px var(--gutter) 20px;
        background: var(--bg); color: var(--text); border-bottom: 1px solid var(--rule);
        display: none;
        max-height: calc(100svh - var(--nav-h)); overflow-y: auto;
    }
    .nav.on-video .nav-links { background: var(--ink); color: var(--on-ink); }
    .nav-links.open { display: flex; }
    .nav-links li { padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
    .nav-links li:last-child { border: 0; }
    .lang { align-self: flex-start; }
    .language-menu > ul { position: static; max-height: none; min-width: 0; box-shadow: none; }
}

/* ------------------------------------------------------------------ video sheets (home) */
.sheet {
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 100vh; min-height: 100svh;
    display: flex; align-items: flex-end;
    padding: calc(var(--nav-h) + 24px) var(--gutter) clamp(24px, 6vh, 64px);
    overflow: hidden;
    color: var(--on-ink);
    background: var(--ink);
    isolation: isolate;
}
.sheet-video, .sheet-poster {
    position: absolute; inset: 0; z-index: -2;
    width: 100%; height: 100%; object-fit: cover;
}
.sheet-scrim {
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(22, 35, 43, 0.82) 0%, rgba(22, 35, 43, 0.5) 38%, rgba(22, 35, 43, 0) 70%),
        linear-gradient(0deg, rgba(22, 35, 43, 0.55) 0%, rgba(22, 35, 43, 0) 35%),
        linear-gradient(180deg, rgba(22, 35, 43, 0.6) 0%, rgba(22, 35, 43, 0) 20%);
    transition: opacity .5s ease;
}
/* thin neatline around each sheet, as on a printed map */
.sheet::after {
    content: ""; position: absolute; z-index: 0; pointer-events: none;
    inset: calc(var(--nav-h) + 8px) 12px 12px 12px;
    border: 1px solid rgba(238, 241, 236, 0.22);
}
.cartouche {
    position: relative; z-index: 1;
    width: min(540px, 100%);
    padding: 28px 30px 26px;
    background: rgba(22, 35, 43, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(238, 241, 236, 0.3);
    box-shadow: inset 0 0 0 5px rgba(22, 35, 43, 0.88), inset 0 0 0 6px rgba(238, 241, 236, 0.16);
    transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .4s ease;
}
.cartouche h2 {
    margin: 0 0 12px;
    font: 600 clamp(2.2rem, 4.2vw, 3.4rem)/1 var(--display);
    letter-spacing: -0.005em;
}
.cartouche p { margin: 0 0 16px; color: var(--on-ink); font-size: 1.05rem; max-width: 60ch; }
.cartouche p.aside { color: var(--on-ink-2); font-size: 0.95rem; }
.cartouche a:not(.btn) { color: var(--water-light); }
.cartouche-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }

/* the legend: what the footage shows, with the colours of the map */
.legend {
    list-style: none; margin: 0 0 4px; padding: 14px 0 0;
    border-top: 1px solid rgba(238, 241, 236, 0.18);
    display: grid; gap: 6px; font-size: 0.95rem; color: var(--on-ink-2);
}
.legend li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; }
.legend i { width: 18px; height: 12px; border: 1px solid rgba(238, 241, 236, 0.45); background: var(--c); }
.legend i.line { height: 5px; }
.legend b { color: var(--on-ink); font-weight: 600; }

.watch {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 0 14px;
    font: 500 0.95rem/1 var(--body); color: inherit;
    background: transparent; border: 1px solid rgba(238, 241, 236, 0.4); border-radius: 3px; cursor: pointer;
}
.watch:hover { border-color: var(--select); color: var(--select); }
.watch svg { width: 16px; height: 16px; }

.credit {
    position: absolute; right: 22px; bottom: 18px; z-index: 1; margin: 0;
    font-size: 0.8rem; color: rgba(238, 241, 236, 0.75);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* "watch" mode: the cartouche steps aside, the footage plays unobstructed */
.sheet .close-watch {
    position: absolute; top: calc(var(--nav-h) + 20px); right: 24px; z-index: 2;
    display: none;
}
.sheet.is-watching .cartouche { transform: translateX(-110%); opacity: 0; pointer-events: none; }
.sheet.is-watching .sheet-scrim { opacity: 0; }
.sheet.is-watching .close-watch { display: inline-flex; background: rgba(22, 35, 43, 0.85); }

/* hero sheet */
.sheet-hero .cartouche { width: min(620px, 100%); }
.wordmark {
    display: flex; align-items: center; gap: 16px; margin: 0 0 14px;
    font: 700 clamp(3.4rem, 8vw, 6rem)/0.9 var(--display); letter-spacing: -0.01em;
}
.wordmark img { width: clamp(52px, 7vw, 76px); height: auto; }
.sheet-hero .lead { font-size: 1.2rem; line-height: 1.5; }

/* install sheet: no footage, the paper of the map */
.sheet-plain { color: var(--text); background: var(--bg); align-items: center; }
.sheet-plain::after { border-color: var(--rule); }
.install { width: min(1100px, 100%); margin: 0 auto; }
.install h2 { font: 600 clamp(2.4rem, 5vw, 3.8rem)/1 var(--display); margin: 0 0 12px; }
.install > p { color: var(--text-2); max-width: 60ch; margin: 0 0 32px; }
.install-steps {
    list-style: none; margin: 0 0 36px; padding: 0; counter-reset: step;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    border-top: 2px solid var(--text);
}
.install-steps li { counter-increment: step; padding: 18px 24px 8px 0; }
.install-steps li::before {
    content: counter(step); display: block;
    font: 600 2.6rem/1 var(--display); color: var(--select-deep); margin-bottom: 6px;
}
.install-steps strong { display: block; font-size: 1.1rem; }
.install-steps span { color: var(--text-2); }
.facts {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 0 36px;
    border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.facts div { padding: 16px 16px 16px 0; }
.facts dt { font: 600 2rem/1.1 var(--display); }
.facts dd { margin: 0; color: var(--text-2); font-size: 0.95rem; }
.install .links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 28px 0 0; padding: 0; list-style: none; }
.site-foot { margin-top: 36px; color: var(--text-2); font-size: 0.9rem; }

@media (max-width: 760px) {
    .sheet { padding-left: 16px; padding-right: 16px; }
    .sheet::after { display: none; }
    .sheet-scrim { background: linear-gradient(0deg, rgba(22, 35, 43, 0.9) 0%, rgba(22, 35, 43, 0.35) 55%, rgba(22, 35, 43, 0.1) 100%); }
    .cartouche { padding: 20px 18px; }
    .credit { right: 12px; bottom: 8px; font-size: 0.72rem; }
    .install-steps, .facts { grid-template-columns: 1fr; }
    .facts { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------------------ lightbox */
.lightbox {
    width: min(1280px, 96vw); padding: 0; border: 0; background: #000; color: var(--on-ink);
}
.lightbox::backdrop { background: rgba(10, 16, 20, 0.86); }
.lightbox video { width: 100%; height: auto; }
.lightbox form { position: absolute; top: 8px; right: 8px; }
.lightbox button {
    min-height: 40px; padding: 0 14px; font: 600 0.95rem var(--body);
    background: rgba(22, 35, 43, 0.85); color: var(--on-ink);
    border: 1px solid rgba(238, 241, 236, 0.4); border-radius: 3px; cursor: pointer;
}

/* ------------------------------------------------------------------ documentation pages */
.page {
    display: grid; grid-template-columns: 250px minmax(0, 1fr);
    gap: 48px; max-width: 1180px; margin: 0 auto;
    padding: calc(var(--nav-h) + 32px) var(--gutter) 64px;
}
.toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; max-height: calc(100vh - var(--nav-h) - 48px); overflow: auto; }
.toc-title { font: 600 1.15rem/1.2 var(--display); margin: 0 0 10px; color: var(--text-2); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.toc li { margin: 0; }
.toc a {
    display: block; padding: 5px 0 5px 14px; margin-left: -1px;
    color: var(--text-2); text-decoration: none; font-size: 0.95rem; line-height: 1.35;
    border-left: 3px solid transparent;
}
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--text); border-left-color: var(--select-deep); font-weight: 600; }
.toc .num { display: inline-block; min-width: 1.4em; color: var(--text-2); font-weight: 500; }

.content { min-width: 0; max-width: 820px; }
.content > .hero { margin-bottom: 48px; }
.section-label { display: block; font-weight: 600; color: var(--qgis); margin-bottom: 6px; font-size: 1rem; }
h1 { font: 600 clamp(2.6rem, 5.4vw, 4.2rem)/1.02 var(--display); margin: 0 0 16px; letter-spacing: -0.01em; }
h1 span { color: inherit; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--text-2); max-width: 64ch; }
.content section { margin: 0 0 64px; scroll-margin-top: calc(var(--nav-h) + 16px); }
h2 { font: 600 2.3rem/1.1 var(--display); margin: 0 0 18px; letter-spacing: -0.005em; }
h2 .num {
    display: inline-block; min-width: 1.1em; margin-right: 0.3em;
    color: var(--select-deep);
}
h3 { font: 600 1.35rem/1.25 var(--body); margin: 36px 0 12px; }
h4 { font: 600 1.05rem/1.3 var(--body); margin: 20px 0 8px; }
.content p { margin: 0 0 16px; max-width: 72ch; }
.content ul, .content ol { padding-left: 1.3em; margin: 0 0 16px; }
.content li { margin: 0 0 6px; }
code, kbd {
    font: 0.86em/1.4 var(--mono); background: var(--code-bg);
    padding: 0.1em 0.35em; border-radius: 2px;
}
kbd { border: 1px solid var(--rule); border-bottom-width: 2px; }
pre { background: var(--ink); color: var(--on-ink); padding: 16px 18px; overflow-x: auto; border-radius: 2px; }
pre code { background: none; padding: 0; color: inherit; }

figure { margin: 18px 0 26px; }
figure img { border: 1px solid var(--rule); background: var(--bg-2); width: 100%; height: auto; }
figure.narrow img { max-width: min(440px, 100%); width: auto; }
figure.tiny img { max-width: min(280px, 100%); width: auto; }
.screenshot-zoom { display: block; position: relative; max-width: 100%; padding: 0; border: 0; background: none; color: inherit; cursor: zoom-in; }
.screenshot-zoom img { margin: 0; }
.zoom-hint { position: absolute; right: 6px; bottom: 6px; padding: 3px 9px; font: 500 .8rem/1.5 var(--body); color: var(--on-ink); background: var(--ink); border: 1px solid var(--on-ink-2); border-radius: 3px; }
.image-viewer { width: min(96vw, 1700px); max-width: 96vw; max-height: 94svh; padding: 12px; color: var(--text); background: var(--bg); border: 1px solid var(--rule); }
.image-viewer::backdrop { background: rgba(10, 16, 20, .9); }
.image-viewer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.image-viewer-toolbar a { font-size: .9rem; }
.image-viewer button, .copy-code, .toc-toggle { min-height: 44px; padding: 8px 14px; font: 600 .95rem/1.3 var(--body); border: 1px solid var(--rule); border-radius: 3px; color: var(--text); background: var(--bg-2); cursor: pointer; }
.image-viewer-viewport { max-height: 70svh; overflow: auto; overscroll-behavior: contain; }
.image-viewer-viewport img { max-width: none; width: auto; height: auto; }
.image-viewer p { font-size: .9rem; margin: 10px 0 0; }
body:has(dialog[open]) { overflow: hidden; }
.copy-code { display: block; margin: 16px 0 -10px auto; }
.toc-toggle { display: none; }
figcaption { margin-top: 8px; font-size: 0.92rem; color: var(--text-2); max-width: 72ch; }
.fig-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; align-items: start; }
.fig-row figure { margin: 0; }

.callout {
    margin: 22px 0; padding: 14px 18px;
    border-left: 4px solid var(--water); background: var(--bg-2);
}
.callout p:last-child { margin-bottom: 0; }
.callout strong:first-child { color: var(--link); }
.callout.tip { border-left-color: var(--qgis-bright); }
.callout.tip strong:first-child { color: var(--qgis); }
.callout.warn { border-left-color: var(--select-deep); }
.callout.warn strong:first-child { color: var(--text); }

.table-wrap { overflow-x: auto; margin: 16px 0 24px; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; border-bottom: 2px solid var(--text); }

.steps { list-style: none; padding: 0 !important; counter-reset: s; }
.steps > li { counter-increment: s; position: relative; padding-left: 44px; margin: 0 0 22px; }
.steps > li::before {
    content: counter(s); position: absolute; left: 0; top: 0;
    width: 30px; height: 30px; display: grid; place-items: center;
    font: 600 1.05rem/1 var(--display); color: var(--ink); background: var(--select);
}

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0; margin: 24px 0; border-top: 1px solid var(--rule); }
.card { padding: 16px 18px 16px 0; border-bottom: 1px solid var(--rule); }
.card h4 { margin: 6px 0 6px; }
.card p { margin: 0; font-size: 0.95rem; color: var(--text-2); }
a.card, .story-card { text-decoration: none; color: inherit; display: block; }
a.card:hover h4, .story-card:hover h4 { text-decoration: underline; }
.story-index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; border-top: 0; }
.story-index .story-card {
    min-width: 0; min-height: 0; padding: 0; overflow: hidden;
    display: flex; flex-direction: column;
    border: 1px solid var(--rule); background: var(--bg-2);
    transition: border-color .18s, transform .18s, box-shadow .18s;
}
.story-index .story-card:hover { border-color: var(--text-2); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(22, 35, 43, .12); }
.story-card-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.story-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 18, 23, .5), transparent 52%); }
.story-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease, opacity .2s ease; }
.story-card:hover .story-card-media img { transform: scale(1.035); opacity: .92; }
.story-card-media b {
    position: absolute; z-index: 1; top: 12px; left: 12px;
    min-width: 34px; padding: 5px 7px; text-align: center;
    font: 600 1rem/1 var(--display); color: var(--ink); background: var(--select);
}
.story-card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 18px 19px 20px; }
.story-index .story-card h4 { margin: 12px 0 8px; font: 600 1.35rem/1.1 var(--display); }
.story-index .story-card p { margin-bottom: 18px; }
.story-outcome {
    display: block; width: 100%; margin-top: auto; padding-top: 12px;
    border-top: 1px solid var(--rule); color: var(--text-2); font-size: .84rem;
}
.story-outcome strong { color: var(--text); font-weight: 600; }
.badge {
    display: inline-block; font-size: 0.8rem; font-weight: 600; line-height: 1.2;
    padding: 2px 7px; border-radius: 2px; background: var(--code-bg); color: var(--text);
}
.story-brief { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 8px 0 26px; padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.story-brief h4 { margin-top: 0; }
.story-brief p { font-size: 0.98rem; margin: 0; }

/* a section header on footage: the documentation version of a sheet */
.band {
    position: relative; overflow: hidden; isolation: isolate;
    scroll-snap-align: start;
    scroll-margin-top: calc(var(--nav-h) + 16px);
    aspect-ratio: 2 / 1; margin: 0 0 26px;
    display: flex; align-items: flex-end;
    padding: 20px 22px;
    color: var(--on-ink); background: var(--ink);
}
.band .sheet-scrim { background: linear-gradient(0deg, rgba(22, 35, 43, 0.9) 0%, rgba(22, 35, 43, 0.45) 35%, rgba(22, 35, 43, 0) 65%); }
.band h1, .band h2 { margin: 0; color: var(--on-ink); max-width: 30ch; }
.band h2 .num { color: var(--select); }
.band .watch { position: absolute; top: 14px; right: 14px; background: rgba(22, 35, 43, 0.7); }
.band .credit {
    top: 14px; left: 14px; right: auto; bottom: auto;
    padding: 2px 8px; background: rgba(22, 35, 43, 0.75); text-shadow: none;
}
.band.is-watching .sheet-scrim, .band.is-watching h1, .band.is-watching h2 { opacity: 0; }
.band-hero { aspect-ratio: 16 / 7; }

.doc-foot { border-top: 1px solid var(--rule); padding-top: 22px; color: var(--text-2); font-size: 0.92rem; }
.doc-foot p { margin: 0 0 8px; }

@media (max-width: 960px) {
    .page { grid-template-columns: 1fr; gap: 16px; }
    .toc { position: static; max-height: none; border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
    .toc ol { columns: 2; column-gap: 24px; }
    .toc-enhanced .toc-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; }
    .toc-toggle::after { content: '+'; font-size: 1.3rem; }
    .toc-toggle[aria-expanded="true"]::after { content: '−'; }
    .toc-enhanced .toc-title { display: none; }
    .toc-enhanced ol { margin-top: 12px; }
    .toc-enhanced.toc-collapsed ol { display: none; }
}
@media (max-width: 640px) {
    body { font-size: 17px; }
    .toc ol { columns: 1; }
    .story-brief { grid-template-columns: 1fr; }
    .band { aspect-ratio: 4 / 3; }
    .band-hero { aspect-ratio: 4 / 3; }
}

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

/* ------------------------------------------------------------------ home */
.home { overflow-x: hidden; }
.home-container { width: min(1240px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.home-hero {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
    padding: calc(var(--nav-h) + 64px) 0 84px;
    color: var(--on-ink); background: var(--ink);
}
.home-hero-scrim {
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(13, 24, 31, .96) 0%, rgba(13, 24, 31, .85) 38%, rgba(13, 24, 31, .36) 72%, rgba(13, 24, 31, .15) 100%),
        linear-gradient(0deg, rgba(13, 24, 31, .7), transparent 45%);
}
.home-hero-inner { display: flex; align-items: center; }
.home-hero-copy { max-width: 770px; }
.home-hero h1 {
    max-width: 11ch; margin: 0 0 24px;
    font: 600 clamp(3.8rem, 7.4vw, 7rem)/.9 var(--display);
    letter-spacing: -.025em; text-wrap: balance;
}
.eyebrow, .section-kicker {
    margin: 0 0 16px; text-transform: uppercase; letter-spacing: .12em;
    font: 600 .82rem/1.2 var(--body);
}
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--select); }
.eyebrow span { width: 34px; height: 3px; background: currentColor; }
.home-lead { max-width: 65ch; margin: 0; font-size: clamp(1.08rem, 1.8vw, 1.3rem); line-height: 1.55; color: var(--on-ink); }
.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }
.home-text-link { color: var(--on-ink); font-weight: 600; text-decoration: none; }
.home-text-link:hover { color: var(--select); }
.home-version { margin: 22px 0 0; color: var(--on-ink-2); font-size: .92rem; }
.home-hero .credit { max-width: calc(100% - 32px); }
.hero-scroll {
    position: absolute; z-index: 2; left: 50%; bottom: 18px;
    display: grid; justify-items: center; gap: 2px; transform: translateX(-50%);
    color: var(--on-ink-2); font-size: .74rem; letter-spacing: .06em;
    text-transform: uppercase; text-decoration: none;
}
.hero-scroll:hover { color: var(--select); }
.hero-scroll svg { width: 22px; height: 22px; animation: scroll-cue 1.8s ease-in-out infinite; }
@keyframes scroll-cue {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* Native scrolling stays untouched; these controls only show position and
   provide optional shortcuts on the long landing page. */
.scroll-progress {
    position: fixed; z-index: 120; top: calc(var(--nav-h) - 3px); left: 0;
    width: 100%; height: 3px; pointer-events: none;
    background: var(--select); transform: scaleX(0); transform-origin: left center;
    box-shadow: 0 0 8px rgba(255, 216, 61, .35);
}
.scroll-rail {
    position: fixed; z-index: 90; right: 18px; top: 50%;
    display: grid; gap: 7px; transform: translateY(-50%);
    padding: 9px 7px; border: 1px solid rgba(238, 241, 236, .18);
    border-radius: 18px; background: rgba(13, 24, 31, .72); backdrop-filter: blur(8px);
}
.scroll-rail a {
    position: relative; width: 11px; height: 11px; padding: 0;
    border: 1px solid rgba(238, 241, 236, .7); border-radius: 50%;
    color: var(--on-ink); background: transparent; text-decoration: none;
    transition: background-color .15s, border-color .15s, transform .15s;
}
.scroll-rail a:hover, .scroll-rail a:focus-visible { border-color: var(--select); transform: scale(1.18); }
.scroll-rail a.active { border-color: var(--select); background: var(--select); }
.scroll-rail span {
    position: absolute; top: 50%; right: calc(100% + 13px); transform: translate(4px, -50%);
    width: max-content; padding: 5px 8px; opacity: 0; pointer-events: none;
    border: 1px solid rgba(238, 241, 236, .18); border-radius: 2px;
    font: 500 .76rem/1.2 var(--body); color: var(--on-ink); background: rgba(13, 24, 31, .92);
    transition: opacity .15s, transform .15s;
}
.scroll-rail a:hover span, .scroll-rail a:focus-visible span { opacity: 1; transform: translate(0, -50%); }
.back-to-top {
    position: fixed; z-index: 90; right: 18px; bottom: 18px;
    width: 44px; height: 44px; display: grid; place-items: center;
    opacity: 0; pointer-events: none; transform: translateY(12px);
    color: var(--on-ink); background: rgba(13, 24, 31, .88);
    border: 1px solid rgba(238, 241, 236, .35); border-radius: 50%; cursor: pointer;
    transition: opacity .2s, transform .2s, border-color .15s, color .15s;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { color: var(--select); border-color: var(--select); }
.back-to-top svg { width: 22px; height: 22px; }

.home.scroll-reveal-ready .scroll-reveal {
    opacity: 0; transform: translateY(24px);
    transition:
        opacity .58s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms),
        transform .58s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms);
}
.home.scroll-reveal-ready .scroll-reveal.is-visible { opacity: 1; transform: translateY(0); }

.proof-strip { background: var(--select); color: var(--ink); border-bottom: 1px solid #d4ad00; }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof-grid div { padding: 22px 32px; border-left: 1px solid rgba(22, 35, 43, .2); }
.proof-grid div:first-child { padding-left: 0; border-left: 0; }
.proof-grid strong, .proof-grid span { display: block; }
.proof-grid strong { font: 600 1.22rem/1.2 var(--display); }
.proof-grid span { margin-top: 3px; font-size: .9rem; line-height: 1.4; }

.home-section { padding: clamp(72px, 9vw, 120px) 0; scroll-margin-top: var(--nav-h); }
.section-heading { max-width: 720px; margin-bottom: 42px; }
.section-kicker { color: var(--qgis); }
.section-heading h2 {
    margin: 0 0 18px; max-width: 15ch;
    font: 600 clamp(2.8rem, 5.2vw, 4.8rem)/.95 var(--display);
    letter-spacing: -.018em; text-wrap: balance;
}
.section-heading > p:not(.section-kicker) { margin: 0; max-width: 65ch; color: var(--text-2); font-size: 1.08rem; }
.section-heading-row { max-width: none; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 64px; align-items: end; }
.section-heading-row h2 { margin-bottom: 0; }
.section-heading-row > p { padding-bottom: 4px; }
.inline-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; color: var(--link); font-weight: 600; text-decoration: none; }
.inline-cta:hover { gap: 12px; text-decoration: underline; }

.workflow-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--text);
}
.workflow-grid li { position: relative; min-height: 310px; padding: 30px 34px 24px 0; border-right: 1px solid var(--rule); }
.workflow-grid li + li { padding-left: 34px; }
.workflow-grid li:last-child { border-right: 0; }
.workflow-grid svg { width: 48px; height: 48px; margin: 38px 0 18px; color: var(--water); }
.step-number { position: absolute; top: 10px; right: 16px; font: 600 2rem/1 var(--display); color: var(--rule); }
.workflow-grid h3 { margin: 0 0 10px; font: 600 1.65rem/1.1 var(--display); }
.workflow-grid p { margin: 0; max-width: 34ch; color: var(--text-2); }

.examples { background: var(--bg-2); border-block: 1px solid var(--rule); }
.example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.example-card {
    display: flex; flex-direction: column; min-width: 0;
    background: var(--bg); border: 1px solid var(--rule);
    transition: border-color .18s, transform .18s, box-shadow .18s;
}
.example-card:hover { border-color: var(--text-2); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(22, 35, 43, .12); }
.example-media {
    position: relative; width: 100%; margin: 0; padding: 0; overflow: hidden;
    aspect-ratio: 16 / 9; color: white; background: var(--ink); border: 0; cursor: pointer;
}
.example-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, opacity .2s ease; }
.example-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 18, 23, .7), transparent 55%); }
.example-media:hover img { transform: scale(1.025); opacity: .9; }
.media-play {
    position: absolute; z-index: 1; left: 18px; bottom: 16px;
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
    font: 600 .9rem/1 var(--body); background: rgba(22, 35, 43, .88); border: 1px solid rgba(255, 255, 255, .45);
}
.media-play svg { width: 14px; height: 14px; }
.case-number {
    position: absolute; z-index: 1; top: 16px; left: 18px;
    min-width: 38px; padding: 6px 8px; text-align: center;
    font: 600 1.05rem/1 var(--display); color: var(--ink); background: var(--select);
}
.example-body { display: flex; flex-direction: column; flex: 1; align-items: flex-start; padding: 28px 30px 30px; }
.example-label { margin: 0 0 10px; color: var(--qgis); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.example-body h3 { margin: 0 0 12px; font: 600 1.65rem/1.08 var(--display); }
.example-body > p:not(.example-label):not(.result) { margin: 0 0 22px; color: var(--text-2); }
.example-body > a { margin-top: auto; font-weight: 600; text-decoration: none; }
.example-body > a:hover { text-decoration: underline; }
.result { width: 100%; margin: auto 0 20px; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--text-2); }
.result strong { color: var(--text); }
.result-list { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin: auto 0 22px; border-top: 1px solid var(--rule); }
.result-list div { padding: 16px 12px 0 0; }
.result-list dt { font: 600 2rem/1 var(--display); color: var(--text); }
.result-list dd { margin: 4px 0 0; color: var(--text-2); font-size: .88rem; }

.capability-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr); gap: clamp(44px, 6vw, 88px); align-items: center; }
.product-shot { margin-left: calc(-1 * var(--gutter)); }
.product-shot img { width: 100%; border: 1px solid var(--rule); box-shadow: 0 24px 60px rgba(22, 35, 43, .16); }
.product-shot p { max-width: 70ch; margin: 14px 0 0 var(--gutter); color: var(--text-2); font-size: .9rem; }
.capability-layout .section-heading { margin-bottom: 22px; }
.capability-list { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--text); }
.capability-list li { display: grid; grid-template-columns: 100px 1fr; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.capability-list strong { font-weight: 600; }
.capability-list span { color: var(--text-2); font-size: .95rem; }

.performance { color: var(--on-ink); background: var(--ink); }
.performance-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr); gap: clamp(50px, 8vw, 110px); align-items: end; }
.performance .section-heading { margin: 0; }
.performance .section-kicker { color: var(--select); }
.performance .section-heading h2 { color: var(--on-ink); }
.performance .section-heading > p:last-of-type { color: var(--on-ink-2); }
.backend-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.backend-list span { padding: 5px 9px; border: 1px solid #4b5d66; color: var(--on-ink); font-size: .84rem; }
.inline-cta-light { color: var(--water-light); }
.performance-stats { margin: 0; border-top: 1px solid #4b5d66; }
.performance-stats div { display: grid; grid-template-columns: minmax(145px, .55fr) 1fr; gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid #4b5d66; }
.performance-stats dt { font: 600 clamp(2.3rem, 4.5vw, 3.7rem)/1 var(--display); color: var(--select); }
.performance-stats dd { margin: 0; color: var(--on-ink-2); }

.install-section .section-heading { margin-bottom: 42px; }
.install-section .install-steps { margin-bottom: 44px; }
.install-bottom { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 24px; border-top: 1px solid var(--rule); }
.install-facts { display: flex; gap: clamp(24px, 5vw, 64px); margin: 0; }
.install-facts dt { font: 600 1.45rem/1 var(--display); }
.install-facts dd { margin: 5px 0 0; color: var(--text-2); font-size: .82rem; }

.home-footer { padding: 54px 0 28px; color: var(--on-ink); background: #0d181f; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-grid .nav-brand { width: fit-content; color: var(--on-ink); }
.footer-grid p { margin: 12px 0 0; color: var(--on-ink-2); font-size: .9rem; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a:not(.nav-brand) { color: var(--on-ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--on-ink); }
.footer-note { margin-top: 42px; padding-top: 20px; border-top: 1px solid #31434d; color: var(--on-ink-2); font-size: .8rem; }

@media (max-width: 1280px) {
    .scroll-rail { display: none; }
}

@media (max-width: 980px) {
    .home-hero-scrim { background: linear-gradient(90deg, rgba(13, 24, 31, .95), rgba(13, 24, 31, .67)); }
    .capability-layout { grid-template-columns: 1fr; }
    .product-shot { margin-left: 0; }
    .product-shot p { margin-left: 0; }
    .performance-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .home-container { width: min(1240px, calc(100% - 32px)); }
    .home-hero { min-height: 100svh; padding: calc(var(--nav-h) + 38px) 0 54px; }
    .home-hero-scrim { background: linear-gradient(0deg, rgba(13, 24, 31, .97), rgba(13, 24, 31, .65)); }
    .home-hero h1 { max-width: 12ch; font-size: clamp(3rem, 14vw, 5rem); }
    .home-lead { font-size: 1.04rem; line-height: 1.48; }
    .home-actions { align-items: stretch; }
    .home-actions .btn, .home-actions .watch { justify-content: center; }
    .home-text-link { width: 100%; text-align: center; padding: 5px; }
    .proof-grid { grid-template-columns: 1fr; padding-block: 8px; }
    .proof-grid div, .proof-grid div:first-child { padding: 14px 0; border-left: 0; border-bottom: 1px solid rgba(22, 35, 43, .2); }
    .proof-grid div:last-child { border-bottom: 0; }
    .section-heading-row { grid-template-columns: 1fr; gap: 18px; }
    .workflow-grid { grid-template-columns: 1fr; }
    .workflow-grid li, .workflow-grid li + li { min-height: 0; padding: 24px 48px 24px 0; border-right: 0; border-bottom: 1px solid var(--rule); }
    .workflow-grid svg { margin: 24px 0 14px; }
    .example-grid {
        display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-inline: contain;
        padding: 2px 0 14px; scroll-padding-inline: 0; scroll-snap-type: x proximity;
        scrollbar-width: thin; scrollbar-color: var(--rule) transparent;
        -webkit-overflow-scrolling: touch;
    }
    .example-grid::-webkit-scrollbar, .story-index::-webkit-scrollbar { height: 6px; }
    .example-grid::-webkit-scrollbar-track, .story-index::-webkit-scrollbar-track { background: transparent; }
    .example-grid::-webkit-scrollbar-thumb, .story-index::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 4px; }
    .example-card { flex: 0 0 min(84vw, 360px); scroll-snap-align: start; }
    .example-body { padding: 22px 20px 24px; }
    .capability-layout { gap: 40px; }
    .capability-list li { grid-template-columns: 84px 1fr; gap: 12px; }
    .performance-stats div { grid-template-columns: 1fr; gap: 6px; }
    .install-bottom { align-items: stretch; flex-direction: column; }
    .install-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .hero-scroll { display: none; }
    .home-hero .credit { right: 10px; bottom: 7px; max-width: calc(100% - 20px); }
}

@media (max-width: 480px) {
    .home-section { padding: 58px 0; }
    .section-heading { margin-bottom: 30px; }
    .section-heading h2 { font-size: clamp(2.45rem, 12vw, 3.3rem); }
    .home-actions .btn, .home-actions .watch { width: 100%; }
    .install-facts { grid-template-columns: 1fr; }
    .result-list { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid > div:first-child { grid-column: auto; }
    .back-to-top { right: 12px; bottom: 12px; width: 42px; height: 42px; }
}

@media (max-width: 640px) {
    .story-index {
        grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(86%, 340px);
        gap: 14px; overflow-x: auto; overscroll-behavior-inline: contain;
        padding: 2px 0 14px; scroll-snap-type: x proximity;
        scrollbar-width: thin; scrollbar-color: var(--rule) transparent;
        -webkit-overflow-scrolling: touch;
    }
    .story-index .story-card { scroll-snap-align: start; }
}

@media (max-height: 720px) and (min-width: 761px) {
    .home-hero { padding: calc(var(--nav-h) + 28px) 0 50px; }
    .home-hero h1 { font-size: clamp(3.2rem, 6.6vw, 5rem); margin-bottom: 16px; }
    .home-lead { font-size: 1.02rem; }
    .home-actions { margin-top: 18px; }
    .home-version { margin-top: 14px; }
    .hero-scroll span { display: none; }
    .hero-scroll { bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .example-media img { transition: none; }
    .story-index .story-card { transition: none; }
    .story-index .story-card:hover { transform: none; }
    .story-card-media img { transition: none; }
    .scroll-rail a, .scroll-rail span, .back-to-top { transition: none; }
    .hero-scroll svg { animation: none; }
    .home.scroll-reveal-ready .scroll-reveal { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------------------ roadmap */
.roadmap main { padding-top: var(--nav-h); }
.roadmap .container { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
.roadmap .fade-in { opacity: 1; transform: none; }
.roadmap .hero { padding: 64px 0 44px; border-bottom: 1px solid var(--rule); }
.roadmap .hero h1 .gradient { display: block; }
.roadmap .hero p { font-size: 1.2rem; color: var(--text-2); max-width: 60ch; }
.roadmap .hero .roadmap-note { margin-top: 22px; padding: 12px 16px; font-size: .95rem; border-left: 4px solid var(--select-deep); background: var(--bg-2); }
.roadmap .hero-badge { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; color: var(--qgis); margin-bottom: 14px; }
.roadmap .pulse { width: 10px; height: 10px; background: var(--select-deep); border-radius: 50%; }
.roadmap .hero-stats { display: flex; gap: 48px; margin-top: 28px; }
.roadmap .hero-stat .num { font: 600 2.6rem/1 var(--display); }
.roadmap .hero-stat .label { color: var(--text-2); }
.roadmap .section { padding: 60px 0 20px; }
.roadmap .section-header { margin-bottom: 26px; }
.roadmap .section-label { display: inline-flex; gap: 8px; align-items: center; color: var(--qgis); }
.roadmap .section-title { font: 600 clamp(2.1rem, 4vw, 2.8rem)/1.05 var(--display); margin: 6px 0 10px; }
.roadmap .section-subtitle { color: var(--text-2); max-width: 64ch; font-size: 1.1rem; margin: 0; }
.roadmap .features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 36px; border-top: 2px solid var(--text); }
.roadmap .feature-card { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.roadmap .feature-card.highlight { grid-column: 1 / -1; }
.roadmap .star-label { display: inline-block; font-size: 0.85rem; font-weight: 600; background: var(--select); color: var(--ink); padding: 2px 8px; margin-bottom: 10px; }
.roadmap .feature-icon { width: 36px; height: 36px; display: grid; place-items: center; margin-bottom: 8px; color: var(--water); }
.roadmap .feature-icon svg { stroke: currentColor; }
.roadmap .feature-icon.purple { color: #8a5cc2; }
.roadmap .feature-icon.orange { color: var(--select-deep); }
.roadmap .feature-icon.green { color: var(--qgis); }
.roadmap .feature-title { font-weight: 600; font-size: 1.15rem; margin-bottom: 6px; }
.roadmap .feature-desc { color: var(--text-2); max-width: 70ch; }
.roadmap .feature-tags { display: flex; gap: 8px; margin-top: 12px; }
.roadmap .tag { font-size: 0.8rem; font-weight: 600; padding: 2px 7px; background: var(--code-bg); }
.roadmap .tag.must { background: var(--select); color: var(--ink); }
.roadmap .divider { border: 0; border-top: 1px solid var(--rule); max-width: 1100px; margin: 40px auto 0; }
.roadmap .timeline { border-left: 2px solid var(--text); margin-left: 16px; }
.roadmap .timeline-item { position: relative; padding: 0 0 30px 34px; }
.roadmap .timeline-dot {
    position: absolute; left: -17px; top: 0; width: 32px; height: 32px;
    display: grid; place-items: center; font: 600 1.1rem/1 var(--display); background: var(--select); color: var(--ink);
}
.roadmap .timeline-sprint { color: var(--text-2); font-size: 0.95rem; }
.roadmap .timeline-title { font-weight: 600; font-size: 1.15rem; }
.roadmap .timeline-desc { color: var(--text-2); max-width: 70ch; }
.roadmap .timeline-milestone { display: inline-block; margin-top: 8px; font-weight: 600; font-size: 0.85rem; border: 1px solid var(--qgis); color: var(--qgis); padding: 1px 8px; }
.roadmap .cta-section { padding: 56px 0; }
.roadmap .cta-section h2 { font: 600 2.4rem/1.05 var(--display); margin: 0 0 10px; }
.roadmap .cta-section p { color: var(--text-2); max-width: 60ch; }
.roadmap .cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.roadmap .doc-foot { max-width: 1100px; margin: 0 auto; padding: 22px var(--gutter) 40px; }
@media (max-width: 640px) { .roadmap .hero-stats { gap: 28px; } }
