/* =========================================================================================
   Starlight Compliance
   Light, editorial base with navy bands for product UI. Colors come from the logo: Starlight
   Navy for ink, Sky for the marker. Borders separate things; shadows are reserved for floating
   menus.
   ========================================================================================= */

@font-face { font-family: "Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
    /* Brand palette (from the logo) */
    --brand-navy: #081c3b;    /* STARLIGHT wordmark */
    --brand-star: #376099;    /* the star */
    --brand-slate: #47689c;   /* COMPLIANCE */
    --brand-sky: #8da8d0;     /* the trails */
    --brand-mist: #e9eef5;

    --paper: #f4f6f9;
    --white: #ffffff;
    --tint: var(--brand-mist);
    --ink: var(--brand-navy);
    --ink-2: #33415a;
    --muted: #5f6b7e;
    --line: #dce2ea;
    --line-strong: #bac5d4;

    --night: var(--brand-navy);
    --night-2: #0e2548;
    --night-line: #1f3659;
    --night-text: #e8edf5;
    --night-muted: #9daec6;

    --mark: var(--brand-sky);  /* highlighter, rules, bullets */
    --mark-ink: #2f5690;       /* accent text on light backgrounds */

    --bad: #b42318;
    --ok: #0b7a5c;

    --r-sm: 3px;
    --r: 4px;
    --r-lg: 6px;
    --shadow-menu: 0 12px 32px -12px rgb(8 28 59 / 28%);

    --font: "Plex Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
    --mono: "Plex Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

    /* Legacy aliases still referenced by some markup */
    --accent: var(--mark-ink);
    --text: var(--ink);
    --text-2: var(--ink-2);
    --border: var(--line);
    --surface: var(--white);
    color-scheme: light;
}

/* Product themes: product pages, trials and order pages use the product's accent. */
.theme-shadowsift { --mark: #3dd6b5; --mark-ink: #0a6b59; }
.theme-shadowlabel { --mark: #f2b33d; --mark-ink: #8a5300; }
.theme-shadowchecker { --mark: #4cc38a; --mark-ink: #17694a; }

/* ShadowLabel's classification presets, drawn as banner strips. */
.marking-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.marking-list li {
    display: flex; align-items: center; justify-content: center; min-height: 30px; padding: 4px 12px;
    border-radius: 3px; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .08em;
}
.marking-list .mk-u { background: #007a33; color: #fff; }
.marking-list .mk-cui { background: #502b85; color: #fff; }
.marking-list .mk-c { background: #0033a0; color: #fff; }
.marking-list .mk-s { background: #c8102e; color: #fff; }
.marking-list .mk-ts { background: #ff8c00; color: #000; }
.marking-list .mk-sci { background: #fce83a; color: #000; }

/* ShadowChecker's kinds of change, as a key with a colored edge. */
.change-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.change-list li {
    display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: baseline; padding: 8px 12px;
    border: 1px solid var(--border); border-left-width: 4px; border-radius: 4px; background: var(--surface);
}
.change-list strong { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.change-list span { color: var(--text-2); font-size: 14px; }
.change-list .ch-added { border-left-color: #5b9cff; }
.change-list .ch-modified { border-left-color: #e45a5a; }
.change-list .ch-removed { border-left-color: #e6b84d; }
.change-list .ch-meta { border-left-color: #8aa0b8; }

/* =========================================================================================
   Base
   ========================================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 17px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--mark-ink); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .6em; font-weight: 500; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); letter-spacing: -.032em; line-height: 1.04; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); margin-top: 1.4em; letter-spacing: -.026em; }
h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }

p { margin: 0 0 1em; }

code, .mono { font-family: var(--mono); font-size: .88em; overflow-wrap: anywhere; }

img, svg { display: block; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 760px; }
.section { padding: 104px 32px; }
.section-tight { padding: 64px 32px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lede { font-size: 1.18rem; line-height: 1.55; color: var(--ink-2); max-width: 58ch; }

.eyebrow {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
    color: var(--muted); margin: 0 0 20px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--mark); flex: none; }
.eyebrow .icon { display: none; }

/* Highlighter: a flat marker stroke behind a few words. */
.hl {
    background: linear-gradient(transparent 60%, color-mix(in srgb, var(--mark) 70%, transparent) 60%, color-mix(in srgb, var(--mark) 70%, transparent) 94%, transparent 94%);
    padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; }

/* =========================================================================================
   Header and navigation
   ========================================================================================= */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 68px; flex-wrap: wrap; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-logo { display: block; height: 48px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav > a:not(.btn), .nav-menu > a {
    position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 22px 12px;
    color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.site-nav > a:not(.btn):hover, .nav-menu > a:hover, .nav-menu:focus-within > a { color: var(--ink); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--ink); }
.site-nav a[aria-current="page"]:not(.btn)::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; background: var(--mark);
}
.site-nav .nav-cta { margin-left: 14px; }
.caret { width: 14px; height: 14px; opacity: .6; transition: transform .15s; }
.nav-menu:hover .caret, .nav-menu:focus-within .caret { transform: rotate(180deg); }

.nav-menu { position: relative; }
.menu {
    position: absolute; top: 100%; left: 0; min-width: 360px; padding: 8px 0;
    background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r);
    box-shadow: var(--shadow-menu);
    opacity: 0; visibility: hidden; transition: opacity .12s, visibility .12s;
}
.nav-menu:hover .menu, .nav-menu:focus-within .menu { opacity: 1; visibility: visible; }
.menu-label { padding: 10px 20px 6px; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.menu a { display: flex; gap: 12px; align-items: flex-start; padding: 12px 20px; text-decoration: none; color: var(--ink); border-left: 3px solid transparent; }
.menu a:hover, .menu a:focus { background: var(--paper); border-left-color: var(--mark); outline: none; color: var(--ink); }
.menu-name { display: block; font-weight: 600; }
.menu-tagline { display: block; color: var(--muted); font-size: .88rem; margin-top: 1px; }
.menu-all { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 4px; }
.menu-all a { color: var(--ink-2); font-size: .9rem; }

/* =========================================================================================
   Buttons
   ========================================================================================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 18px; border-radius: var(--r); border: 1px solid var(--ink);
    background: transparent; color: var(--ink); font: inherit; font-weight: 500; font-size: .95rem;
    text-decoration: none; cursor: pointer; line-height: 1.2;
    transition: background-color .12s, color .12s, border-color .12s;
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: #020c1c; border-color: #020c1c; color: var(--white); }
.btn-primary .icon { transition: transform .15s; }
.btn-primary:hover .icon { transform: translateX(2px); }
.btn-ghost { border-color: transparent; color: var(--ink-2); padding-left: 6px; padding-right: 6px; text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.btn-ghost:hover { background: transparent; color: var(--ink); }
.btn-small { padding: 8px 14px; font-size: .88rem; }
.btn-lg { padding: 14px 22px; font-size: 1rem; }
.btn .icon { width: 18px; height: 18px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 32px 0 0; }

/* Buttons on dark bands */
.dark .btn { border-color: var(--night-text); color: var(--night-text); }
.dark .btn:hover { background: var(--night-text); color: var(--night); }
.dark .btn-primary { background: var(--mark); border-color: var(--mark); color: var(--ink); }
.dark .btn-primary:hover { background: color-mix(in srgb, var(--mark) 85%, #fff); border-color: color-mix(in srgb, var(--mark) 85%, #fff); color: var(--ink); }

/* =========================================================================================
   Hero
   ========================================================================================= */
.hero { border-bottom: 1px solid var(--line); background: var(--paper); }
.hero-inner { padding-top: 88px; padding-bottom: 88px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 64px; align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: 24px; }
.hero-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 24px 0 0; color: var(--muted); font-family: var(--mono); font-size: .8rem; }
.hero-note .icon { display: none; }
.hero-note a { color: var(--ink-2); }
.figure-caption { margin: 12px 0 0; font-family: var(--mono); font-size: .74rem; color: var(--muted); }

/* ShadowSift product preview: an HTML/SVG illustration of the search screen, styled like the app. */
.preview {
    margin: 0; border: 1px solid #000; border-radius: var(--r-lg); background: #0b111e; overflow: hidden; color: #dbe4f3;
    font-size: 12px; line-height: 1.4;
    box-shadow: 0 1px 0 rgb(255 255 255 / 4%) inset, 12px 12px 0 -1px var(--tint), 12px 12px 0 0 var(--line-strong);
    --pv-accent: #5b9cff; --pv-border: #1e2a3d; --pv-muted: #7d8fa8;
}
.preview-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--pv-border); background: #0e1626; }
.preview-dots { display: flex; gap: 6px; }
.preview-dots span { width: 10px; height: 10px; border-radius: 50%; background: #2a3a52; }
.preview-title { font-weight: 600; letter-spacing: .01em; }
.preview-title b { color: var(--pv-accent); font-weight: 600; }
.preview-tabs { display: flex; gap: 2px; margin-left: auto; }
.preview-tabs span { padding: 4px 10px; border-radius: 3px; color: var(--pv-muted); }
.preview-tabs .on { background: #16233a; color: #e7eef8; }
.preview-body { padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.preview-query { display: flex; gap: 8px; min-width: 0; }
.preview-query code {
    flex: 1; min-width: 0; padding: 8px 10px; border-radius: 3px; background: #0f1722; border: 1px solid var(--pv-border);
    font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.preview-query .btn-pv { padding: 8px 12px; border-radius: 3px; background: var(--pv-accent); color: #061226; font-weight: 600; }
.pv-f { color: #8fc1ff; }
.pv-n { color: #ff8a8a; }
.pv-t { color: #e6b84d; }
.preview-chart { border: 1px solid var(--pv-border); border-radius: 3px; padding: 10px 10px 4px; background: #0d1420; }
.preview-chart-head { display: flex; justify-content: space-between; color: var(--pv-muted); font-size: 11px; margin-bottom: 6px; }
.preview-chart svg { width: 100%; height: 64px; }
.preview-table { width: 100%; border-collapse: collapse; font-size: 11.5px; table-layout: fixed; }
.preview-table th { text-align: left; color: var(--pv-muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--pv-border); }
.preview-table td { padding: 7px 8px; border-bottom: 1px solid #141e2e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-table th:nth-child(1) { width: 17%; }
.preview-table th:nth-child(2) { width: 11%; }
.preview-table th:nth-child(4) { width: 17%; }
.preview-table th:nth-child(5) { width: 17%; }
.preview-wrap, .preview { min-width: 0; max-width: 100%; }
.preview-table tr.sel td { background: #13213a; }
.preview-table .ev { font-family: var(--mono); color: #ffb4b4; }
.preview-foot { display: flex; justify-content: space-between; gap: 12px; color: var(--pv-muted); font-size: 11px; }
.preview-wrap { position: relative; padding: 0 12px 12px 0; }

/* ShadowChecker's preview: the History tab, reusing the frame above. Colors match the app's change kinds. */
.pvc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-width: 0; }
.pvc-head > div { min-width: 0; }
.pvc-head strong { display: block; font-size: 13px; color: #e7eef8; }
.pvc-head span { display: block; color: var(--pv-muted); font-size: 11px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pvc-badge {
    flex: none; padding: 2px 9px; border-radius: 10px; border: 1px solid #e45a5a; background: #3f1d22; color: #ff9b9b;
    font-size: 11px; font-weight: 600;
}
.pvc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2.2fr); gap: 8px; }
.pvc-stats > div { border: 1px solid var(--pv-border); border-bottom-width: 3px; border-radius: 4px; padding: 8px 10px; background: #0d1420; min-width: 0; }
.pvc-stats b { display: block; font-size: 18px; font-weight: 600; color: #e7eef8; line-height: 1.1; }
.pvc-stats span { color: var(--pv-muted); font-size: 11px; }
.pvc-add { border-bottom-color: #5b9cff !important; }
.pvc-mod { border-bottom-color: #e45a5a !important; }
.pvc-rem { border-bottom-color: #e6b84d !important; }
.pvc-chart span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pvc-chart svg { width: 100%; height: 26px; margin-top: 4px; display: block; }
.pvc-table th:nth-child(1) { width: 16%; }
.pvc-table th:nth-child(2) { width: auto; }
.pvc-table th:nth-child(3) { width: 30%; }
.pvc-table .k-add { color: #8fc1ff; font-weight: 600; }
.pvc-table .k-mod { color: #ff9b9b; font-weight: 600; }
.pvc-table .k-rem { color: #e6b84d; font-weight: 600; }

/* Facts strip: plain numbers with mono labels, in place of icon badges. */
.facts-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.facts-strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts-strip li { padding: 28px 24px 30px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.facts-strip li:first-child { border-left: 0; padding-left: 0; }
.facts-strip strong { font-size: 1.9rem; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.facts-strip span { font-family: var(--mono); font-size: .78rem; color: var(--muted); line-height: 1.45; }

/* Legacy trust strip (kept for any page still using it) */
.trust { border-bottom: 1px solid var(--line); background: var(--white); }
.trust ul { list-style: none; margin: 0; padding: 20px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.trust li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: .92rem; }
.trust .icon { color: var(--mark-ink); }

/* =========================================================================================
   Sections
   ========================================================================================= */
.section-intro { max-width: 700px; margin-bottom: 56px; }
.section-intro h2 { margin-top: 0; }
.section-intro p { color: var(--ink-2); font-size: 1.08rem; margin: 0; }
.band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band + .band, .hero + .band, .facts-strip + .band { border-top: 0; }

.dark { background: var(--night); color: var(--night-text); }
.dark .eyebrow { color: var(--night-muted); }
.dark p, .dark .lede { color: var(--night-muted); }
.dark a:not(.btn) { color: var(--night-text); }
.dark a:not(.btn):hover { color: var(--mark); }

/* Two-column section: heading on the left, content on the right. */
.columns { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.columns > * { min-width: 0; }
.columns .section-intro { margin-bottom: 0; position: sticky; top: 100px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.split > *, .hero-grid > * { min-width: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card, .panel, .price-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.card p { color: var(--ink-2); margin: 0; }
.panel { margin: 20px 0; }
.panel-highlight { border-color: var(--ink); box-shadow: inset 4px 0 0 var(--mark); }
.panel h2:first-child { margin-top: 0; font-size: 1.35rem; }

/* Control mapping table */
.controls { width: 100%; border-collapse: collapse; font-size: .95rem; }
.controls th, .controls td { text-align: left; vertical-align: top; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--line); }
.controls thead th { font-family: var(--mono); font-size: .74rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding-top: 0; border-bottom-color: var(--ink); }
.controls tbody th { font-weight: 600; width: 22%; }
.controls td:nth-child(2) { font-family: var(--mono); font-size: .84rem; white-space: nowrap; width: 16%; color: var(--ink); }
.controls td { color: var(--ink-2); }
.controls td:nth-child(4) { white-space: nowrap; padding-right: 0; font-size: .88rem; }
.controls td:nth-child(4) a { color: var(--ink); }
.disclaimer { color: var(--muted); font-size: .85rem; margin-top: 20px; max-width: 70ch; }

/* Numbered list with top rules: replaces icon card grids. */
.ruled { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; counter-reset: ruled; }
.ruled-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ruled-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 36px; }
.ruled > li { counter-increment: ruled; border-top: 1px solid var(--ink); padding: 20px 0 40px; }
.ruled > li::before { content: counter(ruled, decimal-leading-zero); display: block; font-family: var(--mono); font-size: .78rem; color: var(--muted); margin-bottom: 14px; }
.ruled.plain > li::before { display: none; }
.ruled h3 { margin: 0 0 8px; }
.ruled p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.dark .ruled > li { border-top-color: var(--night-line); }
.dark .ruled > li::before { color: var(--mark); }
.dark .ruled h3 { color: var(--night-text); }
.dark .ruled p { color: var(--night-muted); }

/* Features (legacy class): flat, ruled, no icon tiles */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; }
.feature { border-top: 1px solid var(--ink); padding: 20px 0 40px; }
.feature h3 { margin: 0 0 8px; }
.feature p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.feature-icon { display: none; }
.goals, .included { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 36px; }

.stat-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.stat-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.stat-list .icon { color: var(--mark-ink); margin-top: 3px; }

/* Product showcase on the home page */
.showcase { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; }
.showcase > * { min-width: 0; }
.showcase h2 { margin-top: 0; color: var(--night-text); }
.showcase .product-tag { font-family: var(--mono); font-size: .8rem; color: var(--mark); margin: 0 0 8px; }
/* A second showcase right after the first: a hairline between them, and the illustration on the left. */
.showcase-next { border-top: 1px solid var(--night-line); }
.showcase-flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; }
.dark .preview { box-shadow: 0 1px 0 rgb(255 255 255 / 4%) inset, 12px 12px 0 -1px var(--night-2), 12px 12px 0 0 var(--night-line); }
.dark .figure-caption { color: var(--night-muted); }
.showcase-points { list-style: none; margin: 20px 0 28px; padding: 0; display: grid; gap: 10px; }
.showcase-points li { position: relative; padding-left: 22px; color: var(--night-muted); font-size: .95rem; }
.showcase-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 2px; background: var(--mark); }
.query-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.query-table caption { text-align: left; font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--night-muted); padding-bottom: 12px; border-bottom: 1px solid var(--night-text); }
.query-table td { padding: 16px 0; border-bottom: 1px solid var(--night-line); vertical-align: top; }
.query-table code { display: block; color: var(--night-text); font-size: .86rem; margin-bottom: 4px; }
.query-table code .f { color: var(--mark); }
.query-table code .n { color: #ff9b8f; }
.query-table span { color: var(--night-muted); font-size: .9rem; }
.roadmap-note { margin: 56px 0 0; padding-top: 20px; border-top: 1px solid var(--night-line); font-size: .92rem; color: var(--night-muted); }

/* Product cards (products index) */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.product-card {
    position: relative; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--mark);
    border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column;
}
.product-card-head { margin-bottom: 14px; }
.product-card h3 { font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; margin: 0; }
.product-card .tagline { color: var(--muted); font-family: var(--mono); font-size: .8rem; margin: 4px 0 0; }
.product-card p { color: var(--ink-2); }
.product-card .actions { margin: auto 0 0; padding-top: 12px; }
.product-card-soon { border-style: dashed; border-top: 1px dashed var(--line-strong); background: transparent; }

/* Steps */
.steps-row { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; }
.steps-row li { counter-increment: step; border-top: 1px solid var(--ink); padding: 20px 0 8px; display: flex; flex-direction: column; gap: 6px; }
.steps-row li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: .78rem; color: var(--muted); margin-bottom: 8px; }
.steps-row strong { font-size: 1.12rem; font-weight: 600; }
.steps-row span { color: var(--ink-2); font-size: .98rem; }
.steps-stack { grid-template-columns: 1fr; margin-top: 28px; gap: 0; }
.steps-stack li { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 18px 0; border-top-color: var(--line); }
.steps-stack li:first-child { border-top-color: var(--ink); }
.steps-stack li::before { margin: 0; }
.steps-stack li span { flex-basis: 100%; }

/* Closing call to action */
.cta { border-top: 1px solid var(--ink); padding-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.cta h2 { margin: 0 0 12px; }
.cta p { color: var(--ink-2); max-width: 54ch; margin: 0; }
.cta .actions { margin: 0; justify-content: flex-end; }

/* =========================================================================================
   Page headers
   ========================================================================================= */
.page-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.page-header .wrap { padding-top: 80px; padding-bottom: 64px; }
.page-header h1 { margin-bottom: .4em; max-width: 22ch; }
.page-header .lede { margin: 0; }

/* =========================================================================================
   Pricing
   ========================================================================================= */
.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 32px; border-top: 3px solid var(--mark); }
.price-card-head { margin-bottom: 20px; }
.price-card h2 { margin: 0; font-size: 1.4rem; }
.price-card .tagline { color: var(--muted); margin: 4px 0 0; font-family: var(--mono); font-size: .8rem; }
.price { margin: 0 0 4px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.amount { font-size: 3.2rem; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.unit { color: var(--muted); font-size: .95rem; }
.price-note { color: var(--muted); font-size: .85rem; margin: 6px 0 22px; }
.checks { list-style: none; padding: 20px 0 0; margin: 0 0 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: .96rem; }
.checks .icon { color: var(--ok); width: 18px; height: 18px; margin-top: 3px; }
.price-card .buy-form { margin-top: auto; }
.price-card .links { display: flex; gap: 18px; margin-top: 18px; font-size: .9rem; }
.price-card-soon { border-style: dashed; border-top: 1px dashed var(--line-strong); background: transparent; color: var(--muted); }
.buy-form label { display: block; margin-bottom: 8px; }
.buy-form .row { display: flex; gap: 10px; }
.buy-form input { width: 96px; }
.buy-form .btn { flex: 1; }
.steps ol { padding-left: 22px; }
.steps li { margin: 12px 0; color: var(--ink-2); }
.steps li strong { color: var(--ink); }

/* =========================================================================================
   Forms, notices, badges
   ========================================================================================= */
.form { display: flex; flex-direction: column; gap: 10px; }
.form .btn { align-self: flex-start; margin-top: 8px; }
label { font-weight: 500; font-size: .92rem; color: var(--ink); }
input {
    font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--line-strong);
    border-radius: var(--r); padding: 11px 14px; width: 100%;
    transition: border-color .12s, box-shadow .12s;
}
input::placeholder { color: #9aa0a6; }
input:hover { border-color: var(--muted); }
input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mark) 45%, transparent); }
form.inline { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; }

.notice { border-radius: var(--r); padding: 12px 16px; margin: 14px 0; border: 1px solid; border-left-width: 4px; font-size: .95rem; }
.notice-error { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); border-left-color: var(--bad); background: #fdf3f2; }
.notice-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); border-left-color: var(--ok); background: #f0f8f5; }
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--r-sm); font-family: var(--mono); font-size: .74rem; font-weight: 500; border: 1px solid; }
.badge-ok { color: var(--ok); background: #f0f8f5; }
.badge-bad { color: var(--bad); background: #fdf3f2; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0 0 20px; }
.facts dt { color: var(--muted); font-size: .92rem; }
.facts dd { margin: 0; }
.code-display { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 1.3rem; font-weight: 600; }

.activations { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); overflow: hidden; }
.activations li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; flex-wrap: wrap; }
.activations li + li { border-top: 1px solid var(--line); }
.activations li > div:first-child { display: flex; flex-direction: column; }
.activation-actions { display: flex; gap: 8px; }

.faq { max-width: 860px; }
.faq h2 { margin-top: 0; margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 500; font-size: 1.04rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--muted); font-size: 1.2rem; line-height: 1.2; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink-2); margin: 12px 0 0; max-width: 70ch; }

.howto li { margin: 8px 0; }

/* Legal pages */
.agree { margin: 12px 0 0; color: var(--muted); font-size: .82rem; }
mark.todo { background: color-mix(in srgb, var(--mark) 35%, transparent); color: var(--ink); padding: 0 4px; }

.query {
    font-family: var(--mono); font-size: .88rem; line-height: 1.8; background: var(--night); color: var(--night-text);
    border-radius: var(--r-lg); padding: 18px 20px; overflow-x: auto; max-width: 640px; margin: 0;
}
.q-field { color: var(--mark); }
.q-neg { color: #ff9b8f; }

/* Product specs */
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 15px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs tr:first-child th, .specs tr:first-child td { border-top: 1px solid var(--ink); }
.specs th { width: 32%; color: var(--muted); font-family: var(--mono); font-weight: 400; font-size: .82rem; padding-right: 24px; padding-top: 18px; }

/* =========================================================================================
   Documentation
   ========================================================================================= */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-top: 56px; padding-bottom: 96px; }
.docs-nav { position: sticky; top: 96px; align-self: start; font-size: .93rem; }
.docs-nav h4 { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 28px 0 8px; font-weight: 500; }
.docs-nav h4:first-child { margin-top: 0; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.docs-nav a { display: block; padding: 6px 14px; margin-left: -1px; color: var(--ink-2); text-decoration: none; border-left: 3px solid transparent; }
.docs-nav a:hover { color: var(--ink); }
.docs-nav a[aria-current="page"] { color: var(--ink); border-left-color: var(--mark); font-weight: 600; }
code.hash { word-break: break-all; }
.article { max-width: 760px; min-width: 0; }
.article h1 { font-size: clamp(2rem, 3.4vw, 2.6rem); }
.article h2 { font-size: 1.45rem; margin-top: 2.2em; }
.article h3 { margin-top: 1.6em; }
.article p, .article li { color: var(--ink-2); }
.article strong { color: var(--ink); }
.article ol, .article ul { padding-left: 22px; }
.article li { margin: 8px 0; }
.article pre {
    background: var(--night); color: var(--night-text); border-radius: var(--r-lg); padding: 16px 18px;
    overflow-x: auto; font-family: var(--mono); font-size: .86rem; line-height: 1.7;
}
.article :not(pre) > code { background: var(--tint); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 1px 5px; color: var(--ink); }
.article table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .93rem; display: block; overflow-x: auto; }
.article th, .article td { border-bottom: 1px solid var(--line); padding: 10px 16px 10px 0; text-align: left; vertical-align: top; }
.article th { color: var(--muted); font-family: var(--mono); font-weight: 500; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; border-bottom-color: var(--ink); }
.callout { display: flex; gap: 12px; border-left: 4px solid var(--mark); background: var(--white); border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 18px; margin: 20px 0; }
.callout p { margin: 0; color: var(--ink); }
.article-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; }
.article-pager a { display: block; padding: 16px 0 0; border-top: 1px solid var(--ink); text-decoration: none; color: var(--ink); font-weight: 500; }
.article-pager a:hover { color: var(--mark-ink); }
.article-pager span:last-child a { text-align: right; }
.article-pager small { display: block; color: var(--muted); font-family: var(--mono); font-weight: 400; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.doc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 32px; }
.doc-card { display: block; padding: 16px 0 24px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.doc-card:hover { border-top-color: var(--ink); color: var(--ink); }
.doc-card:hover strong { text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.doc-card strong { display: block; margin-bottom: 4px; font-weight: 600; }
.doc-card span { color: var(--ink-2); font-size: .92rem; }

/* =========================================================================================
   Footer
   ========================================================================================= */
.footer { background: var(--night); color: var(--night-muted); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; padding-top: 72px; padding-bottom: 48px; }
.footer .brand, .footer .brand:hover { color: var(--night-text); }
.footer .brand-logo { height: 44px; }
.footer-about p { max-width: 36ch; margin-top: 18px; }
.footer h4 { color: var(--night-text); font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; margin: 4px 0 16px; font-weight: 500; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 10px 0; }
.footer a { color: var(--night-muted); text-decoration: none; }
.footer a:hover { color: var(--night-text); }
.footer-base {
    border-top: 1px solid var(--night-line); padding-top: 22px; padding-bottom: 30px; font-size: .84rem;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
}
.footer-base span { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-base .icon { width: 16px; height: 16px; }

/* =========================================================================================
   Responsive
   ========================================================================================= */
@media (max-width: 1024px) {
    .hero-grid, .showcase, .columns { grid-template-columns: minmax(0, 1fr); gap: 56px; }
    .columns .section-intro { position: static; }
    .hero h1 { max-width: 18ch; }
    .goals, .included, .ruled-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-grid, .ruled-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .facts-strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .facts-strip li:nth-child(3) { border-left: 0; padding-left: 0; }
    .facts-strip li:nth-child(n+3) { border-top: 1px solid var(--line); }
    .split { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}

@media (max-width: 860px) {
    .docs { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
    .steps-row { grid-template-columns: 1fr; }
    .cta { grid-template-columns: 1fr; }
    .cta .actions { justify-content: flex-start; }
}

@media (max-width: 720px) {
    body { font-size: 16px; }
    .wrap { padding: 0 16px; }
    .section { padding: 72px 16px; }
    .hero-inner { padding-top: 56px; padding-bottom: 64px; }
    .topbar-inner { min-height: 56px; padding-top: 10px; }
    .site-nav { width: calc(100% + 16px); margin: 0 -8px; justify-content: space-between; }
    .site-nav > a:not(.btn), .nav-menu > a { font-size: .9rem; padding: 12px 8px 14px; }
    .site-nav a[aria-current="page"]:not(.btn)::after { left: 8px; right: 8px; }
    .site-nav .nav-cta { display: none; }
    .menu { min-width: 280px; }
    .pricing, .goals, .feature-grid, .included, .ruled, .ruled-3, .ruled-4, .trust ul { grid-template-columns: 1fr; }
    .price-grid, .product-grid { grid-template-columns: 1fr; }
    .facts { grid-template-columns: 1fr; gap: 2px; }
    .facts dd { margin-bottom: 12px; }
    .facts-strip li { padding: 20px 12px 22px; }
    .facts-strip li:nth-child(odd) { padding-left: 0; border-left: 0; }
    .facts-strip strong { font-size: 1.5rem; }
    .controls thead { display: none; }
    .controls, .controls tbody, .controls tr, .controls th, .controls td { display: block; width: auto !important; }
    .controls tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
    .controls tr:first-child { border-top: 1px solid var(--ink); }
    .controls th, .controls td { border: 0; padding: 2px 0; }
    .controls td:nth-child(2) { white-space: normal; margin: 2px 0 6px; }
    .preview-wrap { padding: 0 8px 8px 0; }
    .preview { box-shadow: 8px 8px 0 -1px var(--tint), 8px 8px 0 0 var(--line-strong); }
    .preview-table .hide-sm { display: none; }
    .preview-table th:nth-child(1) { width: 22%; }
    .preview-table th:nth-child(2) { width: 14%; }
    .preview-table th:nth-child(4) { width: 24%; }
    .preview-tabs span:not(.on) { display: none; }
    .pvc-table th:nth-child(1) { width: 27%; }
    .pvc-table th:nth-child(2) { width: auto; }
    .pvc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pvc-chart { grid-column: 1 / -1; }
    .preview-foot span:last-child { display: none; }
    .article-pager { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .docs { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 32px; }
    .docs-nav { position: static; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; background: var(--white); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}

.showcase-foot { padding-bottom: 72px; }
.section-end { padding-bottom: 104px; }
@media (max-width: 720px) { .section-end { padding-bottom: 72px; } .showcase-foot { padding-bottom: 56px; } }
.showcase.section { padding-bottom: 0; }
.showcase-foot .roadmap-note { margin-top: 72px; }
.eyebrow + h1, .eyebrow + h2, .eyebrow + h3 { margin-top: 0; }
.query + p { margin-top: 12px; }
@media (max-width: 720px) { .brand-logo { height: 38px; } }
