/* 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: #072848;
    --shell-line: rgba(255, 255, 255, 0.14);

    --primary: #1ab394;
    --primary-deep: #15997d;
    --primary-text: #0f7d67;
    --primary-dark: #0c6b58;
    --primary-wash: #e8f8f4;
    --primary-glow: rgba(26, 179, 148, 0.22);

    --paper: #ffffff;
    --page: #f6f9fc;
    --rule: #e2e8f0;
    --heading: #0f172a;
    --text: #475569;
    --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: 68px;
    --gutter: clamp(18px, 4.5vw, 60px);
    --radius: 16px;
    --shadow-soft: 0 10px 30px -6px rgba(15, 23, 42, 0.06), 0 2px 8px -2px rgba(15, 23, 42, 0.04);
    --shadow-lift: 0 22px 48px -12px rgba(13, 69, 122, 0.14), 0 6px 16px -4px rgba(15, 23, 42, 0.06);
}

/* ── Top menu ─────────────────────────────────────────────────── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--topbar-h);
    background: rgba(13, 69, 122, 0.94);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    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: 14px;
    padding: 9px 20px;
    color: #fff;
    background: linear-gradient(135deg, #21c6a5 0%, var(--primary) 100%);
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(26, 179, 148, 0.32);
}

.topbar-nav .topbar-login:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    box-shadow: 0 8px 20px rgba(26, 179, 148, 0.42);
}

/* Products drop-down — navy/teal panel matching the topbar theme */
.has-submenu {
    position: relative;
}

.submenu-caret {
    margin-left: 4px;
    font-size: 9px;
    vertical-align: 1px;
    opacity: 0.75;
    transition: transform 0.2s ease;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 60;
    width: 400px;
    padding-top: 14px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
}

.submenu--products {
    width: 400px;
    transform: translateX(-42%) translateY(8px);
}

.submenu--about {
    width: 340px;
    transform: translateX(-50%) translateY(8px);
}

/* Upward arrow pointing at the parent nav item */
.submenu::before,
.submenu::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.submenu--products::before,
.submenu--products::after {
    left: 42%;
}

.submenu::before {
    top: 4px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 11px solid rgba(94, 234, 212, 0.35);
}

.submenu::after {
    top: 5px;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 10px solid #0f4e8a;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.has-submenu:hover .submenu--products,
.has-submenu:focus-within .submenu--products {
    transform: translateX(-42%) translateY(0);
}

.has-submenu:hover .submenu--about,
.has-submenu:focus-within .submenu--about {
    transform: translateX(-50%) translateY(0);
}

.has-submenu:hover .submenu::before,
.has-submenu:hover .submenu::after,
.has-submenu:focus-within .submenu::before,
.has-submenu:focus-within .submenu::after {
    opacity: 1;
}

.has-submenu:hover .submenu-caret,
.has-submenu:focus-within .submenu-caret {
    transform: rotate(180deg);
}

.submenu-panel {
    position: relative;
    overflow: hidden;
    padding: 10px;
    border-radius: 16px;
    background:
        radial-gradient(ellipse 80% 55% at 100% 0%, rgba(26, 179, 148, 0.18), transparent 55%),
        linear-gradient(165deg, #0f4e8a 0%, var(--shell) 42%, var(--shell-deep) 100%);
    border: 1px solid rgba(94, 234, 212, 0.22);
    box-shadow:
        0 24px 48px rgba(7, 40, 72, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.submenu-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, #5eead4, var(--primary), transparent);
    opacity: 0.9;
    pointer-events: none;
}

.submenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.topbar .topbar-nav .submenu a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.92);
    white-space: normal;
    font-size: 14px;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.topbar .topbar-nav .submenu a:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    color: #fff;
}

.topbar .topbar-nav .submenu a.is-active {
    background: rgba(26, 179, 148, 0.16);
    box-shadow: inset 0 0 0 1px rgba(26, 179, 148, 0.28);
}

.topbar .topbar-nav .submenu a::after {
    display: none;
}

.submenu-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(26, 179, 148, 0.16);
    border: 1px solid rgba(26, 179, 148, 0.32);
    color: #6ee7cb;
    font-size: 14px;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.topbar .topbar-nav .submenu a:hover .submenu-icon,
.topbar .topbar-nav .submenu a.is-active .submenu-icon {
    background: rgba(26, 179, 148, 0.28);
    border-color: rgba(94, 234, 212, 0.45);
    color: #fff;
}

.submenu-text {
    flex: 1;
    min-width: 0;
}

.submenu-title {
    display: block;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

.topbar .topbar-nav .submenu a:hover .submenu-title,
.topbar .topbar-nav .submenu a.is-active .submenu-title {
    color: #6ee7cb;
}

.submenu-sub {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.62);
}

.submenu-go {
    flex-shrink: 0;
    align-self: center;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #6ee7cb;
    font-size: 10px;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.topbar .topbar-nav .submenu a:hover .submenu-go,
.topbar .topbar-nav .submenu a.is-active .submenu-go {
    opacity: 1;
    transform: none;
    background: rgba(26, 179, 148, 0.22);
}

/* Sign-in page: keep a light panel so it sits cleanly on white */
.topbar--side .submenu-panel {
    background:
        radial-gradient(ellipse 80% 55% at 100% 0%, rgba(26, 179, 148, 0.1), transparent 55%),
        linear-gradient(180deg, #fff 0%, var(--page) 100%);
    border-color: rgba(13, 69, 122, 0.12);
    box-shadow: var(--shadow-lift);
}

.topbar--side .submenu-panel::before {
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.topbar--side .submenu::before {
    border-bottom-color: rgba(13, 69, 122, 0.18);
}

.topbar--side .submenu::after {
    border-bottom-color: #fff;
}

.topbar--side .topbar-nav .submenu a {
    color: var(--heading);
}

.topbar--side .topbar-nav .submenu a:hover {
    background: var(--primary-wash);
    color: var(--heading);
}

.topbar--side .topbar-nav .submenu a.is-active {
    background: var(--primary-wash);
    box-shadow: inset 0 0 0 1px rgba(26, 179, 148, 0.28);
}

.topbar--side .submenu-title {
    color: var(--heading);
}

.topbar--side .topbar-nav .submenu a:hover .submenu-title,
.topbar--side .topbar-nav .submenu a.is-active .submenu-title {
    color: var(--primary-text);
}

.topbar--side .submenu-sub {
    color: var(--text);
}

.topbar--side .submenu-icon {
    background: var(--primary-wash);
    border-color: rgba(26, 179, 148, 0.28);
    color: var(--primary-text);
}

.topbar--side .submenu-go {
    background: rgba(26, 179, 148, 0.1);
    color: var(--primary-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: products listed inline under Products */
    .submenu {
        position: static;
        width: auto;
        padding: 0 0 4px 8px;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }

    .submenu-panel {
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .submenu-panel::before {
        display: none;
    }

    .submenu::before,
    .submenu::after,
    .submenu-go,
    .submenu-caret,
    .submenu-sub {
        display: none;
    }

    .submenu ul {
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .topbar .topbar-nav .submenu a {
        align-items: center;
        padding: 10px 12px;
        font-size: 14px;
        color: rgba(255, 255, 255, 0.85);
        border-radius: 10px;
    }

    .topbar .topbar-nav .submenu a:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }

    .topbar .topbar-nav .submenu a.is-active {
        background: rgba(26, 179, 148, 0.18);
        box-shadow: none;
    }

    .topbar .topbar-nav .submenu a:hover .submenu-title,
    .topbar .topbar-nav .submenu a.is-active .submenu-title {
        color: #6ee7cb;
    }

    .submenu-icon {
        width: 30px;
        height: 30px;
        font-size: 12px;
        background: rgba(26, 179, 148, 0.16);
        border-color: rgba(26, 179, 148, 0.3);
        color: #6ee7cb;
    }

    .submenu-title {
        font-weight: 600;
        color: #fff;
    }

    /* 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 .submenu-title,
    .topbar.topbar--side .topbar-nav .submenu a:hover .submenu-title,
    .topbar.topbar--side .topbar-nav .submenu a.is-active .submenu-title {
        color: var(--heading);
    }

    .topbar.topbar--side .topbar-nav .submenu a.is-active .submenu-title {
        color: var(--primary-text);
    }

    .topbar--side .submenu-icon {
        background: var(--primary-wash);
        border-color: rgba(26, 179, 148, 0.28);
        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 — clean navy field; decorative art stays on the right, behind copy */
.page-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 55% at 88% 18%, rgba(26, 179, 148, 0.14), transparent 62%),
        linear-gradient(135deg, #07284a 0%, #0d457a 50%, #073358 100%);
    color: #fff;
    padding: clamp(56px, 9.5vh, 96px) 0 clamp(48px, 7.5vh, 80px);
}

/* Dot grid — only on the right so headlines stay clean */
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(94, 234, 212, 0.14) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 28px 28px, 56px 56px, 56px 56px;
    background-position: 0 0, 0 0, 0 0;
    mask-image: radial-gradient(ellipse 90% 90% at 82% 45%, #000 18%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 90% 90% at 82% 45%, #000 18%, transparent 78%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}

/* Subtle bottom horizon glow line */
.page-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, rgba(94, 234, 212, 0.32) 50%, transparent 95%);
    pointer-events: none;
    z-index: 1;
}

/* Injected SVG medical artwork layer (ECG waveform, diagnostic radar, medical cross & hex nodes) */
.hero-med-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 0.42;
}

.page-hero--product .hero-med-bg {
    opacity: 0.18;
}

.page-hero--product .hero-med-ecg-wrap,
.page-hero--product .hero-med-orbit {
    display: none;
}

.hero-med-svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-med-ecg-track {
        will-change: transform;
        animation: hero-ecg-scroll 14s linear infinite;
    }

    .hero-med-ecg-runner {
        stroke-dasharray: 140 580;
        stroke-dashoffset: 720;
        animation: hero-ecg-sweep 4.5s linear infinite;
    }
}

@keyframes hero-ecg-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-360px, 0, 0);
    }
}

@keyframes hero-ecg-sweep {
    0% {
        stroke-dashoffset: 720;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.page-hero .wrap {
    position: relative;
    z-index: 2;
}

/* Extra bottom space when a stats strip overlaps the hero */
.page-hero.has-stats {
    padding-bottom: clamp(80px, 13vh, 120px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary-text);
}

.eyebrow::before {
    content: '';
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
}

.page-hero .eyebrow {
    color: #6ee7cb;
}

.page-hero h1 {
    margin-top: 14px;
    max-width: 21ch;
    font-family: var(--display);
    font-size: clamp(34px, 4.2vw, 54px);
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -0.032em;
}

.page-hero h1 em {
    font-style: normal;
    background: linear-gradient(120deg, #5eead4 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-hero .lede {
    margin-top: 18px;
    max-width: 58ch;
    font-size: 16.5px;
    line-height: 1.72;
    color: rgba(255, 255, 255, 0.92);
}

/* Split hero layout — headline on the left, glass summary card on the right */
.hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.85fr);
    gap: clamp(28px, 4.5vw, 56px);
    align-items: center;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    padding: 26px 28px;
    border-radius: 16px;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.1) 0%, rgba(13, 69, 122, 0.42) 100%);
    border: 1px solid rgba(94, 234, 212, 0.26);
    box-shadow:
        0 28px 56px rgba(4, 20, 40, 0.36),
        0 0 0 1px rgba(255, 255, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.hero-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, #5eead4, var(--primary), transparent);
    opacity: 0.85;
}

.hero-panel code {
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.12);
    font-family: var(--mono);
    font-size: 12px;
    color: #8fe6d1;
}

.hero-panel-head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8fe6d1;
}

.hero-panel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 179, 148, 0.22);
}

.site-body .hero-panel-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.hero-panel-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.86);
}

.hero-panel-list i {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(26, 179, 148, 0.18);
    border: 1px solid rgba(26, 179, 148, 0.35);
    color: #6ee7cb;
    font-size: 11.5px;
}

.hero-panel-list strong {
    color: #fff;
    font-weight: 700;
}

@media (max-width: 920px) {
    .hero-split {
        grid-template-columns: 1fr;
    }
}

.section {
    padding: clamp(52px, 8vh, 88px) 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: 36px;
}

.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,
.section-lead {
    margin-top: 10px;
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--text);
}

.text-center {
    text-align: center;
}

.section-head.text-center .eyebrow,
.section-head-center .eyebrow {
    justify-content: center;
}

.section-head.text-center .eyebrow::after,
.section-head-center .eyebrow::after {
    content: '';
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
}

.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 {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.025);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.card::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    border-radius: var(--radius) var(--radius) 0 0;
    background: linear-gradient(90deg, var(--primary), var(--shell));
    opacity: 0;
    transform: scaleX(0.6);
    transform-origin: left;
    transition: opacity 0.22s ease, transform 0.28s ease;
}

.card:hover {
    border-color: rgba(26, 179, 148, 0.42);
    box-shadow: var(--shadow-lift);
    transform: translateY(-4px);
}

.card:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

.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: 1px solid rgba(26, 179, 148, 0.2);
    border-radius: 7px;
    padding: 3px 9px;
}

.card-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-wash) 0%, #d2f3eb 100%);
    border: 1px solid rgba(26, 179, 148, 0.2);
    color: var(--primary-text);
    font-size: 18px;
    transition: transform 0.22s ease, background-color 0.22s ease;
}

.card:hover .card-icon {
    transform: scale(1.05);
}

.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;
}

/* Product pages — aligned height without forced empty blocks */
.page-hero--product {
    padding: clamp(48px, 7vh, 76px) 0 clamp(44px, 6.5vh, 68px);
}

.page-hero--product .product-hero-split {
    align-items: center;
    gap: clamp(32px, 4vw, 48px);
}

.page-hero--product .product-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.page-hero--product .product-hero-panel {
    padding: 22px 24px;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.09) 0%, rgba(13, 69, 122, 0.38) 100%);
}

.page-hero--product h1 {
    max-width: 20ch;
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.12;
    margin-top: 14px;
}

.page-hero--product .product-badge {
    margin-top: 18px;
    width: 48px;
    height: 48px;
    font-size: 20px;
    border-radius: 12px;
}

.page-hero--product .product-badge + h1 {
    margin-top: 14px;
}

.page-hero--product .seo-keywords {
    margin-top: 14px;
    gap: 6px;
}

.page-hero--product .seo-keywords li {
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    border-color: rgba(26, 179, 148, 0.28);
    background: rgba(26, 179, 148, 0.08);
    color: rgba(167, 243, 225, 0.95);
}

.page-hero--product .lede {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.65;
    max-width: 52ch;
}

.page-hero--product .btn-row {
    margin-top: 22px;
    gap: 10px;
}

.page-hero--product .hero-panel-list {
    gap: 11px;
}

.page-hero--product .hero-panel-list li {
    font-size: 13px;
    line-height: 1.45;
}

.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(180px, 1fr));
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.steps li {
    position: relative;
    padding: 24px 22px 22px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-top: 3px solid var(--primary);
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.025);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.steps li:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.step-num {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--primary-wash);
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--primary-text);
}

.steps h3 {
    margin-top: 12px;
    font-size: 16.5px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--heading);
}

.steps p {
    margin-top: 8px;
    font-size: 13.5px;
    line-height: 1.62;
}

/* 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);
}

/* Icon-led facts (Our Presence facility types, etc.) */
.facts-rich {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--rule);
    border-top: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--paper);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.facts-rich .fact {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--rule);
    border-right: 1px solid var(--rule);
    border-top: 0;
}

.facts-rich .fact:nth-child(2n) {
    border-right: 0;
}

.facts-rich .fact:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.fact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--primary-wash);
    color: var(--primary-text);
    font-size: 16px;
}

@media (max-width: 600px) {
    .facts-rich {
        grid-template-columns: 1fr;
    }

    .facts-rich .fact {
        border-right: 0;
    }

    .facts-rich .fact:nth-last-child(-n + 2) {
        border-bottom: 1px solid var(--rule);
    }

    .facts-rich .fact:last-child {
        border-bottom: 0;
    }
}

.fact-value a {
    color: inherit;
    text-decoration: none;
}

.fact-value a:hover {
    color: var(--primary-text);
}

/* Contact rows */
.contact-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-card a.contact-link {
    display: inline-block;
    margin-top: auto;
    padding-top: 16px;
    font-family: var(--mono);
    font-size: 17px;
    font-weight: 500;
    color: var(--primary-dark);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    align-self: flex-start;
}

.contact-card a.contact-link:hover {
    color: var(--primary-text);
    border-bottom-color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: 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, box-shadow 0.18s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #21c6a5 0%, var(--primary) 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(26, 179, 148, 0.28);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(26, 179, 148, 0.36);
}

/* White outline — for dark bands (hero, CTA) */
.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

/* Solid outline — for light surfaces (sections, cards, matrix) */
.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);
    background: var(--primary-wash);
    text-decoration: none;
}

.btn-sm {
    height: 38px;
    padding: 0 16px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn-row--tight {
    margin-top: 10px;
}

.btn-row--flush {
    margin-top: 0;
}

.is-hidden {
    display: none !important;
}

.mt-lg {
    margin-top: 40px;
}

/* 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;
}

.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;
}

.section-head.text-center {
    margin-left: auto;
    margin-right: auto;
}

.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;
}

@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;
    }
}

/* ── Hero trust bar — assurance strip pinned to the hero's base ───── */
.hero-trustbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 0;
    margin-top: 44px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 18px 8px 0;
    margin-right: 18px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.trust-item:last-child {
    border-right: 0;
    margin-right: 0;
}

.trust-item i {
    color: #6ee7cb;
    font-size: 15px;
}

@media (max-width: 720px) {
    .trust-item {
        padding-right: 0;
        margin-right: 0;
        border-right: 0;
        flex: 1 1 45%;
    }
}

/* ── Key facts strip, lifted over the hero's bottom edge ─────────── */
.stats-band {
    position: relative;
    z-index: 2;
    margin-top: -52px;
    margin-bottom: 8px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--rule);
    border-radius: 18px;
    background: var(--paper);
    box-shadow: var(--shadow-lift);
    overflow: hidden;
}

.stat {
    position: relative;
    padding: 30px 28px;
    border-left: 1px solid var(--rule);
    transition: background-color 0.2s ease;
}

.stat:first-child {
    border-left: 0;
}

.stat::after {
    content: '';
    position: absolute;
    left: 28px;
    bottom: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--shell));
    border-radius: 3px;
    transition: width 0.28s ease;
}

.stat:hover::after {
    width: calc(100% - 56px);
}

.stat:hover {
    background: #fbfdfe;
}

.stat-value {
    font-size: clamp(26px, 3vw, 32px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    background: linear-gradient(120deg, var(--shell) 0%, #1a6eb8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    margin-top: 8px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text);
}

@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;
    border-radius: var(--radius) var(--radius) 0 0;
    background: linear-gradient(90deg, var(--primary), var(--shell));
    opacity: 1;
    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;
}

.site-body .check-list--compact {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--rule);
}

.check-list--compact li {
    padding: 5px 0;
    font-size: 13.5px;
    color: var(--text);
}

.included-card {
    display: flex;
    flex-direction: column;
}

/* ── Home: one platform section (theme navy + teal only) ──────────── */
.platform-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 72% 55% at 92% 12%, rgba(26, 179, 148, 0.1), transparent 58%),
        radial-gradient(ellipse 55% 45% at 8% 88%, rgba(13, 69, 122, 0.07), transparent 55%),
        linear-gradient(180deg, var(--paper) 0%, var(--page) 100%);
}

.platform-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(13, 69, 122, 0.12) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse 55% 45% at 88% 18%, #000 15%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 55% 45% at 88% 18%, #000 15%, transparent 72%);
    pointer-events: none;
}

.platform-split {
    align-items: center;
    gap: clamp(36px, 5vw, 72px);
}

.platform-copy .section-head {
    max-width: 52ch;
}

.platform-section h2 em {
    font-style: normal;
    color: var(--shell);
}

.platform-points {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 18px;
}

.platform-points li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 12px;
    margin: 0 -12px;
    border-radius: 14px;
    transition: background-color 0.22s ease, transform 0.22s ease;
}

.platform-points li:hover {
    background: rgba(255, 255, 255, 0.72);
    transform: translateX(4px);
}

.platform-point-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary-wash);
    border: 1px solid rgba(26, 179, 148, 0.28);
    color: var(--primary-text);
    font-size: 17px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.platform-points li:hover .platform-point-icon {
    transform: scale(1.06);
    background: #fff;
    box-shadow: 0 12px 28px rgba(26, 179, 148, 0.18);
}

.platform-point-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 2px;
}

.platform-point-body strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--heading);
    line-height: 1.35;
}

.platform-point-body span {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text);
}

.platform-visual {
    position: relative;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    padding: 12px 8px 24px;
}

.platform-visual-glow {
    position: absolute;
    left: 50%;
    top: 48%;
    width: 72%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 179, 148, 0.2) 0%, rgba(13, 69, 122, 0.08) 45%, transparent 70%);
    pointer-events: none;
    animation: platform-glow-breathe 5s ease-in-out infinite;
}

.platform-visual-dots {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(rgba(26, 179, 148, 0.35) 1.5px, transparent 1.5px);
    background-size: 14px 14px;
    opacity: 0.55;
    pointer-events: none;
    animation: platform-dots-fade 4s ease-in-out infinite;
}

@keyframes platform-glow-breathe {
    0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

@keyframes platform-dots-fade {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 0.7; }
}

/* Platform hub: modules around one patient record */
.hub {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
}

.hub-scene {
    filter: drop-shadow(0 24px 48px rgba(13, 69, 122, 0.08));
}

.hub-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hub-orbit {
    fill: none;
    stroke-width: 0.35;
}

.hub-orbit-outer {
    stroke: rgba(13, 69, 122, 0.12);
    stroke-dasharray: 1.2 1.4;
}

.hub-orbit-mid {
    stroke: rgba(26, 179, 148, 0.2);
}

.hub-orbit-inner {
    stroke: rgba(13, 69, 122, 0.08);
    stroke-dasharray: 0.8 1.2;
}

.hub-orbit-spin {
    transform-origin: 0 0;
}

.hub-orbit-spin--slow {
    animation: hub-orbit-rotate 48s linear infinite;
}

.hub-orbit-spin--reverse {
    animation: hub-orbit-rotate 36s linear infinite reverse;
}

@keyframes hub-orbit-rotate {
    to { transform: rotate(360deg); }
}

.hub-lines line,
.hub-lines .hub-spoke {
    stroke: url(#hubLineGrad);
    stroke-width: 0.4;
    opacity: 0.85;
}

.hub-spoke {
    stroke-dasharray: 44 44;
    animation: hub-spoke-flow 2.8s linear infinite;
    animation-delay: calc(var(--spoke-i, 0) * -0.28s);
}

@keyframes hub-spoke-flow {
    to { stroke-dashoffset: -88; }
}

.hub-center-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 34%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.hub-center-avatar {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(160deg, #e8f4fc 0%, var(--primary-wash) 55%, #d4efe8 100%);
    border: 4px solid var(--paper);
    box-shadow:
        0 0 0 3px rgba(26, 179, 148, 0.35),
        0 20px 40px rgba(13, 69, 122, 0.22);
    animation: hub-pulse 3.2s ease-out infinite;
}

.hub-center-avatar::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid rgba(26, 179, 148, 0.25);
    pointer-events: none;
}

.hub-center-avatar i {
    font-size: clamp(28px, 5vw, 38px);
    color: var(--shell);
    opacity: 0.85;
    animation: hub-icon-breathe 3s ease-in-out infinite;
}

@keyframes hub-icon-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.hub-center-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--shell);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(13, 69, 122, 0.28);
}

.hub-center-badge i {
    font-size: 10px;
    color: var(--primary);
}

@keyframes hub-pulse {
    0% { box-shadow: 0 0 0 3px rgba(26, 179, 148, 0.35), 0 20px 40px rgba(13, 69, 122, 0.22), 0 0 0 0 rgba(26, 179, 148, 0.28); }
    70% { box-shadow: 0 0 0 3px rgba(26, 179, 148, 0.35), 0 20px 40px rgba(13, 69, 122, 0.22), 0 0 0 16px rgba(26, 179, 148, 0); }
    100% { box-shadow: 0 0 0 3px rgba(26, 179, 148, 0.35), 0 20px 40px rgba(13, 69, 122, 0.22), 0 0 0 0 rgba(26, 179, 148, 0); }
}

.hub-module {
    position: absolute;
    z-index: 4;
    min-width: 88px;
    max-width: 104px;
    padding: 8px 10px 9px;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    border-radius: 12px;
    background: var(--paper);
    border: 1px solid rgba(13, 69, 122, 0.1);
    box-shadow: var(--shadow-soft);
    text-align: center;
    cursor: default;
    animation:
        hub-module-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards,
        hub-module-float 5s ease-in-out infinite;
    animation-delay:
        calc(0.05s + var(--hub-i, 0) * 0.07s),
        calc(0.6s + var(--hub-i, 0) * 0.22s);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.hub-module:hover {
    animation-play-state: paused, paused;
    transform: translate(-50%, -50%) translateY(-5px) scale(1.04);
    border-color: rgba(26, 179, 148, 0.55);
    background: #fff;
    box-shadow: 0 16px 36px rgba(13, 69, 122, 0.14), 0 0 0 1px rgba(26, 179, 148, 0.2);
}

.hub-module-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--primary-wash);
    color: var(--primary-text);
    font-size: 12px;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.hub-module:hover .hub-module-icon {
    transform: scale(1.12);
    background: linear-gradient(145deg, var(--primary-wash) 0%, #d4f5ed 100%);
}

@keyframes hub-module-in {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.82);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes hub-module-float {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-3px); }
}

.hub-module-code {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--shell);
}

.hub-module-name {
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--heading);
}

@media (prefers-reduced-motion: reduce) {
    .platform-visual-glow,
    .platform-visual-dots,
    .hub-orbit-spin--slow,
    .hub-orbit-spin--reverse,
    .hub-spoke,
    .hub-center-avatar,
    .hub-center-avatar i,
    .hub-module {
        animation: none !important;
    }

    .platform-points li:hover {
        transform: none;
    }
}

@media (max-width: 920px) {
    .platform-visual {
        max-width: 520px;
    }
}

@media (max-width: 560px) {
    .hub-module {
        min-width: 0;
        max-width: 76px;
        padding: 6px 6px 7px;
    }

    .hub-module-name {
        font-size: 9px;
    }

    .hub-module-icon {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .hub-center-badge {
        font-size: 10px;
        padding: 6px 10px;
    }
}

/* ── 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 {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 75% 85% at 88% 50%, rgba(26, 179, 148, 0.24), transparent 58%),
        radial-gradient(ellipse 60% 60% at 12% 15%, rgba(255, 255, 255, 0.06), transparent 52%),
        linear-gradient(145deg, #0f4e8a 0%, var(--shell) 52%, #08335c 100%);
    color: #fff;
    padding: clamp(56px, 8.5vh, 84px) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(90% 90% at 80% 50%, #000 18%, transparent 72%);
    -webkit-mask-image: radial-gradient(90% 90% at 80% 50%, #000 18%, transparent 72%);
    pointer-events: none;
}

.cta .wrap {
    position: relative;
    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);
}

.footer-bottom a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
    text-underline-offset: 2px;
}

.footer-bottom a:hover {
    color: var(--primary);
}

@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;
}

/* ── Home: about facts under intro ───────────────────────────────── */
.about-facts {
    margin-top: 28px;
}

/* ── Home: things to know ────────────────────────────────────────── */
.know-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.know-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 22px 24px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.025);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.know-item:hover {
    border-color: rgba(26, 179, 148, 0.4);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.know-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-wash) 0%, #d2f3eb 100%);
    border: 1px solid rgba(26, 179, 148, 0.2);
    color: var(--primary-text);
    font-size: 16px;
}

.know-item h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--heading);
}

.know-item p {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
}

.know-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
    justify-content: center;
}

@media (max-width: 720px) {
    .know-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Leadership in Nepal Healthcare ─────────────────────────────── */
.lead-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.lead-card {
    position: relative;
    padding: 30px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lead-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    border-color: rgba(26, 179, 148, 0.4);
}

.lead-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.lead-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary-wash);
    color: var(--primary-text);
    font-size: 20px;
}

.lead-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(13, 69, 122, 0.08);
    color: var(--shell);
}

.lead-card h3 {
    margin: 0 0 10px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--heading);
}

.lead-card p {
    margin: 0 0 16px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text);
}

.lead-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--rule);
    padding-top: 12px;
}

.lead-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    font-size: 13.5px;
    color: var(--heading);
    line-height: 1.5;
}

.lead-list li i {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--primary);
    font-size: 12px;
}

@media (max-width: 800px) {
    .lead-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Comparison Table ────────────────────────────────────────────── */
.compare-container {
    overflow-x: auto;
    border: 1px solid var(--rule);
    border-radius: 18px;
    background: var(--paper);
    box-shadow: var(--shadow-lift);
    margin-top: 24px;
}

.compare-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    text-align: left;
}

.compare-table th,
.compare-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--rule);
    font-size: 14px;
    line-height: 1.55;
}

.compare-table thead th {
    background: #f8fafc;
    font-size: 13px;
    font-weight: 700;
    color: var(--heading);
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.compare-table thead th.th-feature {
    width: 28%;
}

.compare-table thead th.th-generic {
    width: 34%;
    color: #64748b;
}

.compare-table thead th.th-medimaster {
    width: 38%;
    background: linear-gradient(135deg, #0f4e8a, var(--shell));
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
}

.compare-table thead th.th-medimaster span {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 400;
    color: #8fe6d1;
    margin-top: 3px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.compare-table tbody tr:last-child td {
    border-bottom: 0;
}

.compare-table tbody tr {
    transition: background-color 0.18s ease;
}

.compare-table tbody tr:hover td {
    background: rgba(248, 250, 252, 0.85);
}

.compare-table tbody td.col-feature {
    font-weight: 700;
    color: var(--heading);
}

.compare-table tbody td.col-feature small {
    display: block;
    font-weight: 400;
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 2px;
}

.compare-table tbody td.col-generic {
    color: #64748b;
}

.compare-table tbody td.col-generic i {
    color: #ef4444;
    margin-right: 7px;
}

.compare-table tbody td.col-medimaster {
    background: rgba(232, 248, 244, 0.5);
    font-weight: 600;
    color: var(--heading);
    border-left: 2px solid rgba(26, 179, 148, 0.4);
    border-right: 2px solid rgba(26, 179, 148, 0.4);
}

.compare-table tbody td.col-medimaster i {
    color: var(--primary);
    margin-right: 7px;
}

/* ── Impact Highlights Band ──────────────────────────────────────── */
.impact-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 40px;
    padding: 26px 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f4e8a 0%, var(--shell) 55%, #08335c 100%);
    box-shadow: var(--shadow-lift);
}

.impact-box {
    position: relative;
    padding: 22px 20px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.impact-val {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(120deg, #ffffff 0%, #8fe6d1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.impact-desc {
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

/* ── Final CTA banner ─────────────────────────────────────────────── */
.final-cta {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
    padding: clamp(36px, 5vw, 56px) clamp(28px, 4.5vw, 52px);
    border-radius: 20px;
    background:
        radial-gradient(ellipse 70% 90% at 88% 20%, rgba(26, 179, 148, 0.28), transparent 55%),
        linear-gradient(135deg, #0f4e8a 0%, var(--shell) 50%, #072848 100%);
    color: #fff;
    box-shadow: 0 32px 64px rgba(7, 40, 72, 0.4);
}

.final-cta-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(100% 100% at 20% 30%, #000 20%, transparent 72%);
    -webkit-mask-image: radial-gradient(100% 100% at 20% 30%, #000 20%, transparent 72%);
    pointer-events: none;
}

.final-cta-body,
.final-cta-side {
    position: relative;
    z-index: 1;
}

.final-cta-body .eyebrow {
    color: #6ee7cb;
}

.final-cta-body h2 {
    margin-top: 12px;
    max-width: 22ch;
    font-family: var(--display);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.028em;
    color: #fff;
}

.final-cta-body p {
    margin-top: 12px;
    max-width: 56ch;
    font-size: 15.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.86);
}

.final-cta-body .btn-row {
    margin-top: 24px;
}

.final-cta-body .btn-primary {
    box-shadow: 0 10px 24px rgba(26, 179, 148, 0.42);
}

.final-cta-side {
    display: grid;
    gap: 12px;
}

.cta-stat {
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cta-stat-val {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

.cta-stat-label {
    margin-top: 2px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 860px) {
    .final-cta {
        grid-template-columns: 1fr;
    }

    .final-cta-side {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .final-cta-side {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .impact-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 20px 16px;
    }
}

@media (max-width: 480px) {
    .impact-strip {
        grid-template-columns: 1fr;
        padding: 18px 14px;
    }
}

/* ── Features Matrix & Application Modules Table ─────────────────── */
.section-matrix {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 72px 0 84px;
}

.matrix-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 36px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.matrix-search-box {
    position: relative;
    flex: 1 1 360px;
    max-width: 540px;
}

.matrix-search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 14px;
    pointer-events: none;
}

.matrix-search-input {
    width: 100%;
    padding: 11px 40px 11px 38px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--rule);
    border-radius: 9999px;
    background: var(--paper);
    color: var(--heading);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.matrix-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 179, 148, 0.15);
}

.matrix-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 13px;
    padding: 4px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.matrix-clear-btn:hover {
    color: var(--heading);
}

.matrix-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--muted);
    flex-wrap: wrap;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Category Filter Pills */
.matrix-count {
    font-size: 12px;
    color: var(--text);
    padding-right: 14px;
    border-right: 1px solid var(--rule);
}

.matrix-count strong {
    color: var(--heading);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.matrix-category-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    margin-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--rule) transparent;
}

.matrix-category-nav::-webkit-scrollbar {
    height: 4px;
}

.matrix-category-nav::-webkit-scrollbar-thumb {
    background: var(--rule);
    border-radius: 4px;
}

.matrix-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 8px 7px 14px;
    font-size: 12.5px;
    font-weight: 600;
    font-family: inherit;
    white-space: nowrap;
    border-radius: 9999px;
    background: var(--paper);
    border: 1px solid var(--rule);
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.matrix-nav-pill i {
    color: var(--primary);
    font-size: 12px;
}

.matrix-nav-pill .pill-count {
    min-width: 22px;
    padding: 2px 7px;
    border-radius: 9999px;
    background: var(--page);
    border: 1px solid var(--rule);
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 500;
    color: var(--heading);
    text-align: center;
}

.matrix-nav-pill:hover {
    border-color: var(--primary);
    color: var(--primary-text);
    background: var(--primary-wash);
}

.matrix-nav-pill.active {
    background: var(--shell);
    border-color: var(--shell);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(13, 69, 122, 0.25);
}

.matrix-nav-pill.active i {
    color: var(--primary);
}

.matrix-nav-pill.active .pill-count {
    background: rgba(255, 255, 255, 0.14);
    border-color: transparent;
    color: #ffffff;
}

/* Table Card & Scroll */
.matrix-table-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.matrix-scroll-notice {
    display: none;
    padding: 8px 16px;
    background: var(--page);
    border-bottom: 1px solid var(--rule);
    font-size: 11.5px;
    color: var(--muted);
    text-align: center;
    gap: 6px;
}

.matrix-table-wrap {
    overflow: auto;
    max-height: min(80vh, 820px);
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: var(--rule) transparent;
}

.matrix-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    font-size: 13.5px;
}

/* Table Header */
.matrix-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 18px 12px 16px;
    vertical-align: bottom;
    font-weight: 400;
}

.matrix-table thead th.col-feature-head {
    width: 36%;
    min-width: 290px;
    left: 0;
    z-index: 15;
    padding: 22px 24px;
    text-align: left;
    vertical-align: middle;
    color: #ffffff;
    background:
        radial-gradient(circle at 100% 0%, rgba(26, 179, 148, 0.35) 0%, rgba(26, 179, 148, 0) 55%),
        linear-gradient(135deg, var(--shell) 0%, var(--shell-deep) 100%);
    border-bottom-color: var(--shell-deep);
}

.matrix-table thead th .th-head-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--shell-line);
    color: var(--primary);
    font-size: 16px;
}

.matrix-table thead th .th-title {
    font-family: var(--display);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: #ffffff;
}

.matrix-table thead th .th-sub {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.68);
    margin-top: 4px;
}

.matrix-table thead th .th-meta {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.matrix-table thead th .th-meta span {
    font-family: var(--mono);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.75);
    padding: 3px 9px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--shell-line);
}

.matrix-table thead th .th-meta strong {
    color: #ffffff;
    font-weight: 500;
}

.matrix-table thead th.col-product-head {
    width: 12.8%;
    min-width: 140px;
    text-align: center;
    border-left: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.matrix-table thead th.col-product-head .prod-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    border-radius: 12px;
    background: var(--primary-wash);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.matrix-table thead th.col-product-head .prod-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--heading);
    line-height: 1.25;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prod-coverage {
    margin: 10px auto 8px;
    max-width: 104px;
}

.prod-coverage-bar {
    height: 5px;
    border-radius: 9999px;
    background: #eef2f6;
    overflow: hidden;
}

.prod-coverage-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary) 0%, #3fd0b0 100%);
}

.prod-coverage-text {
    margin-top: 5px;
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--muted);
}

.prod-coverage-text strong {
    color: var(--heading);
    font-weight: 500;
}

.matrix-table thead th.col-product-head .prod-link {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.matrix-table thead th.col-product-head .prod-link i {
    transition: transform 0.15s ease;
}

.matrix-table thead th.col-product-head .prod-link:hover i {
    transform: translateX(3px);
}

.matrix-table thead th.col-hover .prod-icon {
    transform: translateY(-2px);
}

/* Active Column Highlight */
.matrix-table thead th.col-current {
    background: linear-gradient(180deg, #e8f8f4 0%, #f4fbf9 100%);
    box-shadow: inset 0 3px 0 var(--primary);
}

.matrix-table thead th.col-current .prod-icon {
    background: var(--primary);
    color: #ffffff;
}

.current-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffffff;
    background: var(--primary);
    padding: 3px 9px;
    border-radius: 9999px;
    margin-bottom: 10px;
}

/* Category Header Row */
.cat-header-row td {
    background: var(--page);
    padding: 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.cat-header-content {
    position: sticky;
    left: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    box-shadow: inset 3px 0 0 var(--primary);
}

.cat-icon-badge {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--shell);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.cat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 800;
    color: var(--heading);
    margin: 0;
}

.cat-count {
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 500;
    color: var(--primary-text);
    background: var(--primary-wash);
    padding: 1px 8px;
    border-radius: 9999px;
}

.cat-tagline {
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
    margin-top: 2px;
}

/* Feature Row */
.feature-data-row td,
.feature-data-row th {
    padding: 13px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    transition: background 0.12s ease;
}

.cell-feature-name {
    position: sticky;
    left: 0;
    z-index: 5;
    background: var(--paper);
    text-align: left;
    font-weight: 400;
    padding-left: 24px !important;
    border-right: 1px solid #eef2f6;
}

.feature-data-row:hover td,
.feature-data-row:hover .cell-feature-name {
    background: #f6fbfa;
}

.feature-data-row:hover .cell-feature-name {
    box-shadow: inset 3px 0 0 var(--primary);
}

.feat-name-wrap .feat-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--heading);
    line-height: 1.35;
}

.feat-name-wrap .feat-desc {
    font-size: 12px;
    color: var(--text);
    margin-top: 3px;
    line-height: 1.45;
}

.feat-name-wrap .feat-note {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--primary-text);
    background: var(--primary-wash);
    padding: 2px 7px;
    border-radius: 4px;
    margin-top: 6px;
}

/* Status Cells */
.cell-status {
    text-align: center;
    border-left: 1px solid #f8fafc;
}

.cell-status.col-hover,
.feature-data-row:hover .cell-status.col-hover {
    background: #f1f8fd;
}

.cell-status.col-current,
.feature-data-row:hover .cell-status.col-current {
    background: rgba(232, 248, 244, 0.55);
}

.feat-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-wash);
    color: var(--primary);
    font-size: 11px;
    box-shadow: inset 0 0 0 1px rgba(26, 179, 148, 0.25);
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.col-current .feat-check {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(26, 179, 148, 0.35);
}

.feature-data-row:hover .feat-check {
    transform: scale(1.08);
}

.feat-dash {
    display: inline-block;
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: #d5dde6;
    vertical-align: middle;
}

/* Empty State */
.matrix-empty-cell {
    padding: 48px 16px !important;
    text-align: center;
    background: #ffffff;
}

.empty-state-wrap {
    max-width: 360px;
    margin: 0 auto;
}

.empty-state-wrap i {
    font-size: 36px;
    color: var(--muted);
    margin-bottom: 12px;
}

.empty-state-wrap h4 {
    font-size: 16px;
    color: var(--heading);
    margin-bottom: 6px;
}

.empty-state-wrap p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
}

/* Matrix Bottom CTA Strip */
.matrix-cta-strip {
    margin-top: 32px;
    padding: 28px 32px;
    background: #ffffff;
    border: 1px solid var(--rule);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.matrix-cta-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 auto;
}

.matrix-cta-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-wash);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.matrix-cta-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--heading);
    margin: 0 0 4px;
}

.matrix-cta-content p {
    font-size: 13px;
    color: var(--text);
    margin: 0;
    line-height: 1.45;
}

.matrix-cta-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .matrix-cta-strip {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }

    .matrix-cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .matrix-cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .matrix-scroll-notice {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .matrix-count {
        width: 100%;
        border-right: none;
        padding-right: 0;
    }

    .matrix-table thead th.col-feature-head {
        min-width: 220px;
        padding: 18px 16px;
    }

    .matrix-table thead th .th-head-icon,
    .matrix-table thead th .th-meta {
        display: none;
    }

    .matrix-table thead th.col-product-head {
        min-width: 116px;
    }

    .cell-feature-name {
        padding-left: 16px !important;
    }

    .cat-header-content {
        padding: 12px 16px;
    }
}

@media (max-width: 600px) {
    .matrix-table thead th.col-feature-head {
        width: 160px;
        min-width: 160px;
    }

    .matrix-table thead th .th-title {
        font-size: 14px;
    }

    .matrix-table thead th .th-sub,
    .feat-name-wrap .feat-desc {
        display: none;
    }

    .feat-name-wrap .feat-name {
        font-size: 12.5px;
    }
}

/* ── Tanzeera Tech Office & Company Details ────────────────────── */
.office-hero-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: rgba(26, 179, 148, 0.14);
    border: 1px solid rgba(26, 179, 148, 0.45);
    border-radius: 9999px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    color: #8fe6d1;
    margin-bottom: 16px;
}

.office-hero-brand i {
    color: var(--primary);
}

.office-info-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.office-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rule);
}

.office-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-wash);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.office-card-title h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--heading);
}

.office-card-title p {
    margin: 3px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.office-facts-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.office-fact-block {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.office-fact-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f1f5f9;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.office-fact-content {
    flex: 1 1 auto;
}

.office-fact-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.office-fact-val {
    font-size: 14px;
    font-weight: 600;
    color: var(--heading);
    line-height: 1.4;
}

.office-fact-val a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.15s ease;
}

.office-fact-val a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.office-fact-sub {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 2px;
    line-height: 1.35;
}

.office-badge-open {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #15803d;
    background: #dcfce7;
    padding: 2px 8px;
    border-radius: 9999px;
    margin-top: 4px;
}

.office-badge-open i {
    font-size: 8px;
}

.office-map-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
}

.office-map-frame {
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 320px;
    position: relative;
    background: #e2e8f0;
}

.office-map-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.office-map-bottom {
    padding: 20px 24px;
    background: #ffffff;
    border-top: 1px solid var(--rule);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.office-map-landmark {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text);
}

.office-map-landmark i {
    color: var(--primary);
    font-size: 16px;
}

.office-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--primary-dark);
    text-decoration: none;
    padding: 7px 14px;
    background: var(--primary-wash);
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.office-map-btn:hover {
    background: rgba(26, 179, 148, 0.2);
    color: var(--primary);
}

/* Company Credentials & Statutory Strip */
.company-cred-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 36px;
}

.company-cred-item {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 14px;
    padding: 22px 20px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.company-cred-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-wash);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.company-cred-title {
    font-size: 11px;
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 4px;
}

.company-cred-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--heading);
    line-height: 1.35;
}

.company-cred-desc {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 3px;
    line-height: 1.35;
}

/* Company Overview Two-Column Feature Card */
.company-about-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
    margin-top: 32px;
}

.company-about-card h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--heading);
    margin: 0 0 16px;
}

.company-about-card p {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 14px;
}

.company-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.pillar-box {
    background: #f8fafc;
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pillar-box:hover {
    transform: translateY(-2px);
    border-color: rgba(26, 179, 148, 0.4);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.pillar-box-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary-wash);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 14px;
}

.pillar-box h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--heading);
    margin: 0 0 8px;
}

.pillar-box p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
    margin: 0;
}

/* Visit Steps */
.visit-guide-card {
    background: linear-gradient(135deg, #0d457a 0%, #072a4c 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 40px;
    margin-top: 40px;
}

.visit-guide-card .eyebrow {
    color: rgba(255, 255, 255, 0.7);
}

.visit-guide-card h2 {
    color: #ffffff;
    margin-bottom: 12px;
}

.visit-guide-card p.lead {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.6;
    max-width: 680px;
    margin-bottom: 32px;
}

.visit-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.visit-step-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(8px);
}

.visit-step-num {
    display: inline-block;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    color: #5eead4;
    background: rgba(94, 234, 212, 0.15);
    padding: 3px 8px;
    border-radius: 9999px;
    margin-bottom: 12px;
}

.visit-step-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
}

.visit-step-item p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
}

.visit-step-item strong {
    color: #fff;
    font-weight: 700;
}

.office-map-landmark .office-fact-sub {
    margin-top: 2px;
}

@media (max-width: 960px) {
    .company-cred-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .company-pillars-grid {
        grid-template-columns: 1fr;
    }

    .visit-steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .office-facts-list {
        grid-template-columns: 1fr;
    }

    .company-cred-grid {
        grid-template-columns: 1fr;
    }

    .office-info-card,
    .company-about-card,
    .visit-guide-card {
        padding: 24px;
    }
}

@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;
    }
}

/* ── Pharmacy: standalone capability groups ────────────────────────── */

/* Other groups: equal-size cards, every row the same height */
.pharma-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 20px;
}

.pharma-group {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
}

.pharma-group-head {
    flex-shrink: 0;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--page);
    border-bottom: 1px solid var(--rule);
    box-shadow: inset 3px 0 0 var(--primary);
}

.pharma-group-head h3 {
    flex: 1;
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--heading);
}

.pharma-group-title {
    flex: 1;
}

.pharma-feature-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.pharma-feature-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 20px;
}

.pharma-feature-list li + li {
    border-top: 1px solid #f1f5f9;
}

.pharma-feature-list .feat-check {
    flex-shrink: 0;
    margin-top: 1px;
}

.pharma-feature-list .feat-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--heading);
    line-height: 1.35;
}

.pharma-feature-list .feat-desc {
    margin-top: 3px;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--text);
}

/* Core pharmacy group: full width, features laid out in a grid */
.pharma-group-core {
    display: block;
    margin-bottom: 24px;
    border-color: rgba(26, 179, 148, 0.35);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 14px 36px rgba(26, 179, 148, 0.08);
}

.pharma-group-core .pharma-group-head {
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--shell) 0%, var(--shell-deep) 100%);
    border-bottom: none;
}

.pharma-group-core .pharma-group-head h3 {
    font-size: 17px;
    color: #ffffff;
}

.pharma-group-core .cat-tagline {
    color: rgba(255, 255, 255, 0.7);
}

.pharma-group-core .cat-icon-badge {
    width: 40px;
    height: 40px;
    background: var(--primary);
    font-size: 16px;
}

.pharma-group-core .cat-count {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.pharma-group-core .pharma-feature-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0;
}

.pharma-group-core .pharma-feature-list li {
    padding: 18px 24px;
    border-top: 1px solid #f1f5f9;
    border-left: 1px solid #f1f5f9;
}

.pharma-group-core .pharma-feature-list li:nth-child(3n + 1) {
    border-left: none;
}

.pharma-group-core .pharma-feature-list li:nth-child(-n + 3) {
    border-top: none;
}

@media (max-width: 1024px) {
    .pharma-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pharma-group-core .pharma-feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pharma-group-core .pharma-feature-list li:nth-child(n) {
        border-top: 1px solid #f1f5f9;
        border-left: 1px solid #f1f5f9;
    }

    .pharma-group-core .pharma-feature-list li:nth-child(2n + 1) {
        border-left: none;
    }

    .pharma-group-core .pharma-feature-list li:nth-child(-n + 2) {
        border-top: none;
    }
}

@media (max-width: 640px) {
    .pharma-groups {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .pharma-group-core .pharma-feature-list {
        grid-template-columns: 1fr;
    }

    .pharma-group-core .pharma-feature-list li:nth-child(n) {
        border-left: none;
        border-top: 1px solid #f1f5f9;
        padding: 14px 20px;
    }

    .pharma-group-core .pharma-feature-list li:first-child {
        border-top: none;
    }
}

/* ── Home: more inside (icon + module code on one row) ──────────── */
.card-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* ── Home: built for every role ─────────────────────────────────── */
.role-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.role-card {
    padding: 24px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 14px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.role-card:hover {
    border-color: rgba(26, 179, 148, 0.4);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.role-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.role-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--heading);
}

@media (max-width: 960px) {
    .role-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .role-grid {
        grid-template-columns: 1fr;
    }
}

/* ── FAQ (Home, Contact) ─────────────────────────────────────────── */
.faq {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.faq-item {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
    border-color: #cbd5e1;
}

.faq-item[open] {
    border-color: rgba(26, 179, 148, 0.5);
    box-shadow: var(--shadow-soft);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    font-size: 15.5px;
    font-weight: 800;
    color: var(--heading);
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius);
}

.faq-item summary i {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-wash);
    font-size: 12px;
    color: var(--primary-text);
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.faq-item[open] summary i {
    transform: rotate(45deg);
    background: var(--primary);
    color: #fff;
}

.faq-item p {
    margin: 0;
    padding: 0 24px 22px;
    font-size: 14.5px;
    line-height: 1.68;
    color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
    .faq-item summary i {
        transition: none;
    }
}

/* ── Our Presence ─────────────────────────────────────────────────── */
.presence-province {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 100%;
}

.presence-province .card-icon {
    margin-bottom: 2px;
}

.presence-province-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.presence-province-num {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--primary-text);
    background: var(--primary-wash);
    padding: 2px 8px;
    border-radius: 999px;
}

.presence-province h3 {
    margin-top: 12px;
}

.presence-province p {
    margin-top: 6px;
    flex: 1;
}

.presence-support .card {
    height: 100%;
}

.presence-cta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 36px;
    padding: 24px 28px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.presence-cta-bar p {
    margin: 0;
    max-width: 42ch;
    font-size: 15px;
    color: var(--heading);
    font-weight: 600;
}

.presence-cta-bar .btn-row {
    margin-top: 0;
}

@media (max-width: 720px) {
    .presence-cta-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px;
    }
}

/* ── SEO keyword chips (product heroes) ───────────────────────────── */
.seo-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    max-width: 720px;
}

.seo-keywords li {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(26, 179, 148, 0.32);
    background: rgba(26, 179, 148, 0.1);
    color: #a7f3e1;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.page-hero .seo-keywords + .lede {
    margin-top: 18px;
}

/* ── HTML Sitemap page ────────────────────────────────────────────── */
.sitemap-group + .sitemap-group {
    margin-top: 48px;
}

.sitemap-list {
    display: grid;
    gap: 12px;
}

.sitemap-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 4px;
    align-items: center;
    padding: 18px 22px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.sitemap-item:hover {
    border-color: rgba(26, 179, 148, 0.45);
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
    text-decoration: none;
    color: inherit;
}

.sitemap-item-title {
    grid-column: 1;
    grid-row: 1;
    font-size: 16px;
    font-weight: 800;
    color: var(--heading);
    letter-spacing: -0.01em;
}

.sitemap-item:hover .sitemap-item-title {
    color: var(--primary-text);
}

.sitemap-item-desc {
    grid-column: 1;
    grid-row: 2;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text);
}

.sitemap-item-go {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-wash);
    color: var(--primary-text);
    font-size: 13px;
}

/* ── Phones ──────────────────────────────────────────────────────────
   Long card stacks become swipe rows (.m-rail), the comparison table
   stacks into cards, spacing tightens and tap targets grow. */
@media (max-width: 640px) {
    .section {
        padding: 44px 0;
    }

    .section-head {
        margin-bottom: 24px;
    }

    .section-head p {
        font-size: 14.5px;
        line-height: 1.6;
    }

    .card,
    .site-body a.product-card,
    .role-card {
        padding: 20px;
    }

    .lead-card {
        padding: 20px;
        border-radius: 14px;
    }

    .lead-card h3 {
        font-size: 17px;
    }

    .lead-card p {
        font-size: 14px;
    }

    /* Swipe rows: one card and a peek of the next, snapping card by card */
    .m-rail {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 var(--gutter);
        margin: 0 calc(var(--gutter) * -1);
        padding: 4px var(--gutter) 18px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .m-rail::-webkit-scrollbar {
        display: none;
    }

    .m-rail > * {
        flex: 0 0 84%;
        max-width: 320px;
        scroll-snap-align: start;
    }

    /* Cards keep their own height in a row; no lift on touch */
    .m-rail > .card:hover,
    .m-rail > .lead-card:hover,
    .m-rail > .role-card:hover {
        transform: none;
    }

    /* Comparison table → one card per need */
    .compare-container {
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .compare-table {
        min-width: 0;
    }

    .compare-table thead {
        display: none;
    }

    .compare-table tbody,
    .compare-table tr,
    .compare-table td {
        display: block;
        width: auto;
    }

    .compare-table tbody tr {
        margin-bottom: 14px;
        overflow: hidden;
        border: 1px solid var(--rule);
        border-radius: 14px;
        background: var(--paper);
    }

    .compare-table tbody tr:hover td {
        background: inherit;
    }

    .compare-table th,
    .compare-table td {
        padding: 12px 16px;
        font-size: 13.5px;
    }

    .compare-table tbody td.col-feature {
        background: var(--page);
        font-size: 15px;
    }

    .compare-table tbody td.col-generic::before,
    .compare-table tbody td.col-medimaster::before {
        display: block;
        margin-bottom: 4px;
        font-family: var(--mono);
        font-size: 10.5px;
        font-weight: 500;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .compare-table tbody td.col-generic::before {
        content: 'Typical systems';
        color: var(--muted);
    }

    .compare-table tbody td.col-medimaster::before {
        content: 'MediMaster ERP';
        color: var(--primary-text);
    }

    .compare-table tbody td.col-medimaster {
        border: 0;
        border-top: 1px solid rgba(26, 179, 148, 0.25);
        background: rgba(232, 248, 244, 0.5);
    }

    /* Buttons fill the width so they are easy to hit */
    .know-actions,
    .btn-row {
        flex-direction: column;
        align-items: stretch;
    }

    .know-actions .btn,
    .btn-row .btn {
        justify-content: center;
    }

    /* Hero carousel: keep the arrows beside the dots, clear of the chat button */
    .carousel--hero .carousel-controls {
        justify-content: flex-start;
        margin-top: 28px;
    }

    .faq-item summary {
        padding: 16px 18px;
        font-size: 15px;
    }

    .faq-item p {
        padding: 0 18px 18px;
        font-size: 14px;
    }

    /* Footer: larger tap targets, and room so the chat button never covers text */
    .footer-col {
        gap: 0;
    }

    .footer-col a {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
    }

    .footer-bottom {
        padding-bottom: 88px;
    }
}

@media (max-width: 640px) {
    /* Hero: swipe or tap the dots to change slides; keep pause, drop the arrows
       so nothing sits under the chat button */
    .carousel--hero [data-prev],
    .carousel--hero [data-next] {
        display: none;
    }

    /* Key facts: two per row instead of a tall single column */
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat {
        padding: 16px;
        border-left: 0;
    }

    .stat:nth-child(even) {
        border-left: 1px solid var(--rule);
    }

    .stat + .stat {
        border-top: 0;
    }

    .stat:nth-child(n + 3) {
        border-top: 1px solid var(--rule);
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12.5px;
    }
}
