:root {
    --ink: #0F2942;
    --ink-muted: #4A5A6E;
    --ink-soft: #6B7A8C;
    --brand: #1E88D2;
    --brand-deep: #1565A8;
    --accent: #8BC34A;
    --accent-soft: #E8F3D7;
    --surface: #FFFFFF;
    --surface-alt: #F5F8FB;
    --border: #E5EAF0;
    --shadow-sm: 0 1px 2px rgba(15, 41, 66, 0.04), 0 1px 3px rgba(15, 41, 66, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 41, 66, 0.08), 0 2px 6px rgba(15, 41, 66, 0.04);
    --shadow-lg: 0 30px 60px -20px rgba(15, 41, 66, 0.25), 0 12px 24px -12px rgba(15, 41, 66, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --max-width: 1180px;
    --space: 1rem;
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-muted);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 0.5em;
}

h1 {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.4em;
}

h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
    font-weight: 600;
    margin-bottom: 0.85em;
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    color: var(--brand-deep);
}

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

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--brand);
    margin: 0 0 1.25rem;
}

.eyebrow .dot {
    color: var(--accent);
    margin: 0 0.4em;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 120ms ease, color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
    white-space: nowrap;
}

.btn-sm {
    padding: 0.6rem 1.05rem;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 4px 14px rgba(30, 136, 210, 0.28);
}

.btn-primary:hover {
    background: var(--brand-deep);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(30, 136, 210, 0.32);
}

.btn-link {
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid transparent;
    padding: 0.85rem 0;
}

.btn-link:hover {
    color: var(--brand);
}

/* Header / nav */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand img {
    height: 34px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-links a {
    color: var(--ink);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--brand);
}

.nav-links .btn {
    color: #fff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    color: var(--ink);
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    margin: 0 auto;
    transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.site-header.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* How it works — compact grid cards + staged mock animations */
.how-it-works {
    padding: 4rem 0 3.5rem;
    background: linear-gradient(180deg, #fafcfe 0%, #fff 45%);
    border-top: 1px solid var(--border);
}

.how-it-works .section-head {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 2rem;
}

.how-it-works .section-lede {
    font-size: 1.05rem;
    color: var(--ink-muted);
    margin: 0;
}

.how-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

@media (min-width: 1100px) {
    .how-steps {
        grid-template-columns: repeat(5, 1fr);
    }
}

.how-step {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
    padding: 1rem 1.1rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 420ms cubic-bezier(.22, 1, .36, 1),
                box-shadow 420ms ease,
                border-color 420ms ease;
}

.how-step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #c9d4e1;
}

.how-step-copy {
    min-width: 0;
}

.how-step-heading {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.45rem;
}

.how-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--ink);
    font-weight: 700;
    font-size: 0.95rem;
}

.how-step-heading h3 {
    margin: 0;
    font-size: 1.05rem;
}

.how-step-copy p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.how-step-visual {
    min-width: 0;
}

.how-mock {
    background: linear-gradient(180deg, #fafcfe 0%, #fff 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 0.95rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

@keyframes how-mock-piece-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.how-step.is-revealed .how-mock--steps > .how-mock-tag {
    animation: how-mock-piece-in 0.55s cubic-bezier(.22, 1, .36, 1) 0.04s forwards;
    opacity: 0;
}

.how-step.is-revealed .how-mock--steps > .how-mock-title {
    animation: how-mock-piece-in 0.55s cubic-bezier(.22, 1, .36, 1) 0.12s forwards;
    opacity: 0;
}

.how-step.is-revealed .how-mock--steps ul li:nth-child(1) {
    animation: how-mock-piece-in 0.52s cubic-bezier(.22, 1, .36, 1) 0.2s forwards;
    opacity: 0;
}

.how-step.is-revealed .how-mock--steps ul li:nth-child(2) {
    animation: how-mock-piece-in 0.52s cubic-bezier(.22, 1, .36, 1) 0.3s forwards;
    opacity: 0;
}

.how-step.is-revealed .how-mock--steps ul li:nth-child(3) {
    animation: how-mock-piece-in 0.52s cubic-bezier(.22, 1, .36, 1) 0.4s forwards;
    opacity: 0;
}

.how-mock-tag {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand);
}

.how-mock-title {
    font-weight: 600;
    color: var(--ink);
    margin: 0.35rem 0 0.85rem;
    font-size: 0.95rem;
}

.how-mock ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.82rem;
    color: var(--ink-muted);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.how-mock-ch li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.how-mock-ch span {
    width: 28px;
    height: 16px;
    border-radius: 8px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.how-mock-ch span.on {
    background: rgba(30, 136, 210, 0.2);
    border-color: var(--brand);
}

.how-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.5rem;
    margin: 1.75rem 0 0;
    padding-top: 0.5rem;
}

/* Hero */

.hero {
    position: relative;
    padding: 5rem 0 4.5rem;
    background:
        radial-gradient(ellipse 80% 50% at 85% 0%, rgba(30, 136, 210, 0.08), transparent 60%),
        radial-gradient(ellipse 60% 40% at 0% 30%, rgba(139, 195, 74, 0.07), transparent 60%),
        linear-gradient(180deg, #fff 0%, #fafcfe 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 4rem;
    align-items: center;
}

.hero-copy h1 {
    margin-bottom: 1rem;
}

.lede {
    font-size: 1.15rem;
    color: var(--ink-muted);
    max-width: 36ch;
    margin-bottom: 2rem;
}

.cta-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-figure {
    margin: 0;
    display: flex;
    justify-content: center;
}

.window-frame {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: translateZ(0);
}

.window-chrome {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 0.9rem;
    background: linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
    border-bottom: 1px solid var(--border);
}

.window-chrome > span:not(.window-url) {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

.dot-r { background: #ff605c; }
.dot-y { background: #ffbd44; }
.dot-g { background: #00ca4e; }

.window-url {
    margin-left: 0.85rem;
    padding: 0.2rem 0.7rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-sans);
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.window-url svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    color: var(--accent);
}

/* Hero product carousel — screenshot + illustrative UI mocks */
.window-content {
    --engage-w: 1440px;
    --engage-scale: 0.42;
    display: block;
    width: calc(var(--engage-w) * var(--engage-scale));
    max-width: 100%;
    overflow: hidden;
    background: var(--surface-alt);
    color: inherit;
    text-decoration: none;
    transition: transform 200ms ease;
}

.window-content--hero-shot {
    position: relative;
}

.window-content--hero-shot:hover {
    transform: translateY(-1px);
}

.hero-shot-expand {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    z-index: 4;
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink-muted);
    cursor: zoom-in;
    box-shadow: var(--shadow-sm);
    transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.hero-shot-expand:hover {
    background: #fff;
    color: var(--brand);
}

.hero-shot-expand:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.hero-shot-expand::-moz-focus-inner {
    border: 0;
    padding: 0;
}

.hero-shot-carousel {
    position: relative;
}

.hero-shot-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1440 / 900;
    background: #e8edf3;
    overflow: hidden;
}

.hero-shot-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
    z-index: 0;
}

.hero-shot-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-shot-slide-badge {
    position: absolute;
    bottom: 0.55rem;
    left: 0.55rem;
    z-index: 3;
    padding: 0.25rem 0.55rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(15, 41, 66, 0.78);
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

.hero-shot-stack {
    position: absolute;
    inset: 0;
    display: block;
    line-height: 0;
}

.hero-shot-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.hero-shot-img--motion {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0;
    transition: opacity 240ms ease;
    pointer-events: none;
}

.hero-shot-slide.is-active .hero-shot-stack:hover .hero-shot-img--motion,
.hero-shot-slide.is-active .hero-shot-stack:focus-within .hero-shot-img--motion {
    opacity: 1;
}

.hero-shot-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
    padding: 0.55rem 0.45rem 0.65rem;
    background: linear-gradient(180deg, #f0f4f8 0%, #e8eef5 100%);
    border-top: 1px solid var(--border);
}

.hero-shot-step {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.38rem 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ink-soft);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.hero-shot-step:hover {
    color: var(--ink);
    border-color: #ccd6e2;
}

.hero-shot-step.is-active {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand-deep);
    box-shadow: 0 2px 8px rgba(30, 136, 210, 0.35);
}

.hero-shot-step:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Illustrative Engage UI mocks (slides 2–3) */
.hero-mock {
    position: absolute;
    inset: 0;
    display: flex;
    font-family: var(--font-sans);
    font-size: 10px;
    line-height: 1.35;
    color: var(--ink-muted);
    background: #f3f6f9;
}

.hero-mock--mgmt .hero-mock-nav {
    width: 28%;
    min-width: 120px;
    padding: 10px 8px;
    background: #fff;
    border-right: 1px solid var(--border);
    flex-shrink: 0;
}

.hero-mock-brand {
    font-weight: 700;
    font-size: 11px;
    color: var(--ink);
    margin-bottom: 10px;
}

.hero-mock-nav-h {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    margin-bottom: 6px;
}

.hero-mock-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero-mock-links li {
    padding: 5px 6px;
    border-radius: 5px;
    margin-bottom: 3px;
    font-size: 9px;
}

.hero-mock-links li.is-active {
    background: rgba(30, 136, 210, 0.12);
    color: var(--brand-deep);
    font-weight: 600;
}

.hero-mock-links li.is-muted {
    color: var(--ink-soft);
}

.hero-mock-body {
    flex: 1;
    padding: 12px 14px;
    overflow: hidden;
}

.hero-mock-head h4 {
    margin: 0;
    font-size: 13px;
    color: var(--ink);
}

.hero-mock-sub {
    margin: 3px 0 10px;
    font-size: 9px;
    color: var(--ink-soft);
}

.hero-mock-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-mock-card {
    position: relative;
    padding: 10px 11px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.hero-mock-pill {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 7px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 999px;
}

.hero-mock-pill--ok {
    background: #e8f5e9;
    color: #2e7d32;
}

.hero-mock-card-title {
    margin: 0 56px 4px 0;
    font-size: 10px;
    font-weight: 600;
    color: var(--ink);
}

.hero-mock-card-meta {
    margin: 0;
    font-size: 9px;
    color: var(--ink-soft);
}

.hero-mock--analytics {
    flex-direction: column;
    padding: 12px 14px;
    background: linear-gradient(180deg, #fafcfe 0%, #eef3f8 100%);
}

.hero-mock-analytics-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.hero-mock-analytics-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
}

.hero-mock-select {
    font-size: 9px;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--ink-soft);
}

.hero-mock-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.hero-mock-kpi {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 8px 9px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.hero-mock-kpi-lbl {
    display: block;
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-soft);
    margin-bottom: 4px;
}

.hero-mock-kpi-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}

.hero-mock-chart {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px;
    min-height: 72px;
    padding: 8px 4px 0;
    border-top: 1px dashed var(--border);
}

.hero-mock-bar {
    flex: 1;
    max-width: 36px;
    height: var(--h, 50%);
    background: linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%);
    border-radius: 4px 4px 0 0;
    opacity: 0.88;
}

.hero-mock-chart-axis {
    margin: 8px 0 0;
    font-size: 8px;
    color: var(--ink-soft);
    text-align: center;
}

@media (max-width: 520px) {
    .hero-mock-kpis {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-shot-slide {
        transition: none;
    }

    .hero-shot-img--motion {
        display: none !important;
    }
}

/* Hero screenshot — enlarged modal */
.hero-shot-dialog {
    padding: 0;
    border: none;
    margin: 0;
    max-width: none;
    max-height: none;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: transparent;
}

.hero-shot-dialog::backdrop {
    background: rgba(15, 41, 66, 0.58);
    backdrop-filter: blur(3px);
}

.hero-shot-dialog-layout {
    box-sizing: border-box;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 3vw, 2rem);
}

.hero-shot-dialog-panel {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: min(96vw, 1100px);
    width: 100%;
    padding: 1rem 1rem 1.15rem;
}

.hero-shot-dialog-close {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    color: var(--ink-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 120ms ease, color 120ms ease;
    z-index: 2;
}

.hero-shot-dialog-close:hover {
    background: var(--surface);
    color: var(--ink);
}

.hero-shot-dialog-heading {
    margin: 0 2.75rem 0.65rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
}

.hero-shot-dialog-figure {
    margin: 0;
}

.hero-shot-carousel--modal .hero-shot-viewport {
    max-height: min(52vh, 540px);
}

.hero-shot-stack--modal {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.hero-shot-stack--modal .hero-shot-img--modal-motion {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0;
    transition: opacity 240ms ease;
    pointer-events: none;
}

.hero-shot-carousel--modal .hero-shot-slide.is-active .hero-shot-stack--modal:hover .hero-shot-img--modal-motion,
.hero-shot-carousel--modal .hero-shot-slide.is-active .hero-shot-stack--modal:focus-within .hero-shot-img--modal-motion {
    opacity: 1;
}

.hero-shot-dialog-caption {
    margin: 0.65rem 0 0;
    font-size: 0.82rem;
    color: var(--ink-soft);
    line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
    .hero-shot-img--modal-motion {
        display: none !important;
    }
}

/* Features */

.features {
    padding: 5.5rem 0 6rem;
    background: var(--surface-alt);
    border-top: 1px solid var(--border);
}

.section-head {
    text-align: center;
    max-width: 38rem;
    margin: 0 auto 3rem;
}

.section-head .eyebrow {
    margin-bottom: 0.75rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: transform 520ms cubic-bezier(.22, 1, .36, 1),
                box-shadow 520ms ease,
                border-color 520ms ease;
    overflow: hidden;
}

.feature-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
        rgba(30, 136, 210, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 420ms ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: #c9d4e1;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 0.98rem;
}

/* Reveal-on-hover preview using grid-template-rows 0fr → 1fr trick */
.feature-preview-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 520ms cubic-bezier(.22, 1, .36, 1);
}

.feature-preview {
    overflow: hidden;
    min-height: 0;
}

.feature-preview-inner,
.feature-preview > .mockup {
    margin-top: 1rem;
    transform: translateY(6px);
    opacity: 0;
    transition: transform 520ms cubic-bezier(.22, 1, .36, 1) 90ms,
                opacity 400ms ease 90ms;
}

.feature-card:hover .feature-preview-wrap,
.feature-card:focus-within .feature-preview-wrap {
    grid-template-rows: 1fr;
}

.feature-card:hover .feature-preview > .mockup,
.feature-card:focus-within .feature-preview > .mockup {
    transform: none;
    opacity: 1;
}

/* Mini Engage mockups — pure CSS preview cards */
.mockup {
    background: linear-gradient(180deg, #fafcfe 0%, #f5f8fb 100%);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 0.85rem 0.85rem;
    font-size: 0.78rem;
    color: var(--ink-muted);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.mockup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.55rem;
}

.mockup-title {
    font-weight: 600;
    color: var(--ink);
    font-size: 0.78rem;
}

.mockup-pill {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #e9eef5;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mockup-pill--accent {
    background: var(--accent-soft);
    color: #4a6f1d;
}

.mockup-pill--warn {
    background: #fff1d6;
    color: #9a5a00;
}

.mockup-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mockup-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.74rem;
}

.mockup-name {
    flex: 1;
    color: var(--ink);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mockup-meta {
    color: var(--ink-soft);
    font-size: 0.7rem;
}

.mockup-meta--alert {
    color: #c62828;
    font-weight: 600;
}

.mockup-meta--ok {
    color: #2e7d32;
    font-weight: 600;
}

.mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mockup-dot--live {
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.18);
    animation: mockup-pulse 2s ease-in-out infinite;
}

.mockup-dot--queued {
    background: #c4ccd6;
}

.mockup-vin {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.7rem;
    color: var(--ink-soft);
    flex-shrink: 0;
}

.mockup-channels {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mockup-channels li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.6rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.78rem;
    color: var(--ink);
    font-weight: 500;
}

.mockup-channel-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-alt);
    border-radius: 5px;
    color: var(--brand);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.mockup-toggle {
    margin-left: auto;
    width: 28px;
    height: 16px;
    border-radius: 999px;
    background: #d6dee8;
    position: relative;
    transition: background 200ms ease;
    flex-shrink: 0;
}

.mockup-toggle::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    transition: left 220ms cubic-bezier(.2,.8,.2,1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.mockup-channels li.is-on .mockup-toggle {
    background: var(--brand);
}

.mockup-channels li.is-on .mockup-toggle::after {
    left: 14px;
}

@keyframes mockup-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.18); }
    50% { box-shadow: 0 0 0 6px rgba(139, 195, 74, 0.05); }
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--brand);
    margin-bottom: 1.25rem;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

/* Footer */

.site-footer {
    background: #0F2942;
    color: #c5d2e0;
    padding: 4rem 0 1.75rem;
}

.site-footer h4 {
    color: #fff;
}

.site-footer a {
    color: #c5d2e0;
}

.site-footer a:hover {
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand img {
    height: 38px;
    width: auto;
    background: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.footer-tag {
    font-size: 0.95rem;
    color: #92a3b6;
    max-width: 32ch;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-base {
    padding-top: 1.5rem;
    color: #7a8aa0;
    font-size: 0.85rem;
}

.footer-base a {
    color: #c5d2e0;
}

.footer-base a:hover {
    color: #fff;
}

.site-footer--compact {
    margin-top: 0;
}

.site-footer--compact .footer-base {
    border-top: none;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.container.narrow {
    max-width: 720px;
}

.page-inner .inner-main {
    padding-bottom: 0;
}

.inner-main {
    padding-top: 0.5rem;
}

.about-hero,
.demo-hero {
    padding: 2.5rem 0 1.5rem;
    background: linear-gradient(180deg, var(--surface-alt) 0%, var(--surface) 100%);
}

.about-band,
.demo-panel {
    padding: 2rem 0 4rem;
}

.body-quiet {
    margin: 1rem 0 0;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.body-quiet a {
    color: var(--brand-deep);
    font-weight: 600;
}

.about-list {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    color: var(--ink-muted);
}

.about-list li {
    margin-bottom: 0.75rem;
}

.about-principles {
    padding: 3rem 0 4rem;
    background: var(--surface-alt);
}

.principle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.principle-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
    box-shadow: var(--shadow-sm);
}

.about-cta {
    padding: 3.5rem 0 4rem;
}

.about-cta-inner {
    text-align: center;
}

.about-cta .btn {
    margin-top: 1rem;
}

.testimonials-hero {
    padding: 2.5rem 0 1.5rem;
    background: linear-gradient(180deg, var(--surface-alt) 0%, var(--surface) 100%);
}

.testimonials-list {
    padding: 1rem 0 3.5rem;
}

.section-head--tight {
    margin-bottom: 1.75rem;
}

.testimonials-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 860px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.75rem;
    }

    .testimonial-card--wide {
        grid-column: 1 / -1;
        max-width: 880px;
        margin-inline: auto;
        width: 100%;
    }
}

.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--ink);
    box-shadow: var(--shadow-md);
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-embed--still {
    background: var(--surface-alt);
}

.video-embed--still img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.testimonial-quote {
    margin: 0;
    padding: 0;
    border: 0;
}

.testimonial-quote p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--ink-muted);
}

.testimonial-attrib {
    margin-top: auto;
    padding-top: 0.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.testimonial-attrib strong {
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95rem;
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.testimonials-teaser {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--surface-alt) 0%, #eef6fc 55%, var(--surface-alt) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.testimonials-teaser-inner {
    display: flex;
    justify-content: center;
    text-align: center;
}

.testimonials-teaser-copy {
    max-width: 560px;
}

.testimonials-teaser-lede {
    margin-bottom: 1.35rem;
    color: var(--ink-muted);
}

.demo-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow-md);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: var(--ink-muted);
}

.field-span-2 {
    grid-column: span 2;
}

.field-label {
    font-weight: 600;
    color: var(--ink);
}

.req {
    color: var(--brand-deep);
}

.hint-inline {
    font-weight: 400;
    color: var(--ink-soft);
    font-size: 0.82rem;
}

.field input,
.field textarea {
    font: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.65rem;
    color: var(--ink);
    background: #fff;
}

.field textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.9rem;
    color: var(--ink-muted);
    cursor: pointer;
}

.checkbox-field input {
    margin-top: 0.2rem;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.form-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-status--pending {
    color: var(--ink-soft);
}

.form-status--success {
    color: #2e7d32;
}

.form-status--error {
    color: #c62828;
}

/* Stats strip */

.stats-strip {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2.75rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.5rem 1.5rem;
    border-right: 1px solid var(--border);
}

.stat:last-child {
    border-right: none;
}

.stat-num {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 0.4rem;
}

.stat-sup {
    font-size: 0.6em;
    vertical-align: super;
    font-weight: 600;
    color: var(--brand);
}

.stat-label {
    font-size: 0.83rem;
    color: var(--ink-soft);
    font-weight: 500;
    line-height: 1.4;
    max-width: 14ch;
}

/* Pre-footer CTA band */

.cta-band {
    background: var(--brand);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 120% at 100% 50%, rgba(255, 255, 255, 0.10), transparent 55%),
        radial-gradient(ellipse 40% 80% at 0% 80%, rgba(139, 195, 74, 0.18), transparent 50%);
    pointer-events: none;
}

.cta-band-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.cta-band-copy h2 {
    color: #fff;
    margin-bottom: 0.4rem;
    font-size: clamp(1.5rem, 2.8vw, 2.25rem);
}

.cta-band-copy p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 1rem;
    max-width: 44ch;
}

.btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    background: #fff;
    color: var(--brand-deep);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 160ms ease, transform 120ms ease, box-shadow 160ms ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.20);
}

.btn-white:hover {
    background: #f0f5fa;
    color: var(--brand-deep);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

/* Mobile */

@media (max-width: 860px) {
    .hero {
        padding: 3rem 0 3rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .window-content {
        --engage-scale: 0.26;
    }

    .window-url {
        font-size: 0.7rem;
        max-width: 50%;
    }

    .features {
        padding: 4rem 0 4.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        z-index: 30;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 1.5rem 1.25rem;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: saturate(180%) blur(10px);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    .site-header.nav-open .nav-links {
        display: flex;
    }

    .nav-links a:not(.btn) {
        display: block;
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links .btn {
        margin-top: 0.75rem;
        width: 100%;
        justify-content: center;
    }

    .principle-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field-span-2 {
        grid-column: auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
        background: var(--border);
    }

    .stat {
        background: var(--surface);
        border-right: none;
        padding: 1.25rem 1rem;
    }

    .cta-band {
        padding: 3.5rem 0;
    }

    .cta-band-inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .cta-band-copy p {
        margin: 0 auto;
    }
}

/* Defensive form layout — fallback if grid ever fails to apply.
   The .field stays a flex column so labels never inline next to inputs. */
.demo-form .field {
    display: flex;
    flex-direction: column;
}

.demo-form .field input,
.demo-form .field textarea {
    width: 100%;
}

/* Scroll-triggered reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms ease, transform 600ms cubic-bezier(.2,.8,.2,1);
    will-change: opacity, transform;
}

[data-reveal].is-revealed {
    opacity: 1;
    transform: none;
}

[data-reveal][data-reveal-delay="1"] { transition-delay: 80ms; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 180ms; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 280ms; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 380ms; }

/* Why Engage — slower, smoother scroll reveals than global defaults */
.features [data-reveal] {
    transform: translateY(14px);
    transition: opacity 900ms ease-out, transform 900ms cubic-bezier(.22, 1, .36, 1);
}

.features [data-reveal][data-reveal-delay="1"] { transition-delay: 140ms; }
.features [data-reveal][data-reveal-delay="2"] { transition-delay: 300ms; }
.features [data-reveal][data-reveal-delay="3"] { transition-delay: 460ms; }

/* Subtle hero float — drifts the screenshot frame so the hero feels alive */
.hero-figure .window-frame {
    animation: hero-float 7s ease-in-out infinite alternate;
}

@keyframes hero-float {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(0, -8px, 0); }
}

/* Respect users who don't want motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .feature-card:hover {
        transform: none;
    }

    .hero-figure .window-frame {
        animation: none;
    }

    .how-step:hover {
        transform: none;
    }

    .how-step.is-revealed .how-mock--steps > .how-mock-tag,
    .how-step.is-revealed .how-mock--steps > .how-mock-title,
    .how-step.is-revealed .how-mock--steps ul li {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
