/* =====================================================
   MaipleTime.css - FULLY RESPONSIVE VERSION
   Optimized for all screen sizes (mobile, tablet, desktop)
   ===================================================== */

/* --- CSS Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Global Variables --- */
:root {
    --neutral-dark: #191818;
    --primary-orange: #FE6A00;
    --font-family: 'Roboto';
    --section-padding: 80px;
}

/* --- Body and HTML Base Styles --- */
html {
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    color: var(--neutral-dark);
    line-height: 1.25;
    overflow-x: hidden;
}

/* --- Main Container for Centering Content (matched to Services) --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 8px;
}

/* --- Header / Navbar (matched to MaipleLeaf) --- */
.header {
    position: relative;
    z-index: 1000;
    padding-top: 10px;
}

.header .container {
    padding-left: 0;
    padding-right: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    height: 100%;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 1.125rem;
    color: #191818;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links .dropdown > a {
    position: relative;
}

.nav-links .dropdown > a::before {
    content: '';
    position: absolute;
    bottom: 22px;
    left: 0;
    width: 100%;
    height: 2px;
    background: url('../images/NavBlackUnderline.svg') no-repeat center;
    color: var(--neutral-dark);
    background-size: 100% 2px;
}

.nav-links .dropdown > a::after {
    content: '';
    display: inline-block;
    width: 17px;
    height: 17px;
    margin-left: 8px;
    background: url('../images/NavBlackArrowDown.svg') no-repeat center;
    background-size: contain;
    transition: transform 0.3s ease;
}

.navbar .logo img {
    height: 76px;
    width: auto;
}

.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -20px;
    background-color: white;
    border-radius: 12px;
    list-style: none;
    padding: 12px 0;
    min-width: 140px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.dropdown-menu a {
    color: var(--neutral-dark);
    padding: 16px 24px;
    display: block;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: rgba(230, 81, 3, 0.1);
    color: var(--primary-orange);
}

.nav-buttons .btn {
    text-decoration: none;
    padding: 0.75rem 2.2rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1.125rem;
}

.nav-buttons .btn-primary {
    border: 1px solid white;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: white;
    border: 1px solid var(--primary-orange);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #e55f00;
    border-color: #e55f00;
    color: white;
}

/* Buttons */
.btn-secondary {
    background-color: transparent;
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    display: block;
    width: fit-content;
    transition: all 0.3s ease;
    margin: 30px auto 0;
    font-size: 1.25rem;
}

.btn-secondary:hover {
    background-color: var(--primary-orange);
    color: white;
}


/* Hero CTAs under the title */
.hero-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1.75rem;
}

.hero-cta-buttons .btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1.125rem;
    width: fit-content;
    margin: 0;
    box-sizing: border-box;
    white-space: nowrap;
}

.hero-cta-buttons .btn-primary {
    background-color: var(--primary-orange);
    color: #ffffff;
    border: 2px solid var(--primary-orange);
}

.hero-cta-buttons .btn-secondary {
    background-color: transparent;
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
}

.highlight-text {
    color: var(--primary-orange);
    font-weight: 500;
}

.inline-orange-link {
    color: var(--primary-orange);
    font-weight: 500;
    text-decoration: underline;
}

.inline-orange-link:hover {
    color: #d14803;
}

strong.highlight-text,
b.highlight-text {
    font-weight: 700;
}

/* ============================================
   HERO SECTION - CLEAN RESPONSIVE VERSION
   ============================================ */
.hero-section {
    padding-bottom: 0;
    margin-bottom: 0;
    overflow: visible;
}

.hero-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px 40px;
    gap: 40px;
    position: relative;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1 1 480px;
    max-width: 620px;
    padding-bottom: 20px;
    position: relative;
    z-index: 2;
}

.hero-image-container {
    flex: 1 1 520px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    min-width: 0;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.hero-phone-image {
    width: 100%;
    max-width: 720px;
    height: auto;
    display: block;
}

/* Tablet + small desktop */
@media (max-width: 1199px) {
    .hero-container {
        max-width: 1100px;
        gap: 30px;
        padding: 50px 30px 30px;
    }
    .hero-content {
        flex: 1 1 420px;
        max-width: 520px;
    }
    .hero-image-container {
        flex: 1 1 480px;
        justify-content: center;
    }
    .hero-phone-image {
        max-width: 100%;
        width: 100%;
    }
    .hero-title,
    .hero-title .highlight-text,
    .hero-title-normal {
        font-size: clamp(2.8rem, 4.2vw, 3.8rem);
        line-height: 1.15;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .hero-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px 30px;
        gap: 16px;
    }
    .hero-content {
        flex: none;
        max-width: 100%;
        margin-top: 0;
        padding-bottom: 0;
        text-align: center;
    }
    .hero-image-container {
        justify-content: center;
        width: 100%;
    }
    .hero-phone-image {
        max-width: 92vw;
        width: 92vw;
    }
    .hero-title,
    .hero-title .highlight-text,
    .hero-title-normal {
        font-size: clamp(2rem, 7vw, 2.6rem);
        line-height: 1.2;
    }
    .hero-cta-buttons {
        justify-content: center;
        margin-top: 1.25rem;
    }

    .hero-cta-buttons .btn {
        font-size: 1rem;
        padding: 0.75rem 1.35rem;
    }
}

/* Full-bleed banner under the hero — holds the MaipleTime intro copy */
.orange-divider {
    margin-top: -30px;
    margin-bottom: 48px;
    min-height: 0;
    height: auto;
    background-color: var(--primary-orange);
    background-image: url("../images/MaipleTime/RibbonLeavesround3.png");
    /* width height — independent control of horizontal vs vertical scale */
    background-size: 105%;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 2.5rem;
    box-sizing: border-box;
}

.orange-divider-text {
    margin: 0;
    max-width: 1200px;
    text-align: center;
    color: #ffffff;
    font-size: clamp(1.2rem, 2.1vw, 1.95rem);
    line-height: 1.55;
    font-weight: 400;
}

.orange-divider-text strong {
    font-weight: 700;
    color: #ffffff;
}

/* Success Section */
.success-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.success-section h2 {
    text-align: center;
    font-size: 3.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.success-intro-text {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 50px;
}

.success-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 1300px;
    margin: 0 auto;
}

.success-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.success-row.success-second-row .success-container,
.success-row.success-third-row .success-container {
    flex: 1 1 300px;
    max-width: 380px;
}

.success-row.success-first-row .success-container {
    flex: 1 1 400px;
    max-width: 520px;
}

.success-container {
    border-radius: 12px;
    padding: 30px;
    flex: 1;
    min-height: 180px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.success-container:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.success-container img {
    height: 45px;
    margin-bottom: 50px;
}

.success-container h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.success-container p {
    font-size: 1rem;
}

.leaf-bg {
    position: relative;
}

.leaf-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(255,107,0,0.85);
    border-radius: 12px;
    z-index: 0;
}

.leaf-bg img, .leaf-bg h3, .leaf-bg p {
    position: relative;
    z-index: 1;
    color: white;
}

/* Feature Demos Section */
.feature-demos-section {
    padding: 20px 0 80px;
    background-color: white;
}

.feature-demos-section .container {
    max-width: 1600px;
    padding-left: 48px;
    padding-right: 48px;
}

.feature-demos-title {
    text-align: center;
    color: var(--primary-orange);
    font-size: 3.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.feature-demos-subtitle {
    text-align: center;
    color: var(--neutral-dark);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 60px;
    line-height: 1.5;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.demo-block {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 70px;
}

.demo-block:last-child {
    margin-bottom: 0;
}

.demo-block-reverse {
    flex-direction: row-reverse;
}

.demo-text {
    flex: 1;
}

.demo-text h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.demo-text ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.2rem;
    font-weight: 400;
}

.demo-text ul li {
    font-size: 1.3rem;
    line-height: 1.7;
    margin-bottom: 0.4rem;
    padding-left: 1.2rem;
    position: relative;
    font-weight: 400;
}

.demo-text ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--neutral-dark);
}

.demo-subtext {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #333;
}

.demo-tagline {
    font-size: 1.3rem;
    line-height: 1.5;
    color: #333;
}

.demo-video {
    flex: 1;
}

.demo-feature-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    object-fit: cover;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #f5e6d3;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder-dark {
    background: linear-gradient(135deg, #c0392b 0%, #e65103 50%, #2c3e50 100%);
}

.play-btn {
    width: 80px;
    height: 80px;
    background-color: var(--primary-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    padding-left: 6px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(230, 81, 3, 0.4);
    transition: transform 0.2s ease;
}

.play-btn:hover {
    transform: scale(1.1);
}

/* HCM Suite Section */
.hcm-section {
    background-color: white;
    padding: 10px 0 80px;
}

.hcm-section .container {
    max-width: 1600px;
}

.hcm-title {
    text-align: center;
    color: var(--primary-orange);
    font-size: 3.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hcm-subtitle {
    text-align: center;
    color: var(--neutral-dark);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 50px;
    line-height: 1.5;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Wrapper used for mobile scroll affordances; transparent on desktop */
.hcm-tabs-wrap {
    position: relative;
    width: 100%;
}

.hcm-tabs-hint {
    display: none;
    margin: 0;
}

.hcm-tabs {
    display: flex;
    flex-wrap: nowrap;   /* keep all visible tabs on one row on desktop */
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    width: 100%;
}

.hcm-tab-placeholder {
    color: #999;
}

.hcm-tab {
    background: white;
    border: none;
    flex: 1 1 0;
    min-width: 0;
    padding: 16px 10px;
    font-size: clamp(0.95rem, 1.15vw, 1.2rem);
    font-weight: 700;
    color: var(--neutral-dark);
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    white-space: nowrap;
    text-align: center;
}

.hcm-tab::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 2.5px;
    background-color: var(--primary-orange);
    border-radius: 2px;
}

.hcm-tab:last-child::after {
    display: none;
}

.hcm-tab.active {
    background: #f0f0f0;
    color: var(--primary-orange);
    font-weight: 700;
}

.hcm-tab:hover:not(.active) {
    background: #f8f8f8;
    color: var(--primary-orange);
}

.tab-arrow {
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1;
}

/* Private AI + full set fit best on wide screens; hide placeholder-style
   tabs on narrower desktops so remaining tabs still fill the card evenly. */
@media (max-width: 1200px) {
    .hcm-tab {
        font-size: 0.95rem;
        padding: 14px 8px;
        gap: 4px;
    }

    .tab-arrow {
        font-size: 1.1rem;
    }
}

@media (max-width: 900px) {
    .hcm-tab-placeholder {
        display: none;
    }
}

.hcm-panels {
    background: #f0f0f0;
    border-radius: 0 12px 12px 12px;
    padding: 60px 80px 60px 150px;
}

.hcm-panel {
    display: none;
    align-items: center;
    gap: 60px;
}

.hcm-panel.active {
    display: flex;
}

.hcm-panel-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    max-width: 460px;
}

.hcm-panel-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.hcm-panel-text {
    flex: 1;
    max-width: 600px;
    margin-left: 80px;
}

.hcm-panel-text h3 {
    font-size: 1.95rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-orange);
}

/* Body copy in tabs: intro, bullets, and closing line share one type scale.
   Weight differences come only from <strong>, not from separate font sizes. */
.hcm-panel-text ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.2rem;
}

.hcm-panel-text ul li,
.hcm-tagline-intro,
.hcm-tagline {
    font-family: var(--font-family);
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.65;
    color: var(--neutral-dark);
}

.hcm-panel-text ul li {
    margin-bottom: 0.6rem;
    padding-left: 1.2rem;
    position: relative;
}

.hcm-panel-text ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--neutral-dark);
}

.hcm-tagline-intro {
    margin: 0 0 1.2rem;
}

.hcm-tagline {
    margin: 1rem 0 0;
}

.hcm-panel-text strong {
    font-weight: 700;
    font-size: inherit;
}

.hcm-panel-text em {
    font-style: italic;
    font-size: inherit;
    font-weight: inherit;
}

/* Services Section */
.services-section {
    background-color: #eeeeee;
    margin: 80px 0 0 0;
    padding: 80px 0;
}

.services-section .container {
    max-width: 1650px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

.services-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.services-header-left {
    flex: 0 0 30%;
    text-align: left;
    padding-left: 20px;
}

.services-header-left .section-title {
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.savings-header-left .section-title {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.5rem;
    max-width: none;
}

.services-grid-right {
    flex: 0 0 67%;
    margin-left: 0;
}

.services-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.services-row:last-child {
    margin-bottom: 0;
}

.service-card {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.service-number {
    font-size: 6rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

.service-card h4 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-card p {
    font-size: 1.3rem;
    line-height: 1.5;
}

/* Savings Section */
.savings-section {
    background-color: #FFFCF9;
    padding: 80px 0;
    margin-top: -18px;
}

.savings-section .container {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 40px;
}

.savings-layout {
    display: flex;
    gap: 150px;
    align-items: flex-start;
}

.savings-header-left {
    flex: 0 0 30%;
    text-align: left;
    padding-left: 20px;
}

.savings-header-left .section-description {
    font-size: 1.40rem;
    font-weight: 400;
    line-height: 1.6;
}

.savings-content-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-left: 0;
}

.slider-container {
    width: 100%;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.slider-value {
    color: var(--primary-orange);
    font-weight: 700;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: #ddd;
    outline: none;
    margin-bottom: 20px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-orange);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-orange);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.savings-card {
    background-color: var(--primary-orange);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.savings-label {
    font-size: 1.5rem;
    margin-bottom: 10px;
    opacity: 0.95;
}

.savings-amount {
    font-size: 4.5rem;
    font-weight: 700;
    margin: 20px 0;
}

.savings-disclaimer {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

.slider-label-bold {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.slider-sublabel {
    font-size: 1rem;
    color: #666;
    margin-bottom: 12px;
}

.savings-label {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 6px;
    opacity: 1;
    text-align: left;
}

.savings-amount {
    font-size: 4.7rem;
    font-weight: 700;
    margin: 10px 0 20px;
    text-align: left;
}

.savings-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.savings-row-item {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.95;
}

.savings-row-value {
    font-weight: 600;
}

.live-updates-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1.5px solid #f97316;
    color: #c2410f;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 9999px;
}

.roi-top-bar { display: flex; justify-content: flex-end; margin-bottom: 0.5rem; }
.savings-header-with-icon { display: flex; align-items: center; gap: 0.6rem; }
.savings-icon { font-size: 1.5rem; }
.savings-card-top-right { display: flex; align-items: center; gap: 0.5rem; }
.payroll-pct-pill {
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 9999px;
}

.savings-divider { height: 3px; background: rgba(255,255,255,0.25); margin: 0.6rem 0 1.6rem; }
.savings-icon-small { width: 1.3rem; text-align: center; }
.savings-row-label { flex: 1; }
.roi-footer-note { font-size: 0.78rem; color: #6b7280; text-align: center; margin-top: 0.6rem; }
.action-btn i, .action-btn-primary i { margin-right: 6px; }
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.2rem;
}

.roi-slider {
    background: linear-gradient(to right, #E65103 0%, #E65103 18%, #ddd 18%, #ddd 100%);
}

.rates-container { margin: 0.4rem 0 0.6rem; }
.rates-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.slider-with-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rate-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    background: var(--primary-orange);
    padding: 4px 10px;
    border-radius: 8px;
    min-width: 3rem;
    text-align: right;
    margin-top: -22px;
}

.savings-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cog-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    cursor: pointer;
    font-size: 1.3rem;
}

.cog-btn i {
    color: #fff;
}

.savings-sub {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 1rem;
}

.action-buttons-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.action-buttons-row { display: flex; gap: 0.5rem; }
.action-buttons-row .action-btn { flex: 1; }
.action-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1.5px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 10px;
    cursor: pointer;
}

.action-btn-primary {
    width: 100%;
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.active { display: flex; }

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 620px;
    width: 90%;
}

.modal-large { max-width: 860px; }

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid #eee;
}

.close-btn {
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1.3rem;
}

.scenario-modal-card {
    display: block;
    width: 100%;
    text-align: left;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    cursor: pointer;
}

.scenario-modal-card.active { border-color: var(--primary-orange); background: #fff7ed; }

.scenario-card-label { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.35rem; }
.scenario-card-desc { font-size: 0.85rem; color: #666; }
.scenario-cards-wrap {
    padding: 1rem 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.scenario-modal-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.scenario-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--primary-orange);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.scenario-card-body { flex: 1; }
.scenario-card-default {
    font-weight: 400;
    color: #666;
    font-size: 0.9rem;
}

.scenario-card-best {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.4rem;
}

.scenario-card-check {
    display: none;
    color: var(--primary-orange);
    font-size: 1.1rem;
    flex-shrink: 0;
    align-self: center;
}

.scenario-modal-card.active .scenario-card-check {
    display: block;
}

.scenario-tip {
    padding: 1rem 1.75rem;
    border-top: 1px solid #eee;
    font-size: 0.88rem;
    color: #6b7280;
}

#scenario-modal .modal-subtitle { font-size: 0.88rem; }
#scenario-modal .scenario-tip { font-size: 0.81rem; }

.table-container { padding: 1rem 1.75rem 0.5rem; overflow-x: auto; }

.breakdown-table { width: 100%; border-collapse: collapse; }
.breakdown-table th, .breakdown-table td { padding: 0.7rem; text-align: left; border-bottom: 1px solid #eee; }

.total-row { background: #fff7ed; font-weight: 700; }
.total-row-label { color: var(--primary-orange); }
.total-row-amount { color: var(--neutral-dark); }
.total-row-percent { color: #15803d; }

.modal-header-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary-orange);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.modal-subtitle {
    padding: 0 1.75rem;
    margin: 0.95rem 0 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.breakdown-table thead tr { background: #fff7ed; }

.breakdown-table th {
    color: var(--primary-orange);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.breakdown-category { font-weight: 700; color: var(--neutral-dark); }
.breakdown-assumption { color: #666; font-size: 0.92rem; }
.breakdown-amount { color: #15803d; font-weight: 700; }
.breakdown-percent { color: #c2410f; font-weight: 700; }

.breakdown-footer-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem 1.5rem;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.5;
}

.breakdown-footer-note i { margin-top: 0.15rem; color: #9ca3af; }

.sources-scroll-body {
    max-height: 420px;
    overflow-y: auto;
    padding: 0.95rem 1.75rem 1.5rem;
}

.sources-item { margin-bottom: 1.5rem; }
.sources-item:last-child { margin-bottom: 0; }

.sources-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--neutral-dark);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sources-emoji { font-size: 1.1rem; }

.sources-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}

.sources-assumptions { margin: 1.5rem 0; }

.sources-assumptions-title {
    font-weight: 700;
    font-size: 0.98rem;
    margin-bottom: 0.6rem;
    color: var(--neutral-dark);
}

.sources-assumptions ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sources-assumptions li {
    font-size: 0.92rem;
    color: #444;
    padding-left: 1.1rem;
    position: relative;
}

.sources-assumptions li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-orange);
}

.sources-disclaimer {
    background: #fff7ed;
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #555;
}

.sources-disclaimer strong { color: var(--primary-orange); }

.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 1.75rem;
    border-top: 1px solid #eee;
}

.modal-footer-close-btn {
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1.5px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 10px;
    cursor: pointer;
}

.modal-footer-close-btn:hover {
    background: #f9fafb;
}

/* Clear Wins Section */
.client-reviews-section {
    padding: 35px 0 80px;
    background-color: white;
}

.client-reviews-section .container {
    max-width: 1700px;
}

.client-reviews-section h2 {
    text-align: center;
    font-size: 3.3rem;
    font-weight: 700;
    margin-bottom: 60px;
    line-height: 1.2;
}

.wins-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.wins-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 20px;
}

.wins-carousel-track-container {
    overflow: hidden;
    flex: 1;
}

.wins-carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.4s ease;
}

.wins-carousel-track .win-card {
    flex: 0 0 calc((100% - 60px) / 3);
    min-width: 0;
}

.win-card-placeholder {
    opacity: 0.6;
}

.win-card-placeholder h3,
.win-card-placeholder p {
    color: #999;
}

.wins-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid #d1d5db;
    background: white;
    color: var(--primary-orange);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.wins-arrow:hover {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}

.wins-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.wins-arrow:disabled:hover {
    background: white;
    color: var(--primary-orange);
    border-color: #d1d5db;
}

.wins-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.wins-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
}

.wins-dot.active {
    background: var(--primary-orange);
}

@media (max-width: 900px) {
    .wins-carousel-track .win-card {
        flex: 0 0 100%;
    }
}

.win-card {
    background-color: #f0f0f0;
    border-radius: 12px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 350px;
}

.win-card img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 40px;
}

.win-card h3 {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-orange);
    margin-bottom: 12px;
    min-height: 5.6rem;
    display: flex;
    align-items: center;
}

.win-card p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #000000;
}

.win-card:last-child p {
    margin-top: 10px;
}

.win-card:last-child h3 {
    margin-bottom: 0;
}

.win-card-bottom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    gap: 12px;
}

.win-card:last-child {
    display: flex;
    flex-direction: column;
}

.win-arrow-btn {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background-color: var(--primary-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    align-self: flex-end;
    margin-top: auto;
}

.win-arrow-btn:hover {
    background-color: #c94400;
}

/* ==================== CLEAR WINS / MAIPLE EDGE CARDS ==================== */
.review-card {
    padding: 40px 30px 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.review-card img {
    width: 68px;
    height: 68px;
    margin-bottom: 32px;
    flex-shrink: 0;
}

.review-card h3 {
    font-size: 1.45rem;
    margin-bottom: 16px;
    line-height: 1.3;
}

.review-card .review-text {
    font-size: 1.05rem;
    line-height: 1.55;
    margin-top: auto;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.logo-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-orange);
    position: absolute;
    top: 30px;
    left: 30px;
}

.quote-icon {
    color: var(--primary-orange);
    font-size: 5rem;
    font-weight: bold;
    line-height: 1;
    font-family: serif;
    position: absolute;
    top: 30px;
    left: 30px;
}

.review-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.reviewer-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-orange);
    margin-bottom: 5px;
}

.reviewer-title-company {
    font-size: 0.9rem;
    color: var(--neutral-dark);
}

/* Footer (matched to MaipleLeaf) */
.footer {
    background-color: #f8f8f8;
    padding: 40px 0;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    gap: 80px;
}

.footer-left {
    flex: 1;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-logo {
    display: block;
}

.footer-logo img {
    height: 76px;
    width: auto;
}

.copyright {
    color: #000000;
    font-size: 0.875rem;
    padding-bottom: 12px;
}

.footer-right {
    flex: 2;
    display: flex;
    justify-content: space-between;
    padding-right: 50px;
}

.footer-column h4 {
    color: var(--neutral-dark);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #000000;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

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

/* Hamburger & Mobile Menu (matched to MaipleLeaf) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--neutral-dark);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-orange);
    padding: 20px;
    text-align: center;
    z-index: 1000;
}

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

.mobile-logo {
    height: 50px;
    margin-bottom: 20px;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
}

.mobile-nav-links li {
    margin: 15px 0;
}

.mobile-nav-links a {
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    display: block;
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 17px;
    height: 17px;
    margin-left: 8px;
    background: url('../images/WhiteArrowDown.svg') no-repeat center;
    background-size: contain;
    transition: transform 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-toggle::after {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    display: none;
    list-style: none;
    padding: 10px 0;
    margin-top: 10px;
}

.mobile-dropdown-menu li {
    margin: 10px 0;
}

.mobile-dropdown-menu a {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.mobile-dropdown.active .mobile-dropdown-menu {
    display: block;
}

.mobile-menu-divider {
    height: 1px;
    background-color: white;
}

/* ===================================================================
   RESPONSIVE MEDIA QUERIES - FULL PAGE
   =================================================================== */

/* ========== TABLET (768px - 1023px) ========== */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

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

    .nav-links {
        gap: 2rem;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .hero-container {
        padding: 45px 25px 25px;
    }

    .feature-demos-section,
    .hcm-section,
    .savings-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .demo-block {
        gap: 40px;
        flex-wrap: wrap;
    }

    .demo-block-reverse {
        flex-direction: column-reverse;
    }

    .demo-text h3 {
        font-size: 2rem;
    }

    .demo-text ul li {
        font-size: 1.1rem;
    }

    .hcm-panels {
        padding: 40px 30px;
    }

    .hcm-panel {
        flex-direction: column;
        gap: 30px;
    }

    .hcm-panel-text {
        margin-left: 0;
    }

    .savings-layout {
        flex-direction: column;
        gap: 40px;
    }

    .footer .container {
        flex-direction: column;
        gap: 40px;
    }

    .footer-right {
        flex-direction: row;
        justify-content: space-around;
        padding-right: 0;
    }

    .savings-header-left {
        text-align: center;
    }

    .wins-carousel-track .win-card {
        flex: 0 0 calc((100% - 40px) / 2);
    }
}

/* ========== MOBILE (max-width: 767px) ========== */
@media (max-width: 767px) {
    .header .container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .navbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: auto;
        padding: 10px 0;
        position: relative;
    }

    .navbar .logo {
        margin-left: 0;
        margin-bottom: 0;
    }

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

    .hamburger {
        display: flex;
    }

    .nav-links,
    .nav-buttons {
        display: none;
    }

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

    .hero-container {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .hero-image-container {
        margin-left: 0;
        margin-right: 0;
        justify-content: center;
    }

    .hero-phone-image {
        width: 100%;
        max-width: 400px;
        min-width: unset;
        transform: none;
    }

    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
    }

    .orange-divider {
        padding: 1.35rem 1.25rem;
    }

    .orange-divider-text {
        font-size: 1.15rem;
        line-height: 1.5;
    }

    .feature-demos-section h2 {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }

    .about-content-section {
        padding: 40px 0;
    }

    .content-block {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 40px;
    }

    .content-text h2 {
        font-size: 1.8rem;
    }

    .content-text p {
        font-size: 1rem;
    }

    .reverse-layout {
        flex-direction: column;
    }

    .services-section {
        margin: 40px 20px;
        padding: 40px 0;
        border-radius: 20px;
    }

    .services-section .container {
        padding: 0 20px;
    }

    .services-layout {
        flex-direction: column;
    }

    .services-header-left {
        flex: none;
        text-align: center;
        margin-left: 0;
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1.1rem;
    }

    .services-grid-right {
        margin-left: 0;
    }

    .services-row {
        grid-template-columns: 1fr;
    }

    .service-number {
        font-size: 3rem;
    }

    .service-card h4 {
        font-size: 1.3rem;
    }

    .service-card p {
        font-size: 1rem;
    }

    .savings-section {
        padding: 40px 0;
    }

    .savings-layout {
        flex-direction: column;
        gap: 30px;
    }

    .savings-header-left {
        flex: none;
        text-align: center;
        margin-left: 0;
        margin-bottom: 0;
    }

    .savings-content-right {
        margin-left: 0;
    }

    .slider-label {
        font-size: 1rem;
    }

    .savings-amount {
        font-size: 3.5rem;
    }

    .savings-card {
        padding: 30px;
    }

    .success-grid {
        gap: 20px;
    }

    .footer .container {
        flex-direction: column;
        gap: 30px;
    }

    .footer-left {
        max-width: 100%;
        text-align: center;
    }

    .footer-logo img {
        height: 60px;
    }

    .copyright {
        font-size: 0.8rem;
        margin-top: 15px;
    }

    .footer-right {
        padding-right: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 30px;
    }

    .footer-column h4 {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .footer-column a {
        font-size: 0.85rem;
    }

    /* Client Reviews - Mobile */
    .client-reviews-section {
        padding: 40px 0;
    }

    .client-reviews-section h2 {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

    .reviews-slider {
        gap: 15px;
        padding: 10px 30px;
    }

    .review-card {
        padding: 60px 20px 20px;
        flex: 0 0 calc(100% - 30px);
        min-width: calc(100% - 30px);
    }

    .logo-circle,
    .quote-icon {
        width: 40px;
        height: 40px;
        top: 20px;
        left: 20px;
        font-size: 3rem;
    }

    .review-text {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .reviewer-name {
        font-size: 1rem;
    }

    .reviewer-title-company {
        font-size: 0.8rem;
    }

    /* Feature Demos Mobile */
    .demo-block {
        flex-direction: column;
        gap: 35px;
    }

    .demo-block-reverse {
        flex-direction: column-reverse;
    }

    .demo-text h3 {
        font-size: 1.7rem;
    }

    .demo-text ul li {
        font-size: 1rem;
    }

    /* Remove light-orange video plate behind the play button on mobile */
    .video-placeholder,
    .video-placeholder-dark {
        background: transparent;
        background-color: transparent;
        border-radius: 0;
    }

    /* HCM Tabs Mobile — scroll when labels can't fit evenly */
    .hcm-tabs-wrap {
        position: relative;
        margin-bottom: 0;
    }

    .hcm-tabs {
        position: relative;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-padding-inline: 12px;
    }

    .hcm-tabs::-webkit-scrollbar {
        display: none;
    }

    /* Soft edge fade on the tab row only (hint sits above) */
    .hcm-tabs-wrap::after {
        content: '';
        position: absolute;
        /* start below the "Swipe for more" line */
        top: 2.4rem;
        bottom: 0;
        right: 0;
        width: 48px;
        pointer-events: none;
        background: linear-gradient(to right, rgba(255, 255, 255, 0), #ffffff 85%);
        opacity: 1;
        transition: opacity 0.25s ease;
        z-index: 1;
    }

    .hcm-tabs-wrap.scrolled-end::after {
        opacity: 0;
    }

    .hcm-tabs-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin: 0 0 10px;
        color: var(--primary-orange);
        font-size: 0.85rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        opacity: 0.9;
        transition: opacity 0.25s ease;
    }

    .hcm-tabs-wrap.scrolled-end .hcm-tabs-hint {
        opacity: 0;
        pointer-events: none;
    }

    .hcm-tabs-hint-arrows {
        display: inline-flex;
        gap: 1px;
        animation: hcm-tabs-nudge 1.4s ease-in-out infinite;
        font-size: 1rem;
        line-height: 1;
    }

    @keyframes hcm-tabs-nudge {
        0%, 100% { transform: translateX(0); opacity: 0.55; }
        50% { transform: translateX(4px); opacity: 1; }
    }

    .hcm-tab {
        flex: 0 0 auto;
        font-size: 0.95rem;
        padding: 12px 14px;
        white-space: nowrap;
    }

    .hcm-panels {
        padding: 25px 18px;
    }

    /* Hide the illustration on mobile so the selected tab's text gets
       the full width instead of competing with an image for space. */
    .hcm-panel {
        flex-direction: column;
        gap: 20px;
    }

    .hcm-panel-image {
        display: none;
    }

    .hcm-panel-text {
        margin-left: 0;
        max-width: 100%;
    }

    /* Savings Mobile */
    .savings-section .container {
        padding: 0 20px;
    }

    .savings-amount {
        font-size: 3rem;
    }

    /* Clear Wins Mobile */
    .client-reviews-section .container {
        padding: 0 12px;
    }

    .wins-carousel-wrapper {
        padding: 0 4px;
        gap: 4px;
    }

    .wins-arrow {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .wins-carousel-track-container {
        width: 100%;
        padding: 0;
    }

    .wins-carousel-track .win-card {
        flex: 0 0 100%;
    }

    .win-card {
        padding: 30px 22px;
        min-height: 0;
    }

    .win-card h3 {
        font-size: 1.5rem;
        min-height: auto;
    }

    .win-card p {
        font-size: 1rem;
    }
}

/* Desktop: min-width 768px — hide mobile nav chrome */
@media (min-width: 768px) {
    .hamburger {
        display: none;
    }

    .mobile-menu {
        display: none !important;
    }
}

/* Desktop: min-width 1024px */
@media (min-width: 1024px) {
    .hamburger,
    .mobile-menu {
        display: none !important;
    }

    .mobile-logo {
        display: none;
    }

    /* Desktop alternating layout for Core Capabilities section.
       Block 2 gets normal 'row' so image appears on the left. */
    .demo-block-reverse {
        flex-direction: row;
    }
}

/* Large Desktop: min-width 1440px */
@media (min-width: 1440px) {
    .footer-logo img {
        height: 80px;
    }
}

/* Extra Large Desktop: min-width 1920px */
@media (min-width: 1920px) {
    .footer-logo img {
        height: 100px;
    }
}

/* ========== REDUCE SPACING ON SMALLER SCREENS ========== */
@media (max-width: 1024px) {
    .success-section,
    .feature-demos-section,
    .hcm-section,
    .services-section,
    .savings-section,
    .client-reviews-section {
        padding-top: 45px;
        padding-bottom: 55px;
    }

    .section-title {
        font-size: 2.4rem;
    }

    .feature-demos-title {
        font-size: 2.6rem;
    }

    .hcm-title {
        font-size: 2.6rem;
    }

    /* Solid orange only on tablet/mobile — leaf image can obscure the intro text */
    .orange-divider {
        background-image: none;
    }
}

@media (max-width: 767px) {
    .success-section,
    .feature-demos-section,
    .hcm-section,
    .services-section,
    .savings-section,
    .client-reviews-section {
        padding-top: 35px;
        padding-bottom: 45px;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .feature-demos-title {
        font-size: 2.1rem;
    }

    .hcm-title {
        font-size: 2.1rem;
    }
}

/* Global font scaling */
@media (max-width: 1024px) {
    html {
        font-size: 15.5px;
    }
}

@media (max-width: 767px) {
    html {
        font-size: 15px;
    }
}

/* ==========================================================================
   Hero image on mobile has a lot of transparent padding baked into the
   bottom of the source PNG, which shows up as a large empty gap before the
   orange divider. Crop it visually: fix the container to a shorter box and
   let the image cover it, anchored to the top so only the real artwork
   (device/tablet illustration) shows.
   ========================================================================== */
@media (max-width: 400px) {
    /* A small ~20px breathing gap before the divider, instead of the
       image touching it directly. Placed here (end of file) so it
       reliably wins over the earlier unscoped .orange-divider rule. */
    .orange-divider {
        margin-top: -52px !important;
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 767px) {
    .hero-image-container {
        flex: none;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        aspect-ratio: 1 / 1;
        overflow: hidden;
    }

    .hero-phone-image {
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover;
        object-position: top center;
    }

    /* A small ~20px breathing gap before the divider, instead of the
       image touching it directly. Placed here (end of file) so it
       reliably wins over the earlier unscoped .orange-divider rule. */
    .orange-divider {
        margin-top: -55px;
    }
}
/* ============================================================
   LARGE DESKTOP / ULTRA-WIDE ENHANCEMENTS (1200px+)
   Updated for better image positioning, text inset, and title/description spacing.
   ============================================================ */
@media (min-width: 1200px) {
    /* Navbar: sit a little lower, and inset the logo/button from the edges,
       matching the legacy layout, without touching the rest of the page. */
    .header .container {
        max-width: 1100px;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .hero-container {
        max-width: 1650px;
        margin: 0 auto;
        padding: 30px 120px 10px;
        gap: 0;                 /* text and image edges together - no gap */
        flex-wrap: nowrap;
        width: 100%;
        overflow: visible;      /* allow image to bleed slightly if needed */
    }
    .hero-content {
        flex: 0 0 52%;
        max-width: 800px;
        margin-top: 50px;
        padding-left: 70px;     /* subtle inset from left for visual balance */
        padding-bottom: 10px;
    }
    .hero-image-container {
        flex: 1;
        justify-content: flex-end;
        align-items: flex-start;
		margin-left: -240px;
        margin-top: -50px;
        margin-right: -80px;    /* subtle right bleed for large screens while keeping overall centered */
    }
    .hero-phone-image {
        max-width: 1150px;
        width: 100%;
        height: auto;
        margin-top: -10px;
        display: block;
    }
    .hero-title,
    .hero-title .highlight-text,
    .hero-title-normal {
        /* Scales smoothly with the viewport between ~1200px and ~1600px */
		font-size: clamp(3.2rem, 3.8vw, 4.6rem);
		line-height: 1.08;
    }
    .hero-title .highlight-text {
        display: block;
        margin-bottom: -55px;
    }
    .hero-cta-buttons {
        margin-top: 1.5rem;
    }

    .hero-cta-buttons .btn {
        font-size: 1.2rem;
        padding: 0.9rem 1.9rem;
    }

    .orange-divider {
        margin-top: -50px;
        width: 100%;
        max-width: none;
    }

    /* Desired desktop pattern for Core Capabilities */
    .demo-block-reverse {
        flex-direction: row;
    }
}
@media (min-width: 1440px) {
    .hero-image-container {
		flex: 0 0 80%;
        justify-content: flex-end;
        align-items: flex-start;
		margin-left: -280px;
        margin-top: -80px;
        margin-right: -80px;    /* subtle right bleed for large screens while keeping overall centered */
    }
    .hero-phone-image {
        max-width: 1350px;
        width: 100%;
        height: auto;
        margin-top: -10px;
        display: block;
    }
    .orange-divider {
        margin-top: -60px;
        width: 100%;
        max-width: none;
    }

}
/* Even larger monitors (1920px+) - more dramatic hero image */
@media (min-width: 1920px) {
    .hero-container {
        max-width: 1950px;
    }
	.hero-content {
        flex: 0 0 42%;
        max-width: 800px;
        margin-top: 50px;
        padding-left: 70px;     /* subtle inset from left for visual balance */
        padding-bottom: 10px;
    }
    .hero-image-container {
		flex: 0 0 55%;
        margin-right: -50px;
        margin-top: -110px;
		margin-left: -130px;
    }
    .hero-phone-image {
        width: auto;           /* ← Critical change */
        max-width: 1300px;     /* Now this will actually work */
        height: auto;
        margin-top: -15px;
    }
    .orange-divider {
        margin-top: -75px;
        width: 100%;
        max-width: none;
    }

    .hero-title,
    .hero-title .highlight-text,
    .hero-title-normal {
        font-size: clamp(4.8rem, 2.6vw, 5.6rem);
        line-height: 1.06;
    }
}