/* Public site — top menu and marketing pages (About, Products, Our Presence,
   Office, Contact). Shares its tokens with the sign-in page (Views/Users/Index). */

@font-face {
    font-family: 'Mulish';
    src: url('../theme/fonts/Mulish/Mulish-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 1000;
    font-style: normal;
    font-display: swap;
}

:root {
    --shell: #0d457a;
    --shell-deep: #092f54;
    --shell-line: rgba(255, 255, 255, 0.14);

    --primary: #1ab394;
    --primary-deep: #18a689;
    --primary-text: #0f7d67;
    --primary-wash: #e8f8f4;

    --paper: #ffffff;
    --page: #f8fafc;
    --rule: #dee2e6;
    --heading: #2f4050;
    --text: #676a6c;
    --muted: #94a3b8;

    --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --display: 'Mulish', system-ui, sans-serif;
    --body: 'Mulish', system-ui, -apple-system, sans-serif;

    --topbar-h: 64px;
    --gutter: clamp(16px, 4vw, 56px);
}

/* ── Top menu ─────────────────────────────────────────────────── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--topbar-h);
    background: var(--shell);
    border-bottom: 1px solid var(--shell-line);
    font-family: var(--body);
}

.topbar-inner {
    height: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    gap: 32px;
}

.topbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.topbar-brand img {
    width: 136px;
    height: auto;
    display: block;
    /* White mark on the brand blue, as on the sign-in panel */
    filter: brightness(0) invert(1);
}

/* Links sit at the right end of the bar */
.topbar-inner > nav {
    margin-left: auto;
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
}

.topbar-nav a {
    position: relative;
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.18s ease, background-color 0.18s ease;
}

.topbar-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.topbar-nav a.is-active {
    color: #fff;
}

.topbar-nav a.is-active::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -13px;
    height: 2px;
    background: var(--primary);
}

.topbar-nav .topbar-login {
    margin-left: 12px;
    padding: 9px 20px;
    color: #fff;
    background: var(--primary);
    font-weight: 700;
}

.topbar-nav .topbar-login:hover {
    color: #fff;
    background: var(--primary-deep);
}

/* Products drop-down — a white card under the item on desktop */
.has-submenu {
    position: relative;
}

.submenu-caret {
    margin-left: 3px;
    font-size: 9px;
    vertical-align: 1px;
    transition: transform 0.18s ease;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 60;
    width: 360px;
    padding-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.has-submenu:hover .submenu-caret,
.has-submenu:focus-within .submenu-caret {
    transform: rotate(180deg);
}

.submenu ul {
    list-style: none;
    margin: 0;
    padding: 8px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.topbar .topbar-nav .submenu a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    color: var(--heading);
    white-space: normal;
    font-size: 14px;
}

.topbar .topbar-nav .submenu a:hover {
    background: var(--page);
    box-shadow: none;
}

.topbar .topbar-nav .submenu a.is-active {
    background: var(--primary-wash);
}

.topbar .topbar-nav .submenu a::after {
    display: none;
}

.submenu-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--primary-wash);
    color: var(--primary-text);
    font-size: 14px;
}

.submenu-title {
    display: block;
    font-weight: 700;
    line-height: 1.3;
}

.topbar .topbar-nav .submenu a:hover .submenu-title,
.topbar .topbar-nav .submenu a.is-active .submenu-title {
    color: var(--primary-text);
}

.submenu-sub {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--text);
}

.topbar-toggle {
    display: none;
    margin-left: auto;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 17px;
    cursor: pointer;
}

/* Side variant — the menu runs along the top of the sign-in page's white
   right-hand panel: dark links on white, logo only on phones (where the blue
   left panel with its own logo is hidden) */
.topbar--side {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom: 0;
}

.topbar--side .topbar-inner {
    max-width: none;
    padding: 0 40px;
}

.topbar--side .topbar-brand img {
    filter: none;
}

.topbar--side .topbar-nav {
    gap: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.topbar--side .topbar-nav a {
    padding: 8px 10px;
    color: var(--heading);
}

.topbar--side .topbar-nav a.is-active::after {
    left: 10px;
    right: 10px;
}

.topbar--side .topbar-nav a:hover {
    color: var(--primary-text);
    background: var(--page);
}

.topbar--side .topbar-nav a.is-active {
    color: var(--primary-text);
}

.topbar--side .topbar-nav a.is-active::after {
    bottom: 2px;
}

.topbar--side .topbar-toggle {
    border-color: var(--rule);
    color: var(--heading);
}

.topbar.topbar--side a:focus-visible,
.topbar.topbar--side button:focus-visible {
    outline-color: var(--primary-deep);
}

@media (min-width: 901px) {
    .topbar--side .topbar-brand {
        display: none;
    }

    /* Line the links up with the logo row on the blue panel (its top padding
       plus half the logo's height) */
    .topbar--side {
        top: calc(clamp(32px, 4.5vh, 48px) + 34px - var(--topbar-h) / 2);
    }
}

/* Desktop: links sit in a soft pill; hover and the current page lift into a
   white capsule */
@media (min-width: 961px) {
    .topbar--side .topbar-nav {
        flex-wrap: nowrap;
        gap: 2px;
        padding: 4px;
        background: var(--page);
        border: 1px solid var(--rule);
        border-radius: 999px;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    }

    .topbar--side .topbar-nav a {
        padding: 7px 14px;
        font-size: 13.5px;
        white-space: nowrap;
        color: var(--text);
        border-radius: 999px;
        transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
    }

    .topbar--side .topbar-nav a:hover,
    .topbar--side .topbar-nav a.is-active {
        color: var(--primary-text);
        background: var(--paper);
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(26, 179, 148, 0.18);
    }

    .topbar--side .topbar-nav a.is-active::after {
        display: none;
    }
}

/* Narrow laptops: the white panel is under 550px, so keep the links on one line */
@media (min-width: 961px) and (max-width: 1150px) {
    .topbar--side .topbar-inner {
        padding: 0 28px;
    }

    .topbar--side .topbar-nav a {
        padding: 7px 7px;
        font-size: 12.5px;
    }
}

@media (max-width: 960px) {
    .topbar--side .topbar-nav {
        background: var(--paper);
        border-bottom-color: var(--rule);
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    }

    .topbar--side .topbar-nav a {
        padding: 12px;
    }

    .topbar--side .topbar-nav a.is-active {
        background: var(--primary-wash);
    }
}

@media (max-width: 900px) {
    .topbar--side {
        background: var(--paper);
        border-bottom: 1px solid var(--rule);
    }

    .topbar--side .topbar-inner {
        padding: 0 var(--gutter);
    }
}

@media (max-width: 960px) {
    .topbar-toggle {
        display: flex;
    }

    /* Phone menu: the products are listed inline under Products */
    .submenu {
        position: static;
        width: auto;
        padding: 0 0 4px 12px;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .submenu ul {
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .submenu-caret,
    .submenu-sub {
        display: none;
    }

    .topbar .topbar-nav .submenu a {
        align-items: center;
        padding: 8px 12px;
        font-size: 14px;
        color: rgba(255, 255, 255, 0.85);
    }

    .topbar .topbar-nav .submenu a:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    .topbar .topbar-nav .submenu a.is-active {
        background: rgba(255, 255, 255, 0.1);
    }

    .topbar .topbar-nav .submenu a:hover .submenu-title,
    .topbar .topbar-nav .submenu a.is-active .submenu-title {
        color: #fff;
    }

    .submenu-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
        background: rgba(255, 255, 255, 0.1);
        color: var(--primary);
    }

    .submenu-title {
        font-weight: 600;
    }

    /* White phone menu on the sign-in page */
    .topbar.topbar--side .topbar-nav .submenu a {
        color: var(--heading);
    }

    .topbar.topbar--side .topbar-nav .submenu a:hover {
        background: var(--page);
    }

    .topbar.topbar--side .topbar-nav .submenu a.is-active {
        background: var(--primary-wash);
    }

    .topbar.topbar--side .topbar-nav .submenu a:hover .submenu-title,
    .topbar.topbar--side .topbar-nav .submenu a.is-active .submenu-title {
        color: var(--primary-text);
    }

    .topbar--side .submenu-icon {
        background: var(--primary-wash);
        color: var(--primary-text);
    }

    /* The toggle takes the right end; the links drop down below the bar, so
       no gap is kept for them beside it */
    .topbar-inner {
        gap: 0;
    }

    .topbar-inner > nav {
        margin-left: 0;
    }

    .topbar-nav {
        display: none;
        position: absolute;
        top: var(--topbar-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        max-height: calc(100vh - var(--topbar-h));
        overflow-y: auto;
        padding: 10px var(--gutter) 18px;
        background: var(--shell);
        border-bottom: 1px solid var(--shell-line);
        box-shadow: 0 12px 24px rgba(9, 47, 84, 0.35);
    }

    .topbar.is-open .topbar-nav {
        display: flex;
    }

    .topbar-nav a {
        padding: 12px;
    }

    .topbar-nav a.is-active {
        background: rgba(255, 255, 255, 0.1);
    }

    .topbar-nav a.is-active::after {
        display: none;
    }

    .topbar-nav .topbar-login {
        margin: 8px 0 0;
        text-align: center;
    }
}

/* ── Public page shell ────────────────────────────────────────── */
.site-body {
    margin: 0;
    font-family: var(--body);
    background: var(--paper);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

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

.site-body h1,
.site-body h2,
.site-body h3,
.site-body p,
.site-body ul {
    margin: 0;
}

.wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* Hero band — the sign-in panel's blue with its blueprint grid */
.page-hero {
    position: relative;
    overflow: hidden;
    background: var(--shell);
    color: #fff;
    padding: clamp(48px, 9vh, 88px) 0 clamp(40px, 7vh, 72px);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(120% 90% at 20% 20%, #000 25%, transparent 78%);
    -webkit-mask-image: radial-gradient(120% 90% at 20% 20%, #000 25%, transparent 78%);
}

.page-hero .wrap {
    position: relative;
}

.eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary-text);
}

.page-hero .eyebrow {
    color: var(--primary);
}

.page-hero h1 {
    margin-top: 14px;
    max-width: 20ch;
    font-family: var(--display);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.page-hero h1 em {
    font-style: normal;
    color: var(--primary);
}

.page-hero .lede {
    margin-top: 16px;
    max-width: 58ch;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.section {
    padding: clamp(48px, 8vh, 80px) 0;
}

.section-alt {
    background: var(--page);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.section-head {
    max-width: 60ch;
    margin-bottom: 32px;
}

.section-head h2 {
    margin-top: 10px;
    font-family: var(--display);
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--heading);
}

.section-head p {
    margin-top: 10px;
    font-size: 15px;
}

.prose p {
    max-width: 68ch;
    font-size: 15.5px;
    line-height: 1.75;
}

.prose p + p {
    margin-top: 14px;
}

/* Cards grid */
.grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Few cards: stretch them across the row instead of leaving empty columns */
.grid-fill {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
    border-color: #c3ccd4;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.card-code {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--primary-text);
    background: var(--primary-wash);
    border-radius: 6px;
    padding: 3px 8px;
}

.card-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--primary-wash);
    color: var(--primary-text);
    font-size: 17px;
}

.card h3 {
    margin-top: 14px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--heading);
}

.card p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.65;
}

.card ul {
    margin-top: 12px;
    padding-left: 18px;
    font-size: 14px;
}

.card ul li + li {
    margin-top: 4px;
}

/* Whole card is a link */
.site-body a.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.site-body a.card-link:hover {
    border-color: var(--primary);
}

.site-body a.card-link:hover h3 {
    color: var(--primary-text);
}

.card-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-text);
}

.hero-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    text-decoration: none;
}

.hero-back:hover {
    color: #fff;
    text-decoration: none;
}

/* Product pages — icon badge and "ideal for" line in the hero */
.product-badge {
    margin-top: 22px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--shell-line);
    color: var(--primary);
    font-size: 23px;
}

.page-hero .product-badge + h1 {
    margin-top: 18px;
}

.hero-tag {
    margin-top: 14px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.7);
}

/* Numbered workflow steps, joined by a line on wide screens */
.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.steps li {
    position: relative;
    padding: 22px 20px 20px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-top: 3px solid var(--primary);
    border-radius: 12px;
}

.step-num {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--primary-text);
}

.steps h3 {
    margin-top: 8px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--heading);
}

.steps p {
    margin-top: 6px;
    font-size: 13.5px;
    line-height: 1.6;
}

/* Key/value facts row */
.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    border-top: 1px solid var(--rule);
}

.fact {
    padding: 20px 20px 20px 0;
    border-bottom: 1px solid var(--rule);
}

.fact-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.fact-value {
    margin-top: 6px;
    font-size: 18px;
    font-weight: 700;
    color: var(--heading);
}

.fact-value a {
    color: inherit;
    text-decoration: none;
}

.fact-value a:hover {
    color: var(--primary-text);
}

/* Contact rows */
.contact-card a.contact-link {
    display: inline-block;
    margin-top: 12px;
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 500;
    color: var(--heading);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.contact-card a.contact-link:hover {
    color: var(--primary-text);
    border-bottom-color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 22px;
    border-radius: 10px;
    font-family: var(--body);
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-deep);
    color: #fff;
    text-decoration: none;
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
    border-color: #fff;
    color: #fff;
    text-decoration: none;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

/* Placeholder value still to be filled in by the site owner */
.placeholder {
    color: var(--muted);
    font-style: italic;
    font-weight: 500;
}

.map-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--rule);
    border-radius: 12px;
    background: var(--page);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
    padding: 24px;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

@media (max-width: 860px) {
    .split {
        grid-template-columns: 1fr;
    }
}

/* ── Site chrome: skip link, utility bar, scrolled menu ──────────── */
.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--paper);
    color: var(--heading);
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

.utility-bar {
    background: var(--shell-deep);
    color: rgba(255, 255, 255, 0.72);
    font-size: 12.5px;
}

.utility-bar .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 36px;
}

.utility-claim i {
    margin-right: 6px;
    color: var(--primary);
}

.utility-contact {
    display: flex;
    gap: 22px;
}

.utility-contact a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.utility-contact a:hover {
    color: #fff;
}

.utility-contact i {
    margin-right: 6px;
    color: var(--primary);
}

@media (max-width: 640px) {
    .utility-bar {
        display: none;
    }
}

.topbar {
    transition: box-shadow 0.2s ease;
}

.topbar.is-scrolled {
    box-shadow: 0 8px 24px rgba(4, 20, 40, 0.28);
}

.btn-lg {
    height: 52px;
    padding: 0 26px;
    font-size: 15px;
}

.section-head-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.split-center {
    align-items: center;
}

/* ── Home hero with product preview ───────────────────────────────── */
.home-hero {
    padding: clamp(56px, 10vh, 104px) 0 clamp(96px, 14vh, 136px);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(26, 179, 148, 0.14);
    border: 1px solid rgba(26, 179, 148, 0.45);
    color: #8fe6d1;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.site-body .hero-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 28px;
    padding: 0;
    list-style: none;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.85);
}

.hero-checks i {
    margin-right: 6px;
    color: var(--primary);
}

/* Illustrated dashboard */
.mock {
    position: relative;
}

.mock-window {
    overflow: hidden;
    border-radius: 14px;
    background: var(--paper);
    color: var(--heading);
    font-size: 11px;
    box-shadow: 0 32px 64px rgba(4, 20, 40, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.mock-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    background: #eef2f6;
    border-bottom: 1px solid var(--rule);
}

.mock-dots i {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 5px;
    border-radius: 50%;
    background: #ff5f57;
}

.mock-dots i:nth-child(2) { background: #febc2e; }
.mock-dots i:nth-child(3) { background: #28c840; }

.mock-url {
    flex: 1;
    max-width: 260px;
    margin: 0 auto;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--paper);
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--muted);
    text-align: center;
}

.mock-url i {
    margin-right: 4px;
    font-size: 9px;
    color: var(--primary-text);
}

.mock-body {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
}

.mock-side {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 8px;
    background: var(--shell);
}

.mock-side span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
}

.mock-side span i {
    width: 12px;
    font-size: 10px;
    text-align: center;
}

.mock-side .is-on {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.mock-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    background: var(--page);
}

.mock-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.mock-head strong {
    font-size: 13px;
    font-weight: 800;
}

.mock-head span {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
}

.mock-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.mock-tiles div {
    display: flex;
    flex-direction: column;
    padding: 8px 9px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: var(--paper);
}

.mock-tiles small {
    font-size: 9.5px;
    color: var(--muted);
}

.mock-tiles b {
    margin-top: 2px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.mock-tiles em {
    font-style: normal;
    font-size: 9.5px;
    font-weight: 700;
    color: var(--primary-text);
}

.mock-chart {
    height: 92px;
    padding: 8px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: var(--paper);
}

.mock-chart svg {
    display: block;
    width: 100%;
    height: 100%;
}

.mock-rows {
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: var(--paper);
}

.mock-rows div {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-top: 1px solid #eef1f4;
}

.mock-rows div:first-child {
    border-top: 0;
}

.mock-rows .tok {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--primary-text);
}

.mock-rows .pill {
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 700;
}

.pill-green { background: #e8f8f4; color: #0f7d67; }
.pill-amber { background: #fef6ec; color: #8f5a13; }
.pill-blue  { background: #e8f0fb; color: #0d457a; }

.mock-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--paper);
    color: var(--heading);
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 14px 30px rgba(4, 20, 40, 0.3);
    animation: float 6s ease-in-out infinite;
}

.mock-float i {
    font-size: 15px;
    color: var(--primary);
}

.mock-float .fa-whatsapp {
    color: #25d366;
}

.mock-float-a {
    left: -28px;
    bottom: 34px;
}

.mock-float-b {
    right: 28px;
    top: -18px;
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@media (max-width: 1100px) {
    .mock-float-a { left: -12px; }
    .mock-float-b { right: 16px; }
}

@media (max-width: 560px) {
    .mock-body {
        grid-template-columns: 1fr;
    }

    .mock-side,
    .mock-float {
        display: none;
    }

    .mock-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ── Carousel (_Carousel.cshtml) ──────────────────────────────────── */
.carousel-track {
    display: grid;
}

/* Slides share one grid cell, so the track is as tall as the tallest slide */
.carousel-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

/* Only the active slide is on top and takes clicks, even mid-fade */
.carousel-slide.is-active {
    position: relative;
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.5s ease, visibility 0s;
}

.carousel-slide .carousel-copy,
.carousel-slide .mock {
    transition: transform 0.6s ease;
}

.carousel-slide:not(.is-active) .carousel-copy {
    transform: translateX(-14px);
}

.carousel-slide:not(.is-active) .mock {
    transform: translateX(14px);
}

.carousel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.carousel-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

/* Controls */
.carousel-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 16px;
}

.carousel-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.carousel-tab {
    position: relative;
    overflow: hidden;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    font-family: var(--body);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.carousel-tab-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
}

.carousel.is-playing .carousel-tab.is-active .carousel-tab-bar {
    animation: carousel-progress var(--interval, 7000ms) linear forwards;
}

@keyframes carousel-progress {
    from { width: 0; }
    to { width: 100%; }
}

.carousel-nav {
    display: flex;
    gap: 8px;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.carousel-note {
    margin-top: 18px;
    font-size: 12.5px;
    color: var(--muted);
    text-align: center;
}

/* Hero variant — in the blue page header */
.carousel--hero .carousel-controls {
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid var(--shell-line);
}

.carousel--hero .carousel-tab {
    border-color: rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.75);
}

.carousel--hero .carousel-tab:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.carousel--hero .carousel-tab.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
}

.carousel--hero .carousel-btn {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.carousel--hero .carousel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.55);
}

.carousel--hero .eyebrow {
    color: var(--primary);
}

.carousel--hero .carousel-title {
    margin-top: 18px;
    max-width: 14ch;
    font-size: clamp(38px, 4.6vw, 58px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #fff;
}

.carousel--hero .eyebrow + .carousel-title {
    margin-top: 14px;
}

.carousel-title em {
    font-style: normal;
    color: var(--primary);
}

.carousel--hero .carousel-text {
    margin-top: 16px;
    max-width: 52ch;
    font-size: 16.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

/* Light variant — on a white or pale section */
.carousel--light .carousel-controls {
    margin-bottom: 28px;
}

.carousel--light .carousel-tab {
    border-color: var(--rule);
    background: var(--paper);
    color: var(--text);
}

.carousel--light .carousel-tab:hover {
    color: var(--heading);
    border-color: #c3ccd4;
}

.carousel--light .carousel-tab.is-active {
    color: var(--primary-text);
    background: var(--primary-wash);
    border-color: var(--primary);
}

.carousel--light .carousel-btn {
    border-color: var(--rule);
    background: var(--paper);
    color: var(--heading);
}

.carousel--light .carousel-btn:hover {
    border-color: var(--primary);
    color: var(--primary-text);
}

.carousel--light .carousel-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.carousel--light .carousel-title {
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--heading);
}

.carousel--light .carousel-text {
    margin-top: 10px;
    font-size: 15.5px;
    line-height: 1.7;
}

.carousel--light .check-list {
    margin-top: 14px;
}

.carousel--light .mock-window {
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12), 0 0 0 1px var(--rule);
}

.carousel--hero .carousel-tab:focus-visible,
.carousel--hero .carousel-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.btn-outline {
    background: var(--paper);
    border-color: var(--rule);
    color: var(--heading);
}

.site-body .btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-text);
    text-decoration: none;
}

@media (max-width: 960px) {
    .carousel-grid,
    .carousel--light .carousel-grid {
        grid-template-columns: 1fr;
    }

    .mock {
        max-width: 640px;
    }
}

/* Phones: the hero's labelled tabs become dots (with a full-size tap area),
   and the hero drops its screen so the controls stay on the first screenful */
@media (max-width: 640px) {
    .carousel--hero .carousel-tabs {
        gap: 0;
    }

    .carousel--hero .carousel-tab {
        width: 30px;
        height: 32px;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .carousel--hero .carousel-tab::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 50%;
        width: 9px;
        height: 9px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.4);
        transform: translate(-50%, -50%);
        transition: width 0.2s ease, background-color 0.2s ease;
    }

    .carousel--hero .carousel-tab.is-active,
    .carousel--hero .carousel-tab:hover {
        background: transparent;
    }

    .carousel--hero .carousel-tab.is-active::before {
        width: 22px;
        background: #fff;
    }

    .carousel--hero .carousel-tab-bar {
        display: none;
    }

    .carousel--hero .carousel-tab-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .carousel--hero .carousel-controls {
        margin-top: 28px;
    }

    .carousel--hero .mock {
        display: none;
    }

    .carousel--light .carousel-nav {
        display: none;
    }
}

/* ── Key facts strip, lifted over the hero's bottom edge ─────────── */
.stats-band {
    position: relative;
    z-index: 2;
    margin-top: -52px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--rule);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.1);
}

.stat {
    padding: 24px 26px;
    border-left: 1px solid var(--rule);
}

.stat:first-child {
    border-left: 0;
}

.stat-value {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--shell);
}

.stat-label {
    margin-top: 6px;
    font-size: 13.5px;
    line-height: 1.5;
}

@media (max-width: 860px) {
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat:nth-child(3) {
        border-left: 0;
    }

    .stat:nth-child(n + 3) {
        border-top: 1px solid var(--rule);
    }
}

@media (max-width: 480px) {
    .stats {
        grid-template-columns: 1fr;
    }

    .stat {
        border-left: 0;
        padding: 18px 20px;
    }

    .stat + .stat {
        border-top: 1px solid var(--rule);
    }
}

/* ── Product showcase ─────────────────────────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.site-body a.product-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-body a.product-card::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--shell));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.site-body a.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.site-body a.product-card:hover::before {
    transform: scaleX(1);
}

.site-body a.product-card-cta {
    background: var(--shell);
    border-color: var(--shell);
    color: rgba(255, 255, 255, 0.82);
}

.site-body a.product-card-cta h3,
.site-body a.product-card-cta:hover h3 {
    color: #fff;
}

.product-card-cta .card-icon {
    background: rgba(255, 255, 255, 0.12);
    color: var(--primary);
}

.product-card-cta .card-more {
    color: var(--primary);
}

@media (max-width: 960px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Check list ───────────────────────────────────────────────────── */
.site-body .check-list {
    margin-top: 8px;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    font-size: 15px;
    color: var(--heading);
}

.check-list i {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-wash);
    color: var(--primary-text);
    font-size: 10px;
}

/* ── Platform hub: modules around one patient record ──────────────── */
.hub {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1;
    margin: 0 auto;
}

.hub-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hub-lines circle {
    fill: none;
    stroke: var(--rule);
    stroke-width: 0.35;
    stroke-dasharray: 1 1.2;
}

.hub-lines line {
    stroke: rgba(26, 179, 148, 0.4);
    stroke-width: 0.35;
}

.hub-center {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 36%;
    aspect-ratio: 1;
    padding: 12px;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 50%;
    background: var(--shell);
    color: #fff;
    text-align: center;
    box-shadow: 0 18px 40px rgba(13, 69, 122, 0.3);
    animation: hub-pulse 3.2s ease-out infinite;
}

.hub-center i {
    font-size: 24px;
    color: var(--primary);
}

.hub-center strong {
    font-size: 14px;
    line-height: 1.25;
}

@keyframes hub-pulse {
    0% { box-shadow: 0 18px 40px rgba(13, 69, 122, 0.3), 0 0 0 0 rgba(26, 179, 148, 0.35); }
    70% { box-shadow: 0 18px 40px rgba(13, 69, 122, 0.3), 0 0 0 18px rgba(26, 179, 148, 0); }
    100% { box-shadow: 0 18px 40px rgba(13, 69, 122, 0.3), 0 0 0 0 rgba(26, 179, 148, 0); }
}

.hub-node {
    position: absolute;
    min-width: 80px;
    padding: 7px 10px;
    transform: translate(-50%, -50%);
    border: 1px solid var(--rule);
    border-radius: 10px;
    background: var(--paper);
    color: var(--heading);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.hub-node span {
    display: block;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--primary-text);
}

@media (max-width: 560px) {
    .hub-node {
        min-width: 0;
        padding: 5px 7px;
        font-size: 10.5px;
    }

    .hub-center strong {
        font-size: 12px;
    }
}

/* ── Scroll reveal (added by script, below the fold only) ─────────── */
.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* CTA band */
.cta {
    background: var(--shell);
    color: #fff;
    padding: clamp(44px, 8vh, 72px) 0;
}

.cta .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cta .eyebrow {
    color: var(--primary);
}

.cta h2 {
    margin-top: 8px;
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cta p {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.8);
}

.cta .btn-row {
    margin-top: 0;
}

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer {
    padding-top: 56px;
    background: var(--shell-deep);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
}

.footer-brand img {
    width: 150px;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    max-width: 34ch;
    margin-top: 14px;
    font-size: 13.5px;
    line-height: 1.7;
}

.site-footer .footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-top: 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
}

.site-footer .footer-social:hover {
    border-color: var(--primary);
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.site-body .footer-col h3 {
    margin-bottom: 6px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.footer-label {
    margin-top: 2px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.site-footer .footer-phone {
    margin-top: -6px;
    font-family: var(--mono);
    font-size: 16px;
    color: #fff;
}

.site-footer .footer-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
}

.site-footer .footer-login:hover {
    border-color: var(--primary);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 44px;
    padding-top: 20px;
    padding-bottom: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 860px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.site-body a:focus-visible,
.site-body button:focus-visible {
    outline: 2px solid var(--primary-deep);
    outline-offset: 2px;
}

.topbar a:focus-visible,
.topbar button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .topbar *,
    .site-body * {
        transition-duration: 0.001ms !important;
        animation: none !important;
    }

    .site-body .carousel-slide,
    .site-body .carousel-slide * {
        transition: none !important;
        transform: none !important;
    }
}
