/*
 * DentalROI's own site. Plain modern CSS, no framework and no build step:
 * native nesting, cascade layers, container queries, light-dark(), the
 * Popover API for menus, <details> for questions, cross-document view
 * transitions. Every animation stops when the visitor asks for less motion.
 */
@layer reset, base, layout, components, pages, utilities;

@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("/marketing/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("/marketing/fonts/plus-jakarta-sans-italic-latin.woff2") format("woff2");
    font-weight: 200 800;
    font-style: italic;
    font-display: swap;
}

:root {
    color-scheme: light dark;

    --bg: light-dark(#ffffff, #0b1424);
    --bg-soft: light-dark(#f5f8fd, #0f1b30);
    --bg-elev: light-dark(#ffffff, #13213a);
    --ink: light-dark(#0f1d33, #e8eef8);
    --ink-2: light-dark(#34445e, #c3cee1);
    --muted: light-dark(#5b6a83, #97a6bf);
    --line: light-dark(#e2e8f2, #23324e);
    --line-strong: light-dark(#cdd7e6, #33466a);
    --brand: light-dark(#1e6fd9, #5b9bff);
    --brand-strong: light-dark(#155bb8, #84b4ff);
    --brand-soft: light-dark(#e6effd, #152847);
    --on-brand: light-dark(#ffffff, #07101f);
    --good: light-dark(#0b7f62, #43d3a8);
    --good-soft: light-dark(#e2f5ee, #0e2f29);
    --warn: light-dark(#a8510a, #f3b04a);
    --warn-soft: light-dark(#fdf0e1, #33240e);
    --navy: light-dark(#0b1f3a, #0e1a2f);
    --danger: light-dark(#b42318, #ff8a80);

    --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgb(15 29 51 / 0.06), 0 1px 3px rgb(15 29 51 / 0.05);
    --shadow: 0 10px 30px -12px rgb(15 29 51 / 0.18), 0 2px 6px rgb(15 29 51 / 0.05);
    --shadow-lg: 0 30px 60px -20px rgb(15 29 51 / 0.28);
    --head-h: 72px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@layer reset {
    *, *::before, *::after { box-sizing: border-box; }
    * { margin: 0; }
    html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; interpolate-size: allow-keywords; }
    img, svg { display: block; max-width: 100%; }
    input, button, textarea, select { font: inherit; color: inherit; }
    button { cursor: pointer; }
    /* Lists that are navigation (menus, drawer, footer) carry no bullets; lists in running text keep theirs. */
    ul[class], ol[class], :is(nav, footer, [popover]) :is(ul, ol) { list-style: none; padding: 0; }
    [popover] { color: inherit; }
}

@layer base {
    html { scroll-padding-top: calc(var(--head-h) + 1rem); }
    body {
        font-family: var(--font);
        font-size: 1.0625rem;
        line-height: 1.6;
        color: var(--ink);
        background: var(--bg);
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
    }
    h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 750; text-wrap: balance; }
    h1 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem); font-weight: 800; letter-spacing: -0.03em; }
    h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
    h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
    p { text-wrap: pretty; }
    h2 + .lead, h2 + p { margin-top: 1rem; }
    a { color: var(--brand); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
    a:hover { color: var(--brand-strong); }
    :focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
    ::selection { background: var(--brand-soft); }
    strong, b { font-weight: 700; }
}

@layer layout {
    .wrap { width: min(100% - 2rem, 1180px); margin-inline: auto; }
    .narrow { max-width: 760px; }
    .narrow-left { max-width: 860px; margin-inline: max(1rem, (100% - 1180px) / 2) auto; }
    .section { padding-block: clamp(3.5rem, 2rem + 5vw, 6.5rem); }
    .section-tight { padding-block: clamp(2rem, 1rem + 3vw, 3.5rem) clamp(3.5rem, 2rem + 5vw, 6rem); }
    .section-soft { background: var(--bg-soft); }
    .section-dark { background: var(--navy); color: #e8eef8; h2 { color: #ffffff; } }
    .section-head {
        max-width: 720px;
        margin-bottom: clamp(2rem, 1.4rem + 2vw, 3rem);
        > p:not(.eyebrow) { color: var(--muted); font-size: 1.125rem; margin-top: 0.75rem; }
        .section-dark & > p:not(.eyebrow) { color: #aebbd2; }
    }
    .section-head-row {
        max-width: none;
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 1rem;
        flex-wrap: wrap;
    }
    .split {
        display: grid;
        gap: clamp(2rem, 1rem + 4vw, 5rem);
        align-items: center;
        @media (width >= 900px) { grid-template-columns: 1fr 1fr; }
    }
    .split-top { align-items: start; }
    .center { text-align: center; }
}

@layer components {
    .skip {
        position: absolute;
        left: 1rem;
        top: -100px;
        z-index: 100;
        padding: 0.6rem 1rem;
        background: var(--brand);
        color: var(--on-brand);
        border-radius: 10px;
        font-weight: 700;
        &:focus { top: 1rem; }
    }

    .eyebrow {
        display: inline-block;
        font-size: 0.8125rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--brand);
        margin-bottom: 0.9rem;
    }
    .eyebrow-light { color: #84b4ff; }
    .lead { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.25rem); color: var(--ink-2); line-height: 1.6; }

    /* Buttons */
    .btn {
        --btn-bg: var(--bg-elev);
        --btn-fg: var(--ink);
        --btn-border: var(--line-strong);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        min-height: 46px;
        padding: 0.7rem 1.25rem;
        border-radius: 999px;
        border: 1.5px solid var(--btn-border);
        background: var(--btn-bg);
        color: var(--btn-fg);
        font-weight: 700;
        font-size: 1rem;
        line-height: 1.2;
        text-decoration: none;
        white-space: nowrap;
        transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
        &:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: var(--shadow); }
        &:active { transform: none; }
    }
    .btn-primary {
        --btn-bg: var(--brand);
        --btn-fg: var(--on-brand);
        --btn-border: var(--brand);
        &:hover { --btn-bg: var(--brand-strong); --btn-border: var(--brand-strong); }
    }
    .btn-ghost { --btn-bg: transparent; &:hover { --btn-bg: var(--bg-elev); --btn-border: var(--brand); } }
    .btn-light { --btn-bg: #ffffff; --btn-fg: #0b1f3a; --btn-border: #ffffff; }
    .btn-outline-light { --btn-bg: transparent; --btn-fg: #ffffff; --btn-border: rgb(255 255 255 / 0.5); &:hover { --btn-border: #ffffff; } }
    .btn-sm { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.9375rem; }
    .btn-lg { min-height: 54px; padding: 0.85rem 1.6rem; font-size: 1.0625rem; }
    .btn-block { width: 100%; }

    .link-arrow {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        font-weight: 700;
        text-decoration: none;
        color: var(--brand);
        &::after { content: "\2192"; transition: translate 0.2s var(--ease); }
        &:hover::after { translate: 4px 0; }
    }

    .badge {
        display: inline-flex;
        align-items: center;
        padding: 0.2rem 0.6rem;
        border-radius: 999px;
        font-size: 0.8125rem;
        font-weight: 700;
        background: var(--brand-soft);
        color: var(--brand-strong);
        white-space: nowrap;
    }
    .badge-good { background: var(--good-soft); color: var(--good); }
    .badge-muted { background: var(--bg-soft); color: var(--muted); }
    .badge-soon { background: rgb(132 180 255 / 0.16); color: light-dark(#155bb8, #a8c9ff); }
    .section-dark .badge-soon { color: #a8c9ff; }

    .tag {
        display: inline-block;
        padding: 0.1rem 0.5rem;
        border-radius: 6px;
        font-size: 0.75rem;
        font-weight: 700;
        background: var(--bg-soft);
        color: var(--muted);
        margin-right: 0.35rem;
    }
    .tag-good { background: var(--good-soft); color: var(--good); }
    .tag-warn { background: var(--warn-soft); color: var(--warn); }

    .checks {
        display: grid;
        gap: 0.75rem;
        margin-block: 1.25rem 1.5rem;
        li {
            position: relative;
            padding-left: 1.9rem;
            color: var(--ink-2);
            &::before {
                content: "";
                position: absolute;
                left: 0;
                top: 0.2rem;
                width: 1.25rem;
                height: 1.25rem;
                border-radius: 50%;
                background: var(--good-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230b7f62' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
            }
        }
        strong { color: var(--ink); }
    }

    .chips {
        display: flex;
        flex-wrap: wrap;
        gap: 0.6rem;
    }
    .chips-center { justify-content: center; margin-top: 1.75rem; }
    .chip {
        display: inline-block;
        padding: 0.55rem 1rem;
        border: 1px solid var(--line-strong);
        border-radius: 999px;
        color: var(--ink);
        text-decoration: none;
        font-weight: 600;
        background: var(--bg-elev);
        transition: border-color 0.2s, background-color 0.2s, color 0.2s;
        &:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
    }

    .card {
        background: var(--bg-elev);
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        padding: clamp(1.25rem, 1rem + 1vw, 2rem);
        box-shadow: var(--shadow-sm);
    }

    .alert {
        padding: 0.9rem 1.1rem;
        border-radius: var(--radius);
        background: light-dark(#fdecea, #3a1714);
        color: var(--danger);
        font-weight: 600;
        margin-bottom: 1.25rem;
    }

    /* Header */
    .site-head {
        position: sticky;
        top: 0;
        z-index: 50;
        background: color-mix(in srgb, var(--bg) 86%, transparent);
        backdrop-filter: saturate(1.6) blur(14px);
        border-bottom: 1px solid transparent;
        @supports (animation-timeline: scroll()) {
            animation: head-edge linear both;
            animation-timeline: scroll();
            animation-range: 0 64px;
        }
        @supports not (animation-timeline: scroll()) { border-bottom-color: var(--line); }
    }
    @keyframes head-edge { to { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgb(15 29 51 / 0.4); } }
    .site-head-row { display: flex; align-items: center; gap: 1.5rem; height: var(--head-h); }

    .brand {
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        text-decoration: none;
        color: var(--ink);
        flex-shrink: 0;
        .mark { color: var(--brand); width: 32px; height: 32px; }
        &:hover { color: var(--ink); }
    }
    .brand-word { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.03em; b { color: var(--brand); font-weight: 800; } }

    .nav {
        display: none;
        gap: 0.25rem;
        @media (width >= 1040px) { display: flex; }
    }
    .nav-link {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.5rem 0.8rem;
        border: 0;
        background: none;
        border-radius: 10px;
        color: var(--ink-2);
        font-weight: 600;
        font-size: 0.975rem;
        text-decoration: none;
        &:hover { color: var(--ink); background: var(--bg-soft); }
    }
    .caret {
        width: 0.45rem;
        height: 0.45rem;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        rotate: 45deg;
        translate: 0 -2px;
    }
    .head-actions { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
    .head-phone, .head-signin { color: var(--ink-2); font-weight: 600; text-decoration: none; font-size: 0.975rem; white-space: nowrap; &:hover { color: var(--brand); } }
    .head-phone { display: none; @media (width >= 1240px) { display: inline; } }
    .head-signin { display: none; @media (width >= 1040px) { display: inline; } }
    .head-actions .btn { display: none; @media (width >= 560px) { display: inline-flex; } }
    .menu-button {
        display: grid;
        place-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        border: 1px solid var(--line-strong);
        border-radius: 12px;
        background: var(--bg-elev);
        span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }
        @media (width >= 1040px) { display: none; }
    }

    /* Menus: popovers below the header */
    .mega {
        position: fixed;
        inset: var(--head-h) 0 auto 0;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 2rem 0 2.25rem;
        border: 0;
        border-bottom: 1px solid var(--line);
        background: var(--bg-elev);
        box-shadow: var(--shadow-lg);
        opacity: 1;
        translate: 0 0;
        transition: opacity 0.2s, translate 0.25s var(--ease), display 0.25s allow-discrete, overlay 0.25s allow-discrete;
        @starting-style { opacity: 0; translate: 0 -8px; }
        &:not(:popover-open) { opacity: 0; translate: 0 -8px; }
    }
    .mega-grid {
        display: grid;
        gap: 2rem;
        grid-template-columns: repeat(4, 1fr) 1.2fr;
    }
    .mega-grid-specialties { grid-template-columns: 3fr 1.2fr; }
    .mega-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; }
    .mega-col ul { display: grid; gap: 0.15rem; }
    .mega-col a {
        display: block;
        padding: 0.4rem 0.6rem;
        margin-inline: -0.6rem;
        border-radius: 8px;
        color: var(--ink);
        font-weight: 600;
        font-size: 0.95rem;
        text-decoration: none;
        &:hover { background: var(--brand-soft); color: var(--brand-strong); }
    }
    .mega-col .mega-two {
        /* Down each column, then across; the gap keeps a hovered link's box off the next column's text. */
        display: block;
        columns: 3;
        column-gap: 2.5rem;
        li { break-inside: avoid; padding-block: 0.075rem; }
    }
    .mega-card {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        padding: 1.4rem;
        border-radius: var(--radius-lg);
        background: linear-gradient(150deg, var(--brand-soft), var(--bg-soft));
        color: var(--ink);
        text-decoration: none;
        strong { font-size: 1.1rem; line-height: 1.35; }
        &:hover { color: var(--ink); }
    }
    .mega-card-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }

    .drawer {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(400px, 100%);
        height: 100dvh;
        max-height: none;
        margin: 0;
        padding: 1rem 1.25rem 1.5rem;
        border: 0;
        background: var(--bg-elev);
        overflow-y: auto;
        display: none;
        flex-direction: column;
        gap: 1rem;
        transition: translate 0.3s var(--ease), display 0.3s allow-discrete, overlay 0.3s allow-discrete;
        translate: 0 0;
        @starting-style { translate: 100% 0; }
        &:popover-open { display: flex; }
        &:not(:popover-open) { translate: 100% 0; }
        &::backdrop { background: rgb(6 14 28 / 0.5); backdrop-filter: blur(2px); }
        nav { display: grid; }
        nav > a, summary {
            display: block;
            padding: 0.9rem 0.25rem;
            border-bottom: 1px solid var(--line);
            color: var(--ink);
            font-weight: 700;
            font-size: 1.05rem;
            text-decoration: none;
            cursor: pointer;
        }
        summary {
            list-style: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
            &::-webkit-details-marker { display: none; }
            &::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); rotate: 45deg; translate: 0 -2px; transition: rotate 0.2s; }
        }
        details[open] > summary::after { rotate: 225deg; translate: 0 2px; }
        details ul { list-style: none; padding: 0.5rem 0 0.75rem 0.75rem; display: grid; gap: 0.1rem; }
        details a { display: block; padding: 0.4rem 0; color: var(--ink-2); text-decoration: none; font-weight: 500; }
    }
    .drawer-head { display: flex; align-items: center; justify-content: space-between; height: 48px; }
    .drawer-close { width: 44px; height: 44px; border: 0; background: var(--bg-soft); border-radius: 12px; font-size: 1.6rem; line-height: 1; }
    .drawer-foot { margin-top: auto; display: grid; gap: 0.75rem; }

    /* Case studies */
    .case-card {
        container-type: inline-size;
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
        background: var(--bg-elev);
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-sm);
        h3 { font-size: 1.3rem; margin-block: 0.25rem 0.4rem; }
    }
    .case-meta { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
    .case-summary { color: var(--ink-2); }
    .metrics { display: grid; gap: 0.75rem; }
    .metric {
        display: grid;
        gap: 0.25rem;
        padding: 0.85rem 1rem;
        border-radius: var(--radius);
        background: var(--bg-soft);
        dt { font-size: 0.875rem; color: var(--muted); font-weight: 600; }
        dd { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; font-variant-numeric: tabular-nums; }
        @container (width >= 520px) {
            grid-template-columns: 1fr auto;
            align-items: center;
        }
    }
    .metric-before { color: var(--muted); font-weight: 600; text-decoration: line-through; text-decoration-color: var(--line-strong); }
    .metric-arrow { color: var(--muted); }
    .metric-after { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
    .case-quote {
        margin-top: auto;
        padding-top: 1rem;
        border-top: 1px solid var(--line);
        p { font-style: italic; color: var(--ink-2); }
        footer { margin-top: 0.5rem; font-size: 0.9rem; font-weight: 700; color: var(--muted); }
    }
    .cases { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }

    /* Questions */
    .faq {
        display: grid;
        gap: 0.75rem;
        details {
            border: 1px solid var(--line);
            border-radius: var(--radius);
            background: var(--bg-elev);
            padding: 0 1.25rem;
            transition: border-color 0.2s, box-shadow 0.2s;
            &[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
            &::details-content { block-size: 0; overflow: clip; transition: block-size 0.3s var(--ease), content-visibility 0.3s allow-discrete; }
            &[open]::details-content { block-size: auto; }
        }
        summary {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
            padding: 1.1rem 0;
            font-weight: 700;
            font-size: 1.05rem;
            cursor: pointer;
            list-style: none;
            &::-webkit-details-marker { display: none; }
            &::after {
                content: "";
                flex-shrink: 0;
                width: 1.6rem;
                height: 1.6rem;
                border-radius: 50%;
                background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' stroke='%231e6fd9' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 70% no-repeat;
                transition: rotate 0.25s var(--ease);
            }
        }
        details[open] summary::after { rotate: 45deg; }
        details p { padding-bottom: 1.2rem; color: var(--ink-2); }
    }

    h2 + .faq { margin-top: 1.75rem; }
    .quotes { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
    .quote {
        padding: 1.5rem;
        border-radius: var(--radius-lg);
        background: var(--bg-soft);
        border: 1px solid var(--line);
        blockquote p { font-size: 1.05rem; color: var(--ink); font-weight: 500; }
        figcaption { margin-top: 1rem; font-size: 0.9rem; font-weight: 700; color: var(--muted); }
        .section-soft & { background: var(--bg-elev); }
    }

    .crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.25rem; a { color: var(--muted); } }

    /* Points, tiles, related */
    /* Three across; four in one row; five as three and two, filling the row. */
    .points {
        display: grid;
        gap: 1.25rem;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
        @media (width >= 1100px) {
            &:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); }
        }
        @media (width >= 960px) {
            &:has(> :nth-child(5):last-child) {
                grid-template-columns: repeat(6, 1fr);
                > * { grid-column: span 2; }
                > :nth-child(n + 4) { grid-column: span 3; }
            }
        }
    }
    .point {
        padding: 1.5rem;
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        background: var(--bg-elev);
        :is(h2, h3) { font-size: 1.2rem; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
        p { color: var(--ink-2); }
    }
    .point-num { display: block; font-size: 0.85rem; font-weight: 800; color: var(--brand); margin-bottom: 0.9rem; font-variant-numeric: tabular-nums; }

    .tiles, .related { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
    .tile, .related a {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        height: 100%;
        padding: 1.4rem;
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        background: var(--bg-elev);
        color: var(--ink);
        text-decoration: none;
        transition: border-color 0.2s, box-shadow 0.2s, translate 0.2s var(--ease);
        strong { font-size: 1.1rem; }
        span:not(.link-arrow) { color: var(--ink-2); font-size: 0.975rem; }
        .link-arrow { margin-top: auto; padding-top: 0.5rem; font-size: 0.95rem; }
        &:hover { color: var(--ink); border-color: var(--brand); box-shadow: var(--shadow); translate: 0 -2px; }
    }

    .timeline {
        counter-reset: step;
        display: grid;
        gap: 1rem;
        margin-top: 1.25rem;
        padding: 0;
        list-style: none;
        li {
            counter-increment: step;
            position: relative;
            padding-left: 3rem;
            color: var(--ink-2);
            min-height: 2.2rem;
            &::before {
                content: counter(step);
                position: absolute;
                left: 0;
                top: -0.1rem;
                width: 2.1rem;
                height: 2.1rem;
                display: grid;
                place-items: center;
                border-radius: 50%;
                background: var(--brand);
                color: var(--on-brand);
                font-weight: 800;
                font-size: 0.95rem;
            }
        }
    }
    .timeline-compact li { padding-left: 2.6rem; &::before { width: 1.8rem; height: 1.8rem; font-size: 0.85rem; } }

    /* Call to action band and footer */
    .cta-band {
        background: radial-gradient(120% 140% at 0% 0%, #2b7ff0 0%, #1e6fd9 40%, #0f4fa8 100%);
        color: #ffffff;
        padding-block: clamp(3rem, 2rem + 4vw, 5rem);
        h2 { color: #ffffff; }
        p { color: rgb(255 255 255 / 0.85); margin-top: 0.75rem; max-width: 620px; font-size: 1.1rem; }
    }
    .cta-band-inner { display: grid; gap: 2rem; align-items: center; @media (width >= 900px) { grid-template-columns: 1.4fr 1fr; } }
    .cta-band-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; @media (width >= 900px) { justify-content: end; } }

    .site-foot {
        background: var(--bg-soft);
        border-top: 1px solid var(--line);
        padding-top: clamp(3rem, 2rem + 3vw, 4.5rem);
        font-size: 0.95rem;
    }
    .foot-grid {
        display: grid;
        gap: 2rem;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
        @media (width >= 1100px) { grid-template-columns: 1.6fr repeat(5, 1fr); }
    }
    .foot-brand p { color: var(--muted); margin-top: 1rem; max-width: 300px; }
    .foot-contact a { color: var(--ink); font-weight: 700; text-decoration: none; }
    .foot-label { font-weight: 700; color: var(--ink); margin-bottom: 0.75rem; font-size: 0.9rem; }
    .foot-col ul { display: grid; gap: 0.45rem; }
    .foot-col a { color: var(--muted); text-decoration: none; &:hover { color: var(--brand); } }
    .foot-bottom {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 1rem;
        margin-top: 3rem;
        padding-block: 1.5rem;
        border-top: 1px solid var(--line);
        color: var(--muted);
        font-size: 0.875rem;
        p:last-child { display: flex; flex-wrap: wrap; gap: 1.25rem; }
        a { color: var(--muted); &:hover { color: var(--brand); } }
    }

    /* Forms */
    .form { display: grid; gap: 1.1rem; }
    .form-row { display: grid; gap: 1.1rem; @media (width >= 640px) { grid-template-columns: 1fr 1fr; } }
    .field {
        display: grid;
        gap: 0.4rem;
        border: 0;
        padding: 0;
        min-width: 0;
        > label, > legend { font-weight: 700; font-size: 0.95rem; color: var(--ink); padding: 0; }
        > legend { margin-bottom: 0.5rem; }
        input:not([type="checkbox"]), textarea {
            width: 100%;
            padding: 0.75rem 0.9rem;
            min-height: 48px;
            border: 1.5px solid var(--line-strong);
            border-radius: 12px;
            background: var(--bg);
            font-size: 1rem;
            transition: border-color 0.2s, box-shadow 0.2s;
            &:hover { border-color: var(--muted); }
            &:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
            &::placeholder { color: var(--muted); }
        }
        textarea { resize: vertical; min-height: 120px; }
    }
    .field-error input { border-color: var(--danger); }
    .field-message { color: var(--danger); font-size: 0.875rem; font-weight: 600; }
    .field-hint { color: var(--muted); font-size: 0.875rem; }
    .req { color: var(--danger); }
    .options { display: grid; gap: 0.5rem; @media (width >= 640px) { grid-template-columns: 1fr 1fr; } }
    .option {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        padding: 0.7rem 0.9rem;
        border: 1.5px solid var(--line-strong);
        border-radius: 12px;
        cursor: pointer;
        font-weight: 600;
        font-size: 0.95rem;
        transition: border-color 0.2s, background-color 0.2s;
        input { width: 1.15rem; height: 1.15rem; accent-color: var(--brand); flex-shrink: 0; }
        &:hover { border-color: var(--muted); }
        &:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
        &:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
    }
    .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

    .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elev); }
    .compare {
        width: 100%;
        min-width: 620px;
        border-collapse: collapse;
        th, td { padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line); text-align: center; }
        thead th { font-size: 0.95rem; color: var(--ink); background: var(--bg-soft); }
        tbody th { text-align: left; font-weight: 600; color: var(--ink-2); position: sticky; left: 0; background: var(--bg-elev); }
        tbody tr:last-child > * { border-bottom: 0; }
        .yes { color: var(--good); font-weight: 800; font-size: 1.1rem; }
        .no { color: var(--line-strong); }
    }

    /* Two options side by side (the comparison pages); our column tinted. On a phone each row becomes a card. */
    .versus {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        background: var(--bg-elev);
        overflow: hidden;
        th, td { padding: 1rem 1.25rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
        thead th { font-size: 1rem; color: var(--ink); background: var(--bg-soft); }
        tbody th { width: 18%; font-weight: 700; color: var(--ink); }
        td { width: 41%; color: var(--ink-2); }
        .is-us { background: var(--brand-soft); }
        thead .is-us { color: var(--brand-strong); }
        tbody tr:last-child > * { border-bottom: 0; }
        @media (width < 760px) {
            &, tbody, tr, th, td { display: block; }
            thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
            tr { padding: 1.1rem; border-bottom: 1px solid var(--line); }
            tbody tr:last-child { border-bottom: 0; }
            tbody th { width: auto; padding: 0 0 0.6rem; border: 0; font-size: 1.05rem; }
            td { width: auto; padding: 0.65rem 0.85rem; border: 0; border-radius: var(--radius); }
            td + td { margin-top: 0.5rem; }
            td::before {
                content: attr(data-label);
                display: block;
                margin-bottom: 0.2rem;
                font-size: 0.75rem;
                font-weight: 800;
                letter-spacing: 0.05em;
                text-transform: uppercase;
                color: var(--muted);
            }
            td.is-us::before { color: var(--brand-strong); }
        }
    }

    /* Questions with what to listen for and our answer */
    .questions {
        display: grid;
        gap: 1.25rem;
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    }
    .question {
        display: flex;
        flex-direction: column;
        padding: 1.5rem;
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        background: var(--bg-elev);
        h2 { font-size: 1.15rem; margin-bottom: 1rem; letter-spacing: -0.01em; }
        dl { display: flex; flex-direction: column; flex: 1; }
        dt { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
        dd { margin: 0.25rem 0 1rem; color: var(--ink-2); }
        dt:last-of-type { margin-top: auto; padding-top: 0.25rem; color: var(--brand-strong); }
        dd:last-of-type { margin-bottom: 0; padding: 0.75rem 0.9rem; border-radius: var(--radius); background: var(--brand-soft); color: var(--ink); }
    }

    .prose {
        max-width: 760px;
        h2 { font-size: 1.35rem; margin-block: 2.25rem 0.75rem; }
        p, li { color: var(--ink-2); }
        p + p { margin-top: 0.9rem; }
        ul { padding-left: 1.25rem; display: grid; gap: 0.5rem; }
    }
}

@layer pages {
    /* Home hero */
    .hero {
        position: relative;
        overflow: clip;
        padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(3.5rem, 2rem + 5vw, 6.5rem);
        background:
            radial-gradient(60% 70% at 85% 10%, light-dark(#dceaff, #13284a) 0%, transparent 70%),
            radial-gradient(40% 50% at 0% 100%, light-dark(#eef4ff, #0f1f38) 0%, transparent 70%),
            var(--bg-soft);
    }
    .hero-grid { display: grid; gap: clamp(2.5rem, 1rem + 4vw, 4rem); align-items: center; @media (width >= 980px) { grid-template-columns: 1.15fr 0.85fr; } }
    .hero-copy .lead { margin-top: 1.25rem; max-width: 620px; }
    .hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
    .hero-actions-center { justify-content: center; }
    .trust {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 1.5rem;
        margin-top: 2rem;
        color: var(--ink-2);
        font-weight: 600;
        font-size: 0.95rem;
        li { display: inline-flex; align-items: center; gap: 0.5rem; }
        li::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--good); }
    }

    .hero-visual { position: relative; display: grid; gap: 1rem; max-width: 480px; justify-self: center; width: 100%; }
    .panel {
        background: var(--bg-elev);
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
        padding: 1.4rem;
    }
    .panel-head { display: flex; justify-content: space-between; align-items: center; }
    .panel-title { font-size: 0.85rem; font-weight: 700; color: var(--muted); }
    .panel-figure { font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin-block: 0.25rem 1rem; }
    .bars {
        display: flex;
        align-items: end;
        gap: 6px;
        height: 110px;
        .bar {
            flex: 1;
            border-radius: 6px 6px 3px 3px;
            background: linear-gradient(to top, var(--brand), color-mix(in srgb, var(--brand) 55%, #8fc1ff));
            transform-origin: bottom;
            @media (prefers-reduced-motion: no-preference) { animation: grow 0.9s var(--ease) both; }
        }
        .bar:nth-child(1) { height: 22%; animation-delay: 0.05s; }
        .bar:nth-child(2) { height: 28%; animation-delay: 0.1s; }
        .bar:nth-child(3) { height: 26%; animation-delay: 0.15s; }
        .bar:nth-child(4) { height: 35%; animation-delay: 0.2s; }
        .bar:nth-child(5) { height: 41%; animation-delay: 0.25s; }
        .bar:nth-child(6) { height: 38%; animation-delay: 0.3s; }
        .bar:nth-child(7) { height: 52%; animation-delay: 0.35s; }
        .bar:nth-child(8) { height: 60%; animation-delay: 0.4s; }
        .bar:nth-child(9) { height: 58%; animation-delay: 0.45s; }
        .bar:nth-child(10) { height: 71%; animation-delay: 0.5s; }
        .bar:nth-child(11) { height: 84%; animation-delay: 0.55s; }
        .bar:nth-child(12) { height: 100%; animation-delay: 0.6s; }
    }
    @keyframes grow { from { transform: scaleY(0.08); } }
    .panel-caption { margin-top: 0.9rem; font-size: 0.8rem; color: var(--muted); font-weight: 600; }
    .panel-call {
        @media (width >= 980px) { margin-left: -2.5rem; margin-right: 2.5rem; }
    }
    .call-list {
        display: grid;
        gap: 0.65rem;
        margin-top: 0.75rem;
        li { font-size: 0.9rem; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 0.25rem; }
        small { flex-basis: 100%; color: var(--muted); font-weight: 500; font-size: 0.8rem; }
    }

    .proof { border-block: 1px solid var(--line); background: var(--bg); }
    .proof-grid { display: grid; grid-template-columns: repeat(2, 1fr); @media (width >= 960px) { grid-template-columns: repeat(4, 1fr); } }
    .proof-item {
        padding: clamp(1.25rem, 0.8rem + 1.5vw, 2rem) clamp(0.75rem, 0.4rem + 1vw, 1.25rem);
        border-left: 1px solid var(--line);
        &:first-child { border-left: 0; }
        @media (width < 960px) {
            &:nth-child(odd) { border-left: 0; }
            &:nth-child(n + 3) { border-top: 1px solid var(--line); }
        }
    }
    .proof-figure { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em; color: var(--brand); font-variant-numeric: tabular-nums; }
    .proof-label { font-weight: 700; color: var(--ink); }
    .proof-who { font-size: 0.875rem; color: var(--muted); }

    .groups { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
    .group {
        padding: 1.5rem;
        border-radius: var(--radius-lg);
        border: 1px solid var(--line);
        background: var(--bg-elev);
    }
    .group-title { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-bottom: 0.75rem; }
    .service-list {
        display: grid;
        gap: 0.25rem;
        a {
            display: grid;
            gap: 0.15rem;
            padding: 0.7rem 0.75rem;
            margin-inline: -0.75rem;
            border-radius: 12px;
            text-decoration: none;
            color: var(--ink);
            transition: background-color 0.2s;
            span { color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
            &:hover { background: var(--bg-soft); color: var(--ink); strong { color: var(--brand); } }
        }
    }

    .feature-icon {
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: var(--brand-soft);
        position: relative;
        &::after {
            content: "";
            position: absolute;
            inset: 11px;
            background: var(--brand);
            mask: var(--icon) center / contain no-repeat;
        }
    }
    .fi-call { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 006.6 6.6l2.2-2.2a1 1 0 011-.25 11.4 11.4 0 003.6.57 1 1 0 011 1V20a1 1 0 01-1 1A17 17 0 013 4a1 1 0 011-1h3.5a1 1 0 011 1c0 1.25.2 2.45.57 3.57a1 1 0 01-.25 1z'/%3E%3C/svg%3E"); }
    .fi-text { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3h16a2 2 0 012 2v11a2 2 0 01-2 2H8l-5 4V5a2 2 0 011-2zm3 6v2h10V9zm0 4v2h7v-2z'/%3E%3C/svg%3E"); }
    .fi-chat { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3c5 0 9 3.4 9 7.6s-4 7.6-9 7.6c-1 0-2-.1-2.9-.4L4 20l1.4-3.9A7.2 7.2 0 013 10.6C3 6.4 7 3 12 3zM8 9.5a1.2 1.2 0 100 2.4 1.2 1.2 0 000-2.4zm4 0a1.2 1.2 0 100 2.4 1.2 1.2 0 000-2.4zm4 0a1.2 1.2 0 100 2.4 1.2 1.2 0 000-2.4z'/%3E%3C/svg%3E"); }
    .fi-form { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2h6a1 1 0 011 1v1h2a2 2 0 012 2v14a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2h2V3a1 1 0 011-1zm1 2v2h4V4zm-2.3 9.3l-1.4 1.4L9 17.4l6.7-6.7-1.4-1.4L9 14.6z'/%3E%3C/svg%3E"); }
    .fi-mail { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18a1 1 0 011 1v12a1 1 0 01-1 1H3a1 1 0 01-1-1V6a1 1 0 011-1zm1.4 2L12 12.3 19.6 7z'/%3E%3C/svg%3E"); }
    .fi-report { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3h2v16h15v2H4zm4 9h3v5H8zm5-4h3v9h-3zm5-4h3v13h-3z'/%3E%3C/svg%3E"); }

    .steps {
        counter-reset: step;
        display: grid;
        gap: 1.25rem;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
        li {
            counter-increment: step;
            padding: 1.75rem 1.5rem;
            border-radius: var(--radius-lg);
            border: 1px solid var(--line);
            background: var(--bg-elev);
            &::before {
                content: counter(step);
                display: grid;
                place-items: center;
                width: 2.4rem;
                height: 2.4rem;
                margin-bottom: 1.1rem;
                border-radius: 12px;
                background: var(--brand);
                color: var(--on-brand);
                font-weight: 800;
            }
            p { color: var(--ink-2); margin-top: 0.5rem; }
        }
    }

    .coming { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
    .coming-item {
        padding: 1.5rem;
        border-radius: var(--radius-lg);
        background: rgb(255 255 255 / 0.04);
        border: 1px solid rgb(255 255 255 / 0.1);
        h3 { color: #ffffff; margin-block: 0.9rem 0.5rem; }
        p { color: #aebbd2; }
    }

    /* Inner page heroes */
    .page-hero {
        padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2.5rem, 1.5rem + 3vw, 4rem);
        background:
            radial-gradient(50% 80% at 100% 0%, light-dark(#dceaff, #13284a) 0%, transparent 70%),
            var(--bg-soft);
        border-bottom: 1px solid var(--line);
        .lead { margin-top: 1.1rem; max-width: 680px; }
    }
    .page-hero-compact h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
    .page-hero-center { text-align: center; .lead { margin-inline: auto; } }

    .plans { display: grid; gap: 1.25rem; align-items: stretch; @media (width >= 960px) { grid-template-columns: 1fr 1.08fr 1fr; } }
    .plan {
        position: relative;
        display: flex;
        flex-direction: column;
        padding: 1.75rem;
        border-radius: var(--radius-lg);
        border: 1px solid var(--line);
        background: var(--bg-elev);
        box-shadow: var(--shadow-sm);
        h2 { font-size: 1.3rem; }
        > p:not(.plan-price) { color: var(--ink-2); }
        .btn { margin-top: auto; }
    }
    .plan-featured {
        border: 2px solid var(--brand);
        box-shadow: var(--shadow-lg);
        padding-block: 2.25rem;
        .badge { position: absolute; top: -0.85rem; left: 1.75rem; background: var(--brand); color: var(--on-brand); }
    }
    .plan-price {
        font-size: 2.6rem;
        font-weight: 800;
        letter-spacing: -0.03em;
        margin-block: 0.75rem;
        small { font-size: 0.95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
    }

    .people { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
    .person {
        padding: 1.75rem;
        border-radius: var(--radius-lg);
        background: var(--bg-elev);
        border: 1px solid var(--line);
        p:last-child { color: var(--ink-2); margin-top: 0.75rem; }
    }
    .person-role { color: var(--brand); font-weight: 700; font-size: 0.95rem; }

    .contact-grid { display: grid; gap: 1.5rem; align-items: start; @media (width >= 960px) { grid-template-columns: 1.6fr 1fr; } }
    .contact-aside { display: grid; gap: 1.25rem; h2 { font-size: 1.2rem; margin-bottom: 0.5rem; } p { color: var(--ink-2); } }
    .contact-phone a { font-size: 1.6rem; font-weight: 800; text-decoration: none; letter-spacing: -0.02em; }
    .contact-address { color: var(--muted); font-size: 0.9rem; padding-inline: 0.5rem; }
}

@layer utilities {
    .visually-hidden {
        position: absolute !important;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .site-head { border-bottom-color: var(--line); }
}

@media print {
    .site-head, .cta-band, .site-foot, .mega, .drawer { display: none !important; }
}

/*
 * Product scenes (templates/marketing/scenes/): the dashboard, a clinic site,
 * a phone, drawn in HTML and CSS with invented data. Everything inside scales
 * with the scene's width (container units), so a scene reads the same in a
 * hero column and on a phone. No images, no script; aria-hidden.
 */
@layer components {
    .scene { container-type: inline-size; width: 100%; max-width: 540px; justify-self: center; position: relative; }
    .scene::before {
        content: "";
        position: absolute;
        inset: 8% 6%;
        z-index: -1;
        background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 26%, transparent), transparent);
        filter: blur(36px);
    }
    .scene-stage {
        position: relative;
        font-size: clamp(7.5px, 2.5cqi, 13.5px);
        line-height: 1.4;
        padding: 3% 3% 0;
        color: var(--ink);
        > * { position: relative; }
    }
    .scene :is(ul, ol) { list-style: none; padding: 0; }
    .rise { @media (prefers-reduced-motion: no-preference) { animation: rise 0.7s var(--ease) both; } }
    .d2 { animation-delay: 0.25s; } .d3 { animation-delay: 0.45s; } .d4 { animation-delay: 0.65s; } .d5 { animation-delay: 0.85s; }
    @keyframes rise { from { opacity: 0; transform: translateY(12px); } }

    /* Frames */
    .browser { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 1.1em; box-shadow: var(--shadow-lg); overflow: hidden; }
    .browser-bar {
        display: flex; align-items: center; gap: 0.45em;
        padding: 0.7em 0.9em;
        background: var(--bg-soft);
        border-bottom: 1px solid var(--line);
        i { width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--line-strong); }
        i:first-child { background: #ff6b5e; } i:nth-child(2) { background: #ffbd2e; } i:nth-child(3) { background: #28c840; }
    }
    .browser-url { margin-left: 0.6em; flex: 1; font-size: 0.85em; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 0.2em 0.9em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .phone {
        width: 32%;
        aspect-ratio: 9 / 18.5;
        padding: 0.45em;
        border-radius: 2.2em;
        background: linear-gradient(160deg, #24324d, #0b1424);
        box-shadow: var(--shadow-lg), inset 0 0 0 1px rgb(255 255 255 / 0.08);
    }
    .phone-screen {
        position: relative;
        height: 100%;
        border-radius: 1.8em;
        background: var(--bg);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        gap: 0.6em;
        padding: 1.8em 0.8em 0.8em;
        font-size: 0.82em;
        &::before { content: ""; position: absolute; top: 0.5em; left: 50%; translate: -50% 0; width: 32%; height: 0.9em; border-radius: 999px; background: #0b1424; }
    }
    .m-panel { padding: 1.2em 1.3em; border-radius: 1.3em; }
    .chip-float {
        position: absolute;
        z-index: 3;
        display: inline-flex; align-items: center; gap: 0.5em;
        padding: 0.55em 0.95em;
        border-radius: 999px;
        background: var(--bg-elev);
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
        font-weight: 700;
        font-size: 0.95em;
        white-space: nowrap;
    }
    .at-tl { top: 4%; left: -2%; } .at-tr { top: 4%; right: -2%; } .at-bl { bottom: 4%; left: -2%; } .at-br { bottom: 4%; right: -2%; }
    @media (width < 640px) { .at-tl, .at-bl { left: 0; } .at-tr, .at-br { right: 0; } }
    .dot { width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--brand); flex-shrink: 0; display: inline-block; }
    .dot-good { background: var(--good); box-shadow: 0 0 0 0.25em var(--good-soft); }

    /* Pieces */
    .m-title { font-weight: 700; color: var(--muted); font-size: 0.92em; }
    .m-row { display: flex; justify-content: space-between; align-items: center; gap: 0.5em; margin-bottom: 0.8em; .m-title { margin: 0; } .badge { font-size: 0.85em; } }
    .m-btn { display: inline-block; padding: 0.55em 1em; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 0.85em; white-space: nowrap; }
    .m-btn.ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1px var(--line-strong); }
    .m-btn.is-small { font-size: 0.8em; padding: 0.45em 0.9em; }
    .m-btn.is-block { display: block; text-align: center; }
    .phone-screen .m-btn { white-space: normal; padding-inline: 0.6em; }
    .m-line { display: block; height: 0.55em; border-radius: 999px; background: var(--line); margin-block: 0.5em; width: 70%; }
    .w38 { width: 38%; } .w50 { width: 50%; } .w60 { width: 60%; } .w64 { width: 64%; } .w68 { width: 68%; } .w70 { width: 70%; } .w72 { width: 72%; } .w80 { width: 80%; } .w84 { width: 84%; } .w90 { width: 90%; } .w92 { width: 92%; }
    .m-avatar { display: inline-grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); font-weight: 800; font-size: 0.85em; flex-shrink: 0; }
    .m-stars { color: #f5a524; letter-spacing: 0.05em; &.dim { color: color-mix(in srgb, #f5a524 55%, var(--line)); } }
    .up { color: var(--good); font-weight: 800; }

    /* A clinic site */
    .msite { padding: 1em 1.2em 1.3em; display: grid; gap: 0.9em; }
    .msite-nav {
        display: flex; align-items: center; gap: 1em; font-size: 0.85em; color: var(--muted); white-space: nowrap;
        b { color: var(--ink); font-size: 1.1em; margin-right: auto; }
        em { font-style: normal; font-weight: 700; color: var(--on-brand); background: var(--brand); padding: 0.35em 0.8em; border-radius: 999px; }
        &.is-mobile { font-size: 0.9em; }
        .burger { width: 1.3em; height: 0.9em; border-block: 2px solid var(--ink); position: relative; &::after { content: ""; position: absolute; inset: 0; margin: auto; height: 2px; background: var(--ink); } }
    }
    .msite-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.2em; align-items: center; }
    .msite-kicker { font-size: 0.75em; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }
    .msite-h { font-size: 1.55em; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin-block: 0.25em 0.4em; &.is-mobile { font-size: 1.35em; margin: 0; } }
    .msite-p { font-size: 0.85em; color: var(--muted); margin-bottom: 0.8em; }
    .msite-cards {
        display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6em;
        span { display: flex; align-items: center; gap: 0.5em; padding: 0.7em; border: 1px solid var(--line); border-radius: 0.8em; font-weight: 700; font-size: 0.82em; }
    }
    .msite-facts { display: flex; flex-wrap: wrap; gap: 0.4em 1em; font-size: 0.78em; font-weight: 700; color: var(--ink-2); span { display: inline-flex; align-items: center; gap: 0.45em; } }
    .msite-request {
        display: grid; gap: 0.5em;
        padding: 1em;
        border-radius: 1em;
        background: var(--bg-soft);
        border: 1px solid var(--line);
    }
    .msite-request-h { font-weight: 800; font-size: 0.95em; }
    .msite-field {
        display: flex; justify-content: space-between; align-items: center;
        padding: 0.5em 0.7em;
        border-radius: 0.55em;
        border: 1px solid var(--line-strong);
        background: var(--bg-elev);
        color: var(--muted);
        font-size: 0.8em;
        i { width: 0.45em; height: 0.45em; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); rotate: 45deg; translate: 0 -0.15em; }
        &.is-focus-field { color: var(--ink); border-color: var(--brand); box-shadow: 0 0 0 0.25em color-mix(in srgb, var(--brand) 22%, transparent); max-width: 14em; }
    }
    .msite-list {
        display: grid; margin-top: 0.3em;
        li { display: flex; align-items: center; gap: 0.6em; padding: 0.55em 0; border-top: 1px solid var(--line); font-weight: 700; font-size: 0.92em; }
    }
    .ic {
        position: relative; flex-shrink: 0;
        width: 1.9em; height: 1.9em; border-radius: 0.55em;
        &::after { content: ""; position: absolute; inset: 0.4em; background: currentColor; mask: var(--icon) center / contain no-repeat; }
    }
    .ic-a { background: #e3eefe; color: #1e6fd9; --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3C4.5 3 3 5 3 7.5c0 2 .8 3.4 1.3 5.2.6 2.3.7 8.3 2.7 8.3 1.6 0 1.6-5.5 3-5.5h4c1.4 0 1.4 5.5 3 5.5 2 0 2.1-6 2.7-8.3.5-1.8 1.3-3.2 1.3-5.2C21 5 19.5 3 17 3c-1.8 0-3 1-5 1S8.8 3 7 3z'/%3E%3C/svg%3E"); }
    .ic-b { background: #dff5ec; color: #0b7f62; --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M4 9c2 5 5 7 8 7s6-2 8-7M7 11.5v2M12 13v2.5M17 11.5v2'/%3E%3C/svg%3E"); }
    .ic-c { background: #fdf0dc; color: #b45f06; --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.2 6.3L20.5 10l-6.3 2.2L12 18.5l-2.2-6.3L3.5 10l6.3-1.7zM19 15l.9 2.1L22 18l-2.1.9L19 21l-.9-2.1L16 18l2.1-.9z'/%3E%3C/svg%3E"); }
    .msite.is-faded > * { opacity: 0.55; }

    /* Search and maps */
    .m-search { display: flex; align-items: center; gap: 0.7em; padding: 0.7em 1em; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 600; margin-bottom: 0.9em; }
    .m-glass { width: 0.9em; height: 0.9em; border: 2px solid var(--muted); border-radius: 50%; position: relative; &::after { content: ""; position: absolute; width: 0.45em; height: 2px; background: var(--muted); right: -0.45em; bottom: -0.15em; rotate: 45deg; } }
    .m-map {
        position: relative;
        height: 9em;
        border-radius: 0.9em;
        overflow: hidden;
        background:
            linear-gradient(light-dark(#e9f1e4, #17302a), light-dark(#e9f1e4, #17302a)) 70% 70% / 30% 34% no-repeat,
            light-dark(#eef2f7, #16243b);
        &.is-short { height: 7em; margin: -1.2em -1.3em 1em; border-radius: 1.3em 1.3em 0 0; }
    }
    .m-road { position: absolute; background: light-dark(#ffffff, #24365a); }
    .r1 { left: 0; right: 0; top: 55%; height: 0.7em; } .r2 { top: 0; bottom: 0; left: 30%; width: 0.6em; } .r3 { left: 10%; right: 0; top: 22%; height: 0.45em; rotate: -8deg; }
    .m-pin {
        position: absolute;
        display: grid; place-items: center;
        width: 1.8em; height: 1.8em;
        border-radius: 50% 50% 50% 0;
        rotate: -45deg;
        background: var(--muted);
        color: #fff;
        &.is-you { background: #e5484d; width: 2.2em; height: 2.2em; box-shadow: 0 0 0 0.4em rgb(229 72 77 / 0.2); }
        &::after { content: ""; width: 0.6em; height: 0.6em; border-radius: 50%; background: #fff; }
    }
    .pin-a { left: 38%; top: 36%; } .pin-b { left: 66%; top: 18%; } .pin-c { left: 74%; top: 60%; }
    .stage-listings .pin-a { left: 46%; top: 30%; }
    .m-pack {
        display: grid; gap: 0.2em; margin-top: 0.8em;
        li { display: grid; padding: 0.55em 0.7em; border-radius: 0.7em; font-size: 0.92em; }
        li.is-you { background: var(--brand-soft); }
        small { color: var(--muted); font-size: 0.85em; }
    }
    .m-ranks table { width: 100%; border-collapse: collapse; margin-top: 0.6em; font-size: 0.9em; }
    .m-ranks td { padding: 0.45em 0; border-top: 1px solid var(--line); }
    .m-ranks td:nth-child(2) { text-align: center; width: 3em; font-size: 1.1em; }
    .m-ranks td:last-child { text-align: right; width: 3.5em; }

    /* Ads */
    .m-sponsored { font-size: 0.8em; font-weight: 800; color: var(--ink); }
    .m-adtitle { font-size: 1.15em; font-weight: 700; color: var(--brand); margin-block: 0.3em 0.1em; }
    .m-adurl { font-size: 0.82em; color: var(--good); }
    .m-adtext { font-size: 0.88em; color: var(--muted); margin-block: 0.4em 0.8em; }
    .m-hbars {
        display: grid; gap: 0.55em;
        li { display: grid; grid-template-columns: 6.5em 1fr 2em; align-items: center; gap: 0.6em; font-size: 0.88em; font-weight: 600; }
        i { height: 0.8em; border-radius: 999px; background: linear-gradient(90deg, var(--brand), #8fc1ff); transform-origin: left; @media (prefers-reduced-motion: no-preference) { animation: growx 1s var(--ease) 0.4s both; } }
        li:nth-child(1) i { width: 92%; } li:nth-child(2) i { width: 58%; } li:nth-child(3) i { width: 44%; } li:nth-child(4) i { width: 27%; }
        b { text-align: right; }
    }
    @keyframes growx { from { transform: scaleX(0.05); } }

    /* Listings */
    .m-name { font-weight: 800; font-size: 1.2em; }
    .m-meta { font-size: 0.88em; color: var(--muted); margin-top: 0.2em; }
    .m-open { color: var(--good); }
    .m-actions { display: flex; gap: 0.5em; margin-top: 0.9em; span { flex: 1; text-align: center; padding: 0.5em; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--brand); font-weight: 700; font-size: 0.82em; } }
    .m-checks {
        display: grid; grid-template-columns: 1fr 1fr; gap: 0.5em 1em; margin-top: 0.7em;
        li { display: flex; align-items: center; gap: 0.5em; font-weight: 600; font-size: 0.9em; }
        li::before { content: "✓"; display: grid; place-items: center; width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--good-soft); color: var(--good); font-weight: 800; font-size: 0.85em; }
    }
    .m-foot { margin-top: 0.8em; font-size: 0.82em; color: var(--muted); }

    /* Calls */
    .m-calls {
        display: grid; gap: 0.15em;
        li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.1em 0.6em; padding: 0.55em 0; border-top: 1px solid var(--line); font-size: 0.92em; }
        .tag { grid-row: span 2; font-size: 0.78em; margin: 0; }
        small { color: var(--muted); font-size: 0.85em; }
    }
    .m-wave {
        display: flex; align-items: center; gap: 0.25em; height: 2.6em; margin-bottom: 0.7em;
        i { flex: 1; border-radius: 999px; background: var(--brand); opacity: 0.75; height: 40%; }
        i:nth-child(3n) { height: 80%; } i:nth-child(3n + 1) { height: 55%; } i:nth-child(4n) { height: 95%; } i:nth-child(5n) { height: 30%; } i:nth-child(7n) { height: 70%; }
    }
    .m-text { font-size: 0.92em; margin-top: 0.3em; }

    /* Conversations */
    .m-chathead { display: flex; align-items: center; gap: 0.5em; padding-bottom: 0.6em; border-bottom: 1px solid var(--line); b { font-size: 1em; } small { margin-left: auto; color: var(--muted); font-size: 0.8em; } }
    .m-thread { display: grid; gap: 0.5em; align-content: start; flex: 1; }
    .m-bubble {
        max-width: 85%;
        padding: 0.55em 0.8em;
        border-radius: 1.1em;
        font-size: 0.92em;
        line-height: 1.35;
        &.in { background: var(--bg-soft); border: 1px solid var(--line); border-bottom-left-radius: 0.3em; justify-self: start; }
        &.out { background: var(--brand); color: var(--on-brand); border-bottom-right-radius: 0.3em; justify-self: end; }
    }
    .m-compose { display: flex; align-items: center; justify-content: space-between; padding: 0.5em 0.5em 0.5em 0.9em; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-size: 0.85em; i { width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--brand); } }
    .m-templates ul { display: grid; gap: 0.4em; margin-top: 0.6em; li { padding: 0.45em 0.7em; border-radius: 0.6em; background: var(--bg-soft); font-weight: 600; font-size: 0.88em; } }
    .m-widget {
        position: absolute;
        right: 3%;
        bottom: 4%;
        width: 56%;
        background: var(--bg-elev);
        border: 1px solid var(--line);
        border-radius: 1.1em;
        box-shadow: var(--shadow-lg);
        overflow: hidden;
        .m-thread { padding: 0.8em; }
    }
    .m-widget-head { padding: 0.7em 0.9em; background: var(--brand); color: var(--on-brand); display: grid; small { display: flex; align-items: center; gap: 0.4em; opacity: 0.9; font-size: 0.8em; } }

    /* Forms */
    .m-form {
        gap: 0.45em;
        label { display: grid; gap: 0.15em; font-size: 0.78em; font-weight: 700; color: var(--muted); }
        label span { padding: 0.4em 0.6em; border: 1px solid var(--line-strong); border-radius: 0.5em; color: var(--ink); font-weight: 600; font-size: 1.1em; }
    }
    .m-formtitle { font-weight: 800; font-size: 1.05em; margin-bottom: 0.2em; }
    .m-check { display: flex; align-items: center; gap: 0.45em; font-size: 0.8em; font-weight: 600; &::before { content: "✓"; display: grid; place-items: center; width: 1.2em; height: 1.2em; border-radius: 0.3em; background: var(--brand); color: var(--on-brand); font-size: 0.85em; } }
    .m-sign { color: var(--ink); border-bottom: 1px solid var(--line-strong); height: 2.6em; width: 100%; }
    .m-inbox ul, .m-chapters ul { display: grid; gap: 0.1em; margin-top: 0.5em; }
    .m-inbox li, .m-chapters li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.6em; padding: 0.5em 0; border-top: 1px solid var(--line); font-size: 0.9em; small { color: var(--muted); } }
    .m-inbox li { grid-template-columns: 1fr auto; small { color: var(--good); font-weight: 700; } }

    /* E-mail */
    .m-mailhead { display: grid; gap: 0.4em; padding-bottom: 0.8em; border-bottom: 1px solid var(--line); p { display: flex; align-items: center; gap: 0.6em; font-size: 0.92em; } small { width: 4.5em; color: var(--muted); font-weight: 700; } }
    .m-mailbody { padding-top: 0.9em; }
    .m-banner { height: 6.5em; border-radius: 0.8em; background: linear-gradient(120deg, #ffd27a, #ff9f6e 60%, #f76b8a); display: grid; place-items: center; margin-bottom: 0.8em; span { color: #fff; font-weight: 800; font-size: 1.15em; text-shadow: 0 1px 2px rgb(0 0 0 / 0.15); } }
    .m-mailfoot { margin-top: 1em; padding-top: 0.7em; border-top: 1px solid var(--line); font-size: 0.75em; color: var(--muted); }

    /* Reports */
    .m-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6em; p { display: grid; padding: 0.7em; border-radius: 0.8em; background: var(--bg-soft); } small { color: var(--muted); font-weight: 700; font-size: 0.78em; } b { font-size: 1.5em; letter-spacing: -0.02em; } em { font-style: normal; font-size: 0.78em; } }
    .m-chart { width: 100%; height: 6.5em; margin-top: 0.9em; display: block; }
    .m-chart-line { stroke: var(--brand); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
    .m-chart-area { fill: color-mix(in srgb, var(--brand) 14%, transparent); }
    .m-coord { display: flex; align-items: center; gap: 0.8em; p { display: grid; font-size: 0.92em; } small { color: var(--muted); } }

    /* Social */
    .m-cal {
        display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.35em;
        > span { min-height: 4.2em; border-radius: 0.6em; background: var(--bg-soft); }
        .m-day { min-height: 0; background: none; text-align: center; font-size: 0.75em; font-weight: 700; color: var(--muted); }
    }
    .m-post { display: flex; align-items: end; padding: 0.4em; font-size: 0.7em; font-weight: 800; color: #fff; line-height: 1.15; }
    .m-cal > .p1 { background: linear-gradient(160deg, #6ea8fe, #1e6fd9); } .m-cal > .p2 { background: linear-gradient(160deg, #6ee7b7, #0b7f62); } .m-cal > .p3 { background: linear-gradient(160deg, #fdba74, #f76b8a); }
    .m-feed { padding-inline: 0; gap: 0.5em; }
    .m-feedhead { display: flex; align-items: center; gap: 0.45em; padding-inline: 0.7em; font-size: 0.9em; .m-avatar { width: 2em; height: 2em; font-size: 0.75em; } }
    .m-feedimg { aspect-ratio: 1; background: linear-gradient(160deg, #6ea8fe, #1e6fd9); display: grid; place-items: end start; padding: 0.7em; span { color: #fff; font-weight: 800; font-size: 1.2em; } }
    .m-feedtext { padding-inline: 0.7em; font-size: 0.82em; }

    /* Videos */
    .m-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 0.9em; overflow: hidden; background: radial-gradient(80% 90% at 30% 30%, #2b7ff0, #0b1f3a); margin-bottom: 0.8em; }
    .m-screen-title { position: absolute; left: 6%; top: 10%; right: 40%; color: #fff; font-weight: 800; font-size: 1.25em; line-height: 1.2; small { display: block; margin-bottom: 0.4em; font-size: 0.6em; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; } }
    .m-play { position: absolute; inset: 0 8% 0 auto; margin: auto 0; width: 3.4em; height: 3.4em; border-radius: 50%; background: rgb(255 255 255 / 0.95); &::after { content: ""; position: absolute; left: 1.35em; top: 1em; border-left: 1.1em solid var(--brand); border-block: 0.7em solid transparent; } }
    .m-progress { position: absolute; left: 4%; right: 4%; bottom: 7%; height: 0.35em; border-radius: 999px; background: rgb(255 255 255 / 0.3); i { display: block; width: 38%; height: 100%; border-radius: inherit; background: #fff; } }
    .m-thumb { width: 3.6em; aspect-ratio: 16 / 10; border-radius: 0.4em; }
    .t1 { background: linear-gradient(135deg, #fdba74, #f76b8a); } .t2 { background: linear-gradient(135deg, #6ea8fe, #1e6fd9); } .t3 { background: linear-gradient(135deg, #6ee7b7, #0b7f62); }

    /* Postcards */
    .m-card { border-radius: 0.9em; box-shadow: var(--shadow-lg); aspect-ratio: 6 / 4; padding: 1.3em; }
    .m-card.back { position: relative; width: 72%; margin-left: auto; background: #fffdf7; color: #2b2b2b; rotate: 4deg; }
    .m-card.front { position: absolute; left: 3%; top: 32%; width: 72%; rotate: -5deg; background: linear-gradient(140deg, #1e6fd9, #0b1f3a); color: #fff; display: grid; align-content: center; gap: 0.5em; }
    .m-card .m-line { background: #e3ddd0; }
    .m-stamp { position: absolute; top: 1.1em; right: 1.1em; width: 3em; height: 3.6em; border: 2px dashed #c9bfa8; border-radius: 0.3em; }
    .m-addr { position: absolute; right: 1.3em; top: 42%; font-size: 0.85em; line-height: 1.5; }
    .m-track { position: absolute; left: 1.3em; bottom: 1.1em; font-weight: 800; display: grid; small { font-weight: 600; color: #6b6b6b; font-size: 0.75em; } }
    .m-cardkicker { font-size: 0.8em; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.85; }
    .m-cardh { font-size: 1.45em; font-weight: 800; line-height: 1.15; }
    .m-card .m-btn { justify-self: start; background: #fff; color: #0b1f3a; }
    .stage-mail { padding-bottom: 30%; }

    /* Accessibility */
    .m-skip { justify-self: start; padding: 0.35em 0.8em; border-radius: 0.4em; background: var(--ink); color: var(--bg); font-size: 0.78em; font-weight: 700; }
    .is-focus { outline: 2px solid var(--brand); outline-offset: 0.25em; border-radius: 0.2em; color: var(--ink); font-weight: 700; }
    .m-image {
        position: relative;
        display: grid; place-items: center;
        aspect-ratio: 4 / 3.2;
        border-radius: 1em;
        background: var(--bg-soft);
        border: 1px dashed var(--line-strong);
        color: var(--muted);
        svg { width: 34%; }
    }
    .m-alt { position: absolute; left: 6%; right: 6%; bottom: 7%; font-style: normal; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.68em; font-weight: 600; padding: 0.4em 0.6em; border-radius: 0.4em; background: rgb(11 31 58 / 0.9); color: #fff; }
    .m-label { margin-top: 0.8em; margin-bottom: 0.3em; font-size: 0.78em; font-weight: 700; }
    .m-req { color: var(--danger); font-weight: 600; }

    /* Where each scene's second piece sits */
    .stage-websites { padding-bottom: 18%; .browser { width: 80%; } .phone-float { position: absolute; right: 0; bottom: 0; width: 28%; } }
    .stage-seo { padding-bottom: 30%; > .m-panel:first-child { width: 80%; } .m-ranks { position: absolute; right: 0; bottom: 0; width: 60%; } }
    .stage-ads { padding-bottom: 30%; > .m-panel:first-child { width: 82%; } .m-campaigns { position: absolute; right: 0; bottom: 0; width: 66%; } }
    .stage-listings { padding-bottom: 26%; > .m-panel:first-child { width: 70%; } .m-health { position: absolute; right: 0; bottom: 0; width: 52%; } }
    .stage-calls { padding-bottom: 24%; > .m-panel:first-child { width: 84%; } .m-summary { position: absolute; right: 0; bottom: 0; width: 58%; } }
    .stage-texting { display: flex; padding-left: 8%; padding-bottom: 4%; .phone { width: 46%; } .m-templates { position: absolute; right: 0; top: 30%; width: 34%; } .at-bl { left: 0; bottom: 10%; } }
    .stage-chat { padding-bottom: 6%; .msite { min-height: 22em; } }
    .stage-forms { display: flex; padding-bottom: 4%; padding-left: 8%; .phone { width: 44%; } .m-inbox { position: absolute; right: 0; bottom: 14%; width: 50%; } }
    .stage-email { padding-bottom: 4%; .m-mail { width: 88%; margin-inline: auto; } }
    .stage-report { padding-bottom: 14%; > .m-panel:first-child { width: 88%; } .m-coord { position: absolute; right: 0; bottom: 0; width: 56%; } }
    .stage-social { display: flex; align-items: center; padding-bottom: 3%; > .m-panel:first-child { flex: 1; min-width: 0; } .phone-float { width: 33%; flex-shrink: 0; margin-left: -5%; z-index: 2; } }
    .stage-videos { padding-bottom: 32%; > .m-panel:first-child { width: 76%; } .m-chapters { position: absolute; right: 0; bottom: 0; width: 58%; } }
    .stage-a11y { padding-bottom: 6%; }

    /* The dashboard */
    .scene-wide { max-width: 720px; }
    .stage-dashboard { padding-bottom: 3%; font-size: clamp(7.5px, 2.1cqi, 14px); }
    .mdash { display: grid; grid-template-columns: 30% 1fr; min-height: 22em; }
    .mdash-side {
        padding: 1em 0.8em;
        background: var(--bg-soft);
        border-right: 1px solid var(--line);
        ul { display: grid; gap: 0.15em; margin-top: 1em; }
        li { display: flex; justify-content: space-between; align-items: center; padding: 0.45em 0.7em; border-radius: 0.6em; font-weight: 600; font-size: 0.9em; color: var(--ink-2); }
        li.is-on { background: var(--brand-soft); color: var(--brand-strong); }
        b { min-width: 1.6em; text-align: center; padding: 0.05em 0.4em; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 0.8em; }
    }
    .mdash-brand { display: flex; align-items: center; gap: 0.5em; font-weight: 800; font-size: 0.9em; }
    .mdash-mark { width: 1.6em; height: 1.6em; border-radius: 0.45em; background: linear-gradient(135deg, #2b7ff0, #0f4fa8); flex-shrink: 0; }
    .mdash-main { padding: 1.1em 1.2em; display: grid; gap: 0.8em; align-content: start; }
    .mdash-h { font-weight: 800; font-size: 1em; }
    .mdash-cards {
        display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6em;
        p { display: grid; padding: 0.8em; border-radius: 0.8em; border: 1px solid var(--line); background: var(--bg-elev); }
        b { font-size: 1.7em; letter-spacing: -0.03em; line-height: 1.1; color: var(--brand); }
        small { color: var(--muted); font-weight: 600; font-size: 0.82em; }
    }
    .mdash-appts {
        display: grid;
        li { display: grid; grid-template-columns: 3.6em 1fr auto; align-items: center; gap: 0.6em; padding: 0.6em 0; border-top: 1px solid var(--line); font-size: 0.92em; }
        time { font-weight: 800; font-variant-numeric: tabular-nums; }
        em { font-style: normal; margin: 0; }
    }
    .icon-list {
        display: grid; gap: 0.9rem; margin-block: 1.5rem 2rem;
        @media (width >= 640px) { grid-template-columns: 1fr 1fr; }
        li { display: flex; align-items: center; gap: 0.8rem; font-weight: 600; }
        .feature-icon { width: 40px; height: 40px; &::after { inset: 10px; } }
    }
    .section-dark .icon-list li { color: #e8eef8; }
    /* Here, in the components layer, so they outrank .lead and .eyebrow themselves. */
    .section-dark .lead { color: #aebbd2; }
    .section-dark .eyebrow { color: #84b4ff; }
    .section-dark .feature-icon { background: rgb(91 155 255 / 0.16); &::after { background: #84b4ff; } }
    .section-dark .scene::before { background: radial-gradient(closest-side, rgb(91 155 255 / 0.35), transparent); }

    /* A page hero with a scene beside its copy */
    .page-hero-split .hero-grid { @media (width >= 980px) { grid-template-columns: 1.05fr 0.95fr; } }
    .page-hero-split h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.3rem); }
}
