/* ============================================================
   1. RESET & BASE
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background: #FEFEFE;
    color: #191c1f;
    font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }


/* ============================================================
   2. DESIGN TOKENS
:root {
    /* ====== Atticus Design System tokens (atticus-ds.css) ====== */
    /* Blue → violet ramp */
    --c-brand-900: #3a52d6;   /* accent-ink */
    --c-brand-800: #3f57e8;
    --c-brand-700: #4f6ef7;   /* b-600 / accent */
    --c-brand-600: #5a78f0;   /* b-500 */
    --c-brand-500: #7492fd;   /* b-400 */
    --c-brand-400: #8ca8e7;   /* b-300 */
    --c-brand-300: #b0d2fc;   /* b-200 */
    --c-brand-200: #c0e2fb;   /* b-100 */
    --c-brand-100: #e9f1ff;   /* light wash */
    --c-accent:        #4f6ef7;   /* interactive blue */
    --c-accent-ink:    #3a52d6;
    --c-accent-violet: #6f8efb;
    --c-btn:           #0d0d0d;   /* solid — buttons/icons */

    /* Ink + neutrals */
    --c-n900: #161617;   /* ink */
    --c-n800: #161617;
    --c-n700: #3a3a40;
    --c-n600: #5b5b60;   /* ink-2 */
    --c-n500: #5b5b60;   /* ink-2 (secondary) */
    --c-n400: #6f6f75;
    --c-n300: #8a8a90;   /* ink-3 (tertiary) */
    --c-n200: #8a8a90;
    --c-n100: #a0a0a6;
    --c-g500: #ACACAC;
    --c-g400: #B5B5B5;
    --c-g300: #C7C7C7;
    --c-g200: #e6e6e6;   /* hairline */
    --c-g100: #eeeeef;   /* hairline-soft */
    --c-g50:  #f5f6f6;   /* sidebar / soft surface */
    --c-white:   #ffffff;   /* surface (cards) */
    --c-surface: #fefefe;   /* canvas */
    --c-blue-xs: #e9f1ff;
    --c-hairline: #e6e6e6;

    /* Status (clinical / data) */
    --c-ok: #1f9d57;  --c-ok-bg: #e7f6ec;
    --c-warn: #c98a16; --c-warn-bg: #fbf1dc;
    --c-err: #d2493f; --c-err-bg: #fbe9e7;

    /* Signature gradients */
    --grad-mesh:
        radial-gradient(120% 120% at 8% 0%, #e9f1ff 0%, rgba(233,241,255,0) 45%),
        radial-gradient(120% 130% at 100% 18%, #7492fd 0%, rgba(116,146,253,0) 55%),
        radial-gradient(140% 140% at 78% 100%, #4f6ef7 0%, rgba(79,110,247,0) 55%),
        linear-gradient(135deg, #b9d6fb 0%, #8ca8e7 55%, #6f8efb 100%);
    --grad-vivid: linear-gradient(140deg, #6f8efb 0%, #4f6ef7 48%, #3f57e8 100%);

    /* Glass */
    --glass-fill: rgba(255,255,255,0.55);
    --glass-fill-strong: rgba(255,255,255,0.72);
    --glass-stroke: rgba(255,255,255,0.65);
    --glass-blur: 22px;

    /* Elevation (DS e1/e2/e3 + glass) */
    --shadow-xs:  0 1px 2px rgba(22,22,23,.05), 0 1px 3px rgba(22,22,23,.04);
    --shadow-sm:  0 2px 6px rgba(22,22,23,.06), 0 8px 24px rgba(22,22,23,.06);
    --shadow-md:  0 2px 6px rgba(22,22,23,.06), 0 8px 24px rgba(22,22,23,.06);
    --shadow-lg:  0 8px 24px rgba(22,22,23,.08), 0 24px 60px rgba(22,22,23,.10);
    --shadow-xl:  0 8px 24px rgba(22,22,23,.08), 0 24px 60px rgba(22,22,23,.10);
    --shadow-glass: 0 12px 40px rgba(60,82,160,.18), inset 0 1px 0 rgba(255,255,255,.5);

    /* Radius (DS) */
    --r-sm:   8px;
    --r-md:   12px;
    --r-lg:   16px;
    --r-xl:   22px;
    --r-2xl:  28px;
    --r-full: 9999px;
    --ease: cubic-bezier(0.2, 0, 0, 1);
}


/* ============================================================
   3. TYPOGRAPHY — single-family system (Hanken Grotesk)
   Matches the patient app: no serif, crisp zero tracking.
.t-sans {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-style: normal;
}

.t-serif {
    font-family: 'Hanken Grotesk', system-ui, sans-serif;
    font-style: normal;
    font-weight: 400;
}


/* ============================================================
   4. LAYOUT PRIMITIVES
.section-inner {
    width: 100%;
    max-width: 1300px;
    margin-inline: auto;
    padding-inline: 30px;
}

.section { position: relative; overflow: hidden; }

.section-eyebrow {
    font-size: 12px;
    font-weight: 500;
    line-height: 14.6px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-brand-300);
    margin-bottom: 14px;
}

.section-title {
    text-wrap: balance;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--c-n900);
    margin-bottom: 20px;
}

.section-desc {
    text-wrap: pretty;
    font-size: 16px;
    font-weight: 400;
    line-height: 25px;
    color: var(--c-n500);
    max-width: 520px;
}

/* Headings balance their line breaks; body copy avoids orphans */
.hero-headline .t-sans { white-space: nowrap; }

/* On small screens a forced single line overflows the viewport and the
   body's overflow-x:hidden clips the whole hero — let lines wrap */
@media (max-width: 700px) {
    .hero-headline .t-sans { white-space: normal; }
}

.hero-headline,
.infra-title,
.cm-title,
.delegated-title,
.features-headline,
.flow-title {
    text-wrap: balance;
}

.hero-desc,
.infra-desc,
.cm-desc,
.flow-desc,
.delegated-desc,
.features-desc {
    text-wrap: pretty;
}

.section-header { margin-bottom: 56px; }

.section-header--center {
    text-align: center;
}

.section-header--center .section-desc {
    margin-inline: auto;
}

/* Video wrapper */
.video-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--r-xl);
}

.video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 600ms var(--ease);
}

.video-wrap video.playing { opacity: 1; }

/* Shared button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 8px 0 24px;
    border-radius: var(--r-full);
    background: var(--c-n900);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    transition: background 150ms var(--ease), transform 150ms var(--ease);
}

.btn-primary:hover {
    background: var(--c-n800);
    transform: translateY(-1px);
}

.btn-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--c-n900);
    flex-shrink: 0;
}


/* ============================================================
   5. HEADER / NAV
   Height: 88px | Logo: 145×35 x=32
   Links: gap=29px | 16px #000 fw400
   CTA: 139×45 r=30 — BLUE accent
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 88px;
    background: transparent;            /* full-bleed: mesh shows behind the nav */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    transition:
        top    400ms var(--ease),
        left   400ms var(--ease),
        right  400ms var(--ease),
        height 400ms var(--ease),
        border-radius 400ms var(--ease),
        background    300ms var(--ease),
        box-shadow    300ms var(--ease);
}

/* Floating pill on scroll — max 1300px wide, centered on large screens */
.site-header.scrolled {
    top: 12px;
    left:  max(24px, calc((100vw - 1300px) / 2));
    right: max(24px, calc((100vw - 1300px) / 2));
    height: 62px;
    border-radius: 18px;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow:
        0 0 0 1px rgba(25,28,31,0.06),
        0 4px 12px rgba(25,28,31,0.06),
        0 16px 48px rgba(25,28,31,0.10);
}

.header-inner {
    display: flex;
    align-items: center;
    height: 88px;
    max-width: 1300px;
    margin-inline: auto;
    padding-left: 32px;
    padding-right: 27px;
    transition: height 400ms var(--ease), padding 400ms var(--ease);
}

/* Only the height + chrome change on scroll — padding stays put so the
   nav items don't re-center / shift horizontally. */
.site-header.scrolled .header-inner {
    height: 62px;
}

.nav-logo {
    width: 124px;
    height: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.nav-logo-img {
    width: 124px;
    height: 30px;
    display: none;
    filter: brightness(0);   /* render the logo solid black */
}

.nav-logo-img.img-loaded { display: block; }

.nav-logo-fallback {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.6px;
    color: #060607;
    line-height: 1;
}

.nav-logo-img.img-loaded + .nav-logo-fallback { display: none; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    font-size: 16px;
    font-weight: 500;
    line-height: 17.6px;
    letter-spacing: 0.01em;
    color: rgba(22,22,23,0.78);
    white-space: nowrap;
    transition: color 200ms var(--ease);
}

.nav-links a:hover { color: #000000; }
.nav-links a.nav-active { color: #000000; font-weight: 500; }

/* Mobile menu button — hidden on desktop, shown ≤768px */
.nav-cta-mobile { display: none; }

.nav-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #000000;
    cursor: pointer;
    padding: 0;
}

/* CTA — gradient */
.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 16px;
    height: 36px;
    border-radius: var(--r-full);
    background: var(--c-btn);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    color: #FFFFFF;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(25,28,31,0.12);
    transition: box-shadow 150ms var(--ease), transform 150ms var(--ease);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(25,28,31,0.22);
}


/* ============================================================
   6. HERO / BANNER
   Section: 1300×964 | Card: 1241×839 r=23
   Card bg: light blue → lavender gradient (Lottie fills as overlay)
   Content: top text / bottom (left CTAs + right pills)
   animation-1.mp4 → ambient bg
/* Hero — FULL-BLEED animated mesh; 2-col content (copy left, big loop right) */
.section-hero {
    position: relative;
    overflow: hidden;
    background-color: #6f8efb;
}

/* Full-bleed animated DS grad-mesh + left light wash so the copy stays legible */
.section-hero::before {
    content: "";
    position: absolute;
    inset: -12%;
    z-index: 0;
    background-color: #6f8efb;
    background-image:
        radial-gradient(72% 86% at -2% 32%, rgba(247,248,255,0.90) 0%, rgba(247,248,255,0) 56%),
        url("assets/img/gen/hero-mesh.jpg");
    background-size: cover;
    background-position: center;
    animation: heroMeshBreathe 18s ease-in-out infinite alternate;
}
@keyframes heroMeshBreathe {
    0%   { transform: scale(1.02) translate3d(0, 0, 0); }
    100% { transform: scale(1.18) translate3d(-3.5%, -2%, 0); }
}

/* Overlays move the OPPOSITE way — during each cross-fade the two textures
   slide against each other, which reads as living material, not rocking */
@keyframes heroMeshBreatheAlt {
    0%   { transform: scale(1.18) translate3d(2.5%, 1.5%, 0); }
    100% { transform: scale(1.02) translate3d(-1%, -0.5%, 0); }
}

/* Bottom fade — full-bleed mesh dissolves into the white section below */
.hero-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;   /* overlap the section edge — kills the zoom-rounding hairline */
    height: 34%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #FFFFFF 94%, #FFFFFF 100%);
}
/* Cross-fading photo variants — each carries its own legibility wash and the
   same slow breathe, so the texture itself transforms (54s cycle, 3 frames) */
.hero-mesh-alt {
    position: absolute;
    inset: -12%;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    animation:
        heroMeshBreatheAlt 18s ease-in-out infinite alternate,
        heroMeshFade 24s linear infinite;
}

.hero-mesh-alt--2 {
    background-image:
        radial-gradient(72% 86% at -2% 32%, rgba(247,248,255,0.90) 0%, rgba(247,248,255,0) 56%),
        url("assets/img/gen/hero-mesh-2.jpg");
}

.hero-mesh-alt--3 {
    background-image:
        radial-gradient(72% 86% at -2% 32%, rgba(247,248,255,0.90) 0%, rgba(247,248,255,0) 56%),
        url("assets/img/gen/hero-mesh-3.jpg");
    animation-delay: 0s, 8s;
}

@keyframes heroMeshFade {
    0%, 24%   { opacity: 0; }
    34%, 57%  { opacity: 1; }
    67%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .section-hero::before { animation: none; }
    .hero-mesh-alt { animation: none; opacity: 0; }
}

/* Paper grain */
.section-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.08;
    mix-blend-mode: soft-light;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1340px;
    margin: 0 auto;
    padding: 132px 32px 96px;
    display: grid;
    grid-template-columns: 0.66fr 1.34fr;
    align-items: center;
    gap: 24px;
    min-height: 94vh;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 22px;
    animation: heroCardIn 600ms var(--ease) both;
}

@keyframes heroCardIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.hero-headline {
    font-size: clamp(40px, 4.6vw, 60px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--c-n900);
}
.hero-headline .t-sans { font-weight: 400; font-size: inherit; }

.hero-desc {
    font-size: 19px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--c-n700);
    max-width: 480px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.hero-actions .hero-cta-btn { width: auto; }

.hero-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--c-n900);
    transition: gap 150ms var(--ease);
}
.hero-ghost svg { width: 16px; height: 16px; }
.hero-ghost:hover { gap: 10px; }

/* Right: BIG loop directly on the full-bleed mesh (no card) */
.hero-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: visible;
    animation: heroCardIn 700ms var(--ease) both;
}

/* CTA button: off-black pill */
.hero-cta-btn {
    width: 172px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 54px;
    padding: 4px 11px 4px 30px;
    border-radius: var(--r-full);
    background: var(--c-btn);
    border: none;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(25,28,31,0.12);
    transition: transform 150ms var(--ease), box-shadow 150ms var(--ease);
}

.hero-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(25,28,31,0.22);
}

.hero-cta-btn:active { transform: scale(0.97); }

.hero-cta-label { flex-shrink: 0; font-size: 18px;}

.hero-arrow-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--c-btn);
    flex-shrink: 0;
}

/* Scroll button — replaced by arrow-down-btn.png */
.hero-scroll-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 53px;
    height: 53px;
    flex-shrink: 0;
    transition: opacity 150ms var(--ease), transform 150ms var(--ease);
}

.hero-scroll-btn:hover {
    opacity: 0.8;
    transform: translateY(2px);
}

.hero-scroll-btn img {
    width: 53px;
    height: 53px;
    display: block;
}

/* ============================================================
   6.5 LOGO MARQUEE — infinite slider
.section-logos {
    background: #FFFFFF;
    margin-top: -1px;       /* overlap any sub-pixel seam with the hero */
    padding: 88px 0 56px;   /* extra top gap below the hero tagline */
    overflow: hidden;
}

.logos-title {
    text-align: center;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--c-n900);
    margin-bottom: 38px;
}

/* Marquee viewport — fades edges */
.logos-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 98%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 3%, #000 98%, transparent);
}

/* Track holds 2 identical sets; animates -50% for seamless loop */
.logos-track {
    display: flex;
    align-items: center;
    width: max-content;
    height: 50px;
    animation: logosScroll 40s linear infinite;
}

.logos-marquee:hover .logos-track {
    animation-play-state: paused;
}

.logos-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 32px;
}

.logos-item img {
    width: auto;
    object-fit: contain;
    filter: grayscale(1) brightness(0.75);
    opacity: 0.85;
    transition: opacity 200ms var(--ease), filter 200ms var(--ease);
}

/* Per-logo heights (each logo appears twice → 6n+N targets both sets) */
.logos-item:nth-child(6n+1) img { height: 34px; }
.logos-item:nth-child(6n+2) img { height: 50px; }
.logos-item:nth-child(6n+3) img { height: 42px; }
.logos-item:nth-child(6n+4) img { height: 46px; }
.logos-item:nth-child(6n+5) img { height: 43px; }
.logos-item:nth-child(6n+6) img { height: 43px; }

.logos-item img:hover {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes logosScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}


/* ============================================================
   7. INFRASTRUCTURE — 3 numbered cards
   White bg | Split header: title left, desc right
   Cards with dashed icon circle + inner white card
   Talk to Us below cards | animation-5.mp4 below CTA
.section-infrastructure {
    background: #FFFFFF;
    padding: 128px 0;
}

/* Header: stacked left — title then desc */
.infra-header {
    margin-bottom: 64px;
    max-width: 520px;
}

.infra-title {
    font-size: clamp(34px, 3.6vw, 46px);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: var(--c-n900);
    margin-bottom: 20px;
}

.infra-desc {
    font-size: 16px;
    font-weight: 400;
    line-height: 25px;
    color: var(--c-n500);
}

/* 3-card grid */
.infra-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

/* Single clean white card — no nested surfaces */
.infra-card {
    background: var(--c-white);
    border-radius: var(--r-xl);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    border: 1px solid var(--c-hairline);
    box-shadow: var(--shadow-xs);
    transition:
        transform  220ms var(--ease),
        box-shadow 220ms var(--ease);
}

.infra-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Top row: number left — icon tile right */
.infra-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.infra-num {
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--c-n300);
    font-variant-numeric: tabular-nums;
}

/* OpenAI-style icon tile — white rounded square, hairline, monoline ink glyph */
.icon-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--c-g50);
    border: 1px solid var(--c-hairline);
    flex-shrink: 0;
    color: var(--c-n900);
}
.icon-tile svg { width: 22px; height: 22px; display: block; }

.infra-icon { width: 44px; height: 44px; }

/* Content (no inner card surface) */
.infra-card-inner {
    margin-top: auto;
}

.infra-card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--c-n900);
    margin-bottom: 8px;
}

.infra-card-desc {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--c-n500);
}



/* ============================================================
   8. FROM ENROLLMENT TO OUTCOMES
   White bg | Centered heading | 8-card video grid
.section-enrollment {
    background: #FEFEFE;
    padding: 128px 0;
}

/* Alternating feature rows — each animation paired with its explanation */
.flow {
    display: flex;
    flex-direction: column;
    gap: 112px;
    margin-bottom: 72px;
}

.flow-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
    align-items: center;
}

/* Alternate sides: even rows put the visual on the right, copy on the left */
.flow-row:nth-child(even) .flow-visual { order: 2; }

/* Single-clip visual = framed card sized to the clip (full-width, no letterbox) */
.flow-visual {
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1px solid var(--c-hairline);
    background: var(--c-g50);
    box-shadow: var(--shadow-md);
}

.flow-visual .video-wrap {
    border-radius: inherit;
    width: 100%;
}
.flow-visual video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.flow-copy { max-width: 460px; }
.flow-step {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-accent);
    margin-bottom: 14px;
    font-variant-numeric: tabular-nums;
}
.flow-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: -0.02em;
    color: var(--c-n900);
    margin-bottom: 14px;
}
.flow-desc {
    font-size: 18px;
    line-height: 1.55;
    color: var(--c-n500);
}



/* ============================================================
   9. BUILT FOR EVERY CARE MODEL — DARK
   bg: #060607 | 2×2 card grid
   animation-2 / animation-6 inside cards
/* ============================================================
   9. BUILT FOR EVERY CARE MODEL
   White bg | Split header | 2×2 detail cards | gradient banner
.section-care-model {
    background: #FFFFFF;
    padding: 128px 0;
}

/* Split header */
.cm-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: end;
    margin-bottom: 56px;
}

.cm-title {
    font-size: clamp(34px, 3.6vw, 46px);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: var(--c-n900);
    flex-shrink: 0;
}

.cm-desc {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--c-n500);
    max-width: 440px;
    text-align: left;
}

/* 2×2 grid */
.cm-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

/* Card — single white surface, hairline dividers (no nested panels) */
.cm-card {
    background: var(--c-white);
    border: 1px solid var(--c-hairline);
    border-radius: var(--r-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xs);
    transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.cm-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* Card head: icon + title */
.cm-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 24px;
}

.cm-card-icon { width: 44px; height: 44px; }

.cm-head-ic { width: 18px; height: 18px; flex-shrink: 0; color: var(--c-n300); }
.cm-loop-ic { width: 16px; height: 16px; flex-shrink: 0; color: var(--c-n500); }

.cm-card-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: var(--c-n900);
}

/* Card body: Pain + Outputs columns — flat, divided by a hairline */
.cm-card-body {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--c-hairline);
    flex: 1;
}

/* Shared header row */
.cm-body-head {
    display: grid;
    grid-template-columns: 58fr 42fr;
    border-bottom: 1px solid var(--c-hairline);
}

.cm-col-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--c-n700);
    padding: 14px 24px;
}

/* List content row */
.cm-body-content {
    display: grid;
    grid-template-columns: 58fr 42fr;
    flex: 1;
}

.cm-list {
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cm-list li {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--c-n500);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* Bullet dot replaces the old ellipse PNG */
.cm-list li::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--c-accent);
    flex-shrink: 0;
    margin-top: 7px;
}

/* Card footer: Loop Focus + View Detail — divided by a hairline, no inner card */
.cm-card-footer {
    border-top: 1px solid var(--c-hairline);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cm-loop-focus {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.cm-loop-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--c-n500);
}

.cm-loop-stage {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 400;
    color: #000;
}


/* Bottom gradient banner */
.cm-banner-wrap {
    display: flex;
    justify-content: center;
}

.cm-banner {
    font-size: 18px;
    font-weight: 400;
    color: var(--c-n500);
    text-align: center;
    text-wrap: balance;
    max-width: 620px;
}

.cm-banner strong {
    font-weight: 600;
    color: var(--c-n900);
}


/* ============================================================
   10. STOP STAFFING / START DELEGATING
   Full-width gradient card | Left: animation-8 | Right: text + pills
.section-delegated {
    background: #FEFEFE;
    padding: 0 0 96px;
}

/* Design-system grad-mesh card — ROI calc left, pitch right */
.delegated-card {
    position: relative;
    display: grid;
    grid-template-columns: 52fr 48fr;
    border-radius: var(--r-2xl);
    overflow: hidden;
    border: 1px solid var(--c-hairline);
    min-height: 540px;
    align-items: stretch;
    background-color: #eef2ff;
    background-image:
        radial-gradient(85% 95% at -5% 62%, #4f6ef7 0%, rgba(79,110,247,0) 58%),    /* blue pooled left (behind glass calc) */
        radial-gradient(55% 65% at 10% 8%, #7492fd 0%, rgba(116,146,253,0) 55%),
        radial-gradient(80% 85% at 102% 96%, #e9f1ff 0%, rgba(233,241,255,0) 55%),  /* light right (behind ink pitch) */
        linear-gradient(118deg, #6f8efb 0%, #9fb4f5 46%, #eef2ff 100%);
}

/* Paper grain */
.delegated-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.05;
    mix-blend-mode: soft-light;
}
.delegated-left, .delegated-right { position: relative; z-index: 1; }

/* Left: ROI calculator */
.delegated-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px 40px;
    height: 100%;
}


/* Right: content column — vertically centered */
.delegated-right {
    height: 100%;
    padding: 56px 56px 56px 85px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    position: relative;
}

/* Heading */
.delegated-title {
    font-size: 39px;
    font-weight: 400;
    line-height: 1.03;
    letter-spacing: -0.04em;
    color: var(--c-n900);
}

.delegated-title .t-sans { font-weight: 400; }
.delegated-title .t-serif {  }

/* Body text */
.delegated-desc {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: #3E404B;
    max-width: 400px;
}

/* Buttons row — reuses hero-cta-btn + hero-scroll-btn */
.delegated-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}


/* ============================================================
   11. STATS / METRICS
   Left: 5 stat cards (2 numeric + 3 badge)
   Right: animation-4 + headline + desc
.section-metrics {
    background: #FFFFFF;
    padding: 96px 0 96px;
}

.metrics-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Left column: stat cards */
.metrics-cards-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-card {
    border-radius: var(--r-md);
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid var(--c-g100);
    background: var(--c-g50);
}

.stat-card--accent {
    background: var(--c-blue-xs);
    border-color: rgba(69, 111, 226, 0.15);
}

.stat-card--dark {
    background: var(--c-n900);
    border-color: transparent;
}

.stat-card--dark .stat-badge-label {
    color: #FFFFFF;
}

/* Numeric stat */
.stat-card--number { background: #FFFFFF; }

.stat-value {
    font-size: 40px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--c-n900);
}

.stat-label {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--c-n500);
}

/* Badge stat */
.stat-card--badge {
    background: var(--c-n900);
    border-color: transparent;
}

.stat-badge-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #FFFFFF;
    line-height: 1.4;
}

/* Right column: video + heading + desc */
.metrics-text-col {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: sticky;
    top: 120px;
}

.metrics-visual-wrap {
    border-radius: var(--r-xl);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--c-blue-xs);
    box-shadow: var(--shadow-lg);
}

.metrics-visual-wrap .video-wrap {
    height: 100%;
    border-radius: 0;
}

.metrics-headline {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--c-n900);
}

.metrics-headline .t-serif { color: var(--c-brand-700); }

.metrics-desc {
    font-size: 16px;
    font-weight: 400;
    line-height: 25px;
    color: var(--c-n500);
}


/* ============================================================
   12. FEATURE / STATS CARDS
   Left: 2+2+1 stat/badge cards | Right: heading + desc
   Card layout: title top-left, icon bottom-right (dashed circle), label bottom-left
.section-features {
   padding: 128px 0;
}

.features-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: end;
    margin-bottom: 48px;
}

.features-header .features-desc {
    max-width: 440px;
    justify-self: end;
}

/* Trust-logo tiles: full-width 4-col grid, wide tiles span 2
   (assets/img/gen/trust-*.jpg) */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.trust-tile {
    position: relative;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    transition:
        transform  650ms var(--ease),
        box-shadow 650ms var(--ease);
}

.trust-tile-wide {
    grid-column: span 2;
    aspect-ratio: 2.05 / 1;
}

.trust-tile:hover {
    transform: translateY(-5px);
    box-shadow:
        0 4px 12px rgba(0,0,0,0.03),
        0 8px 20px rgba(0,0,0,0.03);
}

.trust-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right: heading + desc — aligned to bottom of grid */
.features-headline {
    font-size: clamp(34px, 3.6vw, 46px);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: var(--c-n900);
}

.features-headline .t-sans { font-weight: 400; }
.features-headline .t-serif { color: var(--c-n900); }

.features-desc {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    color: var(--c-n500);
}


/* ============================================================
   13. FOOTER
   Page bg: light blue/lavender gradient
   Dark card: bg=#112C57 r=24
   Watermark: "atticus" outline text (absolute, bottom-right)
   Layout: logo | 4 nav cols | social icons
   Bottom: copyright + legal links
/* ============================================================
   FOOTER — card on a pink/purple mesh (no grid), watermark wordmark
.site-footer {
    background: var(--c-surface);
    padding: 56px 0 36px;
}

.footer-inner {
    max-width: 1300px;
    margin-inline: auto;
    padding-inline: 28px;
}

/* GPT-style warm mesh card — pink base, white petal blooms, peach glow, gold center.
   The mesh lives on an oversized ::before that drifts slowly, like the hero. */
.footer-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-2xl);
    padding: 52px 56px 56px;
    background-color: #f4a4b4;
}

.footer-card::before {
    content: "";
    position: absolute;
    inset: -18%;
    z-index: 0;
    background-color: #f4a4b4;
    background-image:
        radial-gradient(24% 28% at 56% 96%, rgba(247,191,56,0.80) 0%, rgba(247,191,56,0) 60%),
        radial-gradient(56% 64% at 68% 102%, rgba(255,235,238,0.88) 0%, rgba(255,235,238,0) 62%),
        radial-gradient(48% 60% at 16% 92%, rgba(255,226,232,0.80) 0%, rgba(255,226,232,0) 60%),
        radial-gradient(40% 52% at 96% 2%, rgba(247,166,116,0.85) 0%, rgba(247,166,116,0) 58%),
        linear-gradient(150deg, #f7afbe 0%, #f3a0b2 52%, #f4a8a6 100%);
    animation: footerMeshDrift 20s ease-in-out infinite alternate;
}

@keyframes footerMeshDrift {
    0%   { transform: scale(1) translate3d(0, 0, 0); }
    100% { transform: scale(1.12) translate3d(2.2%, -1.4%, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .footer-card::before { animation: none; }
}

/* Watermark wordmark — bottom-right, clipped by the card */
.footer-watermark {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    pointer-events: none;
    line-height: 0;
    opacity: 0.5;
}
.footer-watermark img {
    width: 560px;
    max-width: none;
    height: auto;
    display: block;
    filter: brightness(0) invert(1);   /* white wireframe wordmark */
}

.footer-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.footer-nav-cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 168px));
    gap: 28px;
}

.footer-nav-group { display: flex; flex-direction: column; gap: 14px; }

.footer-nav-label {
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: 0;
}

.footer-nav { display: flex; flex-direction: column; gap: 11px; }

.footer-nav a {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: rgba(255,255,255,0.82);
    transition: color 150ms var(--ease);
}
.footer-nav a:hover { color: #FFFFFF; }

.footer-social { display: flex; gap: 10px; flex-shrink: 0; }

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.34);
    transition: background 150ms var(--ease);
}
.social-link img { filter: brightness(0) invert(1); opacity: 0.92; }
.social-link:hover { background: rgba(255,255,255,0.38); }

.footer-bottom {
    text-align: center;
    padding-top: 24px;
}

.footer-copy {
    font-size: 13px;
    font-weight: 400;
    color: var(--c-n500);
}
.footer-copy strong { font-weight: 600; color: var(--c-n700); }


/* ============================================================
   12.5  ROI / PRICING CALCULATOR  (glassy, over mesh)
/* Reusable frosted-glass surface */
.glass {
    background: var(--glass-fill);
    border: 1px solid var(--glass-stroke);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
    backdrop-filter: blur(var(--glass-blur)) saturate(150%);
}

/* ROI calculator — lives inside the delegated card's left half */
.roi-calc {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    height: 100%;
}

/* Small eyebrow, mirrors the "Built for delegated care management" tag (white on mesh) */
.roi-eyebrow {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.92);
}

/* Slider control */
.roi-control-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
}
.roi-control-label { font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.88); }
.roi-members {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.roi-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 9999px;
    background: rgba(255,255,255,0.30);
    outline: none;
    cursor: pointer;
}
.roi-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--c-btn);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(25,28,31,0.25);
    cursor: grab;
    transition: transform 120ms var(--ease);
}
.roi-slider::-webkit-slider-thumb:active { transform: scale(1.12); cursor: grabbing; }
.roi-slider::-moz-range-thumb {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--c-btn); border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(25,28,31,0.25); cursor: grab;
}
.roi-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.72);
    font-variant-numeric: tabular-nums;
}

/* Result tiles — solid frosted-white so ink text reads clearly on the blue mesh */
.roi-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.roi-stat {
    border-radius: var(--r-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 2px 10px rgba(40,56,150,0.10);
}
.roi-stat-label { font-size: 14px; font-weight: 500; color: var(--c-n600); }
.roi-stat-value {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--c-n900);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.roi-pos { color: var(--c-n900); }

/* Total — big white number, divider above */
.roi-total {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.32);
}
.roi-total-label { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.9); }
.roi-total-value {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #FFFFFF;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.roi-disclaimer { font-size: 12px; color: rgba(255,255,255,0.72); margin-top: 2px; line-height: 1.4; }


/* ============================================================
   13. SCROLL REVEAL & ENTRANCE ANIMATIONS


@keyframes heroEnter {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal — base state */
[data-reveal] {
    opacity: 0;
    transform: translateY(32px) scale(0.982);
    transition:
        opacity    720ms var(--ease),
        transform  720ms var(--ease);
    transition-delay: 100ms; /* base pause so animation is clearly visible */
    will-change: opacity, transform;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger delays (base 100ms + stagger offset) */
[data-reveal-delay="1"] { transition-delay: 160ms; }
[data-reveal-delay="2"] { transition-delay: 240ms; }
[data-reveal-delay="3"] { transition-delay: 320ms; }
[data-reveal-delay="4"] { transition-delay: 400ms; }
[data-reveal-delay="5"] { transition-delay: 480ms; }


/* ============================================================
   14. RESPONSIVE



/* ≤ 1100px — tablet wide */
@media (max-width: 1100px) {
    .infra-cards { grid-template-columns: repeat(2, 1fr); }
    .metrics-layout { gap: 32px; }
    .footer-nav-cols { grid-template-columns: repeat(2, minmax(0,160px)); gap: 32px; }
}

/* ≤ 960px — tablet */
@media (max-width: 960px) {
    /* Section vertical spacing */
    .section-infrastructure,
    .section-enrollment,
    .section-care-model,
    .section-metrics,
    .section-features       { padding-top: 72px; padding-bottom: 64px; }
    .section-delegated      { padding-bottom: 64px; }
    .site-footer            { padding-top: 72px; }

    .section-header         { margin-bottom: 40px; }

    /* Infra */
    .infra-header { grid-template-columns: 1fr; gap: 20px; }
    .infra-title  { font-size: 34px; }

    /* Care model */
    .cm-grid { grid-template-columns: 1fr; }
    .cm-header { grid-template-columns: 1fr; gap: 20px; }

    /* Delegated + ROI calc */
    .delegated-card { grid-template-columns: 1fr; min-height: auto; }
    .delegated-left { height: auto; padding: 32px; }
    .delegated-right { padding: 8px 36px 40px; justify-content: flex-end; }
    .delegated-tag { position: static; margin-bottom: 4px; }

    /* Metrics */
    .metrics-layout { grid-template-columns: 1fr; }
    .metrics-text-col { position: static; }

    /* Features */
    .features-header { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
    .features-header .features-desc { justify-self: start; }
    .trust-grid { grid-template-columns: 1fr 1fr; }

    /* Enrollment flow: tighten the rhythm on tablet */
    .flow { gap: 80px; }
    .flow-row { gap: 48px; }
    .flow-title { font-size: 28px; }

}

/* ≤ 1480px — 8 nav items need tighter tracking so the last link
   clears the Talk to Us pill */
@media (max-width: 1480px) {
    .nav-links { gap: 24px; }
    .nav-links a { font-size: 15px; }
}

@media (max-width: 1280px) {
    .nav-links { gap: 16px; }
    .nav-links a { font-size: 14px; }
}

/* keep all eight names visible down to small laptops before collapsing */
@media (max-width: 1120px) {
    .nav-links { gap: 11px; }
    .nav-links a { font-size: 13px; }
}

/* ≤ 1040px — collapse nav links into the hamburger sheet */
@media (max-width: 1040px) {
    .nav-links  { display: none; }
    .nav-logo   { flex: 1; }   /* pushes CTA to the far right */
    .nav-menu-btn { display: inline-flex; margin-left: 6px; }
    .site-header.menu-open .nav-cta-mobile {
        display: block;
        font-weight: 600;
        color: var(--c-n900);
    }
    /* Hero: the menu carries the CTA on mobile — drop the big black button */
    .hero-actions .hero-cta-btn { display: none; }

    .site-header.menu-open { background: #ffffff; }
    .site-header.menu-open .nav-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-radius: 0 0 18px 18px;
        padding: 4px 20px 14px;
        box-shadow: 0 18px 40px rgba(22, 22, 23, 0.12);
    }
    .site-header.menu-open .nav-links a {
        padding: 13px 2px;
        font-size: 16px;
        border-top: 1px solid #eeeeef;
    }
    .site-header.menu-open .nav-links a:first-child { border-top: none; }
}

/* ≤ 768px — mobile */
@media (max-width: 768px) {
    /* Nav — header CTA hidden on mobile; hero "Talk to Us" is the single CTA */
    .nav-cta    { display: none; }
    .nav-logo, .nav-logo-img { width: 104px; height: 25px; }

    /* Header compact */
    .site-header        { height: 68px; }
    .header-inner       { height: 68px; padding: 0 20px; justify-content: space-between; }
    .site-header.scrolled { height: 54px; top: 10px; left: 10px; right: 10px; }
    .site-header.scrolled .header-inner { height: 54px; }

    /* Global section spacing */
    .section-inner  { padding-inline: 20px; }
    .section-header { margin-bottom: 20px; }
    .section-title  { font-size: 28px; }
    .section-desc   { font-size: 15px; }

    .section-infrastructure,
    .section-enrollment,
    .section-care-model,
    .section-metrics,
    .section-features   { padding-top: 36px; padding-bottom: 32px; }
    .section-delegated  { padding-bottom: 32px; }
    .site-footer        { padding-top: 40px; padding-bottom: 24px; }

    /* Hero — full-bleed mesh, stack copy over loop */
    .hero-inner { grid-template-columns: 1fr; gap: 24px; padding: 104px 20px 48px; min-height: 0; text-align: center; }
    .hero-copy { align-items: center; text-align: center; }
    .hero-headline,
    .hero-headline .t-sans { font-size: 34px; line-height: 1.06; }
    .hero-desc { font-size: 16px; line-height: 1.55; max-width: 100%; }
    .hero-actions { justify-content: center; gap: 18px; }
    .hero-actions .hero-cta-btn {
        height: 44px;
        padding: 3px 8px 3px 20px;
        gap: 8px;
        font-size: 15px;
    }
    .hero-actions .hero-arrow-circle { width: 30px; height: 30px; }
    .hero-visual { aspect-ratio: 1 / 1; max-width: 560px; margin: 12px auto 0; width: 100%; }
    /* Loop: scaled up near the practical max on mobile so the card text is as
       large as possible while keeping the orbit node labels inside the frame. */
    .hero-lottie { inset: -24%; }
    .hero-lottie > svg { width: 150% !important; max-height: 150% !important; }

    /* Infrastructure */
    .infra-cards        { grid-template-columns: 1fr; }
    .infra-title        { font-size: 30px; }

    /* ROI calculator */
    .roi-members { font-size: 30px; }
    .roi-total-value { font-size: 34px; }

    /* Enrollment flow — stack copy above visual, no alternation */
    .flow { gap: 56px; margin-bottom: 40px; }
    .flow-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .flow-row .flow-visual { order: -1; }   /* visual always above copy on mobile */
    .flow-row:nth-child(even) .flow-visual { order: -1; }
    .flow-copy { max-width: 100%; }
    .flow-title { font-size: 24px; }
    .flow-desc { font-size: 15px; }

    /* Care model cards */
    .cm-card            { padding: 14px; gap: 10px; }
    .cm-card-icon       { width: 38px; height: 38px; }
    .cm-card-icon svg   { width: 20px; height: 20px; }
    .cm-card-title      { font-size: 15px; }
    .cm-col-header      { padding: 10px 12px; font-size: 12px; gap: 6px; }
    .cm-head-ic         { width: 14px; height: 14px; }
    .cm-list            { padding: 10px 12px; gap: 7px; }
    .cm-list li         { font-size: 12px; gap: 8px; }
    .cm-card-footer     { padding: 10px 12px; gap: 8px; }
    .cm-loop-focus      { gap: 8px; }
    .cm-loop-label      { font-size: 11px; }
    .cm-loop-stage      { font-size: 11px; }
    .cm-loop-ic         { width: 13px; height: 13px; }

    /* Delegated + ROI calc */
    .delegated-left { padding: 28px 20px; }
    .delegated-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .delegated-right {
        padding: 28px 22px 28px;
        justify-content: flex-start;
        gap: 14px;
    }
    .delegated-actions  { margin-top: auto; flex-direction: row; width: 100%; }
    .delegated-tag      { position: static; font-size: 13px; }
    .delegated-title    { font-size: 30px; }
    .delegated-desc     { max-width: 100%; font-size: 14px; }
    .delegated-actions .hero-cta-btn { flex: 1; width: auto; }
    .delegated-actions .hero-scroll-btn { display: none; }

    /* Metrics */
    .stat-value         { font-size: 30px; }

    /* Features */
    .features-headline  { font-size: 30px; }
    .trust-grid         { gap: 10px; }
    .trust-tile         { border-radius: 12px; }

    /* Footer — stack nav cols over social */
    .footer-card        { padding: 36px 28px 40px; }
    .footer-top         { flex-direction: column; gap: 32px; }
    .footer-nav-cols    { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
    .footer-watermark img { width: 360px; }
}

/* ≤ 480px — small mobile */
@media (max-width: 480px) {
    .header-inner   { padding: 0 14px; }
    .section-inner  { padding-inline: 16px; }

    /* Hero */
    .hero-inner          { padding: 96px 16px 40px; }
    .hero-headline,
    .hero-headline .t-sans { font-size: 30px; line-height: 1.07; }
    .hero-desc           { font-size: 15px; }

    /* Section spacing */
    .section-infrastructure,
    .section-enrollment,
    .section-care-model,
    .section-metrics,
    .section-features   { padding-top: 28px; padding-bottom: 24px; }
    .section-delegated  { padding-bottom: 24px; }
    .site-footer        { padding-top: 32px; }

    .section-title  { font-size: 26px; }
    .section-header { margin-bottom: 24px; }

    /* Enrollment spacing at small mobile */
    .flow { gap: 44px; }

    /* Delegated */
    .delegated-card  { border-radius: 20px; min-height: 480px; }
    .delegated-right { padding: 20px 18px 20px; }
    .delegated-title { font-size: 26px; }

    /* Footer */
    .footer-nav-cols   { gap: 32px 20px; }
    .footer-inner      { padding-inline: 16px; }
}

/* The Atticus Loop component centers in the hero visual column */
.hero-visual { display: flex; align-items: center; justify-content: center; }


/* "In progress" overlay for accreditations underway (SOC 2, URAC) */
.trust-progress {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--r-full);
    background: var(--c-warn-bg, #fbf1dc);
    border: 1px solid rgba(201, 138, 22, 0.3);
    color: var(--c-warn, #c98a16);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.trust-progress::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-warn, #c98a16);
}
