/* 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;
    }
}
/* hero-new.css */
/* ==========================================================================
   Hero — light two-column layout (includes/hero_section.php)
   ========================================================================== */
.hn {
    padding: 24px 0 0;
    /* Solid white — same as header so no fringe/seam can show */
    background: #ffffff;
    overflow: hidden;
}

.hn__row {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.hn__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6f8298;
    margin: 0 0 var(--space-md);
}

.hn__badge-icon {
    color: rgb(0, 107, 141);
}

.hn__badge-divider {
    color: #c7d2e0;
}

.hn__copy {
    container-type: inline-size;
}

/* Exactly two lines: "One Unified AI" / "Platform for Finance|Procurement" */
.hn__heading {
    font-size: clamp(2.4rem, 4.2vw, 3rem);
    font-size: clamp(2.4rem, 8.2cqi, 3rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: #17304e;
    margin: 0 0 40px;
}

.hn__heading-line {
    display: block;
}

.hn__heading-line--2 {
    white-space: nowrap;
}

/* Accent color is static on first paint for LCP. Motion starts only after
   .hn--motion-ready is added by JS (post-load). */
.hn__heading-accent {
    display: inline-block;
    color: #00799F;
}

.hn--motion-ready .hn__heading-accent {
    animation: hn-accent-pulse 2.6s ease-in-out infinite;
}

.hn__word-swap {
    display: inline-block;
    min-width: 12ch; /* reserve "Procurement" width — stops hero CLS on word swap */
    text-align: left;
    vertical-align: bottom;
    transition: opacity 0.3s ease;
}

.hn__word-swap.is-swapping {
    opacity: 0;
}

@keyframes hn-accent-pulse {
    0%, 100% {
        color: #00799F;
        text-shadow: 0 0 0 rgba(0, 121, 159, 0);
    }
    50% {
        color: #16b8a6;
        text-shadow: 0 0 18px rgba(22, 184, 166, 0.35);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hn--motion-ready .hn__heading-accent {
        animation: none;
        color: #00799F;
        text-shadow: none;
    }
}

.hn__subtext {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
    color: #33475f;
    margin: 0 0 var(--space-md);
}

.hn__desc {
    font-size: 0.92rem;
    line-height: 1.7;
    color: #6f8298;
    max-width: 440px;
    margin: 0 0 40px;
}

.hn__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.hn__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.hn__btn--primary {
    padding: 14px 26px;
    background: #00799F;
    color: #ffffff;
    border: none;
    cursor: pointer;
}

.hn__btn--ghost {
    padding: 14px 22px;
    background: #ffffff;
    color: #17304e;
    border: 1px solid #d7dbe4;
    border-radius: 999px;
    box-shadow: 0 2px 6px -2px rgba(23, 48, 78, 0.1);
}

.hn__btn-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-right: 10px;
    border-radius: 50%;
    background: #00799F;
    color: #ffffff;
    font-size: 0.55rem;
}

.hn__btn--ghost:hover {
    background: #f7f9fc;
    border-color: #c3cadb;
}

.hn__btn--ghost:hover .hn__btn-play {
    background: #1a84fb;
}

.hn__trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin: 0 0 var(--space-sm);
}

.hn__trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #6f8298;
}

.hn__trust-check {
    color: rgb(0, 107, 141);
}

.hn__tagline {
    font-size: 0.78rem;
    color: #94a5b8;
    margin: 0;
    padding-top: var(--space-sm);
    border-top: 1px solid #e3e8ef;
    max-width: 420px;
}

.hn__visual {
    position: relative;
}

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

    .hn__copy {
        text-align: center;
    }

    .hn__desc,
    .hn__tagline {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hn__actions {
        width: 100%;
        justify-content: center;
    }

    .hn__heading {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .hn {
        padding: 72px 0 48px;
    }

    .hn__heading {
        font-size: clamp(1.85rem, 7.2vw, 2.4rem);
    }

    .hn__btn {
        min-width: 200px;
    }
}

/* invoice-flow.css */
/* ==========================================================================
   Invoice processing flow — animated infographic (includes/invoice-flow.php)
   ========================================================================== */
.invoice-flow {
    --blue: #1f5fbf;
    --orange: #f28a1e;
    --ink: #12284a;
    --mute: #5b6b82;
    width: 100%;
    display: flex;
    justify-content: center;
    contain: layout paint;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.invoice-flow svg {
    width: 100%;
    max-width: 580px;
    height: auto;
    overflow: visible;
    will-change: contents;
}

.invoice-flow .track {
    fill: none;
    stroke: #d3e2f8;
    stroke-width: 2;
    stroke-dasharray: 4 8;
}

.invoice-flow .path {
    fill: none;
    stroke: var(--blue);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}

.invoice-flow svg.play .path {
    animation: invoice-flow-draw 7.85s linear forwards;
}

@keyframes invoice-flow-draw {
    to { stroke-dashoffset: 0; }
}

.invoice-flow .node {
    /* Visible by default so the hero never goes blank if .play is briefly removed */
    opacity: 1;
}

.invoice-flow .b { --c: var(--blue); }
.invoice-flow .o { --c: var(--orange); }
.invoice-flow .logo { --c: var(--blue); }

.invoice-flow svg.play .node {
    animation: invoice-flow-in .6s cubic-bezier(.2, .8, .2, 1) forwards;
    animation-delay: var(--d);
}

@keyframes invoice-flow-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.invoice-flow .disc {
    fill: var(--c);
    filter: drop-shadow(0 4px 8px rgba(18, 40, 74, .22));
}

.invoice-flow .ring {
    fill: none;
    stroke: var(--c);
    stroke-width: 1.4;
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
}

.invoice-flow svg.play .ring {
    animation: invoice-flow-pulse 3.2s ease-out infinite;
    animation-delay: calc(var(--d) + .6s);
}

@keyframes invoice-flow-pulse {
    0% { opacity: .7; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.55); }
}

.invoice-flow .ico {
    fill: none;
    stroke: #fff;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.invoice-flow .logo-mark {
    filter: drop-shadow(0 4px 10px rgba(18, 40, 74, .18));
    transform-box: fill-box;
    transform-origin: center;
}

.invoice-flow .logo-mark.is-blinking {
    animation: invoice-flow-blink .5s ease-in-out 3;
}

@keyframes invoice-flow-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .25; transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
    .invoice-flow .logo-mark.is-blinking {
        animation: none;
    }
}

.invoice-flow .badge {
    fill: #fff;
    stroke: var(--c);
    stroke-width: 2;
}

.invoice-flow .num {
    font: 700 12px Figtree, sans-serif;
    fill: var(--c);
    text-anchor: middle;
}

.invoice-flow .lbl {
    font: 600 17px Figtree, sans-serif;
    fill: var(--ink);
    text-anchor: middle;
}

.invoice-flow .small {
    font: 400 12.5px Figtree, sans-serif;
    fill: var(--mute);
    text-anchor: middle;
}

@media (max-width: 640px) {
    .invoice-flow {
        overflow: visible;
    }

    .invoice-flow svg {
        max-width: none;
        width: 118%;
        margin-left: -9%;
    }

    .invoice-flow .lbl {
        font-size: 22px;
    }

    .invoice-flow .small {
        font-size: 16px;
    }

    .invoice-flow .num {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .invoice-flow .path {
        stroke-dashoffset: 0;
    }

    .invoice-flow .node {
        opacity: 1;
    }

    .invoice-flow .ring {
        display: none;
    }
}

/* ap-cost-v2.css */
/* ==========================================================================
   AP cost / automation overview (includes/ap_cost.php)
   ========================================================================== */
.apv2 {
    padding: 40px 0 56px;
    background: linear-gradient(160deg, #f5f9fb 0%, #eef5f7 50%, #e9f3f1 100%);
}

.apv2__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    margin-bottom: clamp(40px, 6vw, 64px);
}

/* Keep heading/copy above the scaled stage graphic (scale(1.25) can overlap). */
.apv2__copy {
    position: relative;
    z-index: 2;
}

/* ---------- left copy ---------- */
.apv2__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    background: #e8f6f5;
    color: rgb(0, 107, 141);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-md);
}

.apv2__eyebrow-dash {
    width: 14px;
    height: 2px;
    background: rgb(0, 107, 141);
    border-radius: 2px;
}

.apv2__heading {
    font-size: clamp(2rem, 3.6vw, 2.75rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: #0e2b40;
    margin: 0 0 30px;
}

.apv2__heading-accent {
    color: #16b8a6;
}

.apv2__desc {
    font-size: 1rem;
    line-height: 1.7;
    color: #5b7184;
    max-width: 46ch;
    margin: 0;
}

/* ---------- right illustration (provided stage markup) ---------- */
.apv2__visual {
    overflow: visible;
}

.apv2-stage__wrap {
    width: 100%;
    max-width: 725px; /* 580 * 1.25, matches the scaled stage width so nothing clips */
    margin: 0 auto;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 425px; /* 340 * 1.25, matches the scaled stage so it never overflows the row */
    min-width: 0;
}

.apv2-stage {
    position: relative;
    width: 580px;
    height: 340px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #f7fbff 0%, #eaf3fc 100%);
    transform: scale(1.25);
    transform-origin: center;
}

.apv2-stage__blob {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #dcecfb, #c9e0f7);
    opacity: .75;
}

.apv2-stage__blob--one { width: 330px; height: 300px; left: 100px; top: 20px; }
.apv2-stage__blob--two { width: 240px; height: 200px; left: 250px; top: 150px; opacity: .5; }

.apv2-stage__lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.apv2-stage__lines path {
    fill: none;
    stroke: #5fa8e8;
    stroke-width: 1.2;
    stroke-dasharray: 3 4;
}

.apv2-stage__lines circle {
    fill: #5fa8e8;
}

.apv2-stage__tile {
    position: absolute;
    left: 38px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(47, 128, 237, .15);
}

.apv2-stage__tile svg {
    width: 22px;
    height: 22px;
}

.apv2-stage__tile--mail  { top: 56px;  background: linear-gradient(145deg, #3b9bff, #2575e6); }
.apv2-stage__tile--doc   { top: 108px; background: linear-gradient(145deg, #8b7bff, #6c5ce7); }
.apv2-stage__tile--cloud { top: 156px; background: linear-gradient(145deg, #2fd1b8, #14b8a6); }
.apv2-stage__tile--sheet { top: 208px; background: linear-gradient(145deg, #3b9bff, #2575e6); }

.apv2-stage__invoice {
    position: absolute;
    left: 142px;
    top: 62px;
    width: 175px;
    height: 185px;
    background: #ffffff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(47, 100, 180, .18);
}

.apv2-stage__invoice-label {
    font-size: 14px;
    font-weight: 700;
    color: #17304e;
    margin: 0;
}

.apv2-stage__pdf {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 18px;
    height: 22px;
    border-radius: 3px;
    background: #e4e9f2;
}

.apv2-stage__bar {
    height: 5px;
    border-radius: 3px;
    background: #dfe6f1;
    margin-top: 8px;
}

.apv2-stage__bar--dark { background: #c5cfdf; }

.apv2-stage__row {
    display: flex;
    gap: 22px;
    margin-top: 8px;
}

.apv2-stage__row .apv2-stage__bar {
    margin: 0;
    flex: 1;
}

.apv2-stage__row .apv2-stage__bar--short {
    flex: .35;
}

.apv2-stage__success {
    position: absolute;
    left: 154px;
    top: 192px;
    width: 176px;
    height: 95px;
    background: linear-gradient(145deg, #12326b, #0b2250);
    border-radius: 10px;
    padding: 14px 16px;
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(10, 30, 80, .35);
}

.apv2-stage__check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #3ee0c9;
    display: grid;
    place-items: center;
    position: absolute;
    left: 14px;
    top: 14px;
}

.apv2-stage__check svg {
    width: 14px;
    height: 14px;
}

.apv2-stage__success small {
    position: absolute;
    left: 52px;
    top: 14px;
    font-size: 9px;
    color: #b9c7e6;
}

.apv2-stage__success strong {
    position: absolute;
    left: 52px;
    top: 32px;
    font-size: 18px;
    font-weight: 600;
}

.apv2-stage__bars {
    position: absolute;
    right: 14px;
    bottom: 12px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.apv2-stage__bars i {
    width: 6px;
    border-radius: 2px;
    background: linear-gradient(180deg, #3ee0c9, #1aa7c9);
    display: block;
}

.apv2-stage__bars i:nth-child(1) { height: 8px; }
.apv2-stage__bars i:nth-child(2) { height: 14px; }
.apv2-stage__bars i:nth-child(3) { height: 22px; }
.apv2-stage__bars i:nth-child(4) { height: 30px; }
.apv2-stage__bars i:nth-child(5) { height: 40px; }

.apv2-stage__pill {
    position: absolute;
    left: 342px;
    width: 140px;
    height: 36px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 500;
    color: #1f2d4d;
    box-shadow: 0 6px 18px rgba(47, 128, 237, .14);
}

.apv2-stage__dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #14b8a6;
    display: grid;
    place-items: center;
    flex: none;
}

.apv2-stage__dot svg {
    width: 11px;
    height: 11px;
}

.apv2-stage__pill--p1 { top: 62px; }
.apv2-stage__pill--p2 { top: 109px; }
.apv2-stage__pill--p3 { top: 157px; }
.apv2-stage__pill--p4 { top: 205px; }

/* ---------- feature card row ---------- */
.apv2__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.apv2__card {
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* Visible by default — do not hide content waiting on lazy JS */
    opacity: 1;
    transform: none;
    transition: box-shadow var(--transition), border-color var(--transition);
}

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

.apv2__card:hover {
    box-shadow: 0 20px 40px -20px rgba(14, 43, 64, 0.2);
    border-color: #d3e2ea;
}

.apv2__card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin-bottom: var(--space-md);
}

.apv2__card-icon svg {
    width: 24px;
    height: 24px;
}

.apv2__card-icon--teal { background: #e4f8f3; color: #16c79a; }
.apv2__card-icon--blue { background: #e8f0fe; color: #2f7bf0; }
.apv2__card-icon--purple { background: #f1ebfd; color: #8b5cf6; }

.apv2__card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #17304e;
    margin: 0 0 10px;
}

.apv2__card-text {
    font-size: 0.88rem;
    line-height: 1.65;
    color: #5b7184;
    margin: 0 0 var(--space-md);
}

.apv2__card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgb(0, 107, 141);
    transition: gap var(--transition), opacity var(--transition);
}

.apv2__card-link:hover {
    gap: 10px;
    opacity: 0.8;
}

@media (prefers-reduced-motion: reduce) {
    .apv2__card {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 900px) {
    .apv2 {
        padding: 16px 0 40px;
    }

    .apv2__top {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 32px;
        justify-items: center;
        text-align: center;
    }

    .apv2__copy {
        width: 100%;
        max-width: 36rem;
    }

    .apv2__desc {
        margin-left: auto;
        margin-right: auto;
    }

    .apv2-stage__wrap {
        order: -1;
    }

    .apv2__cards {
        grid-template-columns: 1fr;
    }
}

/* ---------- responsive stage scaling ----------
   Fixed 580x340 artboard is absolutely centered and scaled to the wrap
   width so layout height matches the visible graphic (no empty gap / clip). */
@media (max-width: 900px) {
    .apv2-stage__wrap {
        position: relative;
        width: 100%;
        max-width: 580px;
        margin: 0 auto;
        overflow: hidden;
        container-type: inline-size;
        container-name: apv2-stage;
        aspect-ratio: 580 / 340;
        height: auto;
        padding: 0;
        box-sizing: border-box;
    }

    .apv2-stage {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 580px;
        height: 340px;
        margin: 0;
        transform: translate(-50%, -50%) scale(0.62);
        transform-origin: center center;
    }

    @supports (width: 1cqw) {
        .apv2-stage {
            transform: translate(-50%, -50%) scale(calc(100cqw / 580));
        }
    }
}

@media (max-width: 600px) {
    .apv2 {
        padding: 8px 0 36px;
    }

    .apv2__heading {
        font-size: 1.9rem;
    }

    .apv2__top {
        gap: 16px;
        margin-bottom: 28px;
    }

    .apv2-stage__wrap {
        max-width: 100%;
        /* Tiny side inset so edge pills stay inside the screen */
        width: calc(100% - 8px);
    }
}

/* zerotouch-difference.css */
/* ==========================================================================
   The ZeroTouch Difference — results banner (includes/zerotouch_difference.php)
   ========================================================================== */
.zt-diff {
    padding: 0px 0 28px;
    background: #0A2443;
    border-top: 1px solid var(--color-border);
}

.zt-diff > .container {
    position: relative;
    max-width: none;
    padding-left: clamp(20px, 5.5vw, 105px);
    padding-right: clamp(20px, 5.5vw, 105px);
}

/* ---------- results banner canvas (keeps the 1895 x 830 proportion) ---------- */
.zt-diff__banner {
    position: relative;
    width: 100%;
    max-width: 1895px;
    aspect-ratio: 1895 / 830;
    overflow: hidden;
    margin: 0 auto;
    background:
        radial-gradient(60% 70% at 50% 35%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 70%),
        #0A2443;
    container-type: inline-size;
    font-family: Figtree, sans-serif;
}

/* top pill */
.zt-diff__pill {
    position: absolute;
    left: 50%;
    top: 6.3%;
    transform: translateX(-50%);
    padding: 0.85cqw 2.2cqw;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 0.5cqw 1.6cqw rgba(120, 100, 240, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 0.9cqw;
    font-weight: 700;
    letter-spacing: 0.14em;
    font-size: 1.12cqw;
    color: #3a2df0;
    white-space: nowrap;
}

.zt-diff__pill svg {
    width: 1.6cqw;
    height: 1.6cqw;
}

/* headline */
.zt-diff__title {
    position: absolute;
    left: 0;
    right: 0;
    top: 15.5%;
    text-align: center;
    font-size: clamp(20px, 3.2cqw, 46px);
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0;
}

/* stat cards */
.zt-diff__card {
    position: absolute;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 1.5cqw;
    box-shadow: 0 1.2cqw 3cqw rgba(110, 90, 240, 0.20), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
    display: flex;
    align-items: center;
    padding: 0 1.6cqw;
}

.zt-diff__icon {
    width: 5.3cqw;
    height: 5.3cqw;
    flex: none;
    position: relative;
    margin-right: 1.2cqw;
}

.zt-diff__icon::before {
    content: '';
    position: absolute;
    inset: -6%;
    border-radius: 50%;
    background: radial-gradient(circle, #eceaff 0%, rgba(236, 234, 255, 0) 72%);
}

.zt-diff__icon svg {
    position: relative;
    width: 100%;
    height: 100%;
}

.zt-diff__num {
    font-size: 3cqw;
    font-weight: 800;
    color: #3a2df0;
    line-height: 1;
    letter-spacing: -0.02em;
}

.zt-diff__card-label {
    font-size: 1.05cqw;
    font-weight: 600;
    color: #5b6070;
    line-height: 1.2;
    margin-top: 0.7cqw;
}

.zt-diff__card--1 {
    left: 9.9%;
    top: 28.4%;
    width: 18.5%;
    height: 18.2%;
}

.zt-diff__card--2 {
    left: 70.8%;
    top: 28.4%;
    width: 20.5%;
    height: 18.2%;
}

.zt-diff__card--3 {
    left: 40.3%;
    top: 63%;
    width: 19.7%;
    height: 19.3%;
}

/* connectors */
.zt-diff__curve {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ---------- CTA button (kept from the previous design) ---------- */
.zt-diff__cta-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: -80px;
    color: #1886A8;
}

.zt-diff__cta-corner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: max-content;
    padding: 14px 24px;
    border: none;
    border-radius: 999px;
    background: #1886A8;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 8px 20px -6px rgba(24, 134, 168, 0.5);
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.zt-diff__cta-corner svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: #ffffff;
}

.zt-diff__cta-corner:hover {
    background: #146f87;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -6px rgba(24, 134, 168, 0.6);
}

/* Tablets: the banner is too short for the CTA to overlap its bottom
   edge without covering the "99%" card, so place it below the banner. */
@media (max-width: 960px) {
    .zt-diff__cta-wrap {
        margin-top: 20px;
        justify-content: center;
    }
}

@media (max-width: 700px) {
    .zt-diff {
        padding: 12px 0 32px;
    }

    .zt-diff > .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Drop the fixed-ratio absolute canvas on small screens and stack
       everything normally: pill -> headline -> three cards -> CTA. */
    .zt-diff__banner {
        aspect-ratio: auto;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        padding: 16px 16px 24px;
        background: #0A2443;
    }

    .zt-diff__curve {
        display: none;
    }

    .zt-diff__pill {
        position: static;
        transform: none;
        padding: 8px 16px;
        font-size: 12px;
        gap: 6px;
    }

    .zt-diff__pill svg {
        width: 14px;
        height: 14px;
    }

    .zt-diff__title {
        position: static;
        font-size: 1.5rem;
        line-height: 1.3;
        padding: 0 4px;
    }

    .zt-diff__card {
        position: static;
        width: 100%;
        max-width: 320px;
        border-radius: 16px;
        padding: 14px 16px;
        box-shadow: 0 10px 24px rgba(110, 90, 240, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
    }

    .zt-diff__icon {
        width: 44px;
        height: 44px;
        margin-right: 12px;
    }

    .zt-diff__num {
        font-size: 1.6rem;
    }

    .zt-diff__card-label {
        font-size: 0.8rem;
        margin-top: 4px;
    }

    .zt-diff__cta-wrap {
        margin-top: 24px;
    }

    .zt-diff__cta-corner {
        font-size: 0.85rem;
        padding: 12px 18px;
    }
}

/* 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);
    }
}

/* 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;
    }
}

