/* reset.css */
/* Minimal modern reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, ul, li, button, blockquote {
    margin: 0;
    padding: 0;
    border: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img, picture, svg {
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    font: inherit;
    background: none;
    cursor: pointer;
}

input, textarea {
    font: inherit;
}

/* variables.css */
:root {
    /* Colors - placeholder palette, swap once brand colors are provided */
    --color-bg: #ffffff;
    --color-bg-alt: #f6f7fb;
    --color-text: #14161a;
    --color-text-muted: #5c6270;
    --color-primary: #3b2fd6;
    --color-primary-dark: #2c22a8;
    --color-primary-light: #eceafd;
    --color-border: #e4e6ec;
    --color-dark: #0e0f14;
    --color-navy: #092344;
    --color-cta: #1D5FFF;
    --color-cta-dark: #144AD6;
    --color-scroll-progress: #8cc8ff;

    --color-header-text: #102F50;

    /* Typography */
    --font-base: Figtree, sans-serif;
    --font-header: Figtree, sans-serif;
    --fs-base: 16px;
    --fs-header: 15px;

    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 75px;
    --space-xl: 96px;

    /* Layout */
    --container-width: 1160px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    --shadow-sm: 0 2px 8px rgba(14, 15, 20, 0.06);
    --shadow-md: 0 8px 24px rgba(14, 15, 20, 0.10);

    --transition: 0.2s ease;
}

/* base.css */
/* ==========================================================================
   Base typography & utility classes (shared across all pages)
   ========================================================================== */
body {
    font-family: var(--font-base);
    font-size: var(--fs-base);
    color: var(--color-text);
    background: var(--color-bg);
    margin: 0;
    padding: 0;
    overflow-x: clip;
}

html {
    margin: 0;
    padding: 0;
    overflow-x: clip;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    width: 100%;
    height: 3px;
    pointer-events: none;
    background: var(--color-scroll-progress);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 80ms linear;
}

/* Chrome/PageSpeed: drive bar from scroll timeline — no JS layout reads */
@supports (animation-timeline: scroll()) {
    .scroll-progress {
        transition: none;
        animation: home-scroll-progress linear both;
        animation-timeline: scroll(root);
        animation-range: 0% 100%;
    }
}

@keyframes home-scroll-progress {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

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

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.25rem;
}

.eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.eyebrow.center {
    display: block;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: var(--space-lg);
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn-primary {
    background: rgb(0, 107, 141);
    color: #fff;
}

.header-actions .btn-primary {
    background: rgb(0, 107, 141);
    border-radius: var(--radius-pill);
    padding: 12px 26px;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    margin-top: 0;
    /* Match hero (.hn) solid white — permanent, no gradient fringe */
    background-color: #ffffff;
    background-image: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 0;
    border-bottom: none;
    box-shadow: none;
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--space-lg);
    height: 72px;
}

.main-nav {
    justify-self: center;
}
.logo {
    margin-left: -12px;
}

.logo-mark {
    width: 180px;
    height: auto;
    aspect-ratio: 118.286 / 26.915;
}

.footer-logo-mark {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-primary);
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Inline "Demo request received" card shown in place of the demo modal
   and final CTA forms after a successful submit. */
.form-success {
    text-align: center;
    padding: 28px 18px 24px;
    border: 1px solid rgba(71, 130, 162, 0.18);
    border-radius: 18px;
    background:
        radial-gradient(circle at top, rgba(111, 186, 217, 0.18), transparent 42%),
        linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
    font-family: Figtree, sans-serif;
}

.form-success[hidden],
.dm__form[hidden],
.fcn__form[hidden] {
    display: none;
}

.fcn__form-wrap .form-success {
    padding: 48px 28px 40px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.form-success__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eef8ff 0%, #dff2fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(71, 130, 162, 0.22);
}

.form-success__ring {
    stroke-dasharray: 107;
    stroke-dashoffset: 107;
    animation: form-success-draw 0.6s 0.1s forwards;
}

.form-success__tick {
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    animation: form-success-draw 0.4s 0.65s forwards;
}

@keyframes form-success-draw {
    to {
        stroke-dashoffset: 0;
    }
}

.form-success__title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    color: #0d0e10;
}

.form-success__text {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.5;
    color: #676879;
}

.form-success__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 14px 0 0;
    padding: 0 22px;
    border: none;
    border-radius: 10px;
    background: #8eb6cc;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    cursor: pointer;
}

.form-success__badge:hover {
    background: #7aa7bf;
}

@media (prefers-reduced-motion: reduce) {
    .form-success__ring,
    .form-success__tick {
        animation: none;
        stroke-dashoffset: 0;
    }
}

/* Duplicate "Book a demo" entry inside the mobile nav list — hidden on
   desktop, where the real CTA lives in .header-actions instead. */
.main-nav__cta-item {
    display: none;
}

/* Small laptops / iPad landscape: the 75px desktop spacing does not fit
   logo + six nav items + CTA, so tighten it before the mobile menu kicks in. */
@media (min-width: 991px) and (max-width: 1279px) {
    .header-inner {
        gap: 24px;
    }

    .main-nav > ul {
        gap: clamp(18px, 4.6vw - 26px, 44px);
    }

    .logo-mark {
        width: 150px;
    }
}

/* Exact spec applied to all header nav content EXCEPT the Products
   dropdown (.has-dropdown) and the "Book a demo" CTA (.btn-primary). */
.main-nav > ul > li:not(.has-dropdown) > a,
.header-actions .btn:not(.btn-primary) {
    font-family: var(--font-header);
    font-size: var(--fs-header);
    font-weight: 500;
    color: var(--color-header-text);
    transition: opacity var(--transition);
}

.main-nav > ul > li:not(.has-dropdown) > a:hover,
.header-actions .btn:not(.btn-primary):hover {
    color: var(--color-cta);
    opacity: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #ffffff;
    padding-top: 72px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 56px;
    padding-bottom: 52px;
}

.footer-logo {
    display: block;
    width: 147px;
    height: 45px;
    object-fit: contain;
    object-position: left center;
}

.footer-brand p {
    margin: 20px 0 26px;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    line-height: 1.9;
}

.footer-phone {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    transition: color var(--transition);
}

.footer-phone:hover {
    color: var(--color-cta);
}

.footer-email {
    margin: 8px 0 0;
    font-size: 0.8rem;
    color: var(--color-text);
}

.footer-email strong {
    font-weight: 700;
}

.footer-email a {
    color: var(--color-text-muted);
    transition: color var(--transition);
}

.footer-email a:hover {
    color: var(--color-cta);
}

.footer-social {
    margin-top: 20px;
}

.footer-social-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 12px;
}

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

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #ffffff;
    transition: transform var(--transition), filter var(--transition);
}

.footer-social-icon svg {
    width: 17px;
    height: 17px;
}

.footer-social-icon:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.footer-social-icon--linkedin { background: #0a66c2; }
.footer-social-icon--facebook { background: #1877f2; }
.footer-social-icon--twitter { background: #4ab3e8; }
.footer-social-icon--youtube { background: #ff0000; }

.footer-col h4 {
    font-size: 0.85rem;
    margin-bottom: 26px;
}

.footer-col ul li {
    margin-bottom: 14px;
}

.footer-col ul li a {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    transition: color var(--transition);
}

.footer-col ul li a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
    padding: 24px 0;
    color: var(--color-text-muted);
    font-size: 0.7rem;
}

/* top-bar.css */
/* ==========================================================================
   Top bar (includes/top-bar.php)
   ========================================================================== */
.top-bar {
    position: relative;
    z-index: 101;
    background: var(--color-navy);
    color: #fff;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
}

/* Overlap the header so no white hairline can show at the join */
.top-bar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 3px;
    background: var(--color-navy);
    pointer-events: none;
    z-index: 2;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 45px;
    font-size: 1rem;
}

.top-bar-message {
    color: rgba(255, 255, 255, 0.9);
}

.top-bar-contact {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.top-bar-label {
    font-weight: 600;
    color: #fff;
    transition: color var(--transition);
}

.top-bar-label:hover {
    color: #fff;
}

.top-bar-phone {
    font-weight: 600;
    color: #fff;
    transition: color var(--transition);
}

.top-bar-phone:hover {
    color: var(--color-cta);
}

/* dropdown.css */
/* ==========================================================================
   Products dropdown (nav mega-menu) — includes/header.php
   ========================================================================== */
.has-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-header);
    font-weight: 500;
    font-size: var(--fs-header);
    color: var(--color-header-text);
    transition: opacity var(--transition);
}

.dropdown-trigger:hover,
.has-dropdown.open .dropdown-trigger {
    color: var(--color-cta);
    opacity: 1;
}

.dropdown-caret {
    font-size: 1.35rem;
    line-height: 1;
    display: inline-block;
    transition: transform var(--transition);
}

.has-dropdown.open .dropdown-caret {
    transform: rotate(180deg);
}

.dropdown-panel {
    position: absolute;
    top: 77px;
    left: 0;
    width: 660px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 35px;
    border: 1px solid var(--color-border);
    background: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 20px 30px #0923441a;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition), visibility var(--transition);
    z-index: 200;
}

.has-dropdown.open .dropdown-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dropdown-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dropdown-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgb(0, 107, 141);
    margin-bottom: var(--space-xs);
}

.dropdown-feature {
    display: flex;
    flex-direction: column;
    padding: var(--space-xs) 0;
    border-radius: var(--radius);
    transition: background var(--transition);
}

.dropdown-feature:hover {
    background: var(--color-bg-alt);
}

.dropdown-feature-title {
    font-family: var(--font-header);
    font-weight: 600;
    color: var(--color-header-text);
    font-size: 0.95rem;
}

.dropdown-feature-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.dropdown-link {
    padding: var(--space-sm) 0;
    font-family: var(--font-header);
    font-weight: 500;
    color: var(--color-header-text);
    transition: color var(--transition);
}

.dropdown-link:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   Mega menu (icon + title + description cards) — Product / Company / Resources
   ========================================================================== */
.main-nav .mega-menu-inner {
    display: block;
}

.main-nav .mega-menu-group + .mega-menu-group {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(71, 130, 162, 0.12);
}

.main-nav .mega-menu-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #016B8E;
    margin: 0 0 12px;
    padding-left: 4px;
    line-height: 1.3;
}

.main-nav .mega-menu-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 16px;
    align-items: stretch;
}

.main-nav .mega-menu-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.main-nav .mega-menu-grid > li {
    display: flex;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.main-nav .mega-menu-grid li a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    text-decoration: none;
    white-space: normal;
    line-height: 1.4;
    box-sizing: border-box;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.main-nav .mega-menu-grid li a:hover,
.main-nav .mega-menu-grid li a:focus-visible {
    background: #F3F8FB;
    border-color: rgba(1, 107, 142, 0.16);
    box-shadow: 0 6px 16px rgba(1, 107, 142, 0.08);
    transform: translateY(-1px);
}

.main-nav .mega-menu-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: #EEF6F9;
    border: 1px solid rgba(1, 107, 142, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #016B8E;
    flex-shrink: 0;
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.main-nav .mega-menu-icon i {
    font-size: 15px;
    line-height: 1;
    color: inherit;
}

.main-nav .mega-menu-grid li a:hover .mega-menu-icon,
.main-nav .mega-menu-grid li a:focus-visible .mega-menu-icon {
    background: #016B8E;
    border-color: #016B8E;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(1, 107, 142, 0.22);
}

.main-nav .mega-menu-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.main-nav .mega-menu-copy strong {
    font-family: var(--font-header);
    font-size: 14px;
    font-weight: 600;
    color: #1E293B;
    line-height: 1.35;
    transition: color 0.25s ease;
}

.main-nav .mega-menu-grid li a:hover .mega-menu-copy strong,
.main-nav .mega-menu-grid li a:focus-visible .mega-menu-copy strong {
    color: #016B8E;
}

.main-nav .mega-menu-copy > span {
    font-size: 12.5px;
    font-weight: 400;
    color: #64748B;
    line-height: 1.45;
}

/* Product menu — 12 items, slightly tighter */
.main-nav .has-product-menu .mega-menu-group + .mega-menu-group {
    margin-top: 14px;
    padding-top: 14px;
}

.main-nav .has-product-menu .mega-menu-label {
    font-size: 11px;
    margin-bottom: 10px;
    padding-left: 2px;
}

.main-nav .has-product-menu .mega-menu-grid {
    gap: 6px 12px;
}

.main-nav .has-product-menu .mega-menu-grid li a {
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
}

.main-nav .has-product-menu .mega-menu-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 9px;
}

.main-nav .has-product-menu .mega-menu-icon i {
    font-size: 14px;
}

.main-nav .has-product-menu .mega-menu-copy {
    gap: 3px;
}

.main-nav .has-product-menu .mega-menu-copy strong {
    font-size: 13.5px;
}

.main-nav .has-product-menu .mega-menu-copy > span {
    font-size: 12px;
    line-height: 1.4;
}

/* Desktop: full-width panel centered under the sticky header */
@media (min-width: 991px) {
    .main-nav .has-dropdown.has-mega {
        position: static;
    }

    .main-nav .dropdown-panel--mega {
        top: 100%;
        left: 50%;
        width: min(1180px, calc(100vw - 64px));
        display: block;
        padding: 6px 0 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        transform: translateX(-50%) translateY(10px) scale(0.985);
        transform-origin: top center;
        transition:
            opacity 0.26s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
            visibility 0.26s linear;
    }

    .main-nav .has-dropdown.open .dropdown-panel--mega {
        transform: translateX(-50%) translateY(0) scale(1);
    }

    /* Hover bridge so the pointer can travel from the trigger to the panel */
    .main-nav .dropdown-panel--mega::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: -30px;
        height: 36px;
    }

    .main-nav .dropdown-panel--mega .mega-menu-inner {
        background: #FFFFFF;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 20px;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06), 0 20px 48px rgba(15, 23, 42, 0.08);
        padding: 24px 28px 26px;
    }

    .main-nav .has-product-menu .dropdown-panel--mega .mega-menu-inner {
        padding: 20px 24px 22px;
        border-radius: 18px;
    }
}

@media (min-width: 991px) and (max-width: 1199px) {
    .main-nav .dropdown-panel--mega {
        width: calc(100vw - 40px);
    }
}

@media (min-width: 991px) and (prefers-reduced-motion: reduce) {
    .main-nav .dropdown-panel--mega,
    .main-nav .mega-menu-grid li a {
        transition: none;
    }
}

/* Mobile (hamburger menu): compact icon + title list */
@media (max-width: 990px) {
    .main-nav.open .dropdown-panel--mega {
        display: none;
    }

    .main-nav.open .has-dropdown.open .dropdown-panel--mega {
        display: block;
    }

    .main-nav.open .mega-menu-group + .mega-menu-group {
        margin-top: 10px;
        padding-top: 10px;
    }

    .main-nav.open .mega-menu-label {
        margin-bottom: 6px;
    }

    .main-nav.open ul.mega-menu-grid,
    .main-nav.open ul.mega-menu-grid--2 {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .main-nav.open .mega-menu-grid li a {
        align-items: center;
        padding: 8px 10px;
    }

    .main-nav.open .mega-menu-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        border-radius: 8px;
    }

    .main-nav.open .mega-menu-icon i {
        font-size: 13px;
    }

    .main-nav.open .mega-menu-copy > span {
        display: none;
    }
}
/* mobile-header.css */
/* ==========================================================================
   Mobile / tablet header (<=990px) — bar + slide-in drawer.
   Above 990px everything here stays hidden and the desktop header in
   base.css / dropdown.css is untouched.
   ========================================================================== */
.mh-phone-icon,
.mh-hamburger,
.mh-drawer,
.mh-overlay {
    display: none;
}

@media (max-width: 990px) {
    /* overflow-x:hidden (responsive.css) makes <body> a scroll container,
       which stops the sticky header from pinning; clip hides overflow without that. */
    body {
        overflow-x: clip;
    }

    .top-bar {
        display: none;
    }

    /* Keep orange announcement banner visible on mobile (old site behavior) */
    .tyasuite-announcement-banner {
        display: block;
    }

    /* ---------- bar ---------- */
    .site-header {
        background-color: #ffffff;
        background-image: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        border-bottom: none;
        box-shadow: none;
        transition: box-shadow 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
    }

    .site-header.is-scrolled {
        background-color: #ffffff;
        background-image: none;
        box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    }

    .site-header .header-inner {
        width: 100%;
        max-width: none;
        height: 64px;
        min-height: 64px;
        padding: 0 24px;
        gap: 16px;
    }

    .site-header .logo {
        margin-left: 0;
        flex-shrink: 0;
        line-height: 0;
    }

    .site-header .logo-mark {
        width: 140px;
        height: auto;
    }

    .site-header .header-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
        min-height: 42px;
        margin-left: auto;
    }

    .site-header .header-actions .btn-primary {
        background: #4782A2;
        color: #ffffff;
        border: none;
        border-radius: 8px;
        padding: 10px 18px;
        min-height: 42px;
        min-width: 148px;
        box-sizing: border-box;
        font-weight: 600;
        font-size: 14px;
        white-space: nowrap;
        justify-content: center;
        transition: background 0.2s ease;
    }

    .mh-phone-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1.5px solid rgba(0, 0, 0, 0.2);
        color: #1a1a1a;
        font-size: 15px;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .mh-phone-icon:hover {
        background: rgba(0, 0, 0, 0.05);
    }

    .mh-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        background: none;
        border: 1.5px solid rgba(0, 0, 0, 0.15);
        border-radius: 8px;
        width: 42px;
        height: 42px;
        cursor: pointer;
        padding: 0;
        flex-shrink: 0;
        transition: background 0.2s ease;
    }

    .mh-hamburger:hover {
        background: rgba(0, 0, 0, 0.05);
    }

    .mh-hamburger span {
        display: block;
        width: 20px;
        height: 2px;
        background: #1a1a1a;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .mh-hamburger.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mh-hamburger.open span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .mh-hamburger.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* ---------- overlay ---------- */
    .mh-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 9998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .mh-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    /* ---------- drawer ---------- */
    .mh-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 320px;
        max-width: 90vw;
        height: 100%;
        max-height: 100dvh;
        background: #ffffff;
        z-index: 9999;
        transform: translate3d(100%, 0, 0);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
        overflow: hidden;
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.12);
        contain: strict;
        will-change: transform;
        font-family: var(--font-header);
    }

    .mh-drawer.open {
        transform: translate3d(0, 0, 0);
        visibility: visible;
        pointer-events: auto;
    }

    .mh-drawer__inner {
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow: hidden;
    }

    .mh-drawer__top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        flex-shrink: 0;
    }

    .mh-drawer__top img {
        display: block;
        width: 120px;
        height: auto;
    }

    .mh-drawer__close {
        width: 38px;
        height: 38px;
        border-radius: 8px;
        border: 1.5px solid rgba(0, 0, 0, 0.12);
        background: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        color: #1a1a1a;
        transition: all 0.2s ease;
    }

    .mh-drawer__close:hover {
        background: rgba(0, 0, 0, 0.05);
    }

    .mh-drawer__nav {
        flex: 1;
        overflow-y: auto;
        scrollbar-width: none;
    }

    .mh-drawer__nav::-webkit-scrollbar {
        display: none;
    }

    .mh-drawer__nav ul {
        list-style: none;
        margin: 0;
        padding: 8px 0;
    }

    .mh-drawer__nav > ul > li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .mh-drawer__nav > ul > li > a,
    .mh-has-sub > button {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 15px 20px;
        background: none;
        border: none;
        font-family: inherit;
        font-size: 15px;
        font-weight: 600;
        color: #1a1a1a;
        text-align: left;
        text-decoration: none;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .mh-drawer__nav > ul > li > a:hover,
    .mh-has-sub > button:hover {
        color: #4782A2;
        background: rgba(20, 89, 225, 0.03);
    }

    .mh-has-sub > button i {
        font-size: 18px;
        color: #666;
        flex-shrink: 0;
        transition: transform 0.3s ease;
    }

    .mh-has-sub > button.open {
        color: #4782A2;
    }

    .mh-has-sub > button.open i {
        transform: rotate(180deg);
        color: #4782A2;
    }

    .mh-has-sub > ul {
        padding: 0;
        max-height: 0;
        overflow: hidden;
        background: #f8f9fb;
        border-top: 1px solid rgba(0, 0, 0, 0.04);
        transition: max-height 0.35s ease;
    }

    .mh-has-sub > ul.open {
        max-height: 600px;
    }

    .mh-has-sub > ul li a {
        display: block;
        padding: 11px 20px 11px 34px;
        font-size: 13.5px;
        font-weight: 500;
        color: #444;
        text-decoration: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        transition: all 0.2s ease;
    }

    .mh-has-sub > ul li:last-child a {
        border-bottom: none;
    }

    .mh-has-sub > ul li a:hover {
        color: #4782A2;
        padding-left: 40px;
        background: rgba(20, 89, 225, 0.04);
    }

    .mh-drawer__footer {
        display: flex;
        flex-direction: column;
        gap: 10px;
        flex-shrink: 0;
        padding: 16px 20px 24px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        background: #ffffff;
    }

    .mh-drawer__phone {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 11px;
        font-size: 14px;
        font-weight: 600;
        color: #1a1a1a;
        text-decoration: none;
        border-radius: 8px;
        border: 1.5px solid rgba(0, 0, 0, 0.15);
        transition: all 0.2s ease;
    }

    .mh-drawer__phone:hover {
        background: rgba(0, 0, 0, 0.03);
    }

    .mh-drawer__demo {
        width: 100%;
        padding: 13px;
        background: linear-gradient(135deg, #4782A2, #6FBAD9);
        color: #ffffff;
        border: none;
        border-radius: 8px;
        font-family: inherit;
        font-weight: 700;
        font-size: 15px;
        cursor: pointer;
    }

    body.mh-drawer-open {
        overflow: hidden !important;
    }
}

/* Phones — no phone icon, smaller bar */
@media (max-width: 767px) {
    .site-header .header-inner {
        height: 58px;
        min-height: 58px;
        padding: 0 16px;
    }

    .site-header .logo-mark {
        width: 112px;
    }

    .mh-phone-icon {
        display: none;
    }

    .site-header .header-actions .btn-primary {
        padding: 8px 12px;
        font-size: 12px;
        min-height: 40px;
        min-width: 118px;
    }
}

@media (max-width: 359px) {
    .site-header .header-actions .btn-primary {
        display: none;
    }

    .mh-hamburger {
        width: 38px;
        height: 38px;
    }
}

/* responsive.css */
/* ==========================================================================
   Responsive layout — single breakpoint at 990px.
   Everything below applies when the viewport is 990px or narrower.
   Above 990px, the default (desktop) styles from each component's own
   stylesheet apply unchanged.
   ========================================================================== */
@media (max-width: 990px) {
    body {
        overflow-x: hidden;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* ---------- top bar ---------- */
    .top-bar-message {
        display: none;
    }

    .top-bar-inner {
        justify-content: flex-end;
    }

    /* ---------- header / nav toggle ---------- */
    .header-inner {
        position: relative;
        display: flex;
        justify-content: space-between;
        height: 64px;
        gap: var(--space-md);
    }

    .logo-mark {
        width: 128px;
        height: auto;
    }

    .main-nav,
    .header-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
    }

    .main-nav.open {
        display: block;
        position: fixed;
        top: 64px;
        left: 0;
        width: 100vw;
        max-width: 100vw;
        margin: 0;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        z-index: 150;
        background: #fff;
        border-bottom: 1px solid var(--color-border);
        padding: var(--space-md) 20px;
        box-sizing: border-box;
    }

    .main-nav.open ul {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
    }

    .main-nav.open > ul > li > a,
    .main-nav.open .dropdown-trigger {
        display: block;
        width: 100%;
        padding: 8px 0;
        text-align: left;
    }

    .main-nav__cta-item {
        display: block;
    }

    .dropdown-panel {
        position: static;
        width: 100%;
        grid-template-columns: 1fr;
        gap: var(--space-sm);
        margin-top: var(--space-xs);
        padding: var(--space-sm);
        box-sizing: border-box;
        transform: none;
        box-shadow: none;
        border-color: var(--color-border);
        /* Neutralize the desktop opacity/visibility show-hide system —
           on mobile the panel is shown/hidden purely via display. */
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
    }

    .main-nav.open .has-dropdown.open .dropdown-panel {
        display: grid;
    }

    /* "Book a demo" as the last item in the mobile nav list, right after
       Resources — scrolls naturally with the rest of the open menu. */
    .main-nav__cta-item {
        margin-top: 8px;
        padding-top: var(--space-sm);
        border-top: 1px solid var(--color-border);
    }

    .main-nav__cta-item .btn {
        width: 100%;
        justify-content: center;
    }

    /* ---------- hero ---------- */
    .hero h1 {
        font-size: 2.1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    /* ---------- grids ---------- */
    .stats-grid,
    .features-grid,
    .cp__grid,
    .rl__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .iz-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: 40px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .value-inner {
        grid-template-columns: 1fr;
    }

    .value-visual {
        order: -1;
    }

    /* ---------- section padding ---------- */
    .hn,
    .logos-strip,
    .stats,
    .value-section,
    .features,
    .testimonials,
    .ap-cost,
    .apc,
    .sol-hero,
    .iz,
    .vi,
    .btc,
    .cp,
    .cr,
    .rl,
    .fs,
    .fc {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    /* ---------- section rows to single column ---------- */
    .hn__row,
    .value-inner,
    .ap-cost__row,
    .apc__row,
    .sol-panel.is-active,
    .iz-panel.is-active,
    .vi__row,
    .btc__row,
    .cp__top,
    .cr__grid,
    .fs__row,
    .fc__row {
        grid-template-columns: 1fr;
    }

    .ap-cost__top,
    .iz__top,
    .sol-hero__top,
    .cr__top,
    .rl__top,
    .zt-diff__row {
        flex-direction: column;
        align-items: flex-start;
    }

    .ap-cost__lede,
    .iz__lede,
    .sol-hero__lede {
        max-width: 100%;
    }

    .iz-panel.is-active,
    .sol-panel.is-active {
        gap: var(--space-lg);
    }

    .btc__diagram {
        max-width: none;
        padding: 40px 24px;
    }

    .fc__row {
        gap: var(--space-lg);
    }

    .fc__heading {
        font-size: clamp(2rem, 7vw, 2.8rem);
    }

    .fc__card,
    .vi__card {
        width: 100%;
        box-sizing: border-box;
    }

    .apc__result {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #d7e0ec;
        padding-top: var(--space-lg);
    }

    .sol-tabs-block {
        max-width: 100%;
    }

    .sol-tabs {
        max-width: 100%;
        flex-wrap: nowrap;
        justify-content: center;
        overflow-x: auto;
        border-radius: 999px;
    }

    /* ---------- narrow phones: collapse remaining grids to one column ---------- */
    .features-grid,
    .stats-grid,
    .cp__grid,
    .rl__grid,
    .iz-steps,
    .apc__inputs,
    .cr__platforms-row,
    .vi__grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

/* ---------- desktop container padding (above the 990px breakpoint) ---------- */
@media (min-width: 991px) {
    .container,
    .btc > .container,
    .fc > .container,
    .iz > .container,
    .vi > .container,
    .zt-diff > .container {
        width: 100%;
        max-width: none;
        padding-left: clamp(24px, 5.5vw, 105px);
        padding-right: clamp(24px, 5.5vw, 105px);
    }
}

