/* ============================================================================
   LumoAuth marketing theme — design system
   ----------------------------------------------------------------------------
   Mirrors the product UI (server/assets/styles/tailwind.css): Vercel Geist
   palette and type on a monochrome brand. Ink (#0A0A0B) on Paper (#FFFFFF) in
   light, the inverse in dark. Colour is reserved for semantics (success,
   warning, danger, info), the keyboard focus ring and small data accents.
   ========================================================================== */

/* ----------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
    color-scheme: light;

    /* Surfaces (four-surface model) */
    --bg:            #ffffff;   /* surface: cards, header, menus */
    --bg-subtle:     #fafafa;   /* ground: page behind everything */
    --bg-muted:      #f2f2f2;   /* sunken: chips, table heads */
    --bg-hover:      rgb(0 0 0 / 0.05);
    --bg-active:     rgb(0 0 0 / 0.08);
    --surface:       var(--bg);
    --surface-hover: var(--bg-subtle);

    /* Hairlines */
    --border:        rgb(0 0 0 / 0.08);
    --border-strong: rgb(0 0 0 / 0.21);
    --border-focus:  rgb(0 0 0 / 0.24);

    /* Text */
    --text:        #171717;
    --text-strong: #0a0a0b;
    --text-muted:  #4d4d4d;
    --text-dim:    #8f8f8f;
    --text-invert: #ffffff;

    /* Brand (Ink on Paper) */
    --accent:       #171717;
    --accent-hover: #383838;
    --accent-soft:  #ebebeb;
    --accent-fg:    #ffffff;
    --primary:       var(--accent);
    --primary-hover: var(--accent-hover);
    --primary-text:  var(--accent-fg);

    /* Inverted block (dark sections on a light page) */
    --ink:        #0a0a0b;
    --ink-2:      #111113;
    --ink-3:      #1a1a1c;
    --paper:      #ffffff;
    --graphite:   #3a3a40;
    --mist:       #e7e7ea;

    /* Focus */
    --focus:      #0070f7;
    --focus-halo: rgb(0 0 0 / 0.16);

    /* Semantics: fill / fg text / soft tint / border */
    --success:        #28a948;
    --success-fg:     #107d32;
    --success-soft:   #ecfdec;
    --success-border: #b9f5bc;
    --warning:        #ff9900;
    --warning-fg:     #a64f00;
    --warning-soft:   #fff6e1;
    --warning-border: #ffdd84;
    --danger:         #e70022;
    --danger-fg:      #d60020;
    --danger-soft:    #ffeef0;
    --danger-border:  #ffd8d7;
    --info:           #0070f7;
    --info-fg:        #0064e2;
    --info-soft:      #f0f7ff;
    --info-border:    #cce7ff;
    --chart:          #2563eb;

    /* Typography (Geist scale) */
    --font-sans: 'Geist', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'Geist Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --fs-2xs:  0.75rem;    --lh-2xs: 1rem;
    --fs-xs:   0.8125rem;  --lh-xs:  1.125rem;
    --fs-sm:   0.875rem;   --lh-sm:  1.25rem;
    --fs-base: 1rem;       --lh-base: 1.5rem;
    --fs-lg:   1.125rem;   --lh-lg:  1.75rem;
    --fs-xl:   1.25rem;    --lh-xl:  1.625rem;
    --fs-2xl:  1.5rem;     --lh-2xl: 2rem;
    --fs-3xl:  2rem;       --lh-3xl: 2.5rem;
    --fs-4xl:  2.5rem;     --lh-4xl: 3rem;
    --fs-5xl:  3rem;       --lh-5xl: 3.5rem;

    --lh-tight:   1.1;
    --lh-snug:    1.3;
    --lh-normal:  1.5;
    --lh-relaxed: 1.7;

    /* Spacing (8pt) */
    --space-1:  0.25rem;  --space-2:  0.5rem;  --space-3:  0.75rem;
    --space-4:  1rem;     --space-5:  1.25rem; --space-6:  1.5rem;
    --space-8:  2rem;     --space-10: 2.5rem;  --space-12: 3rem;
    --space-16: 4rem;     --space-20: 5rem;    --space-24: 6rem;
    --space-32: 8rem;

    /* Geometry (Geist materials) */
    --radius-xs:   2px;
    --radius-sm:   4px;
    --radius:      6px;
    --radius-lg:   8px;
    --radius-xl:   12px;
    --radius-2xl:  16px;
    --radius-full: 999px;

    /* Depth: hairlines first, shadows only on floating things */
    --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.04);
    --shadow-sm: 0 2px 2px rgb(0 0 0 / 0.04);
    --shadow-md: 0 2px 2px rgb(0 0 0 / 0.04), 0 8px 8px -8px rgb(0 0 0 / 0.04);
    --shadow-lg: 0 1px 1px rgb(0 0 0 / 0.02), 0 4px 8px -4px rgb(0 0 0 / 0.04), 0 16px 24px -8px rgb(0 0 0 / 0.06);
    --shadow-xl: 0 1px 1px rgb(0 0 0 / 0.02), 0 8px 16px -4px rgb(0 0 0 / 0.04), 0 24px 32px -8px rgb(0 0 0 / 0.06);
    --shadow-2xl: 0 8px 24px -12px rgb(0 0 0 / 0.12), 0 8px 32px -12px rgb(0 0 0 / 0.08), 0 32px 72px -12px rgb(0 0 0 / 0.06);
    --shadow-focus: 0 0 0 4px var(--focus-halo);

    /* Motion */
    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
    --dur-fast: 120ms;
    --dur:      200ms;
    --dur-slow: 400ms;

    /* Layout */
    --container-max:    1200px;
    --container-narrow: 800px;
    --nav-height:       64px;
}

/* Dark theme: the same token set applied for the OS preference (unless the
   page is pinned light) and for an explicit data-theme="dark". */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg:            #0a0a0a;
        --bg-subtle:     #000000;
        --bg-muted:      #1a1a1a;
        --bg-hover:      rgb(255 255 255 / 0.07);
        --bg-active:     rgb(255 255 255 / 0.09);
        --surface-hover: #111111;
        --border:        rgb(255 255 255 / 0.14);
        --border-strong: rgb(255 255 255 / 0.24);
        --border-focus:  rgb(255 255 255 / 0.51);
        --text:          #ededed;
        --text-strong:   #ffffff;
        --text-muted:    #a0a0a0;
        --text-dim:      #8f8f8f;
        --text-invert:   #0a0a0a;
        --accent:        #ededed;
        --accent-hover:  #cccccc;
        --accent-soft:   #1f1f1f;
        --accent-fg:     #0a0a0a;
        --focus:         #50a8ff;
        --focus-halo:    rgb(255 255 255 / 0.24);
        --success:        #00ab3e; --success-fg: #00ca52; --success-soft: #00250a; --success-border: #004616;
        --warning:        #ff9900; --warning-fg: #ff9900; --warning-soft: #291800; --warning-border: #573200;
        --danger:         #e2162a; --danger-fg:  #ff5e63; --danger-soft:  #330a11; --danger-border:  #6f101b;
        --info:           #0071f6; --info-fg:    #50a8ff; --info-soft:    #06193a; --info-border:    #003771;
        --chart:          #3987e5;
        --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.4);
        --shadow-sm: 0 2px 2px rgb(0 0 0 / 0.4);
        --shadow-md: 0 2px 2px rgb(0 0 0 / 0.4), 0 8px 8px -8px rgb(0 0 0 / 0.4);
        --shadow-lg: 0 4px 8px -4px rgb(0 0 0 / 0.5), 0 16px 24px -8px rgb(0 0 0 / 0.5);
        --shadow-xl: 0 8px 16px -4px rgb(0 0 0 / 0.5), 0 24px 32px -8px rgb(0 0 0 / 0.5);
        --shadow-2xl: 0 8px 24px -12px rgb(0 0 0 / 0.6), 0 32px 72px -12px rgb(0 0 0 / 0.6);
    }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg:            #0a0a0a;
    --bg-subtle:     #000000;
    --bg-muted:      #1a1a1a;
    --bg-hover:      rgb(255 255 255 / 0.07);
    --bg-active:     rgb(255 255 255 / 0.09);
    --surface-hover: #111111;
    --border:        rgb(255 255 255 / 0.14);
    --border-strong: rgb(255 255 255 / 0.24);
    --border-focus:  rgb(255 255 255 / 0.51);
    --text:          #ededed;
    --text-strong:   #ffffff;
    --text-muted:    #a0a0a0;
    --text-dim:      #8f8f8f;
    --text-invert:   #0a0a0a;
    --accent:        #ededed;
    --accent-hover:  #cccccc;
    --accent-soft:   #1f1f1f;
    --accent-fg:     #0a0a0a;
    --focus:         #50a8ff;
    --focus-halo:    rgb(255 255 255 / 0.24);
    --success:        #00ab3e; --success-fg: #00ca52; --success-soft: #00250a; --success-border: #004616;
    --warning:        #ff9900; --warning-fg: #ff9900; --warning-soft: #291800; --warning-border: #573200;
    --danger:         #e2162a; --danger-fg:  #ff5e63; --danger-soft:  #330a11; --danger-border:  #6f101b;
    --info:           #0071f6; --info-fg:    #50a8ff; --info-soft:    #06193a; --info-border:    #003771;
    --chart:          #3987e5;
    --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-sm: 0 2px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 2px 2px rgb(0 0 0 / 0.4), 0 8px 8px -8px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 4px 8px -4px rgb(0 0 0 / 0.5), 0 16px 24px -8px rgb(0 0 0 / 0.5);
    --shadow-xl: 0 8px 16px -4px rgb(0 0 0 / 0.5), 0 24px 32px -8px rgb(0 0 0 / 0.5);
    --shadow-2xl: 0 8px 24px -12px rgb(0 0 0 / 0.6), 0 32px 72px -12px rgb(0 0 0 / 0.6);
}

/* An inverted block: Ink surface on a light page, Paper surface on a dark one.
   Sections that want the "product" look (dark UI screenshots) use .section--ink
   which is always dark regardless of theme. */
.section--ink {
    color-scheme: dark;
    --bg:            #0a0a0a;
    --bg-subtle:     #000000;
    --bg-muted:      #1a1a1a;
    --bg-hover:      rgb(255 255 255 / 0.07);
    --bg-active:     rgb(255 255 255 / 0.09);
    --surface:       #0a0a0a;
    --surface-hover: #111111;
    --border:        rgb(255 255 255 / 0.14);
    --border-strong: rgb(255 255 255 / 0.24);
    --text:          #ededed;
    --text-strong:   #ffffff;
    --text-muted:    #a0a0a0;
    --text-dim:      #8f8f8f;
    --text-invert:   #0a0a0a;
    --accent:        #ededed;
    --accent-hover:  #cccccc;
    --accent-soft:   #1f1f1f;
    --accent-fg:     #0a0a0a;
    --primary:       var(--accent);
    --primary-hover: var(--accent-hover);
    --primary-text:  var(--accent-fg);
    --focus:         #50a8ff;
    --success:        #00ab3e; --success-fg: #00ca52; --success-soft: #00250a; --success-border: #004616;
    --warning:        #ff9900; --warning-fg: #ff9900; --warning-soft: #291800; --warning-border: #573200;
    --danger:         #e2162a; --danger-fg:  #ff5e63; --danger-soft:  #330a11; --danger-border:  #6f101b;
    --info:           #0071f6; --info-fg:    #50a8ff; --info-soft:    #06193a; --info-border:    #003771;
    --chart:          #3987e5;
    background: var(--bg);
    color: var(--text);
}

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

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 1rem);
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    color: var(--text);
    background: var(--bg);
    font-feature-settings: 'cv11', 'ss01';
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--dur) var(--ease-out);
}
p a, .article__content a, .prose a, .prose li a, .faq__body a {
    text-decoration: underline;
    text-decoration-color: var(--border-strong);
    text-underline-offset: 3px;
}
p a:hover, .article__content a:hover, .prose a:hover, .faq__body a:hover { text-decoration-color: currentColor; }
.nav-menu a, .mega a, .footer-col a, .footer-bottom__links a, .hub-nav a, .sol-toc a, .trust-bar__logo, .chip, .doc-link, .sol-card, .card--link { text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
    line-height: var(--lh-tight);
    color: var(--text-strong);
    letter-spacing: -0.02em;
    text-wrap: balance;
}
strong { font-weight: 550; }

p { margin: 0; }
p + p { margin-top: var(--space-4); }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

code, pre, kbd {
    font-family: var(--font-mono);
    font-size: 0.9em;
}
code:not(pre code) {
    background: var(--bg-muted);
    border: 1px solid var(--border);
    padding: 0.1em 0.35em;
    border-radius: var(--radius-sm);
    font-size: 0.85em;
    color: var(--text-strong);
}

hr { border: none; height: 1px; background: var(--border); margin: var(--space-8) 0; }

::selection { background: var(--accent); color: var(--accent-fg); }

/* Accessibility */
.skip-link {
    position: absolute; top: -48px; left: 0;
    background: var(--accent); color: var(--accent-fg);
    padding: var(--space-2) var(--space-4);
    z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { top: 0; }

*:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: var(--shadow-focus);
}

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

/* ----------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-6);
}
.container--narrow { max-width: var(--container-narrow); }
.container--wide   { max-width: 1360px; }

.section { padding-block: var(--space-24); position: relative; }
.section--sm { padding-block: var(--space-16); }
.section--xs { padding-block: var(--space-10); }
.section--xl { padding-block: var(--space-32); }
.section--subtle { background: var(--bg-subtle); }
.section--muted  { background: var(--bg-muted); }
.section--bordered { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--hairline-top { border-top: 1px solid var(--border); }

/* Dot-grid backdrop used behind the hero and the final CTA */
.section--grid {
    position: relative;
    background-color: var(--bg);
    background-image: radial-gradient(var(--border-strong) 0.8px, transparent 0.8px);
    background-size: 22px 22px;
}
.section--grid::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 70% 60% at 50% 40%, transparent 0%, var(--bg) 85%);
}
.section--grid > .container { position: relative; z-index: 1; }

@media (max-width: 720px) {
    .container { padding-inline: var(--space-4); }
    .section { padding-block: var(--space-16); }
    .section--xl { padding-block: var(--space-20); }
    .section--sm { padding-block: var(--space-12); }
}

/* ----------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: var(--space-2);
    font-size: var(--fs-2xs); line-height: var(--lh-2xs);
    font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--text-muted);
    padding: 4px 10px;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
}
.eyebrow--plain { background: none; border: none; padding: 0; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

.display-1 { font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 600; line-height: 1.04; letter-spacing: -0.045em; }
.display-2 { font-size: clamp(2rem, 4.2vw, 3rem);    font-weight: 600; line-height: 1.1;  letter-spacing: -0.04em; }
.display-3 { font-size: clamp(1.5rem, 2.8vw, 2rem);  font-weight: 600; line-height: 1.2;  letter-spacing: -0.03em; }
.h4 { font-size: var(--fs-xl); line-height: var(--lh-xl); letter-spacing: -0.02em; font-weight: 600; }

.lede {
    font-size: var(--fs-lg); line-height: var(--lh-relaxed);
    color: var(--text-muted); max-width: 60ch; text-wrap: pretty;
}
.lede--sm { font-size: var(--fs-base); }

.text-mark { color: var(--text-dim); }
.text-num  { font-variant-numeric: tabular-nums; }

.section-header { margin-bottom: var(--space-12); max-width: 720px; }
.section-header--center { text-align: center; margin-inline: auto; }
.section-header--center .lede { margin-inline: auto; }
.section-header .eyebrow { margin-bottom: var(--space-4); }
.section-header h1, .section-header h2 { margin-bottom: var(--space-4); }
.section-header--row {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: var(--space-6); flex-wrap: wrap; max-width: none;
}

/* ----------------------------------------------------------------------------
   5. Buttons and links
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
    font-family: inherit; font-size: var(--fs-sm); font-weight: 500; line-height: 1;
    height: 40px; padding: 0 var(--space-4);
    border-radius: var(--radius); border: 1px solid transparent;
    cursor: pointer; white-space: nowrap; text-decoration: none;
    transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
                color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
                transform var(--dur) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-fg); }
.btn--secondary { background: var(--surface); color: var(--text-strong); border-color: var(--border-strong); }
.btn--secondary:hover { background: var(--bg-hover); color: var(--text-strong); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--bg-hover); color: var(--text-strong); }
.btn--outline { background: transparent; color: var(--text-strong); border-color: var(--border-strong); }
.btn--outline:hover { background: var(--bg-hover); }
.btn--sm { height: 32px; font-size: var(--fs-xs); padding: 0 var(--space-3); }
.btn--lg { height: 48px; font-size: var(--fs-base); padding: 0 var(--space-6); }
.btn--block { display: flex; width: 100%; }
.btn .arrow { transition: transform var(--dur) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
    display: inline-flex; align-items: center; gap: var(--space-2);
    font-weight: 500; font-size: var(--fs-sm); color: var(--text-strong);
}
.link-arrow .arrow { transition: transform var(--dur) var(--ease-out); color: var(--text-dim); }
.link-arrow:hover .arrow { transform: translateX(3px); color: var(--text-strong); }

.btn-row { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.btn-row--center { justify-content: center; }

/* ----------------------------------------------------------------------------
   6. Header and navigation (Zapier-style mega menus)
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur) var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.nav-inner {
    position: relative;
    max-width: var(--container-max); margin-inline: auto; padding: 0 var(--space-6);
    height: var(--nav-height); display: flex; align-items: center; gap: var(--space-6);
}
.site-logo { display: inline-flex; align-items: center; color: var(--text-strong); }
.site-logo:hover { opacity: 0.8; }
.site-logo svg { height: 24px; width: auto; display: block; }
.site-logo__img { height: 24px; width: auto; display: block; }

.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a, .nav-menu > li > button {
    display: inline-flex; align-items: center; gap: 6px;
    height: 36px; padding: 0 var(--space-3);
    font-family: inherit; font-size: var(--fs-sm); font-weight: 500;
    color: var(--text-muted); background: none; border: none; cursor: pointer;
    border-radius: var(--radius);
    transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.nav-menu > li > a:hover, .nav-menu > li > button:hover,
.nav-menu > li.current-menu-item > a, .nav-menu > li.current-menu-ancestor > a,
.nav-menu > li.is-open > button { color: var(--text-strong); background: var(--bg-hover); }
.nav-menu .chev { width: 14px; height: 14px; transition: transform var(--dur) var(--ease-out); color: var(--text-dim); }
.nav-menu > li.is-open .chev { transform: rotate(180deg); }

/* Mega panel */
.mega {
    position: absolute; top: calc(100% + 8px); left: 0;
    min-width: 280px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-xl); box-shadow: var(--shadow-2xl);
    padding: var(--space-4);
    opacity: 0; transform: translateY(6px); pointer-events: none;
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
    z-index: 60;
}
.nav-menu > li:has(> .mega--wide) { position: static; }
.mega--wide { left: var(--space-6); right: var(--space-6); margin-inline: auto; width: min(1060px, calc(100vw - 48px)); display: grid; grid-template-columns: var(--mega-cols, repeat(3, 1fr)); gap: var(--space-6); padding: var(--space-6); }
.mega--mid  { width: 640px; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); padding: var(--space-6); }
.nav-menu > li.is-open > .mega, .nav-menu > li:focus-within > .mega { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-menu > li:nth-last-child(-n+2) .mega--mid { left: auto; right: 0; }
.mega__col h4 {
    font-size: var(--fs-2xs); line-height: var(--lh-2xs); text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--text-dim); font-weight: 500; padding: 0 var(--space-2); margin-bottom: var(--space-2);
}
.mega__col ul { display: grid; gap: 1px; }
.mega__col a {
    display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start;
    padding: var(--space-2) var(--space-3) var(--space-2) var(--space-2); border-radius: var(--radius-lg);
    transition: background var(--dur) var(--ease-out);
}
.mega__col a:hover { background: var(--bg-hover); }
.mega__icon {
    width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius); background: var(--bg-muted); border: 1px solid var(--border);
    color: var(--text-strong); flex-shrink: 0;
}
.mega__icon svg { width: 16px; height: 16px; }
.mega__label { display: block; font-size: var(--fs-sm); font-weight: 500; color: var(--text-strong); line-height: var(--lh-sm); }
.mega__hint  { display: block; font-size: var(--fs-xs); font-weight: 400; color: var(--text-muted); line-height: var(--lh-xs); margin-top: 3px; }
.mega__col--plain a { display: block; padding: 6px var(--space-2); }
.mega__footer {
    grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
    padding-top: var(--space-4); border-top: 1px solid var(--border); font-size: var(--fs-sm); color: var(--text-muted);
}

.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: var(--space-2); }

.theme-toggle {
    width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    background: none; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; color: var(--text-muted);
}
.theme-toggle:hover { background: var(--bg-hover); color: var(--text-strong); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
    :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
}

.nav-toggle {
    display: none; margin-left: auto; width: 40px; height: 40px;
    background: transparent; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 0; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
    .nav-toggle { display: inline-flex; }
    .nav-menu, .nav-actions {
        display: none; position: fixed; left: 0; right: 0;
        background: var(--surface); border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-xl);
    }
    .nav-menu {
        top: var(--nav-height); flex-direction: column; align-items: stretch; gap: 0;
        max-height: calc(100vh - var(--nav-height) - 64px); overflow-y: auto;
        padding: var(--space-3) var(--space-4);
    }
    .nav-menu.is-open { display: flex; }
    .nav-menu > li > a, .nav-menu > li > button { width: 100%; justify-content: space-between; height: 44px; font-size: var(--fs-base); }
    .mega, .mega--wide, .mega--mid {
        position: static; width: auto; min-width: 0; opacity: 1; transform: none; pointer-events: auto;
        box-shadow: none; border: none; border-radius: 0; padding: 0 0 var(--space-3) var(--space-2);
        display: none; grid-template-columns: 1fr; gap: var(--space-4);
    }
    .nav-menu > li.is-open > .mega { display: grid; }
    .mega__footer { display: none; }
    .nav-actions {
        display: none; bottom: 0; top: auto; padding: var(--space-3) var(--space-4);
        justify-content: stretch; border-top: 1px solid var(--border); border-bottom: none;
    }
    .nav-actions.is-open { display: flex; }
    .nav-actions .btn { flex: 1; }
    .nav-actions .theme-toggle { flex: 0 0 40px; }
}

/* ----------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: var(--space-20) var(--space-16); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--space-16); align-items: center; }
.hero__content .eyebrow { margin-bottom: var(--space-6); }
.hero__title { margin-bottom: var(--space-6); max-width: 14ch; }
.hero__subtitle { font-size: var(--fs-lg); line-height: var(--lh-relaxed); color: var(--text-muted); margin-bottom: var(--space-8); max-width: 54ch; text-wrap: pretty; }
.hero__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-8); }
.hero__meta { display: flex; gap: var(--space-5); flex-wrap: wrap; font-size: var(--fs-sm); color: var(--text-muted); }
.hero__meta-item { display: inline-flex; align-items: center; gap: 6px; }
.hero__meta-item svg { width: 14px; height: 14px; color: var(--success-fg); }
.hero__visual { position: relative; }
@media (max-width: 960px) {
    .hero { padding-block: var(--space-12) var(--space-10); }
    .hero__grid { grid-template-columns: 1fr; gap: var(--space-10); }
    .hero__title { max-width: none; }
}

/* ----------------------------------------------------------------------------
   8. Product mocks: window frames, login card, approval flow (animated)
   -------------------------------------------------------------------------- */
.frame {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
    overflow: hidden; box-shadow: var(--shadow-xl);
}
.frame__bar {
    display: flex; align-items: center; gap: var(--space-2); padding: 10px var(--space-4);
    border-bottom: 1px solid var(--border); background: var(--bg-subtle);
}
.frame__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.frame__title { margin-left: var(--space-2); font-size: var(--fs-2xs); color: var(--text-dim); font-family: var(--font-mono); }
.frame__url {
    margin-left: auto; font-size: var(--fs-2xs); color: var(--text-dim); font-family: var(--font-mono);
    background: var(--bg-muted); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 2px 8px;
}
.frame__body { padding: var(--space-5); }
.frame--dark { color-scheme: dark; --surface: #0a0a0a; --bg-subtle: #000; --bg-muted: #1a1a1a; --border: rgb(255 255 255 / 0.14); --border-strong: rgb(255 255 255 / 0.24); --text: #ededed; --text-strong: #fff; --text-muted: #a0a0a0; --text-dim: #8f8f8f; --accent: #ededed; --accent-fg: #0a0a0a; --accent-soft: #1f1f1f; --bg-hover: rgb(255 255 255 / 0.07); background: var(--surface); color: var(--text); }

/* Screenshot figure: real product captures (dark theme) inside a frame */
.shot { margin: 0; }
.shot .frame__body { padding: 0; background: #0a0a0a; }
.shot img { width: 100%; height: auto; display: block; }
.shot figcaption { font-size: var(--fs-xs); color: var(--text-dim); margin-top: var(--space-3); line-height: var(--lh-xs); }
.shot--clip .frame__body { max-height: 440px; overflow: hidden; }
.shot--clip-sm .frame__body { max-height: 320px; overflow: hidden; }
.shot--clip .frame__body::after, .shot--clip-sm .frame__body::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px;
    background: linear-gradient(to bottom, transparent, #0a0a0a); pointer-events: none;
}
.shot .frame__body { position: relative; }

/* Login card mock (hero) */
.login-mock { max-width: 380px; margin-inline: auto; padding: var(--space-8) var(--space-6); text-align: center; }
.login-mock__logo { display: inline-flex; align-items: center; gap: 8px; margin-bottom: var(--space-6); font-weight: 600; color: var(--text-strong); font-size: var(--fs-sm); }
.login-mock__logo svg { width: 20px; height: 20px; }
.login-mock h3 { font-size: var(--fs-xl); margin-bottom: 4px; }
.login-mock > p { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--space-6); }
.login-mock__field {
    display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; text-align: left;
    border: 1px solid var(--border-strong); border-radius: var(--radius); font-size: var(--fs-sm); color: var(--text-dim);
    background: var(--surface); margin-bottom: var(--space-3); overflow: hidden; white-space: nowrap;
}
.login-mock__field svg { width: 16px; height: 16px; flex-shrink: 0; }
.login-mock__field .typed { color: var(--text-strong); }
.login-mock__field .caret { width: 1px; height: 16px; background: var(--text-strong); animation: blink 1s steps(2) infinite; }
.login-mock__btn {
    height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--accent); color: var(--accent-fg); border-radius: var(--radius); font-size: var(--fs-sm); font-weight: 500;
    margin-bottom: var(--space-4);
}
.login-mock__btn svg { width: 16px; height: 16px; }
.login-mock__divider { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-2xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dim); margin: var(--space-4) 0; }
.login-mock__divider::before, .login-mock__divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.login-mock__social { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.login-mock__social span { height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--border-strong); border-radius: var(--radius); font-size: var(--fs-xs); font-weight: 500; color: var(--text-strong); }
.login-mock__social svg { width: 14px; height: 14px; }
.login-mock__foot { margin-top: var(--space-6); font-size: var(--fs-2xs); color: var(--text-dim); display: inline-flex; align-items: center; gap: 6px; }
.login-mock__foot svg { width: 12px; height: 12px; }

/* Passkey prompt that floats over the login mock */
.passkey-pop {
    position: absolute; right: -8px; bottom: 56px; width: 260px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl); padding: var(--space-4);
    display: grid; grid-template-columns: 40px 1fr; gap: var(--space-3); align-items: center; text-align: left;
    opacity: 0; transform: translateY(10px);
    animation: passkeyPop 9s var(--ease-out) infinite;
}
.passkey-pop__icon { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-muted); border: 1px solid var(--border); color: var(--text-strong); }
.passkey-pop__icon svg { width: 20px; height: 20px; }
.passkey-pop__title { font-size: var(--fs-sm); font-weight: 500; color: var(--text-strong); }
.passkey-pop__sub { font-size: var(--fs-2xs); color: var(--text-muted); }
.passkey-pop__ok { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-2xs); color: var(--success-fg); opacity: 0; animation: fadeIn 9s linear infinite; }
.passkey-pop__ok svg { width: 12px; height: 12px; }
@media (max-width: 480px) { .passkey-pop { right: 0; width: 220px; } }

@keyframes passkeyPop {
    0%, 28% { opacity: 0; transform: translateY(10px); }
    34%, 80% { opacity: 1; transform: translateY(0); }
    88%, 100% { opacity: 0; transform: translateY(10px); }
}
@keyframes fadeIn { 0%, 60% { opacity: 0; } 66%, 80% { opacity: 1; } 88%, 100% { opacity: 0; } }
@keyframes blink { 50% { opacity: 0; } }

/* Agent approval flow (three-step animated diagram) */
.flow { display: grid; gap: var(--space-3); }
.flow__step {
    display: grid; grid-template-columns: 36px 1fr; gap: var(--space-3); align-items: start;
    padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
    opacity: 0.45; transition: opacity var(--dur-slow) var(--ease-out), border-color var(--dur-slow) var(--ease-out);
}
.flow__step.is-active { opacity: 1; border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.flow__step.is-done { opacity: 0.8; }
.flow__num { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-muted); border: 1px solid var(--border); font-size: var(--fs-xs); font-weight: 600; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.flow__step.is-done .flow__num { background: var(--success-soft); border-color: var(--success-border); color: var(--success-fg); }
.flow__title { font-size: var(--fs-sm); font-weight: 500; color: var(--text-strong); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.flow__body { font-size: var(--fs-xs); color: var(--text-muted); line-height: var(--lh-xs); margin-top: 2px; }
.flow__code { margin-top: var(--space-2); font-family: var(--font-mono); font-size: 11.5px; line-height: 1.5; color: var(--text); background: var(--bg-muted); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; white-space: pre-wrap; word-break: break-word; }
.flow, .flow__step > div { min-width: 0; }
.flow__actions { display: flex; gap: 6px; margin-top: var(--space-2); }
.flow__actions span { height: 26px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: var(--radius-sm); font-size: var(--fs-2xs); font-weight: 500; border: 1px solid var(--border-strong); color: var(--text-strong); }
.flow__actions span.is-primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.flow__actions span.is-pressed { transform: scale(0.97); box-shadow: inset 0 0 0 2px var(--success); }
.flow__progress { height: 2px; background: var(--border); border-radius: 1px; overflow: hidden; margin-top: var(--space-2); }
.flow__progress i { display: block; height: 100%; width: 0; background: var(--text-strong); transition: width 2.4s linear; }
.flow__step.is-active .flow__progress i { width: 100%; }

/* Phone notification mock */
.phone {
    width: 230px; margin-inline: auto; border: 1px solid var(--border-strong); border-radius: 28px; padding: 12px;
    background: var(--surface); box-shadow: var(--shadow-xl);
}
.phone__screen { background: var(--bg-subtle); border-radius: 18px; padding: 40px 10px 16px; min-height: 300px; position: relative; overflow: hidden; }
.phone__notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 70px; height: 18px; border-radius: 999px; background: var(--text-strong); }
.phone__time { text-align: center; font-size: 28px; font-weight: 600; letter-spacing: -0.04em; color: var(--text-strong); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.phone__notif {
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow-md);
    transform: translateY(-14px); opacity: 0; animation: notifIn 9s var(--ease-out) infinite;
}
.phone__notif-head { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--text-dim); margin-bottom: 4px; }
.phone__notif-head svg { width: 12px; height: 12px; color: var(--text-strong); }
.phone__notif-title { font-size: 12px; font-weight: 600; color: var(--text-strong); }
.phone__notif-body { font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.phone__notif-actions { display: flex; gap: 6px; margin-top: 8px; }
.phone__notif-actions span { flex: 1; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 11px; font-weight: 500; border: 1px solid var(--border-strong); color: var(--text-strong); }
.phone__notif-actions span.is-primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); animation: tapApprove 9s var(--ease-out) infinite; }
@keyframes notifIn { 0%, 36% { opacity: 0; transform: translateY(-14px); } 42%, 85% { opacity: 1; transform: translateY(0); } 92%, 100% { opacity: 0; transform: translateY(-14px); } }
@keyframes tapApprove { 0%, 58% { box-shadow: none; } 62%, 85% { box-shadow: 0 0 0 3px var(--success-border); } 100% { box-shadow: none; } }

/* ----------------------------------------------------------------------------
   9. Terminal / code
   -------------------------------------------------------------------------- */
.terminal {
    background: #0a0a0a; border: 1px solid rgb(255 255 255 / 0.14);
    border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xl); color-scheme: dark;
}
.terminal__bar { display: flex; align-items: center; gap: 8px; padding: 10px var(--space-4); background: #000; border-bottom: 1px solid rgb(255 255 255 / 0.1); }
.terminal__dot { width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / 0.2); }
.terminal__title { margin-left: var(--space-2); font-family: var(--font-mono); font-size: var(--fs-2xs); color: #8f8f8f; }
.terminal__tabs { display: flex; gap: 2px; margin-left: auto; }
.terminal__tab { font-family: var(--font-mono); font-size: 11px; padding: 3px 8px; border-radius: var(--radius-sm); color: #8f8f8f; background: none; border: none; cursor: pointer; }
.terminal__tab[aria-selected="true"] { background: #1a1a1a; color: #ededed; }
.terminal__body { padding: var(--space-5); overflow-x: auto; font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.65; color: #ededed; }
.terminal__body pre { margin: 0; }
.terminal__body code { font-family: inherit; color: inherit; background: none; padding: 0; border: none; font-size: inherit; }
.terminal__panel[hidden] { display: none; }
.token-keyword { color: #c792ea; }
.token-string  { color: #c3e88d; }
.token-fn      { color: #82aaff; }
.token-type    { color: #ffcb6b; }
.token-var     { color: #f07178; }
.token-comment { color: #7a7a7a; font-style: italic; }
.token-number  { color: #f78c6c; }
.token-prompt  { color: #8f8f8f; user-select: none; }
.token-ok      { color: #00ca52; }

/* ----------------------------------------------------------------------------
   10. Trust bar / logo strip
   -------------------------------------------------------------------------- */
.trust-bar { padding-block: var(--space-10); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-subtle); }
.trust-bar__label { text-align: center; font-size: var(--fs-2xs); color: var(--text-dim); margin-bottom: var(--space-5); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500; }
.trust-bar__logos { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-8); align-items: center; justify-content: center; }
.trust-bar__logo { font-weight: 500; font-size: var(--fs-sm); color: var(--text-muted); letter-spacing: 0.01em; display: inline-flex; align-items: center; gap: 8px; }
.trust-bar__logo svg { width: 16px; height: 16px; color: var(--text-dim); }

/* Marquee of integration chips */
.marquee { overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: var(--space-3); width: max-content; animation: marquee 60s linear infinite; padding-block: 2px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.chip {
    display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 10px;
    border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--surface);
    font-size: var(--fs-xs); font-weight: 500; color: var(--text-strong); white-space: nowrap;
}
.chip__ico { width: 18px; height: 18px; border-radius: 50%; background: var(--bg-muted); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 600; color: var(--text-muted); letter-spacing: 0; }
.chip--tag { height: 28px; font-size: var(--fs-2xs); background: var(--bg-muted); }

/* ----------------------------------------------------------------------------
   11. Cards, grids, feature tiles
   -------------------------------------------------------------------------- */
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
    padding: var(--space-6); position: relative;
    transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.card--hover:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card--feature { padding: var(--space-6); display: flex; flex-direction: column; }
.card--link { color: inherit; display: flex; flex-direction: column; }
.card--link:hover { color: inherit; }
.card--sunken { background: var(--bg-subtle); }
.card__footer { margin-top: auto; padding-top: var(--space-4); }

.grid { display: grid; gap: var(--space-5); }
.grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid--4, .grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px)  { .grid--3, .grid--4, .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; } }

/* Bento rows for larger feature blocks */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-5); }
.bento > * { grid-column: span 2; }
.bento > .span-3 { grid-column: span 3; }
.bento > .span-4 { grid-column: span 4; }
.bento > .span-6 { grid-column: span 6; }
@media (max-width: 960px) { .bento > *, .bento > .span-3, .bento > .span-4 { grid-column: span 3; } }
@media (max-width: 600px) { .bento > *, .bento > .span-3, .bento > .span-4, .bento > .span-6 { grid-column: span 6; } }

.feature-icon {
    width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius-lg); background: var(--bg-muted); color: var(--text-strong);
    margin-bottom: var(--space-4); border: 1px solid var(--border); flex-shrink: 0;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-icon--ink { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.feature-title { font-size: var(--fs-base); line-height: var(--lh-base); font-weight: 600; margin-bottom: var(--space-2); color: var(--text-strong); letter-spacing: -0.01em; }
.feature-body { color: var(--text-muted); line-height: var(--lh-sm); font-size: var(--fs-sm); text-wrap: pretty; }
.feature-links { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.feature-links a { font-size: var(--fs-xs); color: var(--text-strong); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.feature-links a:hover { text-decoration-color: currentColor; }

/* Two-column "story" block: text + visual */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-16); align-items: center; }
.split > * { min-width: 0; }
.split--reverse > :first-child { order: 2; }
.split--top { align-items: start; }
.split--wide-visual { grid-template-columns: 0.9fr 1.1fr; }
@media (max-width: 960px) { .split, .split--wide-visual { grid-template-columns: 1fr; gap: var(--space-10); } .split--reverse > :first-child { order: 0; } }

/* Badge */
.badge {
    display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-2xs); line-height: 1; font-weight: 500;
    padding: 4px 8px; border-radius: var(--radius-full);
    background: var(--bg-muted); color: var(--text-muted); border: 1px solid var(--border); white-space: nowrap;
}
.badge--ink     { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.badge--outline { background: transparent; }
.badge--success { background: var(--success-soft); color: var(--success-fg); border-color: var(--success-border); }
.badge--warning { background: var(--warning-soft); color: var(--warning-fg); border-color: var(--warning-border); }
.badge--danger  { background: var(--danger-soft);  color: var(--danger-fg);  border-color: var(--danger-border); }
.badge--info    { background: var(--info-soft);    color: var(--info-fg);    border-color: var(--info-border); }

/* Check list */
.check-list { display: grid; gap: var(--space-2); }
.check-list li { font-size: var(--fs-sm); color: var(--text); line-height: var(--lh-sm); padding-left: 26px; position: relative; }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%;
    background: var(--bg-muted); border: 1px solid var(--border);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'><path fill='none' stroke='%23171717' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.5 5 9l4.5-5.5'/></svg>");
    background-repeat: no-repeat; background-position: center;
}
.section--ink .check-list li::before, :root[data-theme="dark"] .check-list li::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'><path fill='none' stroke='%23ededed' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.5 5 9l4.5-5.5'/></svg>");
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .check-list li::before {
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'><path fill='none' stroke='%23ededed' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.5 5 9l4.5-5.5'/></svg>");
    }
}
.check-list--2col { grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--space-6); }
@media (max-width: 600px) { .check-list--2col { grid-template-columns: 1fr; } }

/* Stat row */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.stat { padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); }
.stat__value { font-size: var(--fs-3xl); line-height: var(--lh-3xl); font-weight: 600; letter-spacing: -0.04em; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.stat__label { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 4px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Steps (numbered workflow) */
.steps { display: grid; gap: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: var(--space-4); padding: var(--space-5) 0; border-top: 1px solid var(--border); }
.step:last-child { border-bottom: 1px solid var(--border); }
.step__num { counter-increment: step; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-strong); display: inline-flex; align-items: center; justify-content: center; font-size: var(--fs-xs); font-weight: 600; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.step__num::before { content: counter(step); }
.step h4 { font-size: var(--fs-base); margin-bottom: 4px; }
.step p { font-size: var(--fs-sm); color: var(--text-muted); line-height: var(--lh-sm); }
.step code { font-size: 0.8em; }

/* Definition rows (standards, plan gating) */
.defs { border-top: 1px solid var(--border); }
.defs__row { display: grid; grid-template-columns: 220px 1fr; gap: var(--space-6); padding: var(--space-4) 0; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.defs__row dt { color: var(--text-strong); font-weight: 500; }
.defs__row dd { margin: 0; color: var(--text-muted); line-height: var(--lh-sm); }
@media (max-width: 640px) { .defs__row { grid-template-columns: 1fr; gap: var(--space-1); } }

/* ----------------------------------------------------------------------------
   12. Tabs (use cases on the homepage)
   -------------------------------------------------------------------------- */
.usecase { display: grid; grid-template-columns: 300px 1fr; gap: var(--space-8); align-items: start; }
.usecase__tabs { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--nav-height) + var(--space-6)); }
.usecase__tab {
    display: flex; align-items: flex-start; gap: var(--space-3); width: 100%; text-align: left;
    background: transparent; border: 1px solid transparent; border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4); cursor: pointer; color: var(--text-muted); font-family: inherit;
    transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.usecase__tab:hover { background: var(--bg-hover); color: var(--text); }
.usecase__tab[aria-selected="true"] { background: var(--surface); color: var(--text-strong); border-color: var(--border); box-shadow: var(--shadow-sm); }
.usecase__tab-icon { width: 32px; height: 32px; border-radius: var(--radius); background: var(--bg-muted); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--text-strong); }
.usecase__tab-icon svg { width: 16px; height: 16px; }
.usecase__tab-label { font-weight: 500; font-size: var(--fs-sm); line-height: var(--lh-sm); display: block; }
.usecase__tab-hint  { display: block; font-size: var(--fs-xs); color: var(--text-dim); margin-top: 2px; font-weight: 400; line-height: var(--lh-xs); }

.usecase__panel { display: none; }
.usecase__panel.is-active { display: block; animation: fadeInUp var(--dur-slow) var(--ease-out); }
.usecase__panel-inner { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-2xl); overflow: hidden; }
.usecase__text { padding: var(--space-8); }
.usecase__text h3 { font-size: var(--fs-2xl); line-height: var(--lh-2xl); margin-bottom: var(--space-3); letter-spacing: -0.03em; }
.usecase__text .lede { font-size: var(--fs-base); margin-bottom: var(--space-5); }
.usecase__features { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); margin: var(--space-5) 0 var(--space-6); }
.usecase__feature h4 { font-size: var(--fs-sm); margin-bottom: 2px; }
.usecase__feature p { font-size: var(--fs-xs); color: var(--text-muted); line-height: var(--lh-xs); }
.usecase__shot { border-top: 1px solid var(--border); background: #0a0a0a; max-height: 380px; overflow: hidden; position: relative; }
.usecase__shot img { width: 100%; display: block; }
.usecase__shot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(to bottom, transparent, #0a0a0a); }

@media (max-width: 900px) {
    .usecase { grid-template-columns: 1fr; }
    .usecase__tabs { position: static; flex-direction: row; overflow-x: auto; padding-bottom: var(--space-2); gap: var(--space-2); }
    .usecase__tab { white-space: nowrap; align-items: center; }
    .usecase__tab-hint { display: none; }
    .usecase__features { grid-template-columns: 1fr; }
    .usecase__text { padding: var(--space-6); }
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ----------------------------------------------------------------------------
   13. Pricing
   -------------------------------------------------------------------------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); align-items: stretch; }
@media (max-width: 960px) { .pricing-grid { grid-template-columns: 1fr; } }

.plan {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-2xl);
    padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-5); position: relative;
}
.plan--featured { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.plan__badge { position: absolute; top: -12px; left: var(--space-6); }
.plan__name { font-size: var(--fs-sm); font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.plan__price { font-size: var(--fs-4xl); line-height: 1; font-weight: 600; letter-spacing: -0.05em; color: var(--text-strong); margin-top: var(--space-2); font-variant-numeric: tabular-nums; }
.plan__price small { font-size: var(--fs-sm); color: var(--text-muted); font-weight: 400; letter-spacing: 0; margin-left: 4px; }
.plan__desc { color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--space-3); line-height: var(--lh-sm); }
.plan__group { display: grid; gap: 0; }
.plan__group-title { font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-dim); font-weight: 500; margin-bottom: var(--space-2); }
.plan__row { display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--fs-xs); padding: 6px 0; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.plan__row:last-child { border-bottom: none; }
.plan__row b { color: var(--text-strong); font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.plan__features { display: grid; gap: 6px; }
.plan__feature { font-size: var(--fs-xs); line-height: var(--lh-xs); display: grid; grid-template-columns: 16px 1fr; gap: 8px; color: var(--text); }
.plan__feature i { font-style: normal; color: var(--text-dim); text-align: center; font-size: 11px; line-height: var(--lh-xs); }
.plan__feature--yes i { color: var(--success-fg); }
.plan__feature--no { color: var(--text-dim); }
.plan__feature--addon i, .plan__feature--limited i { color: var(--warning-fg); }
.plan__feature--strong { font-weight: 500; }
.plan__note { color: var(--text-dim); }
.plan__more { font-size: var(--fs-xs); color: var(--text-muted); cursor: pointer; margin-top: var(--space-2); }
.plan__more summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; font-weight: 500; color: var(--text-strong); }
.plan__more summary::-webkit-details-marker { display: none; }
.plan__more summary::after { content: "+"; }
.plan__more[open] summary::after { content: "−"; }
.plan__more .plan__features { margin-top: var(--space-3); }

.addon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
@media (max-width: 960px) { .addon-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .addon-grid { grid-template-columns: 1fr; } }
.addon { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.addon__name { font-size: var(--fs-base); font-weight: 600; }
.addon__price { font-size: var(--fs-sm); font-weight: 500; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.addon__desc { font-size: var(--fs-xs); color: var(--text-muted); line-height: var(--lh-xs); }
.addon__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }

.faq { display: grid; gap: var(--space-2); }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); padding: 0 var(--space-5); }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { cursor: pointer; font-weight: 500; color: var(--text-strong); font-size: var(--fs-base); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-4) 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-dim); font-weight: 400; font-size: var(--fs-lg); }
.faq details[open] summary::after { content: "−"; }
.faq .faq__body { padding-bottom: var(--space-5); color: var(--text-muted); font-size: var(--fs-sm); line-height: var(--lh-relaxed); }

/* ----------------------------------------------------------------------------
   14. Tables
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); }
.comparison { width: 100%; border-collapse: collapse; min-width: 560px; }
.comparison th, .comparison td { padding: var(--space-3) var(--space-4); text-align: left; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); vertical-align: middle; }
.comparison th { background: var(--bg-subtle); font-weight: 500; color: var(--text-muted); font-size: var(--fs-xs); }
.comparison tr:last-child td { border-bottom: none; }
.comparison .col-us { background: color-mix(in srgb, var(--bg-muted) 55%, transparent); }
.comparison th.col-us { color: var(--text-strong); }
.comparison .yes { color: var(--success-fg); font-weight: 600; }
.comparison .no  { color: var(--text-dim); }
.comparison td:first-child { color: var(--text-strong); }
.comparison .group td { background: var(--bg-muted); font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-dim); font-weight: 500; padding-block: 6px; }

/* ----------------------------------------------------------------------------
   15. Solutions hub
   -------------------------------------------------------------------------- */
.hub-nav { display: flex; gap: var(--space-2); flex-wrap: wrap; position: sticky; top: var(--nav-height); z-index: 5; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
.hub-nav a { font-size: var(--fs-sm); font-weight: 500; color: var(--text-muted); padding: 6px 12px; border-radius: var(--radius-full); border: 1px solid transparent; }
.hub-nav a:hover, .hub-nav a.is-active { color: var(--text-strong); background: var(--bg-muted); border-color: var(--border); }
.sol-card { display: flex; flex-direction: column; gap: var(--space-3); color: inherit; }
.sol-card:hover { color: inherit; }
.sol-card__head { display: flex; align-items: center; gap: var(--space-3); }
.sol-card__head .feature-icon { margin-bottom: 0; }
.sol-card h3 { font-size: var(--fs-base); line-height: var(--lh-base); letter-spacing: -0.01em; }
.sol-card p { font-size: var(--fs-sm); color: var(--text-muted); line-height: var(--lh-sm); }
.sol-card__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.sol-card__tags .badge { white-space: normal; text-align: left; line-height: 1.3; }

.integration-group { margin-bottom: var(--space-10); }
.integration-group h3 { font-size: var(--fs-lg); margin-bottom: var(--space-1); }
.integration-group > p { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--space-4); max-width: 70ch; }
.integration-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.integration-list a.chip:hover, .integration-list .chip--link:hover { border-color: var(--border-strong); background: var(--bg-hover); }

/* Solution page */
.sol-hero { padding-block: var(--space-16) var(--space-12); border-bottom: 1px solid var(--border); }
.sol-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-12); align-items: center; }
@media (max-width: 960px) { .sol-hero__grid { grid-template-columns: 1fr; } }
.sol-toc { position: sticky; top: calc(var(--nav-height) + var(--space-6)); display: grid; gap: 2px; font-size: var(--fs-sm); }
.sol-toc a { padding: 6px 10px; border-radius: var(--radius); color: var(--text-muted); border-left: 2px solid transparent; }
.sol-toc a:hover, .sol-toc a.is-active { color: var(--text-strong); background: var(--bg-hover); }
.sol-layout { display: grid; grid-template-columns: 220px 1fr; gap: var(--space-12); align-items: start; }
@media (max-width: 960px) { .sol-layout { grid-template-columns: 1fr; } .sol-toc { position: static; display: flex; flex-wrap: wrap; } }
.sol-section { padding-block: var(--space-10); border-bottom: 1px solid var(--border); }
.sol-section:last-child { border-bottom: none; }
.sol-section > h2 { font-size: var(--fs-2xl); line-height: var(--lh-2xl); letter-spacing: -0.03em; margin-bottom: var(--space-3); }
.sol-section > .lede { font-size: var(--fs-base); margin-bottom: var(--space-6); max-width: 70ch; }
.sol-section .shot { margin-top: var(--space-6); }
.prose { font-size: var(--fs-base); line-height: var(--lh-relaxed); color: var(--text); }
.prose > * + * { margin-top: var(--space-4); }
.prose ul li { list-style: disc; margin-left: var(--space-5); }
.prose h3 { font-size: var(--fs-lg); margin-top: var(--space-6); }

/* Related link cards */
.doc-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
@media (max-width: 640px) { .doc-links { grid-template-columns: 1fr; } }
.doc-link { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); font-size: var(--fs-sm); color: var(--text-strong); transition: border-color var(--dur), background var(--dur); }
.doc-link:hover { border-color: var(--border-strong); background: var(--bg-hover); color: var(--text-strong); }
.doc-link small { display: block; font-size: var(--fs-2xs); color: var(--text-dim); font-family: var(--font-mono); margin-top: 2px; }
.doc-link svg { width: 14px; height: 14px; color: var(--text-dim); flex-shrink: 0; }

/* ----------------------------------------------------------------------------
   16. Blog and articles
   -------------------------------------------------------------------------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
@media (max-width: 960px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur); }
.post-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.post-card__thumb { aspect-ratio: 16 / 9; background: var(--bg-muted); overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-2xs); color: var(--text-dim); }
.post-card__title { font-size: var(--fs-lg); line-height: var(--lh-snug); font-weight: 600; }
.post-card__title a { color: var(--text-strong); }
.post-card__excerpt { color: var(--text-muted); font-size: var(--fs-sm); line-height: var(--lh-sm); flex: 1; }
.post-card__footer { display: flex; align-items: center; justify-content: space-between; padding-top: var(--space-3); border-top: 1px solid var(--border); font-size: var(--fs-2xs); color: var(--text-dim); }

.article { max-width: 720px; margin: 0 auto; }
.article__header { margin-bottom: var(--space-8); text-align: center; }
.article__meta { display: inline-flex; gap: var(--space-3); font-size: var(--fs-sm); color: var(--text-dim); margin-bottom: var(--space-4); align-items: center; flex-wrap: wrap; justify-content: center; }
.article__title { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: var(--space-4); letter-spacing: -0.04em; }
.article__subtitle { font-size: var(--fs-lg); color: var(--text-muted); line-height: var(--lh-relaxed); }
.article__thumb { margin: var(--space-8) 0 var(--space-10); }
.article__thumb img { border-radius: var(--radius-xl); border: 1px solid var(--border); }
.article__content { font-size: var(--fs-lg); line-height: var(--lh-relaxed); color: var(--text); }
.article__content > * + * { margin-top: var(--space-5); }
.article__content h2 { font-size: var(--fs-2xl); margin-top: var(--space-10); }
.article__content h3 { font-size: var(--fs-xl); margin-top: var(--space-8); }
.article__content ul, .article__content ol { padding-left: var(--space-6); }
.article__content ul li { list-style: disc; margin-bottom: var(--space-2); }
.article__content ol li { list-style: decimal; margin-bottom: var(--space-2); }
.article__content blockquote { border-left: 2px solid var(--border-strong); padding: var(--space-2) var(--space-5); color: var(--text-muted); background: var(--bg-subtle); border-radius: 0 var(--radius) var(--radius) 0; }
.article__content pre { background: #0a0a0a; color: #ededed; padding: var(--space-5); border-radius: var(--radius-xl); overflow-x: auto; font-size: var(--fs-sm); line-height: 1.6; border: 1px solid rgb(255 255 255 / 0.14); }
.article__content pre code { background: none; border: none; padding: 0; color: inherit; }
.article__content img { border-radius: var(--radius-xl); border: 1px solid var(--border); }
.article__content table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.article__content th, .article__content td { border: 1px solid var(--border); padding: var(--space-2) var(--space-3); text-align: left; }
.article__content th { background: var(--bg-subtle); font-weight: 500; }

.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-12); padding-top: var(--space-8); border-top: 1px solid var(--border); }
.article-nav a { display: block; padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-xl); color: var(--text); }
.article-nav a:hover { border-color: var(--border-strong); background: var(--bg-hover); }
.article-nav__label { display: block; font-size: var(--fs-2xs); color: var(--text-dim); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.article-nav__next { text-align: right; }
@media (max-width: 600px) { .article-nav { grid-template-columns: 1fr; } }

.pagination { display: flex; justify-content: center; gap: var(--space-1); margin-top: var(--space-12); }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 var(--space-3); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: var(--fs-sm); }
.pagination .page-numbers:hover { background: var(--bg-hover); border-color: var(--border-strong); }
.pagination .current { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }

.search-form { display: flex; gap: var(--space-2); }
.search-form input { flex: 1; height: 40px; padding: 0 var(--space-3); border: 1px solid var(--border-strong); border-radius: var(--radius); font: inherit; font-size: var(--fs-sm); background: var(--surface); color: var(--text); }

/* ----------------------------------------------------------------------------
   17. CTA section
   -------------------------------------------------------------------------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: var(--space-4); letter-spacing: -0.04em; }
.cta p { color: var(--text-muted); font-size: var(--fs-lg); max-width: 52ch; margin: 0 auto var(--space-8); line-height: var(--lh-relaxed); }
.cta__actions { display: inline-flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; }

/* ----------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer { padding-block: var(--space-16) var(--space-8); background: var(--bg-subtle); border-top: 1px solid var(--border); color: var(--text-muted); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: var(--space-8); margin-bottom: var(--space-12); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand__tagline { font-size: var(--fs-sm); line-height: var(--lh-sm); color: var(--text-muted); margin-top: var(--space-4); max-width: 36ch; }
.footer-brand__address { font-size: var(--fs-2xs); color: var(--text-dim); margin-top: var(--space-4); }
.footer-brand .site-logo svg { height: 22px; }
.footer-brand__social { display: flex; gap: var(--space-2); margin-top: var(--space-5); }
.footer-brand__social a { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-muted); font-size: var(--fs-2xs); font-weight: 600; }
.footer-brand__social a:hover { background: var(--bg-hover); color: var(--text-strong); }
.footer-col h4 { font-size: var(--fs-2xs); color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: var(--space-4); font-weight: 500; }
.footer-col ul { display: grid; gap: var(--space-2); }
.footer-col a { font-size: var(--fs-sm); color: var(--text-muted); }
.footer-col a:hover { color: var(--text-strong); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-6); border-top: 1px solid var(--border); font-size: var(--fs-2xs); color: var(--text-dim); flex-wrap: wrap; }
.footer-bottom__links, .footer-bottom__links ul { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.footer-bottom__links a { color: var(--text-dim); font-size: var(--fs-2xs); }
.footer-bottom__links a:hover { color: var(--text-strong); }
.footer-status { display: inline-flex; align-items: center; gap: 6px; }
.footer-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }

/* ----------------------------------------------------------------------------
   19. 404 and utilities
   -------------------------------------------------------------------------- */
.page-404 { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--space-16) var(--space-6); }
.page-404__code { display: block; font-family: var(--font-mono); font-size: clamp(4rem, 10vw, 7rem); color: var(--border-strong); line-height: 1; font-weight: 600; letter-spacing: -0.05em; }
.page-404 h1 { font-size: var(--fs-3xl); margin: var(--space-4) 0; }
.page-404 p { color: var(--text-muted); max-width: 48ch; margin: 0 auto var(--space-8); }

.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-dim    { color: var(--text-dim); }
.text-sm     { font-size: var(--fs-sm); }
.text-xs     { font-size: var(--fs-xs); }
.mt-2 { margin-top: var(--space-2); } .mt-4 { margin-top: var(--space-4); } .mt-6 { margin-top: var(--space-6); } .mt-8 { margin-top: var(--space-8); } .mt-12 { margin-top: var(--space-12); } .mt-16 { margin-top: var(--space-16); }
.mb-2 { margin-bottom: var(--space-2); } .mb-4 { margin-bottom: var(--space-4); } .mb-6 { margin-bottom: var(--space-6); } .mb-8 { margin-bottom: var(--space-8); } .mb-12 { margin-bottom: var(--space-12); }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); } .gap-3 { gap: var(--space-3); } .gap-4 { gap: var(--space-4); }
.flex-wrap { flex-wrap: wrap; } .w-full { width: 100%; }
.mx-auto { margin-inline: auto; }
.maxw-60 { max-width: 60ch; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: 80ms; } .reveal--delay-2 { transition-delay: 160ms; } .reveal--delay-3 { transition-delay: 240ms; }

/* Counter */
.count { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
    .passkey-pop, .phone__notif { opacity: 1; transform: none; }
    .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
    .flow__step { opacity: 1; }
}

/* WordPress core alignment + block defaults */
.alignwide { max-width: var(--container-max); margin-inline: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-image img { border-radius: var(--radius-xl); }
.wp-block-button__link { background: var(--accent); color: var(--accent-fg); border-radius: var(--radius); padding: 10px 16px; font-size: var(--fs-sm); font-weight: 500; }
