/* InCompanyData landing site.
   Design: clarity, deference, depth. One idea per section, generous whitespace.
   Brand typefaces (Space Grotesk, Inter) are self-hosted with the shared tokens: no external fonts, no CDNs. Shared tokens: /design/tokens.css; landing-specific colours below; dark mode redefines them. */

/* ───────────── Tokens ───────────── */
:root {
    color-scheme: light dark;

    --bg: #F4F6F5;
    --bg-alt: #E8F1EE;
    --surface: #ffffff;
    --surface-2: #F4F6F5;
    --text: #0E2226;
    --text-2: #3F5559;
    --link: #17806A;
    --good: #1B7F3B;
    --danger: #d70015;
    --warn-bg: rgba(255, 159, 10, 0.14);
    --border: rgba(14, 34, 38, 0.09);
    --border-strong: rgba(14, 34, 38, 0.18);
    --chip: rgba(14, 34, 38, 0.05);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.35), 0 18px 36px -18px rgba(0, 0, 0, 0.22);
    --nav-bg: rgba(244, 246, 245, 0.78);
    --focus: rgba(23, 128, 106, 0.45);

    --dg-node: #ffffff;
    --dg-node-stroke: rgba(14, 34, 38, 0.14);
    --dg-line: #8A9C9F;
    --dg-boundary: #5E7377;
    --dg-public: rgba(23, 128, 106, 0.07);
    --dg-zone: rgba(52, 199, 89, 0.08);
    --dg-zone-stroke: rgba(36, 138, 61, 0.55);
    --dg-private: #248a3d;
    --u-hr: #c2410c;
    --u-eng: #15803d;
    --u-global: #7c3aed;
    --star: #d9a400;

    --radius: 20px;
    --radius-lg: 28px;
    --gutter: 20px;
    --mono: var(--font-mono); /* type, accent and motion tokens come from /design/tokens.css */
}

/* Dark tokens: for dark mode, and for the always-dark sections. */
.theme-dark {
    --bg: #07171A;
    --bg-alt: #0B1D21;
    --surface: #0E2226;
    --surface-2: #18343A;
    --text: #F4F6F5;
    --text-2: #A9BFBB;
    --link: #5FD3B4;
    --good: #4CD98A;
    --danger: #ff453a;
    --warn-bg: rgba(255, 159, 10, 0.18);
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.22);
    --chip: rgba(255, 255, 255, 0.08);
    --shadow-sm: none;
    --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
    --dg-node: #0E2226;
    --dg-node-stroke: rgba(255, 255, 255, 0.16);
    --dg-line: #5E7377;
    --dg-boundary: #8AA29E;
    --dg-public: rgba(95, 211, 180, 0.12);
    --dg-zone: rgba(48, 209, 88, 0.08);
    --dg-zone-stroke: rgba(48, 209, 88, 0.5);
    --dg-private: #30d158;
    --u-hr: #f06418;
    --u-eng: #1f9d55;
    --u-global: #8b5cf6;
    --star: #ffcc00;
    color: var(--text);
}

/* Dark mode: follows the system unless the visitor picked light or dark (theme.js sets data-theme on <html>). */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #07171A;
        --bg-alt: #0B1D21;
        --surface: #0E2226;
        --surface-2: #18343A;
        --text: #F4F6F5;
        --text-2: #A9BFBB;
        --link: #5FD3B4;
        --good: #4CD98A;
        --danger: #ff453a;
        --warn-bg: rgba(255, 159, 10, 0.18);
        --border: rgba(255, 255, 255, 0.1);
        --border-strong: rgba(255, 255, 255, 0.22);
        --chip: rgba(255, 255, 255, 0.08);
        --shadow-sm: none;
        --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
        --nav-bg: rgba(11, 29, 33, 0.76);
        --focus: rgba(95, 211, 180, 0.55);
        --dg-node: #0E2226;
        --dg-node-stroke: rgba(255, 255, 255, 0.16);
        --dg-line: #5E7377;
        --dg-boundary: #8AA29E;
        --dg-public: rgba(95, 211, 180, 0.12);
        --dg-zone: rgba(48, 209, 88, 0.08);
        --dg-zone-stroke: rgba(48, 209, 88, 0.5);
        --dg-private: #30d158;
        --u-hr: #f06418;
        --u-eng: #1f9d55;
        --u-global: #8b5cf6;
        --star: #ffcc00;
    }
    :root:not([data-theme="light"]) .theme-dark {
        --bg: #0E2226;
        --bg-alt: #0E2226;
        --surface: #18343A;
        --surface-2: #224249;
        --dg-node: #18343A;
    }
}
:root[data-theme="dark"] {
    --bg: #07171A;
    --bg-alt: #0B1D21;
    --surface: #0E2226;
    --surface-2: #18343A;
    --text: #F4F6F5;
    --text-2: #A9BFBB;
    --link: #5FD3B4;
    --good: #4CD98A;
    --danger: #ff453a;
    --warn-bg: rgba(255, 159, 10, 0.18);
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.22);
    --chip: rgba(255, 255, 255, 0.08);
    --shadow-sm: none;
    --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
    --nav-bg: rgba(11, 29, 33, 0.76);
    --focus: rgba(95, 211, 180, 0.55);
    --dg-node: #0E2226;
    --dg-node-stroke: rgba(255, 255, 255, 0.16);
    --dg-line: #5E7377;
    --dg-boundary: #8AA29E;
    --dg-public: rgba(95, 211, 180, 0.12);
    --dg-zone: rgba(48, 209, 88, 0.08);
    --dg-zone-stroke: rgba(48, 209, 88, 0.5);
    --dg-private: #30d158;
    --u-hr: #f06418;
    --u-eng: #1f9d55;
    --u-global: #8b5cf6;
    --star: #ffcc00;
}
:root[data-theme="dark"] .theme-dark {
    --bg: #0E2226;
    --bg-alt: #0E2226;
    --surface: #18343A;
    --surface-2: #224249;
    --dg-node: #18343A;
}

/* ───────────── Base ───────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 72px;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: -0.022em;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1 0 auto; }

img, svg { max-width: 100%; }
img { height: auto; }

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

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    border-radius: 6px;
}

main:focus { outline: none; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; }
p { margin: 0 0 1em; }

code {
    font-family: var(--mono);
    font-size: 0.9em;
    letter-spacing: 0;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--accent);
    color: var(--on-accent);
}
.skip-link:focus { top: 12px; }

.icon {
    width: 24px;
    height: 24px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.icon-sm { width: 16px; height: 16px; stroke-width: 2.25; }
.icon-tile {
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 12px;
    color: var(--link);
    background: color-mix(in srgb, var(--link) 12%, transparent);
    stroke-width: 1.9;
}

/* ───────────── Layout ───────────── */
.container {
    width: min(100% - 2 * var(--gutter), 980px);
    margin-inline: auto;
}
.container.wide { width: min(100% - 2 * var(--gutter), 1120px); }
.container.narrow { width: min(100% - 2 * var(--gutter), 760px); }
.center { text-align: center; }

.section {
    padding: clamp(84px, 12vw, 148px) 0;
    background: var(--bg);
}
.section-alt { background: var(--bg-alt); }
.theme-dark { background: var(--bg); }
.page-top { padding-top: clamp(64px, 9vw, 112px); }

/* ───────────── Type ───────────── */
.eyebrow {
    margin: 0 0 10px;
    font-size: clamp(17px, 1.6vw, 21px);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--link);
}

.display {
    font-size: clamp(42px, 10.5vw, 84px);
    line-height: 1.04;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.headline {
    font-size: clamp(34px, 5.6vw, 56px);
    line-height: 1.07;
    letter-spacing: -0.028em;
    margin-bottom: 18px;
    text-wrap: balance;
}

.lead {
    max-width: 680px;
    margin: 0 auto;
    font-size: clamp(19px, 2.2vw, 24px);
    line-height: 1.38;
    letter-spacing: -0.015em;
    color: var(--text-2);
    text-wrap: pretty;
}
.hero .lead { margin-top: 22px; }

.title {
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
}

.fineprint { font-size: 14px; line-height: 1.45; color: var(--text-2); }
.fineprint.center { margin: 40px auto 0; max-width: 640px; }
.muted { color: var(--text-2); }

/* ───────────── Buttons & links ───────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 980px;
    background: var(--accent);
    color: var(--on-accent);
    font: inherit;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn-large { min-height: 52px; padding: 0 30px; }
.btn-small { min-height: 30px; padding: 0 14px; font-size: 13px; }
@media (pointer: coarse) { .btn-small { min-height: 40px; padding: 0 16px; } }
.btn-secondary {
    background: transparent;
    color: var(--link);
    box-shadow: inset 0 0 0 1.5px var(--link);
}
.btn-secondary:hover { background: var(--link); color: var(--on-accent); }
.btn-danger {
    background: transparent;
    color: var(--danger);
    box-shadow: inset 0 0 0 1px var(--danger);
}
.btn-danger:hover { background: var(--danger); color: #fff; }

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: clamp(17px, 1.6vw, 19px);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 28px;
    margin-top: 34px;
}

/* ───────────── Navigation ───────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--nav-bg);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .site-header { background: var(--bg); }
}

.nav-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 28px;
    height: 52px;
    width: min(100% - 2 * var(--gutter), 1120px);
    margin-inline: auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-right: auto;
    color: var(--text);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; display: inline-block; flex-shrink: 0; background: var(--logo) center / contain no-repeat; }
/* Wordmark, set in type: "In" 700 in the accent, "Company" 500, "Data" 700; module name 400 in slate. */
.wordmark { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; color: var(--text); white-space: nowrap; }
.wordmark .wm-in { font-weight: 700; color: var(--accent); }
.wordmark .wm-data { font-weight: 700; }
.wordmark .wm-module { font-weight: 400; color: var(--text-2); margin-left: 0.3em; }
.footer-brand .wordmark { font-size: 17px; }
.footer-brand .tagline { margin: 2px 0 8px; color: var(--text-2); font-size: 14px; }

.nav-links ul {
    display: flex;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav-links a {
    color: var(--text);
    opacity: 0.8;
    font-size: 13px;
    letter-spacing: -0.01em;
    transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; text-decoration: none; }

.nav-menu { display: none; }
.nav-menu summary {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    list-style: none;
    cursor: pointer;
    color: var(--text);
    border-radius: 12px;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
}
.nav-menu .menu-close { display: none; }
.nav-menu[open] .menu-open { display: none; }
.nav-menu[open] .menu-close { display: inline; }
.nav-menu nav {
    position: absolute;
    top: 52px;
    left: calc(-1 * var(--gutter));
    right: calc(-1 * var(--gutter));
    padding: 12px var(--gutter) 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.25);
}
.nav-menu ul { margin: 0; padding: 0; list-style: none; }
.nav-menu li a {
    display: block;
    padding: 10px 0;
    color: var(--text);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

@media (max-width: 833px) {
    .nav-links { display: none; }
    .nav-menu { display: block; }
    .nav-inner { gap: 12px; }
}
/* Phones: keep the call to action on one line; the module name gives way first. */
.nav-cta { white-space: nowrap; }
@media (max-width: 480px) {
    .site-header .wordmark .wm-module { display: none; }
}
@media (max-width: 360px) {
    .site-header .brand .wordmark { display: none; }
}

/* ───────────── Hero ───────────── */
.hero {
    padding: clamp(64px, 10vw, 120px) 0 clamp(72px, 9vw, 112px);
    background:
        radial-gradient(60% 45% at 50% 78%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
        var(--bg);
    overflow: hidden;
}

.formats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 760px;
    margin: clamp(40px, 5vw, 56px) auto 0;
    padding: 0;
    list-style: none;
}
.formats li {
    padding: 6px 14px;
    border-radius: 980px;
    background: var(--chip);
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
}

/* ───────────── Device frame ───────────── */
.device {
    max-width: 1060px;
    margin: clamp(48px, 7vw, 84px) auto 0;
}
.device-screen {
    width: 88%;
    margin: 0 auto;
    padding: clamp(5px, 1vw, 12px);
    border-radius: clamp(12px, 2vw, 24px);
    background: #0d0d0e;
    box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.device-screen img {
    display: block;
    width: 100%;
    border-radius: clamp(5px, 0.9vw, 12px);
}
.device-base {
    position: relative;
    height: clamp(10px, 1.7vw, 20px);
    background: linear-gradient(#e2e3e6, #c4c5c9 55%, #a9aaae);
    border-radius: 2px 2px 50% 50% / 2px 2px 100% 100%;
    box-shadow: 0 18px 30px -16px rgba(0, 0, 0, 0.35);
}
.device-base::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 13%;
    height: 45%;
    transform: translateX(-50%);
    border-radius: 0 0 10px 10px;
    background: #b5b6ba;
}
.theme-dark .device-base,
.theme-dark .device-base::before { background: linear-gradient(#4a4a4d, #2a2a2c); }
@media (prefers-color-scheme: dark) {
    .device-base, .device-base::before { background: linear-gradient(#4a4a4d, #2a2a2c); }
}
.device-flat { margin: 0; }
.device-flat .device-screen { width: 100%; }

/* ───────────── Cards ───────────── */
.card-grid {
    display: grid;
    gap: 20px;
    margin: clamp(48px, 6vw, 72px) 0 0;
    padding: 0;
    list-style: none;
}
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
    padding: 34px 30px 32px;
    border-radius: var(--radius);
    background: var(--bg-alt);
}
.section-alt .card,
.theme-dark .card { background: var(--surface); box-shadow: var(--shadow-sm); }
.card h3 {
    margin: 20px 0 8px;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.card p { margin: 0; color: var(--text-2); }
.card-compact { padding: 28px 26px; }
.card-compact h3:first-child { margin-top: 0; }
.roles { margin-top: 20px; }

/* Split (text + screenshot) */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
    margin-top: clamp(88px, 11vw, 136px);
}
.split-text p { color: var(--text-2); font-size: 19px; line-height: 1.45; }

/* Feature list (dark section) */
.feature-list {
    display: grid;
    gap: 36px 32px;
    margin: clamp(56px, 7vw, 88px) 0 0;
    padding: 0;
    list-style: none;
}
.feature-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.45;
}
.feature-list .icon { color: var(--link); margin-top: 1px; }
.feature-list strong {
    display: block;
    margin-bottom: 2px;
    color: var(--text);
    font-size: 17px;
    font-weight: 600;
}

/* ───────────── Diagrams ───────────── */
.diagram {
    margin: clamp(48px, 6vw, 72px) 0 0;
    padding: clamp(16px, 4vw, 52px);
    border-radius: var(--radius-lg);
    background: var(--bg-alt);
}
.section-alt .diagram { background: var(--surface); box-shadow: var(--shadow-sm); }
.diagram figcaption {
    max-width: 700px;
    margin: clamp(20px, 3vw, 36px) auto 0;
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}
.dg { display: block; width: 100%; height: auto; overflow: visible; }
.dg-tall { display: none; }

.legend {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 12px;
}
.swatch {
    display: inline-block;
    width: 22px;
    height: 14px;
    border-radius: 4px;
}
.swatch-public { background: var(--dg-public); border: 1.5px solid var(--accent); }
.swatch-private { background: var(--dg-zone); border: 1.5px solid var(--dg-zone-stroke); }
.swatch-boundary { border: 1.5px dashed var(--dg-boundary); }

/* SVG parts */
.dg text { font-family: var(--font); letter-spacing: -0.01em; }
.dg-node { fill: var(--dg-node); stroke: var(--dg-node-stroke); stroke-width: 1; }
.dg-public, .dg-filter { fill: var(--dg-public); stroke: var(--accent); stroke-width: 1.5; }
.dg-zone { fill: var(--dg-zone); stroke: var(--dg-zone-stroke); stroke-width: 1.5; }
.dg-boundary { fill: none; stroke: var(--dg-boundary); stroke-width: 1.5; stroke-dasharray: 7 7; }
.dg-line { fill: none; stroke: var(--dg-line); stroke-width: 2; }
.dg-line-accent { stroke: var(--accent); }
.dg-dashed { stroke-dasharray: 5 6; }
.dg-arrowhead { fill: var(--dg-line); }
.dg-arrowhead-accent { fill: var(--accent); }
.dg-title { fill: var(--text); font-size: 17px; font-weight: 600; }
.dg-title-sm { font-size: 15px; }
.dg-strong { fill: var(--text); font-size: 15px; font-weight: 600; }
.dg-sub { fill: var(--text-2); font-size: 13px; }
.dg-caps { fill: var(--text-2); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; }
.dg-caps-accent { fill: var(--link); }
.dg-caps-private { fill: var(--dg-private); }
.dg-tag { fill: var(--link); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }
.dg-icon {
    fill: none;
    stroke: var(--link);
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.dg-icon-private { stroke: var(--dg-private); stroke-width: 2; }
.dg-user { stroke: var(--dg-node); stroke-width: 2; }
.dg-user-hr { fill: var(--u-hr); }
.dg-user-eng { fill: var(--u-eng); }
.dg-user-global { fill: var(--u-global); }
.dg-user-line-hr { stroke: var(--u-hr); }
.dg-user-line-eng { stroke: var(--u-eng); }
.dg-user-line-global { stroke: var(--u-global); }
.dg .dg-user-letter { fill: #fff; font-size: 18px; font-weight: 700; letter-spacing: 0; }
.dg .dg-user-letter-sm { font-size: 11px; }
.dg-step { fill: var(--accent); }
.dg .dg-step-num { fill: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0; }

/* Small illustrations */
.dg-screen { fill: var(--bg-alt); }
.dg-accent { fill: var(--accent); }
.dg-accent-stroke { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.dg-stars circle { fill: var(--star); }
.dg-check { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }

.security-grid { margin-top: 24px; }
.pledge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 40px auto 0;
    color: var(--text-2);
    font-size: 17px;
    text-align: center;
}
.pledge .icon { color: var(--link); }

/* ───────────── GDPR ───────────── */
.pii {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    margin-top: clamp(48px, 6vw, 72px);
    padding: clamp(28px, 5vw, 56px);
    border-radius: var(--radius-lg);
    background: var(--surface);
}
.pii-text p { margin: 0; color: var(--text-2); font-size: 19px; }
.pii-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pii-chips li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 980px;
    background: var(--warn-bg);
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
}
.pii-chips li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff9f0a;
}
.pii + .card-grid { margin-top: 20px; }

/* ───────────── Deployment ───────────── */
.deploy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: clamp(48px, 6vw, 72px) 0 0;
    padding: 0;
    list-style: none;
}
.deploy-card {
    display: flex;
    flex-direction: column;
    padding: 36px 32px 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-alt);
}
.deploy-art {
    display: block;
    width: 100%;
    max-width: 240px;
    height: auto;
    margin: 0 auto 28px;
}
.deploy-kicker { margin: 0 0 6px; color: var(--link); font-size: 14px; font-weight: 600; }
.deploy-card h3 { margin: 0 0 10px; font-size: 28px; letter-spacing: -0.025em; }
.deploy-card p:not(.deploy-kicker) { color: var(--text-2); margin-bottom: 24px; }
.cmd {
    align-self: flex-start;
    margin-top: auto;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
}

/* ───────────── Roadmap ───────────── */
.roadmap {
    max-width: 760px;
    margin: clamp(48px, 6vw, 64px) auto 0;
    padding: 0;
    list-style: none;
}
.roadmap li {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 22px 0;
    border-top: 1px solid var(--border);
    color: var(--text-2);
}
.roadmap li:last-child { border-bottom: 1px solid var(--border); }
.roadmap .icon { color: var(--link); margin-top: 2px; }
.roadmap strong { display: block; color: var(--text); font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }

/* ───────────── Pricing ───────────── */
.pricing { position: relative; }
.billing-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.billing-toggle {
    display: flex;
    width: max-content;
    max-width: 100%;
    margin: clamp(36px, 5vw, 48px) auto 0;
    padding: 3px;
    border-radius: 980px;
    background: var(--chip);
}
.billing-toggle label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 20px;
    border-radius: 980px;
    color: var(--text-2);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}
.billing-toggle .save { color: var(--good); font-size: 12px; font-weight: 600; }
#billing-monthly:checked ~ .billing-toggle label[for="billing-monthly"],
#billing-yearly:checked ~ .billing-toggle label[for="billing-yearly"] {
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
}
#billing-monthly:focus-visible ~ .billing-toggle label[for="billing-monthly"],
#billing-yearly:focus-visible ~ .billing-toggle label[for="billing-yearly"] {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}
.price-yearly { display: none; }
#billing-yearly:checked ~ .plans .price-yearly { display: inline; }
#billing-yearly:checked ~ .plans .price-monthly { display: none; }

.plans {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
}
.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 34px 24px 26px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}
.plan-featured {
    border-color: transparent;
    box-shadow: 0 0 0 2px var(--accent), var(--shadow-sm);
}
.plan-badge {
    position: absolute;
    top: -13px;
    left: 24px;
    margin: 0;
    padding: 4px 12px;
    border-radius: 980px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
}
.plan h3 { font-size: 24px; letter-spacing: -0.025em; margin-bottom: 6px; }
.plan-tagline { min-height: 2.9em; margin-bottom: 20px; color: var(--text-2); font-size: 15px; line-height: 1.4; }
.plan-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 6px;
    margin: 0;
}
.price-amount { font-size: 40px; font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; }
.price-prefix, .price-unit { color: var(--text-2); font-size: 15px; }
.plan-billing { margin: 8px 0 0; color: var(--text-2); font-size: 13px; }
.plan-note { margin: 12px 0 0; color: var(--text-2); font-size: 13px; line-height: 1.45; }
.plan-tier {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--surface-2);
}
.plan-tier p { margin: 0; }
.plan-tier-name { font-size: 15px; font-weight: 600; }
.plan-tier-price { font-size: 15px; color: var(--text-2); }
.plan-tier-price span { color: var(--text); font-weight: 600; }
.plan-tier .plan-note { margin-top: 4px; }
.plan-features {
    display: grid;
    gap: 10px;
    margin: 24px 0 28px;
    padding: 0;
    list-style: none;
    font-size: 15px;
    line-height: 1.4;
}
.plan-features li { display: flex; gap: 10px; align-items: flex-start; }
.plan-features .icon { color: var(--link); margin-top: 2px; }
.plan-cta { width: 100%; margin-top: auto; }

.onboarding {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    margin-top: 20px;
    padding: 26px 30px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}
.onboarding h3 { margin: 0 0 4px; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.onboarding p { margin: 0; color: var(--text-2); }
.onboarding-price { white-space: nowrap; }
.onboarding-price strong { color: var(--text); font-size: 24px; letter-spacing: -0.025em; margin-right: 4px; }

/* ───────────── FAQ ───────────── */
.faq { margin-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
    position: relative;
    padding: 24px 44px 24px 0;
    list-style: none;
    cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: clamp(19px, 2vw, 21px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.faq summary::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-2);
    border-bottom: 2px solid var(--text-2);
    transform: translateY(-75%) rotate(45deg);
    transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { max-width: 680px; margin: -4px 0 26px; color: var(--text-2); }

/* ───────────── Form ───────────── */
.form-container { width: min(100% - 2 * var(--gutter), 760px); }
.lead-form {
    position: relative;
    margin-top: clamp(40px, 5vw, 56px);
    padding: clamp(24px, 5vw, 48px);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.page-top .lead-form { background: var(--bg-alt); box-shadow: none; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lead-form > .field, .lead-form > fieldset { margin-top: 22px; }
.lead-form label, .lead-form legend { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.optional { font-weight: 400; color: var(--text-2); }

.lead-form input:not([type="checkbox"]):not([type="radio"]),
.lead-form select,
.lead-form textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: 17px;
    letter-spacing: -0.015em;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.lead-form textarea { min-height: 120px; resize: vertical; }
.lead-form select {
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
.lead-form .input-validation-error { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-size: 14px; }
.field-validation-valid { display: none; }

.deploy-choice { margin: 0; padding: 0; border: 0; min-width: 0; }
.deploy-choice legend { padding: 0; margin-bottom: 8px; }
.segmented { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 8px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    text-align: center;
    font-size: 15px !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.segmented label:hover { border-color: var(--text-2); }
.segmented input:checked + label {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent);
    background: color-mix(in srgb, var(--accent) 7%, transparent);
    color: var(--link);
}
.segmented input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }

.consent { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.consent input {
    flex: none;
    width: 22px;
    height: 22px;
    margin: 1px 0 0;
    accent-color: var(--accent);
}
.consent label { flex: 1; font-weight: 400 !important; font-size: 15px !important; color: var(--text-2); line-height: 1.45; }
.consent .field-error { flex-basis: 100%; padding-left: 34px; }

.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 30px; }
.form-actions .fineprint { margin: 0; flex: 1 1 220px; }

.form-errors {
    margin-bottom: 26px;
    padding: 16px 20px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--danger) 9%, transparent);
}
.form-errors:focus { outline: none; }
.form-errors p { margin: 0; }
.form-errors ul { margin: 6px 0 0; padding-left: 20px; color: var(--text-2); }

/* ───────────── Secondary pages ───────────── */
.prose { margin-top: 48px; }
.prose h2 { margin: 44px 0 12px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--chip); color: var(--text); }
.prose-page .lead { margin: 0; }
.notice {
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--warn-bg);
    color: var(--text) !important;
}

.thanks-mark { display: block; width: 76px; height: 76px; margin: 0 auto 28px; }
.thanks-mark circle { fill: var(--good); }
.thanks-mark path { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }

.admin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.admin-head p { margin: 0; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 12px; }
[hidden] { display: none !important; }
.admin .notice { margin-top: 24px; }
.empty { margin-top: 32px; color: var(--text-2); }
.table-wrap {
    margin-top: 28px;
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
}
.leads-table { width: 100%; border-collapse: collapse; font-size: 15px; letter-spacing: -0.01em; }
.leads-table th, .leads-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.leads-table th { color: var(--text-2); font-size: 13px; font-weight: 600; background: var(--bg-alt); }
.leads-table tr:last-child td { border-bottom: 0; }
.leads-table .nowrap { white-space: nowrap; }
.leads-table .message { min-width: 260px; white-space: pre-wrap; color: var(--text-2); }
.leads-table form { margin: 0; }

/* ───────────── Footer ───────────── */
.site-footer {
    padding: 40px 0 48px;
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
    color: var(--text-2);
    font-size: 13px;
    letter-spacing: -0.01em;
}
.footer-inner { width: min(100% - 2 * var(--gutter), 1120px); display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: start; }
.footer-brand strong { color: var(--text); font-size: 15px; }
.footer-brand p { margin: 4px 0 0; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--text); }
.footer-company { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 16px; border-top: 1px solid var(--border); font-style: normal; line-height: 1.6; }
.footer-company strong { font-size: inherit; color: var(--text); font-weight: 600; }
.footer-legal { grid-column: 1 / -1; margin: 0; }
.prose address { font-style: normal; margin: 0 0 1em; color: var(--text-2); }

/* ───────────── Responsive ───────────── */
@media (max-width: 1068px) {
    .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
    .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split, .pii { grid-template-columns: minmax(0, 1fr); }
    .deploy-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
    .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .cols-3, .cols-4, .plans { grid-template-columns: minmax(0, 1fr); }
    .card { padding: 24px 22px; }
    .card:has(> .icon-tile) {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
        column-gap: 16px;
        align-items: start;
    }
    .card:has(> .icon-tile) > .icon-tile { grid-row: span 2; }
    .card:has(> .icon-tile) h3 { margin: 0 0 4px; font-size: 19px; }
    .card-grid { gap: 12px; }
    .dg-wide { display: none; }
    .dg-tall { display: block; max-width: 420px; margin-inline: auto; }
    .diagram { padding: 16px 12px 24px; border-radius: 22px; }
    .diagram figcaption { padding: 0 8px; }
    .legend { display: flex; margin: 6px 0; justify-content: flex-start; text-align: left; }
    .field-grid { grid-template-columns: minmax(0, 1fr); }
    .segmented { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .onboarding { flex-direction: column; align-items: flex-start; }
    .device-screen { width: 94%; }
    .plan-tagline { min-height: 0; }
    .billing-toggle label { padding: 0 14px; }
    .pledge { align-items: flex-start; text-align: left; }
}

/* ───────────── Motion ───────────── */
/* ───────────── Tour (screenshots) ───────────── */
.tour-grid {
    list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px);
}
.tour-card h3 { margin: 18px 4px 6px; font-size: 21px; letter-spacing: -0.02em; }
.tour-card p { margin: 0 4px; color: var(--text-2, #6e6e73); font-size: 16px; line-height: 1.5; }
.tour-shot {
    display: block; border-radius: 16px; overflow: hidden; background: #000;
    box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.10);
    transition: transform .35s ease, box-shadow .35s ease;
}
.tour-shot img { display: block; width: 100%; height: auto; }
.tour-shot:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 20px 44px rgba(0,0,0,.16); }
.tour-shot:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; }
.tour-phone {
    grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: clamp(24px, 5vw, 72px);
    padding: clamp(28px, 5vw, 56px); border-radius: 24px; background: var(--bg-alt);
}
.tour-phone h3 { margin: 0 0 10px; font-size: clamp(28px, 3.6vw, 40px); }
.tour-phone p { font-size: 18px; max-width: 440px; }
.tour-shot.phone { width: clamp(180px, 22vw, 260px); border-radius: 36px; border: 8px solid #1d1d1f; }
@media (max-width: 833px) {
    .tour-grid { grid-template-columns: 1fr; }
    .tour-phone { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .tour-phone p { margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .tour-shot, .tour-shot:hover { transition: none; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }

    @supports (animation-timeline: view()) {
        .reveal {
            animation: reveal linear both;
            animation-timeline: view();
            animation-range: entry 0% cover 24%;
        }
    }
}

@keyframes reveal {
    from { opacity: 0; transform: translateY(40px) scale(0.985); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
    .site-header, .nav-menu, .lead-form, .skip-link { display: none; }
    .section { padding: 32px 0; }
    .theme-dark { --bg: #fff; --text: #000; --text-2: #333; }
}

/* ───────────── Appearance switch (footer) ───────────── */
.theme-switch { grid-column: 1 / -1; justify-self: start; display: inline-flex; gap: 2px; padding: 2px; border-radius: 10px; background: var(--chip); }
.theme-switch button { border: 0; background: transparent; color: var(--text); font: 500 13px var(--font); min-height: 32px; padding: 4px 14px; border-radius: 8px; cursor: pointer; }
.theme-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:root:not([data-theme]) .theme-switch [data-theme-choice="system"], :root[data-theme="light"] .theme-switch [data-theme-choice="light"],
:root[data-theme="dark"] .theme-switch [data-theme-choice="dark"] { background: var(--selected, var(--surface)); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
@media (pointer: coarse) { .theme-switch button { min-height: 44px; padding: 4px 18px; } }

/* ───────────── Statistics consent (only when Application Insights is configured) ───────────── */
.consent-banner {
    position: fixed;
    z-index: 50;
    left: 50%;
    bottom: max(16px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(560px, calc(100% - 24px));
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    padding: 16px 18px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--border);
    font-size: 15px;
    line-height: 1.45;
    color: var(--text-2);
}
.consent-banner[hidden] { display: none; }
.consent-banner p { margin: 0; flex: 1 1 260px; }
.consent-banner strong { color: var(--text); }
.consent-banner-actions { display: flex; gap: 8px; flex: 0 0 auto; margin-left: auto; }
.consent-banner .btn { font-size: 15px; min-height: 40px; }
@media (max-width: 480px) {
    .consent-banner-actions { width: 100%; }
    .consent-banner-actions .btn { flex: 1; }
}
@media print { .consent-banner { display: none; } }
