:root {
    /* Colors */
    --bg-navy: #2596be;
    --bg-navy-rgb: 37, 150, 190;
    --accent-text: #ffffff;
    --accent-main: var(--accent-text);
    --crm-text: #ffffff;
    --violet-text: #ffffff;
    --text-on-dark: #ffffff;
    --text-on-bright: #ffffff;
    --focus-ink: #061c29;
    --surface-deep: #103b50;
    --surface-deep-rgb: 16, 59, 80;
    --vms-text: #ffffff;
    --timesheets-text: #ffffff;
    --payroll-text: #ffffff;
    /* Site background and readable accent colours */
    --primary-coral: #01a8f9; /* NuEvo Cyan */
    --primary-coral-rgb: 1, 168, 249;
    --primary-rose: #0081c2; /* Darker NuEvo Cyan for gradients */
    --primary-rose-rgb: 0, 129, 194;
    --text-main: #ffffff;
    --text-muted: #ffffff;

    /* Layout */
    --radius-soft: 24px;
    --radius-pill: 50px;

    /* Fonts */
    --font-friendly: 'Nunito', sans-serif;
    --font-data: 'Roboto Mono', monospace;
    --vms-blue: #1b8c30;
    --vms-blue-rgb: 27, 140, 48;
    --payroll-blue: #003366;
    --payroll-blue-rgb: 0, 51, 102;
}

body {
    background-color: var(--bg-navy);
    color: var(--text-main);
    font-family: var(--font-friendly);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    line-height: 1.6;
}

.insights-page { max-width: 1280px; margin: 0 auto; padding: 0 5% 6rem; }
.insights-hero { padding: 5rem 0 3.5rem; text-align: left; }
.insights-hero-inner { display: flex; flex-direction: column; gap: 1.25rem; align-items: center; }
.insights-hero-copy { max-width: 900px; text-align: center; }
.insights-hero h1 { font-size: clamp(2.4rem, 4.5vw, 4.25rem); line-height: 1; margin: 0 0 1.25rem; font-weight: 800; }
.insights-hero p { max-width: 100%; color: var(--text-muted); font-size: 1.2rem; margin: 0; }
.insights-hero-description { max-width: 900px; text-align: center; }
.insights-hero-image { width: 100%; max-width: 900px; min-height: 0; margin-top: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.insights-featured { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 4rem; }
.insights-featured-main { min-height: 360px; padding: clamp(2rem, 5vw, 4rem); border-radius: var(--radius-soft); background: linear-gradient(135deg, rgba(1,168,249,.18), rgba(255,255,255,.04)); border: 1px solid rgba(1,168,249,.35); display: flex; flex-direction: column; justify-content: flex-end; }
.insights-featured-main h2 { max-width: 100%; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; margin: .75rem 0 1rem; }
.insights-featured-main p { max-width: 100%; color: var(--text-muted); font-size: 1.08rem; margin: 0 0 1.5rem; }
.insights-meta { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; color: var(--text-muted); font-family: var(--font-data); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.insights-meta strong { color: var(--accent-text); }
.insights-featured-side { padding: 2rem; border-radius: var(--radius-soft); display: flex; flex-direction: column; justify-content: space-between; }
.insights-featured-side h3 { font-size: 1.6rem; line-height: 1.15; margin: 1rem 0; }
.insights-featured-side p { color: var(--text-muted); margin: 0; }
.insights-section-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.5rem; }
.insights-section-heading h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0; }
.insights-section-heading p { color: var(--text-muted); margin: 0; }
.insights-filter { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.insights-filter span { padding: .55rem .9rem; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: var(--text-muted); font-size: .85rem; }
.insights-filter span:first-child { color: var(--text-main); background: var(--primary-coral); border-color: var(--primary-coral); }
.insights-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.insight-card { min-height: 300px; padding: 1.75rem; border-radius: var(--radius-soft); display: flex; flex-direction: column; transition: transform .25s ease, border-color .25s ease; }
.insight-card:hover { transform: translateY(-5px); border-color: rgba(1,168,249,.5); }
.insight-card h3 { font-size: 1.45rem; line-height: 1.2; margin: 1rem 0 .75rem; }
.insight-card p { color: var(--text-muted); margin: 0 0 1.5rem; }
.insight-card .insights-meta { margin-top: auto; }
.insights-cta { margin-top: 4rem; padding: 2.5rem clamp(1.5rem, 5vw, 4rem); border-radius: var(--radius-soft); display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.insights-cta h2 { margin: 0 0 .5rem; font-size: 2rem; }
.insights-cta p { color: var(--text-muted); margin: 0; }
@media (max-width: 900px) { .insights-hero-inner { gap: 2rem; } .insights-hero-image { min-height: 220px; max-width: 560px; margin-top: 0; } .insights-featured { grid-template-columns: 1fr; } .insights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .insights-page { padding-bottom: 4rem; } .insights-hero { padding-top: 3rem; } .insights-hero h1 { font-size: 3.2rem; } .insights-grid { grid-template-columns: 1fr; } .insights-section-heading, .insights-cta { align-items: flex-start; flex-direction: column; } .insights-featured-main { min-height: 420px; } }

.whats-new-banner {
    position: relative;
    z-index: 300;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 0.85rem 5%;
    background: #041f63;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: whats-new-slide-down 0.45s ease-out both;
}

.whats-new-banner>strong {
    white-space: nowrap;
    color: var(--text-main);
}

.whats-new-banner-updates {
    min-width: 0;
}

.whats-new-banner-controls {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.whats-new-banner-update {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.65rem;
    color: var(--text-main);
    text-decoration: none;
    min-width: 0;
}

.whats-new-banner-slide {
    animation: whats-new-update-slide 0.55s ease both;
}

.whats-new-banner-update:hover .whats-new-banner-title {
    text-decoration: underline;
}

.whats-new-banner-nav,
.whats-new-banner-close {
    border: 0;
    padding: 0.25rem 0.5rem;
    background: transparent;
    color: var(--text-main);
    cursor: pointer;
}

.whats-new-banner-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    font-family: var(--font-friendly);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-main);
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
    -webkit-text-stroke: 1.2px white;
    vertical-align: middle;
}

.whats-new-banner-nav:hover,
.whats-new-banner-close:hover {
    opacity: 0.8;
}

.whats-new-banner-nav:hover {
    color: var(--text-main);
}

.whats-new-banner-date {
    grid-column: 1 / -1;
    color: var(--text-main);
    font-size: 0.75rem;
    font-family: var(--font-data);
}

.whats-new-banner-title {
    font-weight: 800;
}

.whats-new-banner-description {
    overflow: hidden;
    color: var(--text-main);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.whats-new-banner-close {
    font-size: 1.5rem;
    line-height: 1;
}

@keyframes whats-new-slide-down {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes whats-new-update-slide {
    from {
        transform: translateX(2rem);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 760px) {
    .whats-new-banner {
        grid-template-columns: auto 1fr auto auto;
        gap: 0.5rem 1rem;
        align-items: center;
    }

    .whats-new-banner-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        height: 100%;
    }

    .whats-new-banner-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.2rem;
        height: 2.2rem;
        padding: 0;
        margin: 0;
        line-height: 1;
        font-size: 1.6rem;
        vertical-align: middle;
    }

    .whats-new-banner-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
    }

    .whats-new-banner-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.2rem;
        height: 2.2rem;
        padding: 0;
        font-size: 1.6rem;
    }

    .whats-new-banner-description {
        display: none;
    }
}

/* Background Glows (Impactful but Warm) */
.glow-bg {
    position: fixed;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.2;
    border-radius: 25%;
}

.glow-bg-1 {
    top: -10%;
    left: -5%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary-coral), transparent 50%);
}

.glow-bg-2 {
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--primary-rose), transparent 50%);
}

/* Glassmorphism Classes */
.glass {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-border-only {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(var(--bg-navy-rgb), 0.6);
    backdrop-filter: blur(10px);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(var(--bg-navy-rgb), 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent-text);
}

.navbar .logo img {
    display: block;
    width: 140px;
    height: 60px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a,
.nav-links .dropdown-toggle {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 1.5rem;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links .dropdown-toggle:hover {
    color: var(--text-main);
}

/* Dropdown Navigation */
.dropdown {
    position: relative;
    display: inline-block;
    height: 100%;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 260px;
    padding: 1rem 0;
    border-radius: var(--radius-soft);
    background: rgba(var(--bg-navy-rgb), 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 200;
}

.dropdown:hover .dropdown-menu {
    display: flex;
    flex-direction: column;
}

.dropdown-menu a {
    margin: 0 !important;
    padding: 0.8rem 1.5rem;
    white-space: nowrap;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-text);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-phone {
    color: var(--text-main);
    font-weight: 700;
    text-decoration: none;
}

.article-page > article.glass {
    background: linear-gradient(135deg, #082f68, #0d4c73);
    border-color: rgba(255, 255, 255, 0.2);
}

.article-page .btn-glow {
    background: #007db8;
    box-shadow: 0 4px 12.5px rgba(0, 125, 184, 0.45);
}

.article-page .btn-glow:hover {
    box-shadow: 0 6px 15px rgba(0, 125, 184, 0.65);
}

/* Buttons */
.btn-glow {
    background: #006096;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-pill);
    color: var(--text-main);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 12.5px rgba(0, 96, 150, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 96, 150, 0.7);
}

.btn-vms {
    background: var(--vms-blue);
    box-shadow: 0 4px 12.5px var(--vms-blue);
}

.btn-vms:hover {
    box-shadow: 0 6px 15px var(--vms-blue);
}

.btn-crm {
    background: #805b00;
    box-shadow: 0 4px 12.5px #d89c02;
}

.btn-crm:hover {
    box-shadow: 0 6px 15px #d89c02;
}

.btn-timesheets {
    background: #a70f2a;
    box-shadow: 0 4px 12.5px #a70f2a;
}

.btn-timesheets:hover {
    box-shadow: 0 6px 15px #a70f2a;
}

.btn-payroll {
    background: var(--payroll-blue);
    box-shadow: 0 4px 12.5px var(--payroll-blue);
}

.btn-payroll:hover {
    box-shadow: 0 6px 15px var(--payroll-blue);
}

.btn-violet {
    background: #713bb0;
    box-shadow: 0 4px 12.5px #b66cff;
}
    
.btn-violet:hover {
    box-shadow: 0 6px 15px #b66cff;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-pill);
    color: var(--text-main);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    font-family: inherit;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 2rem 5% 2rem;
    align-items: center;
    min-height: 80vh;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.badge-green {
    background: linear-gradient(135deg, var(--primary-coral), var(--primary-rose));
    color: var(--text-main);
    border: none;
}

.hero h1 {
    font-size: 4rem;
    margin: 0 0 1.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.highlight {
    color: var(--text-main);
    background: none;
    -webkit-text-fill-color: currentColor;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

/* Hero Tiles */
.hero-graphic {
    position: relative;
    perspective: 1200px;
}

.hero-tiles {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width: 100%;
    height: 400px;
}

.hero-tiles:hover {
    transform: rotateY(0) rotateX(0);
}











.hero-tile {
    border-radius: var(--radius-soft);
    padding: 3rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: filter 0.3s ease;
}

.hero-tile:hover {
    filter: brightness(1.1);
}

.hero-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    pointer-events: none;
}

.tile-vms {
    background-color: var(--vms-blue);
}

.tile-crm {
    background-color: #805b00;
}

.tile-timesheets {
    background-color: #a70f2a;
}

.tile-payroll {
    background-color: var(--payroll-blue);
}
.tile-violet { background-color: #713bb0; }


/* Trust Bar */
.trust-bar {
    padding: 3rem 5%;
    text-align: center;
}

.trust-bar p {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.trust-logos img {
    height: 50px;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.7);
    transition: 0.3s;
}

.trust-logos img:hover {
    filter: brightness(0) invert(1) opacity(1);
}

/* Bento Grid */
.bento-section {
    padding: 6rem 5%;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.sister-company-promo {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    align-items: center;
    gap: 3rem;
    margin: 0 5% 4rem;
    padding: 3rem clamp(2rem, 6vw, 6rem);
    border-radius: var(--radius-soft);
}

.custom-api-banner {
    margin: 0 5% 4rem;
    padding: 3rem clamp(2rem, 6vw, 6rem);
    border-radius: var(--radius-soft);
    text-align: center;
}

.custom-api-banner h3 {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.custom-api-banner p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.custom-api-banner .btn-glow {
    margin-top: 0.75rem;
}

.sister-company-logo-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 110px;
    border: 1px dashed rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    color: var(--text-muted);
    font-family: var(--font-data);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.sister-company-copy {
    text-align: center;
}

.sister-company-promo h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.sister-company-promo p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.1rem;
    text-align: center;
}

.Pay & Bill-cta {
    background: var(--payroll-blue);
    box-shadow: 0 4px 12.5px var(--payroll-blue);
}

.Pay & Bill-cta:hover {
    box-shadow: 0 6px 15px var(--payroll-blue);
}

@media (max-width: 700px) {
    .sister-company-promo {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .sister-company-promo .btn-glow {
        justify-self: center;
    }
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 2rem;
}

.healthcare-challenges-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, auto);
}

.healthcare-challenges-grid > .bento-box {
    box-sizing: border-box;
    justify-content: flex-start;
    min-height: 0;
}

@media (max-width: 700px) {
    .healthcare-challenges-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }
}

.integrations-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
}

.integrations-box {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0.35rem 0.75rem;
    box-sizing: border-box;
    transition: none !important;
}

.integrations-box:hover,
.integrations-grid:hover,
.integrations-box:focus,
.integrations-box:active {
    border-color: transparent !important;
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
}

.integrations-logo-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
}

.sso-logo-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    justify-content: center;
    gap: 0.75rem;
}

.sso-grid .product-feature-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 120px;
    min-height: 120px;
    padding: 1rem;
    background: #ffffff;
    box-sizing: border-box;
}

.sso-grid .product-feature-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.integrations-grid .product-feature-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 120px;
    min-height: 120px;
    padding: 1rem;
    background: #ffffff;
    box-sizing: border-box;
}

.integrations-grid .product-feature-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.integrations-grid .broadbean-logo-container {
    padding: 1rem;
    background: #ffffff;
    box-sizing: border-box;
}

.sso-bento-box {
    border-radius: var(--radius-soft);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.sso-bento-box h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.sso-bento-box p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Keep the SSO logo panel completely static. */
.sso-bento-grid,
.sso-bento-box,
.sso-bento-grid:hover,
.sso-bento-box:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
    transition: none !important;
}

.integrations-grid,
.integrations-box,
.integrations-grid:hover,
.integrations-box:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
    background: transparent !important;
    transition: none !important;
}

.bento-box {
    border-radius: var(--radius-soft);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bento-box:hover {
    transform: none;
}

.gdpr-bento-box:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.08);
}

.terms-bento-box:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.08);
}

.bento-box h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.bento-box p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.success-stories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.success-stories-grid>.bento-box {
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
    width: 100%;
}

.story-carousel-shell {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.story-carousel-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.story-carousel-track {
    position: relative;
    width: 100%;
}

.story-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(58%, 680px);
    min-width: 0;
    box-sizing: border-box;
    background: rgba(var(--bg-navy-rgb), 0.92);
    border: 2px solid rgba(var(--primary-rose-rgb), 0.75);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.72);
    transition: transform 0.4s ease, opacity 0.4s ease, z-index 0.4s ease;
}

.story-card>div:first-child {
    flex-direction: column !important;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.story-card>div:first-child>div {
    width: min(100%, 760px);
    min-width: 0 !important;
    margin: 0 auto;
}

.story-card.is-active {
    border-color: var(--primary-rose);
    box-shadow: 0 0 0 2px rgba(var(--primary-rose-rgb), 0.2);
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
    z-index: 4;
}

.story-card-prev,
.story-card-next,
.story-card-far-prev,
.story-card-far-next {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.story-card-prev {
    transform: translate(calc(-50% - 48%), -50%) scale(0.82);
    z-index: 2;
}

.story-card-next {
    transform: translate(calc(-50% + 48%), -50%) scale(0.82);
    z-index: 2;
}

.story-card-far-prev {
    transform: translate(calc(-50% - 92%), -50%) scale(0.68);
    opacity: 0.2;
    z-index: 1;
}

.story-card-far-next {
    transform: translate(calc(-50% + 92%), -50%) scale(0.68);
    opacity: 0.2;
    z-index: 1;
}

.story-card:not(.is-active) {
    visibility: visible;
    pointer-events: none;
}

.story-card:not(.is-active):hover {
    transform: translate(-50%, -50%) scale(0.72);
    box-shadow: none;
    border-color: rgba(var(--primary-rose-rgb), 0.75);
}

.story-card-highlight-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--primary-coral);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
}

.story-carousel-btn {
    min-width: 44px;
    height: 44px;
    padding: 0 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 8px;
    border: 1px solid rgba(var(--primary-rose-rgb), 0.8);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.story-carousel-btn:hover {
    background: rgba(var(--primary-rose-rgb), 0.18);
    border-color: rgba(var(--primary-rose-rgb), 0.9);
}

.success-story-placeholder {
    justify-content: center;
    text-align: left;
}

.success-story-placeholder h3 {
    margin: 0;
}

@media (max-width: 992px) {
    .success-stories-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .story-card {
        width: 82%;
    }
}

.feature-crm {
    grid-column: span 2;
}

.feature-vms {
    grid-column: span 1;
}

.feature-payroll {
    grid-column: span 1;
}

.feature-timesheets {
    grid-column: span 2;
}

.box-visual {
    position: absolute;
    right: 2.5rem;
    bottom: 2.5rem;
}

.broadbean-logo {
    display: block;
    width: min(100%, 210px);
    height: auto;
    margin: 0 auto;
}

.broadbean-logo-container {
    padding: 1rem;
    background: #f5f7f2;
}

.badge-accent {
    background: #805b00;
    color: var(--text-main);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-data);
    font-size: 0.85rem;
    font-weight: 700;
    border: none;
}

.violet-badge {
    background: #713bb0;
}

/* Metrics */
.metrics-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    padding: 2.5rem 5% 2.5rem;
    text-align: center;
}

.metric {
    flex: 1 1 200px;
    max-width: 280px;
}

.metric .counter {
    display: inline-block;
    font-family: var(--font-data);
    font-size: 4rem;
    color: var(--accent-text);
    margin: 0;
    line-height: 1;
    text-shadow: none;
}

.metric span {
    font-family: var(--font-data);
    font-size: 2rem;
    color: var(--accent-text);
}

.metric p {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    font-weight: 800;
    margin-top: 1rem;
}

/* Selector Tool */
.selector-section {
    padding: 3rem 5% 2.5rem;
    text-align: center;
}

.selector-container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 2.5rem;
    border-radius: var(--radius-soft);
    text-align: left;
    position: relative;
    overflow: hidden;
    min-height: 350px;
}

.selector-progress {
    margin-bottom: 2rem;
    text-align: center;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.progress-bar-container {
    width: 100%;
    max-width: 400px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-coral);
    border-radius: 10px;
    transition: width 0.4s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--primary-coral);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.selector-step {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
}

.selector-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.step-actions {
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.selectable-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.sector-card {
    border-radius: var(--radius-soft);
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid transparent;
    position: relative;
}

.sector-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.sector-card.selected {
    border-color: var(--primary-coral);
    background: rgba(var(--primary-coral-rgb), 0.1);
    box-shadow: 0 0 20px rgba(var(--primary-coral-rgb), 0.3);
}

.sector-card.selected::after {
    content: '\2713';
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-coral);
    color: var(--text-main);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    animation: scaleInCheck 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleInCheck {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.sector-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.sector-card h4 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-main);
}

.sector-card p {
    font-size: 0.85rem;
    margin: 0.5rem 0 0 0;
    color: var(--text-muted);
}

.needs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1rem;
}

.need-card {
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.custom-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    flex-shrink: 0;
    position: relative;
}

.need-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.need-card.selected {
    border-color: var(--primary-coral);
    background: rgba(var(--primary-coral-rgb), 0.1);
}

.need-card.selected .custom-checkbox {
    background: var(--primary-coral);
    border-color: var(--primary-coral);
}

.need-card.selected .custom-checkbox::after {
    content: '\2713';
    color: var(--text-main);
    font-size: 14px;
    font-weight: bold;
    position: absolute;
    animation: scaleInCheck 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.need-card h4 {
    margin: 0;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    font-size: 1.1rem;
}

.glass-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1.1rem;
    transition: 0.3s;
}

.glass-input:focus {
    outline: none;
    border-color: var(--primary-coral);
    background: rgba(255, 255, 255, 0.1);
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Services Section */
.services-section {
    padding: 6rem 5%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin: 0 auto 2rem;
    border-color: rgba(251, 146, 60, 0.3);
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-item p {
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    padding: 4rem 5% 2rem;
    margin-top: auto;
}

.product-content {
    flex: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3,
.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--text-main);
}

.footer-col p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.footer-col p .nav-phone {
    display: inline;
    color: var(--text-main);
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 0;
}

.footer-col p .nav-phone:hover,
.footer-col p .nav-phone:focus {
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.footer-col .logo {
    margin-bottom: 0.75rem;
}

.footer-col .logo img {
    height: 90px !important;
    width: auto !important;
    max-width: 100%;
    display: block;
    object-fit: contain;
    margin-left: 0 !important;
    margin-bottom: 0 !important;
}

.trust-logos-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.trust-logos-footer img {
    height: 45px;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.7);
    transition: 0.3s;
}

.trust-logos-footer img:hover {
    filter: brightness(0) invert(1) opacity(1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-bottom: none;
    border-left: none;
    border-right: none;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.product-content {
    padding-bottom: 4rem;
}

.product-video-slot {
    min-height: 150px;
    margin-bottom: 3rem;
}

.product-feature-row,
.product-feature-row-reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 5rem;
}

.product-feature-row-reverse .product-feature-image,
.product-feature-row-reverse .product-feature-copy {
    grid-column: auto;
    grid-row: auto;
}

.product-feature-copy {
    max-width: none;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: var(--text-main);
}

/* Page Header */
.page-header {
    padding: 2rem 5% 4rem;
    text-align: center;
    position: relative;
}


.violet-header-gif {
    display: block;
    width: min(100%, 760px);
    height: auto;
    margin: 2rem auto 0;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.page-header-logo {
    display: block;
    margin: 0 auto 1.5rem;
    width: 280px;
    height: 120px;
    padding: 1rem;
    box-sizing: border-box;
    border-radius: 24px;
    object-fit: contain;
}

.accreditation-badge {
    width: min(100%, 360px);
    margin: 0 auto 1.25rem;
    padding: 1rem 1.2rem;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(135deg, rgba(77, 133, 255, 0.18), rgba(107, 192, 255, 0.08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 28px rgba(10, 20, 50, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
}

.accreditation-logo {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    background: transparent;
    border-radius: 18px;
}

.timeline-image {
    display: block;
    width: min(100%, 900px);
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Keep the integrations content compact without changing other page headers. */
.page-header:has(.sso-bento-grid) {
    padding-bottom: 0.75rem;
}

.page-header .sso-bento-grid {
    margin-top: 0.5rem;
}

.services-section:has(.integrations-grid) {
    padding-top: 0.2rem !important;
}

.services-section:has(.integrations-grid) .section-header {
    margin-bottom: 0.4rem;
}

.healthcare-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
    align-items: center;
    gap: 4rem;
    max-width: 1280px;
    margin: 0 auto;
    text-align: left;
}

.healthcare-hero-content h1 {
    margin-bottom: 1rem;
}

.healthcare-hero-content p {
    max-width: 680px;
    margin: 0;
}

.recommended-solutions-header {
    display: block;
    padding-bottom: 0.5rem;
    text-align: center;
}

.healthcare-hero-image {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(1rem);
    overflow: hidden;
    border: 1px dashed rgba(14, 165, 233, 0.55);
    border-radius: var(--radius-soft);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 1rem;
}

.healthcare-hero-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-soft);
}

@media (max-width: 800px) {
    .healthcare-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .healthcare-hero-content p {
        margin: 0 auto;
    }

    .healthcare-hero-image {
        min-height: 220px;
        transform: none;
    }
}

.product-video-slot {
    max-width: 760px;
    margin: -1rem auto 4rem;
}

.product-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-soft);
}

/* CRM Feature Rows */
.product-content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1rem 5% 8rem;
}

.product-feature-row {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(4rem, 10vw, 10rem);
    margin-bottom: 7rem;
}

.product-feature-row-reverse {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.product-feature-row-reverse .product-feature-image {
    grid-column: 2;
    grid-row: 1;
}

.product-feature-row-reverse .product-feature-copy {
    grid-column: 1;
    grid-row: 1;
}

.product-feature-image {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-soft);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.product-feature-image img {
    display: block;
    width: 100%;
    height: auto;
}

.violet-feature-image {
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.violet-feature-image img {
    mix-blend-mode: screen;
}

.product-feature-copy {
    max-width: 500px;
}

.product-feature-copy h2 {
    margin: 1.25rem 0 1rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
}

.product-feature-copy p {
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.product-features-full {
    margin-bottom: 7rem;
}

.product-features-full-copy {
    max-width: 100%;
}

.product-features-list.full-width-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-features-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.product-features-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.08rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.product-features-list li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--crm-text);
    font-size: 1.5rem;
    line-height: 1.1;
    top: -1px;
}

.product-features-list li strong {
    color: var(--text-main);
    font-size: 1.25rem;
}

/* Team Filters */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-family: inherit;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-coral);
    color: var(--text-main);
    border-color: var(--primary-coral);
}

/* Team Section */
.team-section {
    padding: 0 5% 6rem;
}

.team-section h2 {
    font-size: 2.2rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-main);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
}

.team-card {
    border-radius: var(--radius-soft);
    padding: 2rem;
    text-align: center;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 152, 236, 0.4);
}

.team-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.team-card:hover .team-photo {
    border-color: var(--primary-coral);
}

.team-info h3 {
    font-size: 1.4rem;
    margin: 0 0 0.2rem;
}

.team-role {
    color: var(--accent-text);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.team-bio {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.linkedin-link:hover {
    background: #0077b5;
}

.linkedin-link svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Engine Room Tabs */
.engine-room {
    padding: 6rem 5%;
}

.tabs-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 250px;
}

.tab-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem;
    text-align: left;
    color: var(--text-muted);
    font-weight: 700;
    cursor: pointer;
    border-radius: 12px;
    transition: 0.3s;
    font-family: inherit;
}

.tab-btn.active,
.tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-text);
    border-color: rgba(56, 152, 236, 0.3);
}

.tab-content {
    display: none;
    width: 100%;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-visual {
    width: 100%;
    height: 350px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
}

.tab-content p {
    color: var(--text-main);
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--bg-navy-rgb), 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.demo-booking-modal .modal-content {
    max-width: 1100px;
    width: min(1100px, 92vw);
}

.demo-modal-header {
    margin-bottom: 2rem;
}

.demo-modal-header .badge.glass {
    background: #006096;
    border-color: #006096;
    color: var(--text-main);
    box-shadow: 0 10px 24px rgba(0, 96, 150, 0.25);
}

.demo-modal-header h3 {
    margin: 1rem 0 0;
    font-size: clamp(2rem, 3vw, 2.8rem);
    letter-spacing: -0.05em;
}

.demo-modal-body {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.booking-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.booking-field {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.booking-field label {
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.95rem;
}

.booking-form .glass-input {
    min-height: 52px;
}

.booking-form textarea.glass-input {
    min-height: 120px;
    resize: vertical;
}

.multi-select-group {
    container-type: inline-size;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.multi-select-option {
    padding: 0.55rem 0.1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    font-size: clamp(0.42rem, 2.8cqi, 0.8rem);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.multi-select-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.multi-select-option.selected {
    background: #006096;
    border-color: #006096;
    color: var(--text-main);
}

.multi-select-option:focus-visible,
.multi-select-option:active {
    background: #006096;
    border-color: #006096;
    color: var(--text-main);
}

.booking-submit {
    align-self: flex-start;
    margin-top: 0.5rem;
    width: fit-content;
}

.form-message {
    min-height: 1.5em;
    margin: 0;
    color: var(--accent-text);
    font-weight: 700;
}

.booking-scheduler {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.calendar-header h4 {
    margin: 0;
    font-size: 1.2rem;
}

.calendar-nav {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    width: 38px;
    height: 38px;
    color: var(--text-main);
    font-size: 1.1rem;
    cursor: pointer;
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5rem;
}

.calendar-weekdays {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.calendar-weekdays span {
    text-align: center;
    padding: 0.25rem 0;
}

.calendar-day {
    width: 100%;
    justify-self: stretch;
    aspect-ratio: 1;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: 0.2s ease;
}

.calendar-grid {
    gap: 0.35rem;
}

.calendar-day:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.calendar-day.calendar-column-divider {
    border-right-color: rgba(148, 163, 184, 0.35);
}

.calendar-day.muted {
    opacity: 0.35;
    pointer-events: none;
}

.calendar-day.calendar-month-preview {
    opacity: 0.35;
    border-style: dashed;
    cursor: default;
    font-weight: 400;
}

.calendar-day.selected {
    background: #006096;
    border-color: transparent;
    box-shadow: 0 0 0 2px rgba(0, 96, 150, 0.28);
}

@media (orientation: landscape) and (max-height: 900px) {
    .demo-booking-modal {
        align-items: flex-start;
        overflow-y: auto;
        padding: 0.25rem;
    }

    .demo-booking-modal .modal-content {
        display: flex;
        flex-direction: column;
        height: auto;
        margin: 0 auto;
        max-height: calc(100dvh - 0.5rem);
        max-width: 1100px;
        overflow-y: auto;
        padding: 0.75rem;
        transform: none;
        width: min(1100px, 100%);
    }

    .modal-overlay.demo-booking-modal.active .modal-content {
        transform: none;
    }

    .demo-booking-modal .modal-close {
        align-self: flex-end;
        background: var(--bg-navy);
        flex: 0 0 auto;
        margin: 0 0.25rem 0 0;
        min-height: 44px;
        min-width: 44px;
        position: sticky;
        right: auto;
        top: 0;
        z-index: 1002;
    }
}

.time-slot-label {
    margin-top: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
    font-weight: 700;
}

.time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.time-slot {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-radius: 999px;
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
}

.time-slot.selected {
    background: #006096;
    border-color: #006096;
    color: var(--text-main);
}

.time-slot:focus-visible,
.time-slot:active {
    background: #006096;
    border-color: #006096;
    color: var(--text-main);
}

@media (max-width: 768px) {
    .demo-booking-modal {
        align-items: flex-start;
        box-sizing: border-box;
        left: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 0.5rem;
        position: fixed;
        right: 0;
        width: 100%;
    }

    .demo-booking-modal .modal-content {
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        flex: 0 1 auto;
        height: calc(100dvh - 1rem);
        max-width: 100%;
        margin: auto;
        max-height: calc(100dvh - 1rem);
        overflow-y: auto;
        overflow-x: hidden;
        padding: 1rem;
        transform: translateY(20px) scale(0.95);
        width: 100%;
    }

    .modal-overlay.demo-booking-modal.active .modal-content {
        transform: translateY(0) scale(1);
    }

    .demo-booking-modal .modal-content * {
        box-sizing: border-box;
        max-width: 100%;
    }

    .demo-modal-body,
    .booking-form,
    .booking-scheduler {
        max-width: 100%;
        min-width: 0;
    }

    .demo-modal-body {
        align-items: stretch;
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow-y: auto;
    }

    .demo-modal-body .booking-form {
        display: contents;
    }

    .demo-booking-modal input,
    .demo-booking-modal textarea,
    .demo-booking-modal button {
        box-sizing: border-box;
        max-width: 100%;
    }

    .demo-booking-modal .modal-close {
        right: 0.75rem;
        top: 0.75rem;
    }

    .demo-modal-header {
        margin-bottom: 1.25rem;
    }

    .demo-modal-header h3 {
        font-size: 1.6rem;
    }

    .demo-modal-body {
        gap: 1.25rem;
    }

    .booking-scheduler {
        order: 1;
    }

    .booking-submit {
        order: 2;
    }

    .form-message {
        order: 3;
    }

    .booking-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .multi-select-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .multi-select-option {
        font-size: 0.85rem;
        min-height: 44px;
        min-width: 0;
        padding: 0.6rem 0.5rem;
    }

    .booking-submit {
        align-self: stretch;
        width: 100%;
    }

    .booking-scheduler {
        padding: 1rem;
    }

    .calendar-nav {
        min-height: 44px;
        min-width: 44px;
    }

    .calendar-weekdays,
    .calendar-grid {
        gap: 0.25rem;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }

    .calendar-day {
        width: 100%;
    }
}

@media (max-width: 360px) {
    .multi-select-option {
        font-size: 0.85rem;
        letter-spacing: normal;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

@media (max-width: 420px) {
    .demo-booking-modal {
        padding: 0.35rem;
    }

    .demo-booking-modal .modal-content {
        height: calc(100dvh - 0.7rem);
        max-height: calc(100dvh - 0.7rem);
        max-width: 100%;
        width: 100%;
        padding: 0.85rem;
    }

    .demo-modal-header h3 {
        font-size: 1.4rem;
    }

    .booking-scheduler {
        padding: 0.75rem;
    }
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}



@media (max-width: 768px) {
    .mobile-demo-booking-modal {
        align-items: flex-end;
        display: flex;
        padding: 0;
    }

    .mobile-demo-modal-content {
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        max-height: 100dvh;
        max-width: none;
        overflow-y: auto;
        padding: 1.25rem;
        padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
        transform: translateY(20px);
        width: 100%;
    }

    .modal-overlay.mobile-demo-booking-modal.active .mobile-demo-modal-content {
        transform: translateY(0);
    }

    .mobile-demo-modal-close {
        min-height: 44px;
        min-width: 44px;
        right: 0.75rem;
        top: 0.75rem;
    }

    .mobile-demo-modal-content .demo-modal-header {
        margin-bottom: 1.25rem;
        padding-right: 2.5rem;
    }

    .mobile-demo-modal-content .demo-modal-header h3 {
        font-size: 1.65rem;
        line-height: 1.15;
    }

    .mobile-demo-form {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .mobile-demo-field {
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
    }

    .mobile-demo-field label {
        color: var(--text-main);
        font-size: 0.95rem;
        font-weight: 700;
    }

    .mobile-demo-field label span {
        color: var(--text-muted);
        font-weight: 400;
    }

    .mobile-demo-form .glass-input {
        box-sizing: border-box;
        min-height: 48px;
        width: 100%;
    }

    .mobile-demo-form textarea.glass-input {
        min-height: 96px;
        resize: vertical;
    }

    .mobile-demo-form .multi-select-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 0.1rem;
    }

    .mobile-demo-form .multi-select-option {
        min-height: 48px;
        min-width: 0;
        padding: 0.7rem 0.5rem;
    }

    .mobile-demo-date-row {
        display: grid;
        gap: 1rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mobile-demo-submit {
        align-self: stretch;
        min-height: 52px;
        width: 100%;
    }
}

@media (max-width: 420px) {
    .mobile-demo-modal-content {
        padding: 1rem;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }

    .mobile-demo-modal-content .demo-modal-header h3 {
        font-size: 1.45rem;
    }

    .mobile-demo-date-row {
        gap: 0.65rem;
    }
}

.modal-content {
    background: var(--bg-navy);
    border-radius: var(--radius-soft);
    padding: 2.5rem;
    max-width: 900px;
    width: 90%;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-body {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.modal-screenshot {
    width: 50%;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-text {
    width: 50%;
}

.modal-text h3 {
    margin-top: 0;
    font-size: 2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.modal-text p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.case-study-modal-content {
    max-width: 760px;
    max-height: 90vh;
    overflow-y: auto;
}

.case-study-modal-header {
    padding-right: 2.5rem;
}

.case-study-modal-header h3 {
    margin: 1.25rem 0 0.5rem;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-main);
}

.case-study-modal-products {
    color: var(--accent-text);
    font-weight: 700;
}

.case-study-modal-body {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.case-study-modal-body>div {
    padding: 1.25rem;
    border-left: 3px solid var(--primary-coral);
    background: rgba(255, 255, 255, 0.04);
}

.case-study-modal-body h4 {
    margin: 0 0 0.75rem;
    color: var(--text-main);
}

.case-study-modal-body p,
.case-study-modal-contact {
    color: var(--text-muted);
    line-height: 1.7;
}

.case-study-modal-contact {
    margin: 1.5rem 0 0;
    font-style: italic;
}

@media (max-width: 700px) {
    .case-study-modal-content {
        padding: 1.5rem;
    }

    .case-study-modal-body {
        grid-template-columns: 1fr;
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-graphic {
        margin-top: 3rem;
    }

    .cta-group {
        justify-content: center;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .integrations-grid {
        grid-template-columns: minmax(0, 320px);
        grid-template-rows: repeat(6, 320px);
    }

    .feature-crm,
    .feature-vms,
    .feature-payroll,
    .feature-timesheets {
        grid-column: span 1;
    }

    .metrics-bar {
        gap: 3rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .tabs-container {
        flex-direction: column;
    }

    .tabs-nav {
        width: 100%;
        min-width: auto;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .metrics-bar {
        gap: 2rem;
        flex-direction: column;
        align-items: center;
    }

    .modal-body {
        flex-direction: column;
        gap: 2rem;
    }

    .modal-screenshot,
    .modal-text {
        width: 100%;
    }

    .modal-screenshot {
        height: 200px;
    }

    .modal-content {
        padding: 2rem;
    }

    .modal-text h3 {
        margin-top: 0;
        font-size: 1.5rem;
    }

    .modal-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* Timeline Section */
.snake-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.snake-row {
    display: contents;
}

.delivery-timeline .snake-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: stretch;
}

.delivery-timeline .snake-item {
    width: auto;
    padding: 0;
    margin: 0;
}

.delivery-timeline .bento-box {
    height: auto !important;
    min-height: 280px;
}

.delivery-timeline::before,
.delivery-timeline .snake-item::before {
    display: none;
}

.delivery-timeline .snake-item::after {
    display: none;
}

.snake-item {
    position: relative;
    display: flex;
    width: 50%;
    box-sizing: border-box;
    padding: 1.5rem 3.5rem;
    margin-bottom: 1.5rem;
}

.snake-item .bento-box {
    flex: 1;
}

.snake-item>.badge {
    position: absolute;
    top: 1.5rem;
    z-index: 12;
    margin: 0;
    background: var(--primary-coral);
    border-color: var(--primary-coral);
    color: var(--text-main);
    transform: translateY(-50%);
}

.journey-left>.badge {
    right: 4.25rem;
}

.journey-right>.badge {
    left: 4.25rem;
}

/* Continuous centre route with alternating milestone branches */
.snake-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 1rem;
    left: 50%;
    width: 0.5rem;
    border: 1px solid rgba(251, 146, 60, 0.5);
    border-radius: 999px;
    background: rgba(251, 146, 60, 0.2);
    box-shadow: 0 0 1rem rgba(251, 146, 60, 0.18);
    transform: translateX(-50%);
}

.snake-item::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 3.5rem;
    height: 0.45rem;
    border-top: 1px solid rgba(251, 146, 60, 0.5);
    border-bottom: 1px solid rgba(251, 146, 60, 0.35);
    background: rgba(251, 146, 60, 0.2);
    transform: translateY(-50%);
    z-index: 10;
}

.snake-item::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 1rem;
    height: 1rem;
    border: 3px solid var(--primary-coral);
    border-radius: 50%;
    background: var(--bg-navy);
    box-shadow: 0 0 0 0.3rem rgba(251, 146, 60, 0.12);
    transform: translate(-50%, -50%);
    z-index: 11;
}

.journey-left {
    margin-right: auto;
    padding-left: 0;
    padding-right: 3.5rem;
}

.journey-left::before {
    right: 0;
}

.journey-left::after {
    right: 0;
}

.journey-right {
    margin-left: auto;
    padding-left: 3.5rem;
    padding-right: 0;
}

.journey-right::before {
    left: 0;
}

.journey-right::after {
    left: 0;
    transform: translate(-50%, -50%);
}

/* Make timeline responsive */
@media screen and (max-width: 992px) {
    .snake-timeline {
        padding: 1rem 0 2rem 2.5rem;
    }

    .snake-timeline::before {
        left: 0.75rem;
    }

    .snake-item,
    .journey-left,
    .journey-right {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 1rem 0 1rem 2.5rem;
        margin-bottom: 0.75rem;
    }

    .snake-item::before,
    .journey-left::before,
    .journey-right::before {
        left: 0.75rem;
        right: auto;
        width: 1.75rem;
    }

    .snake-item::after,
    .journey-left::after,
    .journey-right::after {
        left: 0.75rem;
        right: auto;
        transform: translate(-50%, -50%);
    }

    .snake-item>.badge,
    .journey-left>.badge,
    .journey-right>.badge {
        top: 1rem;
        left: 2.5rem;
        right: auto;
        transform: translateY(-50%);
    }

    .delivery-timeline .snake-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .delivery-timeline .snake-item {
        width: 100%;
        padding: 0;
    }

}

/* Playable GIF */
.gif-container {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: var(--radius-soft);
}

.gif-canvas {
    display: block;
    width: 100%;
    height: auto;
}

.gif-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    z-index: 2;
    padding-left: 4px;
    /* visually center the play icon */
}

.gif-container:hover .gif-play-btn {
    background: rgba(251, 146, 60, 0.8);
    border-color: rgba(251, 146, 60, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

/* GIF Modal */
.gif-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gif-modal.active {
    opacity: 1;
    visibility: visible;
}

.gif-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: #000;
    border-radius: var(--radius-soft);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gif-modal.active .gif-modal-content {
    transform: scale(1);
}

.gif-modal-img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.gif-modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 32px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.3s ease;
    z-index: 10000;
}

.gif-modal-close:hover {
    color: var(--text-main);
}

/* Pricing Card Custom Hovers by Product */
.pricing-card {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

#tab-vms .pricing-card:hover {
    border-color: var(--vms-blue) !important;
    box-shadow: 0 0 20px rgba(var(--vms-blue-rgb), 0.3) !important;
}

#tab-crm .pricing-card:hover {
    border-color: #d89c02 !important;
    box-shadow: 0 0 20px rgba(216, 156, 2, 0.3) !important;
}

#tab-payroll .pricing-card:hover {
    border-color: var(--payroll-blue) !important;
    box-shadow: 0 0 20px rgba(var(--payroll-blue-rgb), 0.3) !important;
}

#tab-timesheets .pricing-card:hover {
    border-color: #a70f2a !important;
    box-shadow: 0 0 20px rgba(167, 15, 42, 0.3) !important;
}

/* Make popular badge colors match product colors inside tabs */
#tab-vms .badge-green {
    background: rgba(var(--vms-blue-rgb), 0.2);
    color: var(--vms-text);
    border: 1px solid rgba(var(--vms-blue-rgb), 0.3);
}

#tab-crm .badge-green {
    background: rgba(216, 156, 2, 0.2);
    color: var(--crm-text);
    border: 1px solid rgba(216, 156, 2, 0.3);
}

#tab-payroll .badge-green {
    background: rgba(var(--payroll-blue-rgb), 0.2);
    color: var(--payroll-text);
    border: 1px solid rgba(var(--payroll-blue-rgb), 0.3);
}

#tab-timesheets .badge-green {
    background: rgba(167, 15, 42, 0.2);
    color: var(--timesheets-text);
    border: 1px solid rgba(167, 15, 42, 0.3);
}

/* Override the default accent border for the popular card to match the product color */
#tab-vms .pricing-card[style*="border: 2px solid var(--accent-main)"] {
    border-color: rgba(var(--vms-blue-rgb), 0.5) !important;
}

#tab-crm .pricing-card[style*="border: 2px solid var(--accent-main)"] {
    border-color: rgba(216, 156, 2, 0.5) !important;
}

#tab-payroll .pricing-card[style*="border: 2px solid var(--accent-main)"] {
    border-color: rgba(var(--payroll-blue-rgb), 0.5) !important;
}

#tab-timesheets .pricing-card[style*="border: 2px solid var(--accent-main)"] {
    border-color: rgba(167, 15, 42, 0.5) !important;
}


/* Product specific tab buttons */
.tab-btn[data-tab="vms"].active,
.tab-btn[data-tab="vms"]:hover {
    color: var(--vms-text) !important;
    border-color: rgba(var(--vms-blue-rgb), 0.5) !important;
    background: rgba(var(--vms-blue-rgb), 0.05) !important;
}

.tab-btn[data-tab="crm"].active,
.tab-btn[data-tab="crm"]:hover {
    color: var(--crm-text) !important;
    border-color: rgba(216, 156, 2, 0.5) !important;
    background: rgba(216, 156, 2, 0.05) !important;
}

.tab-btn[data-tab="payroll"].active,
.tab-btn[data-tab="payroll"]:hover {
    color: var(--text-main) !important;
    border-color: rgba(56, 152, 236, 0.7) !important;
    background: rgba(56, 152, 236, 0.12) !important;
}

.tab-btn[data-tab="timesheets"].active,
.tab-btn[data-tab="timesheets"]:hover {
    color: var(--timesheets-text) !important;
    border-color: rgba(167, 15, 42, 0.5) !important;
    background: rgba(167, 15, 42, 0.05) !important;
}

/* --- Mobile Optimisation --- */

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle svg {
    width: 28px;
    height: 28px;
}

@media (max-width: 768px) {

    /* Navbar Mobile Styles */
    .mobile-menu-toggle {
        display: block;
    }

    .navbar {
        flex-wrap: wrap;
    }

    .nav-links,
    .nav-actions {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0;
    }

    .nav-links.active,
    .nav-actions.active {
        display: flex;
    }

    .nav-links a,
    .nav-links .dropdown-toggle {
        margin: 0.5rem 0;
        width: 100%;
    }

    .dropdown:hover .dropdown-menu {
        position: relative;
        transform: none;
        left: 0;
        top: 0;
        box-shadow: none;
        padding-left: 1rem;
        background: transparent;
        display: flex;
    }

    /* Layout Adjustments */
    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 4rem 5% 2rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .bento-grid {
        grid-template-columns: 1fr !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .selector-container {
        padding: 1rem;
    }

}

/* --- Support Page Redesign --- */

.support-hero {
    background: linear-gradient(rgba(var(--bg-navy-rgb), 0.7), rgba(var(--bg-navy-rgb), 0.95)), url('images/support-office.webp') no-repeat center center/cover;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 5% 4rem;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.kpi-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    padding: 2.5rem 5%;
    background: rgba(var(--bg-navy-rgb), 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0;
}

.kpi-item {
    text-align: center;
}

.kpi-item h2 {
    font-size: 3rem;
    color: var(--accent-text);
    margin: 0;
    line-height: 1;
    font-weight: 800;
}

.kpi-suffix {
    font-size: 1.5rem;
    color: var(--text-main);
}

.kpi-item p {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    font-weight: 600;
}

.interactive-bento {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.interactive-bento:hover {
    transform: translateY(-5px);
}









.interactive-bento:hover img {
    animation: bounceIcon 0.5s ease;
}

@keyframes bounceIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.zassist-visual {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ticket {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ticket-status {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
}

.ticket-status.open {
    background: rgba(255, 193, 7, 0.2);
    color: var(--crm-text);
}

.ticket-status.resolved {
    background: rgba(40, 167, 69, 0.2);
    color: var(--vms-text);
}

.ticket-line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.5), rgba(40, 167, 69, 0.5));
    position: relative;
    overflow: hidden;
}

.ticket-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: loadingBar 2s infinite linear;
}

@keyframes loadingBar {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.sla-timer {
    text-align: right;
    font-family: var(--font-data);
    font-size: 0.85rem;
    color: var(--vms-text);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    margin: 0 auto;
}

.team-member {
    padding: 2rem;
    border-radius: var(--radius-soft);
    text-align: center;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.team-member h4 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.team-member p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

@media (max-width: 768px) {
    .kpi-bar {
        grid-template-columns: 1fr;
        padding: 1rem 5%;
    }

    .kpi-item + .kpi-item {
        border-top: 1px solid rgba(255, 255, 255, 0.35);
        border-left: 0;
    }

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

@media (max-width: 520px) {
    .team-section .team-grid {
        grid-template-columns: 1fr;
    }
}




.header-placeholder {
    height: 4.8rem;
}

@media (max-width: 768px) {
    .header-placeholder {
        height: 3.8rem;
    }
}

/* ROI Calculator Styles */
.roi-calculator-section {
    position: relative;
    z-index: 10;
}

.roi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

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

.roi-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    outline: none;
    margin-top: 10px;
}

.roi-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--roi-color-hex);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
    transition: transform 0.2s;
}

.roi-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.roi-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--roi-color-hex);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
    border: none;
    transition: transform 0.2s;
}

.roi-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.roi-outputs {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}


.roi-calculator-section .glass-input:focus {
    border-color: var(--roi-color-hex) !important;
    box-shadow: 0 0 10px rgba(var(--roi-color-rgb), 0.3) !important;
}


/* Keep the SSO logo section static without hover outlines or glow. */
.bento-box:hover {
    border-color: rgba(var(--primary-coral-rgb), 0.5);
}
.interactive-bento:hover {
    border-color: rgba(var(--primary-coral-rgb), 0.5);
}
#vms-modal .interactive-bento:hover {
    border-color: rgba(var(--vms-blue-rgb), 0.5) !important;
}
#crm-modal .interactive-bento:hover {
    border-color: rgba(216, 156, 2, 0.5) !important;
}
#timesheets-modal .interactive-bento:hover {
    border-color: rgba(167, 15, 42, 0.5) !important;
}
#payroll-modal .interactive-bento:hover {
    border-color: rgba(255, 255, 255, 0.5) !important;
}
#violet-modal .interactive-bento:hover { border-color: #b66cff !important; box-shadow: 0 0 20px rgba(182, 108, 255, 0.3) !important; }
.roi-calculator-section .bento-box:hover {
    border-color: rgba(var(--roi-color-rgb), 0.5) !important;
}

/* Screen reader only for SEO headings */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Sector Pages Enhancements */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-split .hero-content {
    max-width: 600px;
}

.hero-split .hero-visual {
    width: 100%;
    border-radius: var(--radius-soft);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-split .hero-visual img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.bento-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
}
.sector-problems-section .bento-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.sector-problems-section .bento-box::after {
    content: '\2192';
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: start;
    padding-top: 2.25rem;
    color: var(--accent-text);
    font-size: 1.5rem;
}

.sector-problems-section .bento-box .badge {
    margin-bottom: 0.75rem;
}

.sector-problems-section .bento-box > h3 {
    grid-column: 1;
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    line-height: 1.35;
}

.sector-problems-section .bento-box > p {
    grid-column: 1;
}

.sector-problems-section .bento-box > span:nth-of-type(1) {
    grid-column: 1;
    grid-row: 1;
}

.sector-problems-section .bento-box > h3:nth-of-type(1) {
    grid-row: 2;
}

.sector-problems-section .bento-box > p:nth-of-type(1) {
    grid-row: 3;
}

.sector-problems-section .bento-box > span:nth-of-type(2),
.sector-problems-section .bento-box > h3:nth-of-type(2),
.sector-problems-section .bento-box > p:nth-of-type(2) {
    grid-column: 3;
}

.sector-problems-section .bento-box > span:nth-of-type(2) {
    grid-row: 1;
}

.sector-problems-section .bento-box > h3:nth-of-type(2) {
    grid-row: 2;
}

.sector-problems-section .bento-box > p:nth-of-type(2) {
    position: relative;
    grid-row: 3;
}

.sector-problems-section .bento-box > p:nth-of-type(2)::before {
    content: 'A clearer way forward';
    display: block;
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.5rem);
    width: 100%;
    color: var(--text-main);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.35;
}
@media (max-width: 700px) {
    .sector-problems-section .bento-box {
        display: block;
    }
    .sector-problems-section .bento-box::after {
        display: none;
    }
}

@media (max-width: 900px) {
    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-split .hero-content {
        margin: 0 auto;
    }
}

/* --- FAQ Accordion --- */
.faq-section {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 5%;
    font-family: inherit;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3.5rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--text-main);
    letter-spacing: -1px;
}

.faq-grid, .faq-accordion-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    transition: all 0.3s ease;
}

/* Accordion Specifics */
details.faq-card {
    padding: 0;
}
details.faq-card summary {
    padding: 1.5rem 2.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    list-style: none; /* Remove default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

details.faq-card summary::-webkit-details-marker {
    display: none;
}

/* Add custom +/- icon */
details.faq-card summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent-text);
    transition: transform 0.3s ease;
}

details[open].faq-card summary::after {
    content: '−';
    transform: rotate(180deg);
}

details.faq-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 5px 25px rgba(14, 165, 233, 0.15);
}

.faq-card p {
    color: var(--text-muted, #94a3b8);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    padding: 0 2.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 0.5rem;
    padding-top: 1rem;
    animation: fadeInDown 0.3s ease forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) { .hero-tiles { grid-template-columns: 1fr !important; }  }















@media (max-width: 768px) {
    .hero-tiles { grid-template-columns: 1fr !important; }
    .hero-tiles {
        flex-direction: column !important;
        height: auto !important;
    }

    .hero-tile {
        flex: 1 1 auto !important;
        min-height: 3.75rem;
        width: 100% !important;
    }

    .hero-tile span {
        overflow-wrap: anywhere;
        transform: none !important;
        white-space: normal !important;
    }
}


/* Accordion Overrides */
.hero-tiles {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
    width: 100% !important;
    height: 350px !important;
    transform: none !important; /* Remove 3D tilt */
}
.hero-tile {
    flex: 1 !important;
    height: 100% !important;
    padding: 0 !important;
    border-radius: 20px !important;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s ease !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important;
    transform: none !important;
}
.hero-tile span {
    transform: rotate(-90deg) !important;
    white-space: nowrap !important;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), font-size 0.6s ease !important;
    font-size: 1.5rem !important;
}
.hero-tile:hover {
    flex: 4 !important;
    filter: brightness(1.1) !important;
    transform: none !important; /* No translateY */
}
.hero-tile:hover span {
    transform: rotate(0deg) !important;
    font-size: 2.25rem !important;
}

@media (max-width: 992px) {
    .hero-tiles {
        flex-direction: column !important;
        height: 500px !important;
    }
    .hero-tile span {
        transform: none !important; /* Horizontal on mobile */
    }
    .hero-tile:hover span {
        font-size: 1.5rem !important;
    }
}


/* Pinwheel Demo Overrides */
.hero-pinwheel .hero-tile {
    width: 260px !important;
    height: 320px !important;
    padding: 0 !important;
    flex: none !important; /* undo accordion */
    border-radius: 24px !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4) !important;
}
.hero-pinwheel .hero-tile span {
    font-family: var(--font-friendly), "Nunito", sans-serif !important;
    transform: none !important; /* undo accordion text rotation */
    font-size: 1.8rem !important;
    white-space: normal !important;
    text-align: center;
}
.hero-pinwheel .story-card.is-active:hover {
    transform: translate(-50%, -50%) scale(1.05) !important;
}


/* Pure Pinwheel (Coverflow) Overrides */
.hero-pinwheel {
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    margin: 0 auto;
    overflow: visible;
}
.hero-pinwheel .hero-tile {
    position: absolute !important;
    width: 250px !important;
    height: 320px !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: none !important;
    border-radius: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
    cursor: pointer !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5) !important;
    background-color: var(--vms-blue); /* fallback, overridden by specific tile classes */
    border: none !important;
}
/* Re-apply the background colors since story-card might have stripped them if the browser cached it, but we removed story-card anyway */
.hero-pinwheel .tile-vms { background-color: var(--vms-blue) !important; }
.hero-pinwheel .tile-crm { background-color: #805b00 !important; }
.hero-pinwheel .tile-timesheets { background-color: #a70f2a !important; }
.hero-pinwheel .tile-payroll { background-color: var(--payroll-blue) !important; }
.hero-pinwheel .tile-violet { background-color: #713bb0 !important; }

.hero-pinwheel .hero-tile span {
    transform: none !important; 
    font-size: 1.8rem !important;
    white-space: normal !important;
    text-align: center;
    color: var(--text-main) !important;
}
.pinwheel-center {
    transform: translateX(0) scale(1) translateZ(0) !important;
    z-index: 5 !important;
    opacity: 1 !important;
    filter: brightness(1.1) !important;
}
.pinwheel-prev {
    transform: translateX(-160px) scale(0.85) translateZ(-50px) rotateY(15deg) !important;
    z-index: 4 !important;
    opacity: 1 !important;
    filter: brightness(0.8) !important;
}
.pinwheel-next {
    transform: translateX(160px) scale(0.85) translateZ(-50px) rotateY(-15deg) !important;
    z-index: 4 !important;
    opacity: 1 !important;
    filter: brightness(0.8) !important;
}
.pinwheel-far-prev {
    transform: translateX(-280px) scale(0.7) translateZ(-100px) rotateY(25deg) !important;
    z-index: 3 !important;
    opacity: 1 !important;
    filter: brightness(0.6) !important;
}
.pinwheel-far-next {
    transform: translateX(280px) scale(0.7) translateZ(-100px) rotateY(-25deg) !important;
    z-index: 3 !important;
    opacity: 1 !important;
    filter: brightness(0.6) !important;
}

@media (max-width: 900px) {
    /* Compress on mobile */
    .pinwheel-prev { transform: translateX(-100px) scale(0.85) translateZ(-50px) rotateY(15deg) !important; }
    .pinwheel-next { transform: translateX(100px) scale(0.85) translateZ(-50px) rotateY(-15deg) !important; }
    .pinwheel-far-prev { transform: translateX(-180px) scale(0.7) translateZ(-100px) rotateY(25deg) !important; }
    .pinwheel-far-next { transform: translateX(180px) scale(0.7) translateZ(-100px) rotateY(-25deg) !important; }
}


/* Fix Pinwheel Hover Jutter */
.hero-pinwheel .hero-tile:hover {
    flex: none !important;
    transform: inherit; /* Rely entirely on the pinwheel positioning classes */
}
.hero-pinwheel .pinwheel-center:hover {
    transform: translateX(0) scale(1.05) translateZ(0) !important;
}
.hero-pinwheel .pinwheel-prev:hover {
    transform: translateX(-160px) scale(0.85) translateZ(-50px) rotateY(15deg) translateY(-5px) !important;
    filter: brightness(0.9) !important;
}
.hero-pinwheel .pinwheel-next:hover {
    transform: translateX(160px) scale(0.85) translateZ(-50px) rotateY(-15deg) translateY(-5px) !important;
    filter: brightness(0.9) !important;
}
.hero-pinwheel .pinwheel-far-prev:hover {
    transform: translateX(-280px) scale(0.7) translateZ(-100px) rotateY(25deg) translateY(-5px) !important;
    filter: brightness(0.7) !important;
}
.hero-pinwheel .pinwheel-far-next:hover {
    transform: translateX(280px) scale(0.7) translateZ(-100px) rotateY(-25deg) translateY(-5px) !important;
    filter: brightness(0.7) !important;
}


/* ENFORCE NUNITO FONT ON TILES */
.hero-pinwheel .hero-tile span,
.hero-pinwheel a.hero-tile span,
div.hero-pinwheel a.hero-tile span {
    font-family: 'Nunito', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
}

/* TEMP: Hide pricing and success stories tabs in navbar */
.nav-links a[href*="pricing"],
.nav-links a[href*="success-stories"] {
    display: none !important;
}

/* Blog Blockquotes */
.markdown-content blockquote {
    border-left: 4px solid #006096;
    padding-left: 1rem;
    margin: 2rem 0;
    color: var(--text-muted);
    font-size: 1.08rem;
}

/* Setup Builder Tile Overrides */
#results-container .hero-tile {
    height: 60px !important;
    flex: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important; /* fully rounded pills */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important;
}
#results-container .hero-tile span {
    transform: none !important;
    white-space: nowrap !important;
    font-size: 1.2rem !important;
    font-family: 'Nunito', sans-serif !important;
    font-weight: 800 !important;
    color: var(--text-main) !important;
}
#results-container .hero-tile:hover {
    transform: translateY(-2px) !important;
    filter: brightness(1.1) !important;
}


/* VMS Page specific hover effects */
.page-vms .bento-box:hover,
.page-vms .interactive-bento:hover {
    border-color: rgba(var(--vms-blue-rgb), 0.5) !important;
    background: rgba(var(--vms-blue-rgb), 0.05) !important;
}

/* CRM Page specific hover effects */
.page-crm .bento-box:hover,
.page-crm .interactive-bento:hover {
    border-color: rgba(216, 156, 2, 0.5) !important;
    background: rgba(216, 156, 2, 0.05) !important;
}

/* Timesheets Page specific hover effects */
.page-timesheets .bento-box:hover,
.page-timesheets .interactive-bento:hover {
    border-color: rgba(167, 15, 42, 0.5) !important;
    background: rgba(167, 15, 42, 0.05) !important;
}

/* Payroll Page specific hover effects */
.page-payroll .bento-box:hover,
.page-payroll .interactive-bento:hover {
    border-color: rgba(var(--payroll-blue-rgb), 0.5) !important;
    background: rgba(var(--payroll-blue-rgb), 0.05) !important;
}

/* Violet Page specific hover effects */
.page-violet .bento-box:hover,
.page-violet .interactive-bento:hover {
    border-color: rgba(182, 108, 255, 0.5) !important;
    background: rgba(182, 108, 255, 0.05) !important;
}

/* Contrast and keyboard visibility on the blue site background. */
html {
    background-color: var(--bg-navy);
    color-scheme: dark;
    overflow-x: clip;
}

.dropdown-menu {
    background: var(--bg-navy);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.dropdown:focus-within .dropdown-menu {
    display: flex;
    flex-direction: column;
}

:focus-visible,
.glass-input:focus-visible,
.roi-slider:focus-visible {
    outline: 3px solid var(--accent-text);
    outline-offset: 4px;
}

.glass-input {
    border-color: #8298bd;
}

.glass-input::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

.glass-input option {
    background: var(--bg-navy);
    color: var(--text-main);
}

.btn-glow {
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.btn-crm,
.btn-violet,
.insights-filter span:first-child,
.filter-btn.active,
.filter-btn:hover,
.sector-card.selected::after,
.snake-item > .badge {
    color: var(--text-on-bright);
}

.badge-green {
    background: #006096;
}

.roi-slider::-webkit-slider-thumb {
    border: 2px solid white;
}

.roi-slider::-moz-range-thumb {
    border: 2px solid white;
}

.hero-pinwheel a.hero-tile.tile-crm span,
.hero-pinwheel a.hero-tile.tile-violet span,
#results-container .hero-tile.tile-crm span,
#results-container .hero-tile.tile-violet span {
    color: var(--text-on-bright) !important;
}
/* White text throughout, with deeper filled controls and input surfaces. */
.glass-border-only {
    background: rgba(255, 255, 255, 0.08);
}

.glass,
.btn-outline,
.filter-btn,
.tab-btn,
.faq-card,
.calendar-nav,
.calendar-day,
.multi-select-option,
.time-slot {
    border-color: rgba(6, 28, 41, 0.45);
}

.glass-input,
.glass-input:focus {
    background: var(--surface-deep);
    border-color: var(--text-muted);
}

.btn-glow,
.badge-green,
.demo-modal-header .badge.glass,
.multi-select-option.selected,
.multi-select-option:focus-visible,
.multi-select-option:active,
.calendar-day.selected,
.time-slot.selected,
.time-slot:focus-visible,
.time-slot:active {
    color: var(--text-on-dark);
}

.btn-crm,
.btn-violet {
    color: var(--text-on-bright);
}

.btn-vms {
    background: #126b27;
}

.tile-vms,
.tile-timesheets,
.tile-payroll {
    --text-main: var(--text-on-dark);
}

.hero-pinwheel .tile-vms,
#results-container .tile-vms {
    background-color: #126b27 !important;
}

/* Dark image overlays and media panels have a separate readable palette. */
.whats-new-banner,
.support-hero,
.dashboard-mockup,
.zassist-visual,
.gif-modal {
    --text-main: #ffffff;
    --text-muted: #ffffff;
    --accent-text: #ffffff;
    --crm-text: #ffffff;
    --violet-text: #ffffff;
    --vms-text: #ffffff;
    --timesheets-text: #ffffff;
    --payroll-text: #ffffff;
    color: var(--text-main);
}

.support-hero {
    background-image: linear-gradient(rgba(var(--surface-deep-rgb), 0.85), rgba(var(--surface-deep-rgb), 0.96)), url('images/support-office.webp');
}

.dashboard-mockup,
.zassist-visual {
    background-color: var(--surface-deep);
}

.support-hero .highlight {
    background: none;
    -webkit-text-fill-color: var(--accent-text);
    color: var(--accent-text);
}

.gif-play-btn {
    color: var(--text-on-dark);
    background: var(--surface-deep);
}

.gif-container:hover .gif-play-btn {
    color: var(--text-on-bright);
}

.gif-modal-close {
    color: white;
    background: #103b50;
    border-radius: 50%;
}

.btn-outline:hover,
.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: rgba(255, 255, 255, 0.3);
}

.roi-slider {
    background: rgba(6, 28, 41, 0.45);
}

.roi-slider::-webkit-slider-thumb {
    border-color: var(--focus-ink);
}

.roi-slider::-moz-range-thumb {
    border-color: var(--focus-ink);
}

/* Focus stays visible on both light surfaces and dark filled buttons. */
:focus-visible {
    outline: 3px solid var(--focus-ink);
    outline-offset: 4px;
    box-shadow: 0 0 0 4px white;
}

.whats-new-banner :focus-visible,
.support-hero :focus-visible,
.gif-modal :focus-visible {
    outline-color: white;
    box-shadow: 0 0 0 4px var(--focus-ink);
}

/* Plain article links remain readable and recognisable without relying on hue. */
a {
    color: var(--accent-text);
}

.navbar .logo img {
    background: transparent;
    border-radius: 0;
    padding: 0;
    height: 44px !important;
    filter: brightness(1.35) saturate(1.15) drop-shadow(0 0 5px rgba(56, 189, 248, 0.18));
}

.pricing-card .price span,
.pricing-card > p,
.pricing-card li {
    opacity: 1 !important;
}

/* White labels on active controls and bright product badges. */
.insights-filter span:first-child,
.filter-btn.active,
.filter-btn:hover,
.sector-card.selected::after,
.need-card.selected .custom-checkbox,
.snake-item > .badge {
    background: #006096;
    border-color: #006096;
}

.glass-input option {
    background: var(--surface-deep);
}

.btn-outline:hover,
.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: rgba(var(--surface-deep-rgb), 0.7);
}

.gif-container:hover .gif-play-btn {
    background: var(--surface-deep);
}

/* Shared page styling: light blue, header navy and white accents. */
:root {
    --header-navy: #041f63;
    --panel-blue: #0b4073;
    --paper-white: #f3f9fc;
    --panel-shadow: 0 16px 36px rgba(4, 31, 99, 0.2);
}

.whats-new-banner {
    background: var(--header-navy);
    border-bottom: 3px solid rgba(255, 255, 255, 0.9);
}

.navbar {
    background: rgba(6, 53, 96, 0.97);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 6px 24px rgba(4, 31, 99, 0.15);
}

.dropdown-menu {
    background: var(--header-navy);
}

body > .hero,
body > .page-header,
.insights-hero {
    background:
        radial-gradient(circle at 95% 15%, transparent 0 180px, rgba(255, 255, 255, 0.12) 181px 183px, transparent 184px 245px, rgba(255, 255, 255, 0.08) 246px 248px, transparent 249px),
        linear-gradient(115deg, #07577c 0%, #127ca4 58%, #2596be 100%);
    border-bottom: 4px solid rgba(255, 255, 255, 0.9);
}

body > .page-header {
    padding-top: 3rem;
}

body > .healthcare-hero,
.insights-hero {
    border-radius: 0 0 32px 32px;
}

.insights-hero {
    padding-left: clamp(1.25rem, 4vw, 3rem);
    padding-right: clamp(1.25rem, 4vw, 3rem);
    margin-bottom: 3rem;
}

.section-header::before,
.team-section > h2::before,
.faq-section > h2::before {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    margin: 0 auto 1.25rem;
    background: white;
    border-radius: 999px;
}

.metrics-bar,
.kpi-bar {
    background: var(--header-navy);
    border-block: 1px solid rgba(255, 255, 255, 0.35);
}

.metric {
    padding: 0.75rem 1rem;
    border-left: 2px solid rgba(255, 255, 255, 0.35);
}

.kpi-item {
    padding: 0.75rem 1rem;
    border-left: 0;
}

.kpi-item + .kpi-item {
    border-left: 1px solid rgba(255, 255, 255, 0.35);
}

/* Keep the setup section and its divider consistent with the light-blue page background. */
.selector-section {
    background: var(--bg-navy);
    border: 0;
    padding-top: 3rem !important;
    overflow-anchor: none;
}

.selector-section > .section-header,
.selector-section > .selector-container {
    width: 100%;
    max-width: 1504px;
    box-sizing: border-box;
    margin: 0 auto;
    background: var(--header-navy);
}

.selector-section > .section-header {
    padding: 2.5rem 2rem 1.5rem;
    border-radius: 24px 24px 0 0;
}

.selector-section > .section-header h2 {
    margin-top: 0;
    margin-bottom: 0.25rem;
}

.selector-section > .section-header p {
    margin-top: 0;
}

.selector-step#step-2 h3,
.selector-step#step-3 h3 {
    margin-bottom: 0.25rem;
}

.selector-step#step-2 > p,
.selector-step#step-3 > p {
    margin-top: 0;
}

.selector-section > .selector-container {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0 0 24px 24px;
    box-shadow: var(--panel-shadow);
}

.section-divider-banner {
    height: 10px;
    background: var(--bg-navy);
}

.sector-card,
.need-card {
    background: #0b4073;
    border-color: rgba(255, 255, 255, 0.4);
}

.selector-step .sectors-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
}

.sector-card {
    padding: 0.9rem 0.7rem;
}

.sector-icon {
    font-size: 1.6rem;
    margin-bottom: 0.35rem;
}

.sector-card h4 {
    font-size: 0.95rem;
}

.sector-card p {
    font-size: 0.75rem;
    line-height: 1.35;
}

.selector-step#step-3 .needs-grid {
    align-items: start;
    gap: 0.75rem;
}

.selector-step#step-3 .need-card {
    gap: 0.75rem;
    padding: 0.5rem 1rem;
}

.selector-step#step-3 .need-card h4 {
    font-size: 1rem;
    line-height: 1.25;
}

.selector-step#step-3 .custom-checkbox {
    width: 20px;
    height: 20px;
}

@media (max-width: 1100px) {
    .selector-step .sectors-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.sector-card:hover,
.need-card:hover,
.sector-card.selected,
.need-card.selected {
    background: #075d85;
    border-color: white;
}

/* Reusable cards carry the same navy treatment across the page families. */
.bento-box.glass,
.compliance-card.glass,
.pricing-card.glass,
.team-card.glass,
.team-member.glass,
.insight-card.glass,
.insights-featured-side,
.faq-card,
.story-card:not(.hero-tile) {
    background: linear-gradient(145deg, var(--panel-blue), var(--header-navy));
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: var(--panel-shadow);
}

.bento-box.glass,
.compliance-card.glass,
.insight-card.glass {
    border-top: 4px solid white;
}

.bento-box.glass:hover,
.compliance-card.glass:hover,
.insight-card.glass:hover,
.faq-card:hover {
    background: linear-gradient(145deg, #104d80, #082b68);
    border-color: white;
}

.icon-circle,
.comp-icon {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

main > .services-section.glass-border-only {
    background: #0b4073;
    border-block: 1px solid rgba(255, 255, 255, 0.3);
}

main > .services-section.glass-border-only:nth-of-type(even) {
    background: var(--header-navy);
}

.product-feature-row {
    background: linear-gradient(120deg, #0b4073, #07577c);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 5px solid white;
    border-radius: 24px;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    gap: clamp(2rem, 5vw, 4rem);
    box-shadow: var(--panel-shadow);
    margin-bottom: 3rem;
}

.product-feature-row-reverse {
    background: var(--header-navy);
    border-left-width: 1px;
    border-right: 5px solid white;
}

.product-feature-image:not(.violet-feature-image),
.healthcare-hero-image {
    box-sizing: border-box;
    border: 5px solid white;
    box-shadow: var(--panel-shadow);
}

.roi-grid {
    padding: 0.65rem;
    background: var(--paper-white);
    border-radius: 28px;
    box-shadow: var(--panel-shadow);
}

.pricing-card.featured {
    border: 3px solid white;
    box-shadow: 0 18px 42px rgba(4, 31, 99, 0.3);
}

.tab-btn {
    background: var(--header-navy);
    border-color: rgba(255, 255, 255, 0.55);
}

.team-photo,
.avatar {
    border: 4px solid white;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
}

.insights-featured-main,
.insights-cta,
.sister-company-promo,
.custom-api-banner,
.cta-section {
    background: linear-gradient(120deg, var(--header-navy), #0b5480);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-left: 5px solid white;
    box-shadow: var(--panel-shadow);
}

.faq-card[open] {
    border-left: 5px solid white;
}

.site-footer {
    background: var(--header-navy);
    border-top: 6px solid white;
}

.footer-col h3,
.footer-col h4 {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.footer-col a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.modal-content {
    background: var(--header-navy);
    border: 2px solid rgba(255, 255, 255, 0.75);
}

@media (max-width: 768px) {
    .selector-section > .section-header {
        padding: 2rem 1rem 1rem;
    }

    .selector-section > .section-header h2 {
        font-size: 2rem;
    }

    .product-feature-row,
    .product-feature-row-reverse {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .product-feature-row-reverse .product-feature-image,
    .product-feature-row-reverse .product-feature-copy {
        grid-column: auto;
        grid-row: auto;
    }

    .metric {
        padding: 0.5rem;
    }

    .kpi-item {
        padding: 1.5rem 0.5rem;
    }

    .kpi-item + .kpi-item {
        border-top: 1px solid rgba(255, 255, 255, 0.35);
        border-left: 0;
    }
}

@media (max-width: 600px) {
    .selector-step .sectors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

.metrics-bar {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}

.metric {
    max-width: none;
}

.metric .counter {
    font-size: clamp(2.25rem, 3.5vw, 3.5rem);
}

.roi-grid > * {
    min-width: 0;
}

.problem-solution-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

/* Keep product hover colours on top of a dark surface. */
:is(.page-vms, .page-crm, .page-timesheets, .page-payroll, .page-violet) .bento-box.glass:hover,
:is(.page-vms, .page-crm, .page-timesheets, .page-payroll, .page-violet) .interactive-bento.glass:hover {
    background: linear-gradient(145deg, #104d80, #082b68) !important;
}

@media (max-width: 1200px) {
    .metrics-bar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .problem-solution-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .problem-solution-layout > [aria-hidden="true"] {
        display: none;
    }

    .problem-solution-layout > div:last-child {
        border-top: 1px solid rgba(255, 255, 255, 0.35);
        padding-top: 1rem;
    }
}

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

    .roi-grid {
        gap: 1rem;
    }
}

.story-card > div:first-child > div {
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .story-carousel-shell {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .story-carousel-viewport {
        grid-column: 1 / -1;
        grid-row: 1;
        min-width: 0;
    }

    .story-carousel-prev {
        justify-self: end;
    }

    .story-carousel-next {
        justify-self: start;
    }

    .story-carousel-shell .story-card {
        width: 100%;
        padding: 1.25rem !important;
    }

    .story-carousel-shell .story-card:not(.is-active) {
        visibility: hidden;
    }
}

.article-page {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
}

.article-page > article.glass {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
}

.article-page .article-header-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.9fr) !important;
    min-width: 0;
}

.article-page .article-header-grid > * {
    min-width: 0;
}

.insights-page {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
}

.insights-cta {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
}

@media (max-width: 768px) {
    .article-page {
        padding: 2rem 1rem 3rem !important;
    }

    .article-page > article.glass {
        padding: 1.25rem !important;
    }

    .article-page .article-header-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 1.25rem !important;
    }

    .article-page .article-header-grid > div:last-child {
        margin-left: 0 !important;
    }

    .enterprise-banner {
        padding: clamp(1.25rem, 5vw, 2rem) !important;
    }

    .enterprise-banner > div {
        min-width: 0 !important;
    }

    .enterprise-banner > div:last-child {
        text-align: left !important;
        width: 100%;
    }

    .enterprise-banner > div:last-child .btn-glow {
        width: 100%;
    }

    .page-header-logo {
        height: auto;
        max-height: 120px;
        max-width: 100%;
        transform: none !important;
        width: min(100%, 280px);
    }

    .healthcare-hero-content {
        min-width: 0;
    }

    .healthcare-hero-content h1 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        overflow-wrap: anywhere;
    }

    .product-content {
        min-width: 0;
    }

    .product-feature-image {
        min-width: 0;
    }

    .product-feature-image img:not(.playable-gif) {
        box-sizing: border-box;
        height: auto;
        max-width: 100%;
        min-height: 0 !important;
        object-fit: contain;
    }

    .product-feature-copy {
        min-width: 0;
    }

    .product-feature-copy .badge-accent {
        box-sizing: border-box;
        display: inline-block;
        line-height: 1.45;
        max-width: 100%;
        overflow-wrap: anywhere;
        white-space: normal;
    }
}

@media (max-width: 992px) {
    .integrations-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto !important;
    }

    .integrations-logo-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .sso-bento-box {
        padding: 1rem;
    }

    .sso-logo-row,
    .integrations-logo-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .sso-grid .product-feature-image,
    .integrations-grid .product-feature-image {
        box-sizing: border-box;
        height: 100px;
        min-height: 100px;
        min-width: 0;
        padding: 0.75rem;
    }

    .sso-grid .product-feature-image img,
    .integrations-grid .product-feature-image img {
        height: 100%;
        max-width: 100%;
        min-width: 0;
        object-fit: contain;
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .navbar {
        flex-wrap: wrap;
        padding: 1rem 4%;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links,
    .nav-actions {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem 0;
    }

    .nav-links.active,
    .nav-actions.active {
        display: flex;
    }

    .nav-links a,
    .nav-links .dropdown-toggle {
        margin: 0.5rem 0;
        width: 100%;
    }

    .nav-links .dropdown {
        display: block;
        width: 100%;
    }

    .nav-links .dropdown:hover .dropdown-menu {
        position: relative;
        transform: none;
        left: 0;
        top: 0;
        box-shadow: none;
        padding-left: 1rem;
        background: transparent;
        display: flex;
    }

    .nav-actions {
        gap: 0.75rem;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .navbar {
        padding: 0.5rem 4%;
    }

    .navbar .logo img {
        height: 40px;
    }

    .nav-links,
    .nav-actions {
        padding: 0.25rem 0;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: grid;
        gap: 0 0.75rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-links a,
    .nav-links .dropdown-toggle {
        font-size: 0.9rem;
        margin: 0.2rem 0;
        width: auto;
    }

    .nav-links .dropdown {
        height: auto;
    }

    .nav-actions {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .nav-phone {
        font-size: 0.9rem;
    }

    .nav-actions .btn-glow {
        padding: 0.55rem 1rem;
    }
}

@media (max-width: 1100px) {
    .navbar {
        align-items: flex-start;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        max-height: calc(100vh - 6rem);
        max-height: calc(100dvh - 6rem);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .nav-links .dropdown {
        display: block;
        height: auto;
        width: 100%;
    }

    .nav-links .dropdown:hover .dropdown-menu {
        display: none;
    }

    .nav-links .dropdown:focus-within .dropdown-menu {
        display: none;
    }

    .nav-links .dropdown-menu {
        box-sizing: border-box;
        display: none;
        min-width: 0;
        overflow: visible;
        padding: 0.25rem 0 0.25rem 1rem;
        position: static;
        transform: none;
        width: min(100%, 30rem);
        box-shadow: none;
    }

    .nav-links .dropdown.active .dropdown-menu {
        display: flex;
        flex-direction: column;
    }

    .nav-links .dropdown-menu a {
        white-space: normal;
    }

    .product-feature-row,
    .product-feature-row-reverse {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .product-feature-row-reverse .product-feature-image,
    .product-feature-row-reverse .product-feature-copy {
        grid-column: auto;
        grid-row: auto;
    }

    .product-feature-image,
    .product-feature-image img {
        height: auto;
        min-width: 0;
        width: 100%;
    }

    .product-feature-image img {
        object-fit: contain;
    }

    .article-page .article-header-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .article-page .article-header-grid > div:last-child {
        margin: 0 auto !important;
        max-width: 560px;
        width: 100%;
    }
}

@media (min-width: 993px) and (max-width: 1100px) {
    .bento-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
    }
}

.product-features-grid {
    align-items: stretch;
    grid-template-rows: none;
}

.product-features-grid > .bento-box {
    box-sizing: border-box;
    height: auto;
    justify-content: flex-start;
    min-height: 0;
    overflow: visible;
}

@media (max-width: 1100px) {
    .product-features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: none;
    }
}

@media (max-width: 700px) {
    .product-features-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}
