@import url('fonts.css');

:root {
    /* Color Palette */
    --primary: #000000;
    --accent: #00d26a;
    --accent-hover: #00b35a;
    --text-main: #14151a;
    --text-muted: #6b7280;
    --text-supermuted: #9ca3af;
    --bg-white: #ffffff;
    --bg-grey: #f5f7f9;
    --bg-dark: #14151a;
    --divider: #e5e7eb;
    --glow-color: rgba(0, 210, 106, 0.4);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Spacing */
    --container-max: 1200px;
    --section-padding: 100px 0;
    --section-padding-mobile: 60px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.5;
    overflow-x: clip;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, #00b35a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-muted {
    color: var(--text-muted);
}

.text-supermuted {
    color: var(--text-supermuted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.btn-accent {
    background-color: #0a3d1d;
    color: white;
    border-radius: var(--radius-full);
    padding: 14px 28px;
    font-size: 16px;
}

.btn-accent:hover {
    background-color: #082d15;
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--divider);
    background-color: transparent;
}

.btn-outline:hover {
    border-color: var(--primary);
    background-color: rgba(0, 0, 0, 0.02);
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    height: 80px;
    display: flex;
    align-items: center;
    animation: fadeInHeader 0.25s ease-out forwards;
}

#header-placeholder {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

@keyframes fadeInHeader {
    from {
        opacity: 0;
        transform: translateY(-2px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.logo {
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.8px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: lowercase;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    height: 100%;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
}

.nav-link svg {
    transition: transform 0.2s ease;
}

.nav-item:hover .nav-link svg {
    transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--divider);
    width: 600px;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Dropdown backdrop blur */
.dropdown-backdrop {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(20, 21, 26, 0.3);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 90;
    pointer-events: none;
}

.nav-item:hover .dropdown-backdrop {
    opacity: 1;
    visibility: visible;
}

/* Page content blur transition */
main,
footer,
#footer-placeholder {
    transition: filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Apply heavy camera defocus blur when a dropdown is open */
body:has(.nav-item:hover .dropdown) main,
body:has(.nav-item:hover .dropdown) footer,
body:has(.nav-item:hover .dropdown) #footer-placeholder {
    filter: blur(20px);
    pointer-events: none;
}

.dropdown-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--bg-grey);
}

.dropdown-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-grey);
    border-radius: var(--radius-sm);
}

.dropdown-content h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.dropdown-content p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Company Dropdown */
.dropdown-company {
    width: 940px;
    display: grid;
    grid-template-columns: 340px 1fr;
    padding: 0;
    gap: 0;
    position: fixed;
    top: 80px;
    left: 50%;
    overflow: hidden;
}

.company-links-wrapper {
    padding: 32px 48px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    border-right: 1px solid var(--divider);
}

.company-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.company-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-supermuted);
    margin-bottom: 4px;
}

.company-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    transition: color 0.2s ease;
}

.company-link:hover {
    color: var(--accent);
}

.company-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.company-icon svg {
    width: 20px;
    height: 20px;
}

.company-cards {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background-color: var(--bg-grey);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.company-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: white;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
    text-decoration: none;
    min-height: 400px;
}

.company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.company-card h4 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.company-card:hover {
    transform: scale(1.02);
}


/* Product Dropdown */
.dropdown-product {
    width: 940px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    padding: 0;
    gap: 0;
    position: fixed;
    top: 80px;
    left: 50%;
    overflow: hidden;
}

.product-links-wrapper {
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    border-right: 1px solid var(--divider);
}

.product-col {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.product-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-supermuted);
    margin-bottom: 4px;
}

.product-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    transition: color 0.2s ease;
}

.product-link:hover {
    color: var(--accent);
}

.product-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.product-icon svg {
    width: 20px;
    height: 20px;
}

.product-cards {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: var(--bg-grey);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.product-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: white;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
    text-decoration: none;
    min-height: 180px;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.product-card h4 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.product-card:hover {
    transform: scale(1.02);
}

/* Resources Dropdown */
.dropdown-resources {
    width: 940px;
    display: grid;
    grid-template-columns: 280px 1fr;
    padding: 0;
    gap: 0;
    position: fixed;
    top: 80px;
    left: 50%;
    overflow: hidden;
}

.resources-links-col {
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-right: 1px solid var(--divider);
    background-color: var(--bg-white);
    justify-content: flex-start;
}

.resources-link {
    font-size: 18px;
    font-weight: 500;
    color: #14151a;
    transition: color 0.2s ease;
    text-decoration: none;
    line-height: 1.2;
    display: block;
}

.resources-link:hover {
    color: var(--accent);
}

.resources-cards-wrapper {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background-color: var(--bg-white);
}

.resources-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 24px;
    color: white;
    text-decoration: none;
    min-height: 380px;
    transition: transform 0.3s ease;
}

.resources-card:hover {
    transform: scale(1.02);
}

.resources-card.image-card {
    background-color: #14151a;
    position: relative;
}

.resources-card.image-card .card-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.resources-card.image-card:hover .card-image-bg {
    transform: scale(1.05);
}

.resources-card.image-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(20, 21, 26, 0.95) 0%, rgba(20, 21, 26, 0.4) 50%, rgba(20, 21, 26, 0.1) 100%);
    z-index: 1;
}

.resources-card.gradient-card {
    background-image: url('../uploads/69c3f525a3453c0d3ae135ee_84139454bafe16d9c253bf258b1f0928_product-cta_bg.avif');
    background-size: cover;
    background-position: center;
    position: relative;
}

.resources-card.gradient-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 50, 10, 0.45) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.resources-card-content {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    position: relative;
    z-index: 2;
    letter-spacing: -0.03em;
    color: white;
}

.nav-btns {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.review-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.stars {
    display: flex;
    color: #ffb400;
}

.hp-input {
    max-width: 500px;
    margin: 48px auto;
    position: relative;
}

.hp-input_form {
    background: white;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    box-shadow: 0 20px 50px -10px rgba(0, 210, 106, 0.25), 0 -5px 25px -10px rgba(0, 210, 106, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
    align-items: center;
}

.hp-input_form-validation {
    display: none;
    position: absolute;
    top: 100%;
    left: 20px;
    margin-top: 8px;
    color: #ef4444;
    font-size: 13px;
    font-weight: 500;
}

.is-grader {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-text {
    line-height: 1;
}

.icon-20 {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-input_form-block::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent), #00b35a);
    border-radius: calc(var(--radius-xl) + 2px);
    z-index: -1;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.4s ease;
}

.hp-input_form-block:hover::before,
.hp-input_form-block:focus-within::before {
    opacity: 0.5;
}

.hp-input_form-block:focus-within {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.hp-input_form-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 20px;
    font-size: 16px;
}

/* Phone Section */
.hero-visual {
    margin-top: 140px;
    position: relative;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 0;
    min-height: 520px;
}

.phone-mockup-wrapper {
    position: relative;
    display: inline-block;
    height: 718px;
    width: auto;
    aspect-ratio: 780 / 1598;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
    margin-top: -211px;
    z-index: 2;
}

.phone-mockup-wrapper .hero-feature-img {
    width: 100%;
    height: 100%;
    margin-top: 0;
    display: block;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.phone-screen-container {
    position: absolute;
    top: 1.2%;
    left: 2.6%;
    width: 94.8%;
    height: 97.6%;
    border-radius: 44px;
    overflow: hidden;
    z-index: 2;
    background: #ffffff;
}

.hero-phone-video {
    position: absolute;
    top: -5%;
    left: 0;
    width: 100%;
    height: 110%;
    object-fit: cover;
}

.phone-mockup {
    max-width: 320px;
    margin: 0 auto;
    border-radius: 48px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.4);
    background: #080808;
    padding: 10px;
    position: relative;
    z-index: 2;
    border: 4px solid #1a1a1a;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 25px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

.phone-screen {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    aspect-ratio: 9 / 19.5;
    position: relative;
}

.hero-bg-accent {
    position: absolute;
    top: 41%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1190px;
    height: 634px;
    background-image: url('../uploads/69c17d56a116eb5b3e4d5a73_b595b61dc8ceac906ac9a999ecba46bc_hero-frame.avif');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 40px;
    z-index: 1;
    overflow: hidden;
}

/* Stories Section */
.section-stories {
    padding: var(--section-padding);
    background-color: var(--bg-grey);
}

.stories-header {
    margin-bottom: 60px;
}

.stories-grid {
    display: flex;
    gap: 32px;
    padding-bottom: 20px;
}

.marquee-container {
    overflow: hidden;
    padding: 20px 0;
    position: relative;
}

.marquee-content {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: marquee 40s linear infinite;
    will-change: transform;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.story-card {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    flex-shrink: 0;
    width: 440px;
    height: 560px;
}

.story-card:hover {
    transform: scale(1.02);
}

.story-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

.story-card:hover .story-image {
    transform: scale(1.08);
}

/* Gradient Overlay */
.story-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}

.story-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 32px;
    z-index: 3;
    color: white;
    text-align: left;
}

.story-stat {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 2px;
    line-height: 1;
    letter-spacing: -0.03em;
}

.story-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1;
    letter-spacing: -0.02em;
}

.story-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.story-author span:first-child {
    font-weight: 600;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.story-author span:last-child {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.story-stat {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.story-label {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 24px;
}

.story-author {
    display: flex;
    flex-direction: column;
}

.story-author span:first-child {
    font-weight: 700;
}

.story-author span:last-child {
    font-size: 14px;
    color: var(--text-muted);
}

@media (min-width: 992px) {
    .section-stories {
        padding: 80px 0;
    }

    .stories-header {
        margin-bottom: 40px !important;
        margin-top: 0 !important;
    }

    .story-card {
        width: 360px;
        height: 460px;
        border-radius: 24px;
    }

    .story-content {
        padding: 24px;
    }

    .story-stat {
        font-size: 28px;
        margin-bottom: 4px;
    }

    .story-label {
        font-size: 15px;
        margin-bottom: 16px;
    }
}

h2 {
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    letter-spacing: -0.03em;
}

/* Tabs Section */
.section-tabs {
    padding: var(--section-padding);
}

.section-tabs .container {
    max-width: 1240px;
}

.tabs-menu {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    padding: 16px 0;
    font-weight: 600;
    font-size: 17px;
    color: #71717a;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.tab-btn.active {
    color: #000000;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000000;
}

#tab-content-area {
    background-color: #FCFBF8;
    border-radius: 48px;
    padding: 64px 80px;
    height: 560px;
    /* Fixed height for consistency */
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
    margin-top: 32px;
    overflow: hidden;
}

.tab-content {
    display: grid;
    grid-template-columns: 42% 58%;
    gap: 64px;
    align-items: center;
    opacity: 1;
}

.tab-visual {
    background: transparent;
    border-radius: 0;
    aspect-ratio: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.tab-visual img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

@media (min-width: 992px) {
    .section-tabs {
        padding: 40px 0 100px;
    }

    .section-tabs .max-width-900 {
        margin-bottom: 32px !important;
    }

    .tabs-menu {
        margin-bottom: 16px;
        gap: 32px;
    }

    #tab-content-area {
        height: 460px;
        padding: 40px 56px;
        border-radius: 32px;
        margin-top: 16px;
    }

    .tab-visual img {
        max-height: 380px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }

    .tab-visual img.tab-img-scaled {
        transform: scale(1.35);
        transform-origin: center;
    }

    .tab-content {
        gap: 32px;
    }

    .tab-text h3 {
        font-size: 24px !important;
        margin-bottom: 12px !important;
    }

    .tab-text p {
        font-size: 15px !important;
    }
}

/* Review Section Replica */
.section-reviews {
    padding: 140px 0 80px;
    background-image: url('../uploads/69c17d56a116eb5b3e4d5a73_b595b61dc8ceac906ac9a999ecba46bc_hero-frame.avif');
    background-size: cover;
    background-position: center;
    background-color: #00d26a;
    text-align: center;
    overflow: hidden;
    position: relative;
    border-radius: 80px 80px 0 0;
    margin-top: -80px;
    z-index: 10;
}

/* Dark overlay to make text pop if needed, though image looks green */
.section-reviews::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

.reviews-header {
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

.reviews-header .h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 32px;
    letter-spacing: -0.04em;
}

.reviews-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.badge-item {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    padding: 10px 20px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.reviews-summary-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
}

.reviews-summary-text .stars {
    color: #ffffff;
    margin: 0 2px;
    font-size: 18px;
    display: inline-block;
    float: none;
}

/* Marquee */
.marquee-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content-row {
    display: flex;
    gap: 24px;
    width: max-content;
}

.marquee-forward {
    animation: marquee-scroll-fwd 60s linear infinite;
}

.marquee-reverse {
    animation: marquee-scroll-rev 60s linear infinite;
}

@keyframes marquee-scroll-fwd {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 12px));
    }
}

@keyframes marquee-scroll-rev {
    0% {
        transform: translateX(calc(-50% - 12px));
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes marquee-scroll-fwd-mob {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 5px));
    }
}

@keyframes marquee-scroll-rev-mob {
    0% {
        transform: translateX(calc(-50% - 5px));
    }

    100% {
        transform: translateX(0);
    }
}

/* Review Card Mini */
.review-card-mini {
    background: #c3eccf;
    padding: 24px;
    border-radius: 28px;
    width: 360px;
    text-align: left;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    transition: transform 0.3s ease;
    cursor: default;
}

.review-card-mini:hover {
    transform: translateY(-5px);
}

.stars-mini {
    color: #14151a;
    font-size: 16px;
    margin-bottom: 16px;
}

.review-text {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    color: #14151a;
    margin-bottom: 16px;
}

.review-author-mini {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
}

.review-author-mini img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #eee;
}

.review-author-mini span {
    font-weight: 700;
    font-size: 15px;
    color: #14151a;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .review-card-mini {
        width: 320px;
        padding: 24px;
        min-height: 200px;
    }

    .reviews-header .h1 {
        font-size: 2.5rem;
    }
}

/* Company Beliefs Section */
.section-beliefs {
    border-radius: 80px 80px 0 0;
    margin-top: -80px;
    position: relative;
    z-index: 5;
    padding: 140px 0;
    background-color: #FAF9F6;
    /* More accurate cream color */
    color: #14151a;
}

.beliefs-grid {
    display: grid;
    grid-template-columns: 38% 62%;
    gap: 100px;
    align-items: flex-start;
}

.beliefs-left {
    position: sticky;
    top: 140px;
}

.beliefs-h2 {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.0;
    margin-bottom: 80px;
    letter-spacing: -0.06em;
    max-width: 520px;
    color: #14151a;
}

.ceo-profile {
    position: relative;
    width: 100%;
}

.ceo-image-wrap {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.ceo-image {
    width: 100%;
    height: auto;
    border-radius: 40px;
    object-fit: cover;
    display: block;
}

.ceo-info {
    margin-top: 24px;
}

.ceo-name {
    font-weight: 700;
    font-size: 14px;
    color: #14151a;
    margin-bottom: 2px;
}

.ceo-title {
    font-size: 13px;
    color: #14151a;
    opacity: 0.8;
    font-weight: 500;
}

.beliefs-right {
    display: flex;
    flex-direction: column;
}

.belief-item {
    display: grid;
    grid-template-columns: 42% 58%;
    gap: 40px;
    padding: 72px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.belief-item:first-child {
    border-top: none;
    padding-top: 0;
}

.belief-item h3 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: #14151a;
    letter-spacing: -0.03em;
    padding-right: 20px;
}

.belief-item p {
    font-size: 15px;
    line-height: 1.6;
    color: #14151a;
    opacity: 0.85;
    font-weight: 500;
}

@media (max-width: 1200px) {
    .beliefs-grid {
        gap: 60px;
    }

    .beliefs-h2 {
        font-size: 48px;
    }
}

@media (max-width: 991px) {
    .section-beliefs {
        padding: 80px 0;
    }

    .beliefs-grid {
        grid-template-columns: 1fr;
        gap: 64px;
    }

    .beliefs-left {
        position: static;
    }

    .beliefs-h2 {
        max-width: 100%;
        font-size: 42px;
    }

    .belief-item {
        padding: 48px 0;
    }
}

@media (max-width: 768px) {
    .belief-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ceo-signature {
        width: 140px;
        left: -20px;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 64px;
}

.footer-col h5 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    color: var(--text-muted);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-main);
    font-size: 15px;
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--divider);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
}

@media (max-width: 991px) {
    .nav-links {
        display: none;
    }

    #mobile-toggle {
        display: block !important;
    }

    .nav-btns {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tab-content {
        grid-template-columns: 1fr;
    }

    .nav-links.active {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 0 !important;
        /* Fixed: Cover full viewport on mobile, removing unwanted top space */
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        /* Fixed: Full height viewport */
        background: #fafbfa !important;
        /* Match warm off-white drawer background */
        padding: 24px 20px !important;
        box-sizing: border-box !important;
        gap: 24px !important;
        box-shadow: none !important;
        border-top: none !important;
        z-index: 99999 !important;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: var(--section-padding-mobile);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* lofingo Testimonials Section Replica */
.section-lofingo-testimonials {
    border-radius: 80px 80px 0 0;
    margin-top: -80px;
    position: relative;
    z-index: 5;
    padding: 140px 0 80px;
    background-color: #fff;
    overflow: hidden;
    width: 100%;
}

.lofingo-testimonials-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.lofingo-testimonials-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: #14151a;
    letter-spacing: -0.03em;
}

.lofingo-testimonials-nav {
    display: flex;
    gap: 12px;
}

.lofingo-testimonials-nav .nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #f5f7f9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #14151a;
}

.lofingo-testimonials-nav .nav-btn:hover {
    background: #eef2f6;
    border-color: #14151a;
    transform: scale(1.05);
}

.lofingo-testimonials-wrapper {
    width: 100%;
    overflow: hidden;
    /* Hide the cards that go off-screen */
}

.lofingo-testimonials-slider {
    display: flex;
    gap: 32px;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 10px 0 30px;
    /* This padding centers the first card in the middle of the viewport */
    padding-left: calc(50vw - 230px);
    padding-right: calc(50vw - 230px);
}

.lofingo-card {
    flex: 0 0 460px;
    /* Adjusted for a slim and sleek look */
    height: 480px;
    border-radius: 40px;
    /* Slightly larger radius for premium look */
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.5s ease;
    background-color: #f9f9f9;
}

/* Add a slight dim to non-active cards or keep them clear as per user image */
.lofingo-card:not(.active) {
    /* opacity: 0.8; */
}

.lofingo-card.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

.lofingo-card.has-play .play-btn {
    position: absolute;
    bottom: 32px;
    left: 32px;
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 2;
    cursor: pointer;
}

.lofingo-card.content-card {
    background-color: #FCFBF8;
    padding: 40px;
    justify-content: space-between;
}

.card-bg-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../uploads/69d931546ebac88f640b3393_testimonials-bg.svg');
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    z-index: 0;
}

.hero-card-bg-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../uploads/hero-bg-pattern.svg');
    background-size: cover;
    background-position: center;
    opacity: 0.55;
    z-index: 0;
    pointer-events: none;
}

.hero-mobile-bg-svg {
    display: none;
}

.card-content-top {
    position: relative;
    z-index: 1;
}

.lofingo-card .quote {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: #14151a;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.lofingo-card .attribution {
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
}

.btn-learn-more {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #064e3b;
    color: white;
    padding: 12px 24px;
    border-radius: 99px;
    font-size: 15px;
    font-weight: 700;
    width: fit-content;
    margin-top: 32px;
}

.card-metrics {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 32px;
    margin-top: auto;
}

.metric .stat {
    font-size: 28px;
    font-weight: 800;
    color: #14151a;
}

.metric .label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}

/* Free Guides Section */
.section-free-guides {
    border-radius: 80px 80px 0 0;
    margin-top: -80px;
    position: relative;
    z-index: 5;
    padding: 140px 0 100px;
    background-color: #fff;
}

/* Responsive Line Break Utility Classes */
.mob-only-br {
    display: none !important;
}

.desk-only-br {
    display: inline !important;
}

.guides-h2 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 40px;
    letter-spacing: -0.04em;
    color: #14151a;
}

.guides-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    height: 600px;
}

.guide-card {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    cursor: pointer;
}

.guide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.guide-card:hover .guide-img {
    transform: scale(1.1);
}

.guide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    z-index: 1;
}

.guide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: white;
}

.guide-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0;
    max-width: 100%;
    letter-spacing: -0.02em;
}

.card-large .guide-title {
    font-size: 26px;
    line-height: 1.1;
}

.guide-card .play-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 3;
}

/* Right Stack */
.guides-right-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stack-top {
    display: flex;
    gap: 24px;
    flex: 3;
}

.card-small {
    flex: 1;
}

.stack-bottom {
    flex: 1;
}

.card-horizontal {
    height: 100%;
    background-color: #C6F0D1;
}

.card-horizontal .guide-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    color: #14151a;
    padding: 0 40px;
}

.horizontal-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.03em;
}

.horizontal-p {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.7;
}

.arrow-btn {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

@media (max-width: 1200px) {
    .guides-grid {
        height: 540px;
    }
}

@media (max-width: 991px) {
    .section-free-guides {
        padding: 80px 0;
    }

    .guides-grid {
        grid-template-columns: 1fr;
        height: auto;
        gap: 20px;
    }

    .card-large {
        height: 480px;
    }

    .stack-top {
        flex-direction: column;
        gap: 20px;
    }

    .card-small {
        height: 380px;
    }

    .card-horizontal {
        height: 160px;
    }

    .card-horizontal .guide-content {
        padding: 0 32px;
    }
}

@media (max-width: 768px) {
    .guides-h2 {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .card-horizontal .guide-content {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 20px;
    }

    .arrow-btn {
        position: absolute;
        right: 32px;
        top: 50%;
        transform: translateY(-50%);
    }
}


@media (max-width: 991px) {
    .lofingo-card {
        flex: 0 0 480px;
        height: 520px;
    }

    .lofingo-testimonials-slider {
        padding-left: calc(50vw - 240px);
        padding-right: calc(50vw - 240px);
    }

    .lofingo-card .quote {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .section-lofingo-testimonials {
        padding: 60px 0;
    }

    .lofingo-card {
        flex: 0 0 300px;
        height: 460px;
        padding: 32px;
    }

    .lofingo-testimonials-slider {
        padding-left: calc(50vw - 150px);
        padding-right: calc(50vw - 150px);
        gap: 16px;
    }

    .lofingo-card .quote {
        font-size: 20px;
    }
}

/* Bottom CTA Section */
.section-cta-grow {
    margin-top: 18px;
    z-index: 15;
    height: 41rem;
    display: flex;
    align-items: center;
    background-color: #00d26a;
    background-image: url('../uploads/69c17d56a116eb5b3e4d5a73_b595b61dc8ceac906ac9a999ecba46bc_hero-frame.avif');
    background-size: cover;
    background-position: center;
    border-radius: 80px 80px 0 0;
    position: relative;
    width: 100%;
    overflow: visible;
}

.cta-grow-content-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    position: relative;
}

.cta-grow-content {
    position: relative;
    top: -40px;
    left: -40px;
    z-index: 2;
}

.cta-grow-h2 {
    color: #fff;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 40px;
    letter-spacing: -0.04em;
    max-width: 600px;
}

.cta-grow-btns {
    display: flex;
    gap: 16px;
}

.btn-cta-white {
    background-color: #fff;
    color: #14151a !important;
    border-radius: 99px;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta-white:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
}

.btn-cta-glass {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff !important;
    border-radius: 99px;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 15px;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta-glass:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.cta-grow-visual {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.cta-mobile-img {
    height: 601px;
    width: auto;
    max-width: none;
    filter: drop-shadow(0 40px 100px rgba(0, 0, 0, 0.4));
    transform: rotate(2deg);
    position: absolute;
    right: -153px;
    top: -325px;
    z-index: 5;
}

.cta-mobile-img-mobile {
    display: none;
}

/* Footer Redesign */
.main-footer {
    background-color: #fff;
    border-radius: 80px 80px 0 0;
    margin-top: -160px;
    /* Overlap the green section more */
    position: relative;
    z-index: 20;
    padding: 140px 0 60px;
    box-shadow: 0 -20px 80px rgba(0, 0, 0, 0.04);
}

.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 100px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 34px;
    font-weight: 800;
    color: #000;
    letter-spacing: -0.06em;
}

.footer-top-btns {
    display: flex;
    gap: 16px;
}

.btn-footer-primary {
    background-color: #0a3d1d;
    color: #fff !important;
    border-radius: 99px;
    padding: 16px 32px;
    font-weight: 700;
    font-size: 15px;
}

.btn-footer-secondary {
    background-color: #f3f4f6;
    color: #14151a !important;
    border-radius: 99px;
    padding: 16px 32px;
    font-weight: 700;
    font-size: 15px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 64px;
    margin-bottom: 100px;
}

.footer-links-grid.secondary-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 120px;
}

.footer-col h6 {
    font-size: 12px;
    text-transform: capitalize;
    color: #9ca3af;
    margin-bottom: 32px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.footer-col ul li {
    margin-bottom: 16px;
}

.footer-col ul li a {
    font-size: 16px;
    font-weight: 700;
    color: #14151a;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: #00d26a;
}

.footer-bottom-bar {
    border-top: 1px solid #f3f4f6;
    padding-top: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #14151a;
    opacity: 0.7;
    font-weight: 600;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: inherit;
}

.footer-bottom-links a:hover {
    color: #00d26a;
}

@media (max-width: 1200px) {
    .cta-grow-h2 {
        font-size: 52px;
    }

    .cta-mobile-img {
        width: 500px;
        right: -80px;
    }

    .footer-links-grid {
        gap: 40px;
    }
}

@media (max-width: 991px) {
    .section-cta-grow {
        padding: 80px 0 440px;
        text-align: center;
        overflow: hidden;
    }

    .cta-grow-content-wrapper {
        grid-template-columns: 1fr;
    }

    .cta-grow-h2 {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-grow-btns {
        justify-content: center;
    }

    .cta-mobile-img {
        position: absolute;
        bottom: -120px;
        top: auto;
        right: 50%;
        transform: translateX(50%) rotate(-10deg);
        width: 440px;
    }

    .footer-links-grid,
    .footer-links-grid.secondary-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .cta-grow-h2 {
        font-size: 36px;
    }

    .cta-grow-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn-cta-white,
    .btn-cta-glass {
        width: 100%;
        text-align: center;
    }

    .footer-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .footer-links-grid,
    .footer-links-grid.secondary-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
}

/* Our Story Page Styles */
.story-hero {
    background-color: #FDFCF9;
    padding-top: 140px;
    padding-bottom: 180px;
}

.story-hero-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: end;
    margin-bottom: 60px;
}

.story-hero-h1 {
    font-size: 56px;
    line-height: 1.1;
    letter-spacing: -0.05em;
    margin: 0;
    font-weight: 800;
    max-width: 600px;
}

.story-hero-intro {
    padding-bottom: 10px;
}

.story-hero-intro p {
    font-size: 20px;
    color: var(--text-main);
    line-height: 1.5;
    max-width: 480px;
    margin: 0;
    font-weight: 500;
}

.story-video-container {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    aspect-ratio: 16 / 7;
    cursor: pointer;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
    max-width: 1080px;
    margin: 0 auto;
}

.story-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.story-video-container:hover .story-video-thumb {
    transform: scale(1.05);
}

.story-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 40%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 48px;
}

.video-label {
    color: white;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.play-icon-circle-lg {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.story-video-container:hover .play-icon-circle-lg {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Blue Mission Section */
.story-mission {
    background-color: #10438E;
    background-image: url('../uploads/69cbbba4f97666a6e816977b_d961bd3d071ed066d5b05b02a3db4f00_about_local-bg.avif');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 140px 0;
    border-radius: 80px 80px 0 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.mission-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 100px;
    margin-bottom: 120px;
}

.mission-row:last-child {
    margin-bottom: 0;
    margin-top: 120px;
}

.mission-left h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1;
    letter-spacing: -0.04em;
    margin: 0;
    font-weight: 800;
}

.mission-right p {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 28px;
    font-weight: 500;
    opacity: 0.95;
}

.mission-right p:last-child {
    margin-bottom: 0;
}

.lofingos-marquee-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    margin-top: 80px;
    margin-bottom: 80px;
    position: relative;
}

.lofingos-marquee-content {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marquee-slow 60s linear infinite;
}

.lofingo-card-mini {
    width: 320px;
    height: 320px;
    border-radius: 24px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.lofingo-card-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes marquee-slow {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


@media (max-width: 992px) {
    .story-hero-header {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .mission-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .story-hero-intro p {
        max-width: 100%;
    }
}

/* Story Stats Section */
.story-stats {
    background-color: #FDF8F3;
    padding: 160px 0;
    border-radius: 80px 80px 0 0;
    margin-top: -80px;
    position: relative;
    z-index: 11;
}

.story-stats .container {
    max-width: 1140px;
}

.stats-header {
    margin-bottom: 120px;
}

.stats-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    max-width: 700px;
    color: #14151a;
    letter-spacing: -0.03em;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px 160px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number-wrapper {
    display: flex;
    align-items: baseline;
    font-size: 110px;
    font-weight: 800;
    line-height: 0.9;
    margin-bottom: 20px;
    letter-spacing: -0.06em;
    color: #14151a;
}

.stat-number {
    display: flex;
    overflow: hidden;
    height: 1em;
}

.stat-prefix,
.stat-suffix {
    font-size: 0.85em;
    font-weight: 800;
}

.stat-label {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #14151a;
    letter-spacing: -0.01em;
}

.stat-desc {
    font-size: 15px;
    color: #6b7280;
    font-weight: 500;
    line-height: 1.5;
    max-width: 320px;
}

/* Rolling Digit Animation */
.rolling-digit {
    display: flex;
    flex-direction: column;
    transition: transform 2.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.rolling-digit span {
    display: block;
    height: 1em;
    text-align: center;
}

@media (max-width: 991px) {
    .story-stats {
        padding: 100px 0;
        border-radius: 40px 40px 0 0;
        margin-top: -40px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .stat-number-wrapper {
        font-size: 72px;
    }

    .stats-title {
        font-size: 28px;
    }
}

/* How It Started Section */
.story-how-started {
    background-color: white;
    border-radius: 80px 80px 0 0;
    padding: 160px 0;
    margin-top: -80px;
    position: relative;
    z-index: 12;
}

.how-started-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    /* Shifted balance slightly more to the right */
    gap: 80px;
    align-items: center;
}

.how-started-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 40px;
    letter-spacing: -0.05em;
    color: #14151a;
}

.how-started-subtitle {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 24px;
    color: #14151a;
    max-width: 500px;
}

.how-started-text p {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 24px;
    font-weight: 500;
}

.how-started-visual {
    margin-right: -123px;
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Shifted to the right side of the container */
}

.collage-wrap {
    position: relative;
    width: 700px;
    height: 520px;
}

.collage-img {
    position: absolute;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    background-color: #eee;
}

.collage-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-hugging {
    width: 155px;
    height: 155px;
    top: 45px;
    left: 0;
    z-index: 2;
}

.img-founders {
    width: 320px;
    height: 480px;
    top: 0;
    left: 190px;
    z-index: 1;
}

.img-mom-dog {
    width: 155px;
    height: 155px;
    bottom: 45px;
    right: 0;
    z-index: 3;
}

@media (max-width: 1300px) {
    .collage-wrap {
        transform: scale(0.85);
        transform-origin: right center;
        /* Keep it pinned to the right when scaling */
    }
}

@media (max-width: 1200px) {
    .collage-wrap {
        width: 100%;
        max-width: 550px;
        transform: scale(0.8);
    }
}

@media (max-width: 1100px) {
    .how-started-title {
        font-size: 48px;
    }

    .how-started-grid {
        gap: 40px;
        grid-template-columns: 1fr;
    }

    .how-started-visual {
        justify-content: center;
        height: 500px;
    }
}

@media (max-width: 991px) {
    .story-how-started {
        background-color: #FCF8F3;
        border-radius: 80px 80px 0 0;
        padding: 160px 0;
        margin-top: -80px;
        position: relative;
        z-index: 12;
    }

    .how-started-grid {
        gap: 60px;
    }

    .how-started-visual {
        height: 450px;
    }

    .how-started-title {
        font-size: 40px;
    }

    .collage-wrap {
        margin: 0 auto;
        transform: scale(0.7);
        transform-origin: center;
    }
}

/* Vision Section */
.story-vision {
    background-color: #fdf8f4;
    border-radius: 80px 80px 0 0;
    padding: 160px 0 240px;
    margin-top: -80px;
    position: relative;
    z-index: 13;
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: flex-start;
}

.vision-title {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #14151a;
    max-width: 520px;
}

.timeline {
    position: relative;
    padding-left: 40px;
    margin-top: 10px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 9px;
    bottom: 0;
    width: 2px;
    background-color: #e5e7eb;
}

.timeline-progress {
    position: absolute;
    left: 4px;
    top: 9px;
    width: 2px;
    background-color: #088924;
    height: 0;
    z-index: 1;
    transition: height 0.1s ease-out;
}

.timeline-item {
    position: relative;
    margin-bottom: 64px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 4px;
    width: 10px;
    height: 10px;
    background-color: #088924;
    border-radius: 50%;
    z-index: 3;
}

.timeline-date {
    font-size: 18px;
    font-weight: 700;
    color: #088924;
    margin-bottom: 12px;
    line-height: 1;
}

.timeline-text {
    font-size: 20px;
    font-weight: 700;
    color: #14151a;
    line-height: 1.4;
    margin-bottom: 8px;
    max-width: 500px;
}

.timeline-stat {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.4;
}

@media (max-width: 1100px) {
    .vision-grid {
        gap: 60px;
    }
}

@media (max-width: 991px) {
    .story-vision {
        padding: 120px 0 160px;
        border-radius: 60px 60px 0 0;
        margin-top: -60px;
    }

    .vision-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .vision-title {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .story-vision {
        padding: 80px 0 120px;
        border-radius: 40px 40px 0 0;
        margin-top: -40px;
    }

    .timeline-text {
        font-size: 18px;

    }
}

/* Partner Request Page Styles */
.partner-hero {
    padding-top: 160px;
    padding-bottom: 225px;
    background-color: var(--bg-white);
}

.partner-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

.partner-hero-left {
    padding-top: 40px;
}

.partner-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-main);
    max-width: 500px;
}

.partner-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 480px;
}

.partner-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.rating-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.rating-text {
    font-size: 14px;
    color: var(--text-supermuted);
}

.btn-partner-cta {
    background-color: #0a3d1d;
    color: white;
    padding: 18px 32px;
    border-radius: 99px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-partner-cta:hover {
    background-color: #072b14;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(10, 61, 29, 0.2);
}

/* Right Side Styles */
.demo-intro {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--text-main);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.feature-item {
    background: white;
    padding: 24px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.feature-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.feature-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}

.feature-text h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
}

.feature-text p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.awards-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-top: 16px;
}

.award-item {
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    flex: 1;
    border: 1px solid #f0f0f0;
}

.award-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.testimonial-card {
    background-color: #f6f1eb;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.testimonial-user {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-user img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content .quote {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text-main);
}

.testimonial-content .author {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 992px) {
    .partner-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .partner-hero-left {
        padding-top: 0;
        text-align: center;
    }

    .partner-title,
    .partner-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .partner-rating {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .partner-title {
        font-size: 36px;
    }

    .testimonial-card {
        flex-direction: column;
        text-align: center;
    }

    .awards-row {
        flex-direction: column;
    }
}

/* Mobile-only testimonials container default hidden on desktop */
.section-testimonials-mobile {
    display: none;
}

/* Mobile-only header elements default hidden on desktop */
.mobile-nav-btns {
    display: none;
}

/* ==========================================================================
   MOBILE RESPONSIVE HEADER & NAVIGATION (BREAKPOINT: 1024PX)
   These rules override desktop header layout cleanly without touching desktop screens.
   ========================================================================== */
@media (max-width: 1024px) {

    /* Hide desktop-only elements */
    .nav-btns {
        display: none !important;
    }

    body.menu-open {
        overflow: hidden !important;
        /* Prevent page scrolling when mobile menu is open */
    }

    /* Show hamburger toggle button */
    #mobile-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        border: none !important;
        color: var(--primary) !important;
        cursor: pointer !important;
        padding: 8px !important;
        z-index: 10000 !important;
    }

    /* Animate hamburger to close toggle */
    #mobile-toggle.active .icon-hamburger {
        display: none !important;
    }

    #mobile-toggle.active .icon-close {
        display: block !important;
    }

    /* Mobile drawer overlay styling */
    .nav-links {
        display: none !important;
    }

    .nav-links.active {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 0 !important;
        /* Fixed: Cover full viewport on mobile, removing unwanted top space */
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        /* Fixed: Full height viewport */
        background-color: #fafbfa !important;
        /* Match warm off-white drawer background */
        padding: 24px 20px !important;
        box-sizing: border-box !important;
        gap: 0 !important;
        box-shadow: none !important;
        border-top: none !important;
        overflow-y: auto !important;
        z-index: 99999 !important;
    }

    /* Adjust position if header shrinks on scroll - Disabled for full screen mobile drawer */
    #main-header[style*="height: 70px"]~* .nav-links.active,
    header[style*="height: 70px"] .nav-links.active {
        top: 0 !important;
        height: 100vh !important;
    }

    /* Mobile Menu Row Item styling */
    .nav-links .nav-item {
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        border-bottom: 1px solid var(--divider) !important;
        position: static !important;
        /* Override absolute dropdown centering */
    }

    .nav-links .nav-link,
    .nav-links>.nav-link {
        width: 100% !important;
        font-size: 18px !important;
        font-weight: 600 !important;
        color: var(--text-main) !important;
        padding: 18px 0 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-bottom: none !important;
    }

    /* Chevron icon animations */
    .nav-links .nav-link svg {
        width: 16px !important;
        height: 16px !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .nav-links .nav-item.open>.nav-link svg {
        transform: rotate(180deg) !important;
    }

    /* Mobile dropdown reset (override absolute position desktop grid) */
    .nav-links .dropdown {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 0 20px 0 !important;
        margin: 0 !important;
        display: none !important;
        /* Hidden by default, toggled via .open class */
        opacity: 1 !important;
        visibility: visible !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        background: transparent !important;
        transition: none !important;
    }

    .nav-links .nav-item.open .dropdown {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Reset backdrop */
    .nav-links .dropdown-backdrop {
        display: none !important;
    }

    /* Prevent body blur filter conflicts on mobile */
    body:has(.nav-links.active) main,
    body:has(.nav-links.active) footer,
    body:has(.nav-item:hover .dropdown) main,
    body:has(.nav-item:hover .dropdown) footer {
        filter: none !important;
        pointer-events: auto !important;
    }

    /* Product Dropdown mobile styling */
    .product-links-wrapper {
        padding: 0 !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        border-right: none !important;
    }

    .product-col {
        gap: 20px !important;
    }

    .product-section {
        gap: 12px !important;
    }

    .product-section-title {
        font-size: 13px !important;
        font-weight: 700 !important;
        color: var(--text-supermuted) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
        margin-bottom: 4px !important;
    }

    .product-link {
        font-size: 15px !important;
        font-weight: 500 !important;
        color: var(--text-main) !important;
        padding: 6px 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .product-icon {
        width: 20px !important;
        height: 20px !important;
        color: var(--text-muted) !important;
    }

    .product-icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    .product-cards {
        display: none !important;
        /* Hide massive image cards to optimize vertical space */
    }

    /* Company Dropdown mobile styling */
    .dropdown-company {
        width: 100% !important;
    }

    .company-links-wrapper {
        padding: 0 !important;
        gap: 20px !important;
        border-right: none !important;
    }

    .company-section {
        gap: 12px !important;
    }

    .company-section-title {
        font-size: 13px !important;
        font-weight: 700 !important;
        color: var(--text-supermuted) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
        margin-bottom: 4px !important;
    }

    .company-link {
        font-size: 15px !important;
        font-weight: 500 !important;
        color: var(--text-main) !important;
        padding: 6px 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .company-icon {
        width: 20px !important;
        height: 20px !important;
        color: var(--text-muted) !important;
    }

    .company-icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    .company-cards {
        display: none !important;
        /* Hide massive hire cards */
    }

    /* Resources Dropdown mobile styling */
    .dropdown-resources {
        width: 100% !important;
    }

    .resources-links-col {
        padding: 0 !important;
        gap: 12px !important;
        border-right: none !important;
        background-color: transparent !important;
    }

    .resources-link {
        font-size: 15px !important;
        font-weight: 500 !important;
        color: var(--text-main) !important;
        padding: 6px 0 !important;
    }

    .resources-cards-wrapper {
        display: none !important;
        /* Hide massive case studies */
    }

    /* Mobile drawer footer buttons styling */
    .mobile-nav-btns {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        margin-top: auto !important;
        /* Push to the absolute bottom of the drawer content */
        padding-top: 32px !important;
        width: 100% !important;
    }

    .mobile-nav-btns .btn-login {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 14px 24px !important;
        font-weight: 600 !important;
        font-size: 16px !important;
        border-radius: var(--radius-md) !important;
        border: 1px solid var(--divider) !important;
        color: var(--text-main) !important;
        background-color: transparent !important;
        text-align: center !important;
        cursor: pointer !important;
    }

    .mobile-nav-btns .btn-primary {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 14px 24px !important;
        font-weight: 600 !important;
        font-size: 16px !important;
        border-radius: var(--radius-md) !important;
        color: white !important;
        background-color: var(--primary) !important;
        text-align: center !important;
        cursor: pointer !important;
    }
}

/* ==========================================================================================
   LOFINGO HOMEPAGE MOBILE REDESIGN & OPTIMIZATION (BREAKPOINT: 768PX)
   These rules are appended at the end to guarantee high-priority override 
   for smaller viewports while keeping the desktop styling 100% untouched.
   ========================================================================== */

@media (max-width: 768px) {

    /* 1. Global Reset & Overflows */
    html,
    body {
        overflow-x: clip !important;
        width: 100% !important;
    }

    /* 2. Container & Spacing Hierarchy */
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100% !important;
    }

    section {
        padding: 50px 0 !important;
        /* Compact, balanced padding for mobile */
    }

    /* 3. Header & Navigation Mobilization */
    header {
        height: 70px !important;
    }

    .nav-container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 10px !important;
        height: 100% !important;
    }

    .logo {
        font-size: 20px !important;
        letter-spacing: -0.5px !important;
        margin-left: -5px !important;
    }

    .logo img {
        width: 10rem !important;
    }

    #mobile-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: none !important;
        background: transparent !important;
        color: var(--primary) !important;
        cursor: pointer !important;
        padding: 8px !important;
    }

    .nav-links.active {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 0 !important;
        /* Fixed: Cover full viewport on mobile, removing unwanted top space */
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        /* Fixed: Full height viewport */
        background: #fafbfa !important;
        /* Match warm off-white drawer background */
        padding: 24px 20px !important;
        box-sizing: border-box !important;
        gap: 20px !important;
        box-shadow: none !important;
        border-top: none !important;
        overflow-y: auto !important;
        z-index: 99999 !important;
    }

    .nav-links .nav-item {
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .nav-links .nav-link {
        width: 100% !important;
        font-size: 17px !important;
        font-weight: 600 !important;
        padding: 12px 0 !important;
        border-bottom: 1px solid #f3f4f6 !important;
        justify-content: space-between !important;
    }

    /* 4. Hero Section */
    .hero {
        padding-top: 110px !important;
        padding-bottom: 50px !important;
        background-color: white !important;
    }

    .hero .container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }

    .hero h1 {
        order: 2 !important;
        font-size: 29px !important;
        line-height: 1.15 !important;
        font-weight: 800 !important;
        letter-spacing: -0.04em !important;
        color: #14151a !important;
        text-align: center !important;
        margin-top: 0 !important;
        margin-bottom: 36px !important;
        max-width: 100% !important;
        padding: 0 4px !important;
    }

    .hero h1 .text-muted {
        color: #14151a !important;
        /* Force same dark color as visual */
    }

    .review-row {
        order: 1 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        margin-bottom: 20px !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
    }

    .review-row .stars {
        display: flex !important;
        align-items: center !important;
    }

    .review-row .stars svg {
        width: 82px !important;
        height: 18px !important;
    }

    .review-row .stars svg path {
        fill: #14151a !important;
        /* Charcoal black stars as in design image */
    }

    .review-row .text-muted p,
    .review-row .text-supermuted p {
        font-size: 14.5px !important;
        font-weight: 500 !important;
        color: rgba(20, 21, 26, 0.5) !important;
        margin: 0 !important;
    }

    /* Hero Image mockup scaling & green container overlap */
    .hero-visual {
        order: 3 !important;
        position: relative !important;
        width: 100% !important;
        max-width: 345px !important;
        /* Slightly wider */
        height: 220px !important;
        /* Even shorter background block */
        min-height: auto !important;
        /* Override desktop min-height conflict! */
        margin: 85px auto 0 !important;
        /* Added more space to prevent phone top from overlapping title */
        padding: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: flex-end !important;
        overflow: visible !important;
        background-image: url('../uploads/69c17d56a116eb5b3e4d5a73_b595b61dc8ceac906ac9a999ecba46bc_hero-frame.avif') !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-color: #00d26a !important;
        border-radius: 36px !important;
        /* Highly rounded top corners */
    }

    .hero-bg-accent {
        display: none !important;
        /* Hidden on mobile to use direct background on container */
    }

    .hero-mobile-bg-svg {
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background-image: url('../uploads/hero-bg-pattern.svg') !important;
        background-size: cover !important;
        background-position: center !important;
        opacity: 0.55 !important;
        z-index: 1 !important;
        border-radius: 36px !important;
        pointer-events: none !important;
    }

    .phone-mockup-wrapper {
        position: relative !important;
        z-index: 2 !important;
        height: 310px !important;
        width: auto !important;
        aspect-ratio: 780 / 1598 !important;
        margin: 0 auto !important;
        display: block !important;
        bottom: 0 !important;
        margin-top: 0 !important;
        filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.18)) !important;
    }

    .phone-mockup-wrapper .hero-feature-img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        position: relative !important;
        z-index: 1 !important;
    }

    .phone-screen-container {
        border-radius: 20px !important;
    }

    /* Horizontal Search/Grader Input Bar overlapping visual bottom */
    .hp-input {
        order: 4 !important;
        position: relative !important;
        z-index: 10 !important;
        width: 100% !important;
        max-width: 340px !important;
        /* Extends 10px wider on left/right than green block for high-end layered feel */
        margin: -32px auto 0 !important;
        /* Overlaps bottom of visual container exactly */
        padding: 0 !important;
    }

    .hp-input_form {
        display: flex !important;
        flex-direction: row !important;
        /* Horizontal inline bar */
        align-items: center !important;
        justify-content: space-between !important;
        background: white !important;
        border-radius: 18px !important;
        padding: 6px 6px 6px 20px !important;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03) !important;
        border: 1px solid rgba(0, 0, 0, 0.04) !important;
        width: 100% !important;
        height: 60px !important;
        gap: 8px !important;
    }

    .hp-input_form-input {
        flex: 1 !important;
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        color: #14151a !important;
        height: 100% !important;
        text-align: left !important;
    }

    .hp-input_form-input::placeholder {
        color: #9ca3af !important;
    }

    .hp-input_form-input:focus {
        outline: none !important;
        box-shadow: none !important;
    }

    .btn.is-grader {
        width: 48px !important;
        height: 48px !important;
        border-radius: 12px !important;
        background-color: #0b4c27 !important;
        /* Very dark forest green button as shown in user's design image */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        box-shadow: none !important;
        transition: all 0.2s ease !important;
    }

    .btn.is-grader .btn-text {
        display: none !important;
        /* Hide text completely to reveal green arrow button */
    }

    .btn.is-grader .icon-20 {
        width: 20px !important;
        height: 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }

    .btn.is-grader svg {
        width: 20px !important;
        height: 20px !important;
    }

    .stories-header {
        margin-bottom: 20px !important;
        margin-top: -10px !important;
        text-align: center !important;
    }

    .stories-header h2 {
        font-size: 22px !important;
        font-weight: 500 !important;
        line-height: 1.2 !important;
        letter-spacing: -0.02em !important;
    }

    .story-card {
        width: 220px !important;
        height: 290px !important;
        border-radius: 16px !important;
    }

    .story-content {
        padding: 16px !important;
    }

    .story-stat {
        font-size: 24px !important;
        margin-bottom: 2px !important;
    }

    .story-label {
        font-size: 12px !important;
        margin-bottom: 8px !important;
    }

    /* 6. Tabs Section */
    .section-tabs {
        padding: 40px 0 !important;
    }

    .section-tabs .h2 {
        font-size: 18px !important;
        font-weight: 500 !important;
        line-height: 1.3 !important;
        margin-bottom: 16px !important;
        letter-spacing: -0.02em !important;
        padding: 0 !important;
    }

    .max-width-900 {
        margin-bottom: 24px !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Elegant Horizontal Swipe Tabs Menu */
    .tabs-menu {
        display: flex !important;
        justify-content: flex-start !important;
        gap: 16px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding-bottom: 6px !important;
        margin-bottom: 16px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
        white-space: nowrap !important;
        scrollbar-width: none !important;
        width: 100% !important;
    }

    .tabs-menu::-webkit-scrollbar {
        display: none !important;
    }

    .tab-btn {
        flex-shrink: 0 !important;
        font-size: 13px !important;
        padding: 8px 4px !important;
    }

    .tab-btn.active {
        color: #14151a !important;
        font-weight: 700 !important;
    }

    .tab-btn.active::after {
        background-color: #00d26a !important;
        /* Premium brand green underline */
        height: 3px !important;
        border-radius: 2px !important;
    }

    #tab-content-area {
        height: auto !important;
        min-height: auto !important;
        /* Override desktop height constraints */
        max-height: none !important;
        overflow: visible !important;
        /* Prevent any clipping of the flowchart image */
        padding: 0 !important;
        /* Flat on the page background */
        border-radius: 0 !important;
        margin-top: 24px !important;
        background: transparent !important;
        /* Transparent container */
        box-shadow: none !important;
        border: none !important;
    }

    .tab-content {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .tab-text {
        display: none !important;
        /* Hide duplicate text on mobile as image contains everything */
    }

    .tab-visual {
        margin-top: 0 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    .tab-visual img,
    .tab-visual svg {
        border-radius: 16px !important;
        width: 100% !important;
        max-width: 280px !important;
        /* Crystal clear readable visual */
        height: auto !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    }

    /* 7. Reviews Section */
    .section-reviews {
        padding: 40px 0 !important;
        margin-top: 0 !important;
        border-radius: 24px 24px 0 0 !important;
    }

    .reviews-header {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .reviews-header .h1 {
        font-size: 24px !important;
        font-weight: 600 !important;
        line-height: 1.25 !important;
        letter-spacing: -0.02em !important;
        margin-bottom: 16px !important;
        color: #ffffff !important;
        max-width: 100% !important;
        padding: 0 16px !important;
    }

    .reviews-badges {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
        margin-bottom: 16px !important;
        width: 100% !important;
    }

    .badge-item {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 250px !important;
        padding: 6px 12px !important;
        border-radius: 100px !important;
        background: rgba(0, 0, 0, 0.15) !important;
        border: none !important;
        backdrop-filter: blur(8px) !important;
        gap: 10px !important;
    }

    .badge-icon {
        width: 24px !important;
        height: 24px !important;
        background: #ffffff !important;
        border-radius: 50% !important;
        padding: 4px !important;
        object-fit: contain !important;
        flex-shrink: 0 !important;
    }

    .badge-item span {
        color: #ffffff !important;
        font-weight: 600 !important;
        font-size: 13px !important;
        letter-spacing: -0.01em !important;
        text-align: left !important;
    }

    .reviews-summary-text {
        font-size: 13px !important;
        font-weight: 500 !important;
        color: rgba(255, 255, 255, 0.8) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        letter-spacing: -0.01em !important;
        margin-top: 4px !important;
    }

    .reviews-summary-text .stars {
        color: #ffffff !important;
        /* Bright solid white stars */
        font-size: 15px !important;
        margin: 0 2px !important;
        line-height: 1 !important;
    }

    .review-card-mini {
        width: 220px !important;
        /* Reduced width for a very neat and tight display */
        padding: 14px 16px !important;
        /* Shrunk padding to make the card compact */
        min-height: 130px !important;
        /* Shrunk min-height to maintain a perfect box ratio */
        border-radius: 16px !important;
        /* Slightly smaller radius to match the card scale */
    }

    .review-text {
        font-size: 13px !important;
        /* Shrunk font size for mobile readability */
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }

    .stars-mini {
        font-size: 12px !important;
        margin-bottom: 8px !important;
    }

    .review-author-mini img {
        width: 24px !important;
        /* Compact author avatar */
        height: 24px !important;
    }

    .review-author-mini span {
        font-size: 11px !important;
        /* Compact author name */
    }

    /* Transform auto-moving marquees into looping continuous marquees scrolling in opposite directions on mobile */
    .marquee-section {
        gap: 4px !important;
        /* Shrunk vertical gap to minimum on mobile */
    }

    .marquee-wrapper {
        overflow-x: hidden !important;
        /* Disable manual swipe touch scrolling and hide scrollbar */
        overflow-y: hidden !important;
        scrollbar-width: none !important;
        /* Hide scrollbars on Firefox */
        width: 100% !important;
        mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent) !important;
        -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent) !important;
        /* Premium loop fade masks on mobile */
        padding: 2px 0 !important;
        /* Minimal vertical padding to keep shadows crisp but maximize tightness */
    }

    .marquee-wrapper::-webkit-scrollbar {
        display: none !important;
        /* Hide scrollbars on Chrome/Safari/Edge */
    }

    .marquee-content-row {
        display: flex !important;
        gap: 10px !important;
        /* Shrunk spacing between individual cards to 10px */
        width: max-content !important;
        padding: 0 !important;
        /* Remove padding to align loop transition mathematically */
    }

    .marquee-forward {
        animation: marquee-scroll-fwd-mob 30s linear infinite !important;
    }

    .marquee-reverse {
        animation: marquee-scroll-rev-mob 30s linear infinite !important;
    }
}

/* Tablet & Mobile Testimonial Styling Override (Up to 991px) */
@media (max-width: 991px) {

    /* 8. Testimonials Section - Tablet & Mobile Optimized Layout */
    .section-lofingo-testimonials {
        border-radius: 24px 24px 0 0 !important;
        margin-top: -20px !important;
        padding: 40px 0 64px 0 !important;
        display: block !important;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(6px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 768px) {

    /* 9. Company Beliefs Section */
    .section-beliefs {
        padding: 40px 0 !important;
        border-radius: 24px 24px 0 0 !important;
        margin-top: -20px !important;
    }

    .beliefs-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .beliefs-h2 {
        font-size: 24px !important;
        font-weight: 600 !important;
        line-height: 1.25 !important;
        letter-spacing: -0.02em !important;
        text-align: center !important;
        margin-bottom: 24px !important;
    }

    .ceo-profile {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        margin-top: 24px !important;
        margin-bottom: 32px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .ceo-image-wrap {
        width: 100% !important;
        max-width: 250px !important;
        margin: 0 auto !important;
    }

    .ceo-info {
        margin-top: 16px !important;
    }

    .ceo-info h3 {
        font-size: 18px !important;
        margin-bottom: 4px !important;
    }

    .ceo-info p {
        font-size: 13px !important;
        margin-bottom: 0 !important;
    }

    .belief-item {
        padding: 16px 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    }

    .belief-item:last-child {
        border-bottom: none !important;
    }

    .belief-item h3 {
        font-size: 16px !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        margin-bottom: 4px !important;
    }

    .belief-item p {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    /* 10. Free Guides Section - Premium Mobile Grid Layout */
    .section-free-guides {
        padding: 40px 0 64px 0 !important;
        background-color: #ffffff !important;
        border-radius: 24px 24px 0 0 !important;
        margin-top: -20px !important;
        position: relative !important;
        z-index: 5 !important;
    }

    .guides-h2 {
        font-size: 24px !important;
        font-weight: 600 !important;
        color: #14151a !important;
        line-height: 1.25 !important;
        letter-spacing: -0.02em !important;
        margin: 0 0 16px 0 !important;
        text-align: left !important;
        padding: 0 4px !important;
    }

    .guides-h2 br {
        display: none !important;
    }

    .guides-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        height: auto !important;
        width: 100% !important;
    }

    .guide-card {
        position: relative !important;
        overflow: hidden !important;
        width: 100% !important;
        background-color: #f3f4f6 !important;
    }

    .guide-card .guide-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
        transition: transform 0.3s ease !important;
    }

    .guide-overlay {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%) !important;
        z-index: 1 !important;
    }

    .guide-content {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        padding: 16px !important;
        z-index: 2 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-end !important;
        box-sizing: border-box !important;
    }

    .card-large {
        height: 240px !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
    }

    .card-large .guide-content {
        padding: 16px !important;
    }

    .card-large .guide-title {
        font-size: 18px !important;
        font-weight: 600 !important;
        line-height: 1.25 !important;
        color: #ffffff !important;
        letter-spacing: -0.02em !important;
        margin: 0 !important;
        max-width: calc(100% - 40px) !important;
    }

    .card-large .play-btn {
        position: absolute !important;
        bottom: 16px !important;
        right: 16px !important;
        width: 32px !important;
        height: 32px !important;
        background: rgba(255, 255, 255, 0.25) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #ffffff !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
        z-index: 3 !important;
        cursor: pointer !important;
        padding: 0 !important;
    }

    .card-large .play-btn svg {
        width: 12px !important;
        height: 12px !important;
        margin-left: 2px !important;
        fill: #ffffff !important;
    }

    .guides-right-stack {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .stack-top {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .card-small {
        height: 160px !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    }

    .card-small .guide-title {
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        color: #ffffff !important;
        letter-spacing: -0.01em !important;
        margin: 0 !important;
    }

    .stack-bottom {
        width: 100% !important;
    }

    .card-horizontal {
        width: 100% !important;
        background: #cbf0d8 !important;
        border-radius: 16px !important;
        padding: 16px !important;
        height: auto !important;
        min-height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        box-shadow: 0 4px 14px rgba(203, 240, 216, 0.15) !important;
        box-sizing: border-box !important;
    }

    .card-horizontal h3 {
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        color: #0b4619 !important;
        margin: 0 !important;
        flex: 1 !important;
    }

    .card-horizontal .guide-content {
        position: static !important;
        padding: 0 !important;
        background: transparent !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        height: auto !important;
    }

    .card-horizontal .text-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        text-align: left !important;
        max-width: calc(100% - 60px) !important;
    }

    .horizontal-title {
        font-size: 19px !important;
        /* Bold high-contrast green title */
        font-weight: 850 !important;
        color: #0b4619 !important;
        margin: 0 !important;
        letter-spacing: -0.03em !important;
    }

    .horizontal-p {
        font-size: 13.5px !important;
        color: #0b4619 !important;
        font-weight: 550 !important;
        opacity: 0.8 !important;
        margin: 0 !important;
        line-height: 1.3 !important;
        letter-spacing: -0.01em !important;
    }

    .arrow-btn {
        width: 44px !important;
        height: 44px !important;
        background-color: #ffffff !important;
        /* Solid white circular button */
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #0b4619 !important;
        /* Dark green chevron */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
        flex-shrink: 0 !important;
        position: static !important;
        transform: none !important;
        margin: 0 !important;
        transition: all 0.2s ease !important;
    }

    .arrow-btn svg {
        width: 20px !important;
        height: 20px !important;
    }

    .guide-title {
        font-size: 15px !important;
        line-height: 1.3 !important;
    }

    .mob-only-br {
        display: block !important;
    }

    .desk-only-br {
        display: none !important;
    }

    /* 11. Bottom CTA Section - Premium High-Fidelity Mockup */
    .section-cta-grow {
        margin-top: -20px !important;
        height: auto !important;
        padding: 32px 16px 32px !important;
        border-radius: 24px 24px 0 0 !important;
        background-color: #00d26a !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        overflow: hidden !important;
        position: relative !important;
        z-index: 15 !important;
    }

    .cta-grow-content-wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        gap: 16px !important;
        padding: 0 !important;
    }

    .cta-grow-content {
        position: static !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }

    .cta-grow-h2 {
        font-size: 24px !important;
        font-weight: 700 !important;
        line-height: 1.15 !important;
        letter-spacing: -0.02em !important;
        color: #ffffff !important;
        margin: 0 0 12px 0 !important;
        text-align: center !important;
        max-width: 100% !important;
    }

    .cta-grow-btns {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        width: 100% !important;
        align-items: center !important;
        justify-content: center !important;
        margin-bottom: 12px !important;
    }

    .btn-cta-white {
        background-color: #ffffff !important;
        color: #14151a !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        padding: 10px 8px !important;
        border-radius: 100px !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 !important;
        text-align: center !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
        border: none !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        white-space: nowrap !important;
    }

    .btn-cta-glass {
        background-color: rgba(255, 255, 255, 0.22) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        color: #ffffff !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        padding: 10px 8px !important;
        border-radius: 100px !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 !important;
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        white-space: nowrap !important;
    }

    .cta-grow-visual {
        display: none !important;
    }

    .cta-mobile-img-mobile {
        display: block !important;
        height: 15rem !important;
        width: auto !important;
        filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.3)) !important;
        margin-top: -5px !important;
        margin-bottom: -15px !important;
        position: relative !important;
        bottom: -26px !important;
        z-index: 5 !important;
    }

    /* 12. Footer Section - Beautiful Custom Overrides */
    .main-footer {
        background-color: #ffffff !important;
        border-radius: 40px 40px 0 0 !important;
        margin-top: -40px !important;
        padding: 36px 24px 32px !important;
        position: relative !important;
        z-index: 20 !important;
    }

    .footer-top-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 28px !important;
        margin-bottom: 40px !important;
        width: 100% !important;
    }

    .footer-logo {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
    }

    .footer-logo span {
        font-size: 32px !important;
        /* Custom sizing for strong premium branding */
        font-weight: 900 !important;
        color: #14151a !important;
        letter-spacing: -0.04em !important;
        margin: 0 !important;
    }

    .footer-logo svg {
        width: 36px !important;
        height: 36px !important;
        margin: 0 !important;
    }

    .footer-top-btns {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        align-items: center !important;
    }

    .btn-footer-primary {
        background-color: #0b4619 !important;
        /* Deep forest green */
        color: #ffffff !important;
        font-size: 16px !important;
        font-weight: 750 !important;
        padding: 16px 32px !important;
        border-radius: 12px !important;
        width: 100% !important;
        max-width: 340px !important;
        text-align: center !important;
        border: none !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        box-shadow: 0 4px 14px rgba(11, 70, 25, 0.15) !important;
        transition: all 0.2s ease !important;
    }

    .btn-footer-secondary {
        background-color: #f5f7f9 !important;
        /* Off-white grey background */
        color: #0b4619 !important;
        /* Deep forest green text */
        font-size: 16px !important;
        font-weight: 750 !important;
        padding: 16px 32px !important;
        border-radius: 12px !important;
        width: 100% !important;
        max-width: 340px !important;
        text-align: center !important;
        border: none !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        transition: all 0.2s ease !important;
    }

    .footer-links-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        width: 100% !important;
    }

    .footer-col h6 {
        margin-bottom: 16px !important;
        font-size: 16px !important;
    }

    .footer-bottom-bar {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        text-align: center !important;
        padding-top: 24px !important;
        margin-top: 40px !important;
        border-top: 1px solid #e5e7eb !important;
    }

    .footer-bottom-links {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        align-items: center !important;
    }
}

/* ==========================================================================
   OUR STORY PAGE MOBILE REDESIGN & OPTIMIZATION (BREAKPOINT: 768PX)
   ========================================================================== */
@media (max-width: 768px) {

    /* 1. Global Overflow Prevention */
    html,
    body {
        overflow-x: clip !important;
        width: 100% !important;
        position: relative !important;
    }

    /* 2. Hero Section Mobilization */
    .story-hero {
        padding-top: 100px !important;
        padding-bottom: 60px !important;
    }

    .story-hero-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 20px !important;
        margin-bottom: 32px !important;
    }

    .story-hero-h1 {
        font-size: clamp(28px, 8vw, 36px) !important;
        line-height: 1.15 !important;
        letter-spacing: -0.03em !important;
        max-width: 100% !important;
        text-align: center !important;
        margin: 0 !important;
    }

    .story-hero-h1 br,
    .cta-grow-h2 br {
        display: none !important;
    }

    .story-hero-intro {
        padding-bottom: 0 !important;
    }

    .story-hero-intro p {
        font-size: 16px !important;
        line-height: 1.5 !important;
        max-width: 100% !important;
        text-align: center !important;
        margin: 0 !important;
        font-weight: 500 !important;
    }

    .story-video-container {
        aspect-ratio: 16 / 10 !important;
        border-radius: 20px !important;
        max-width: 100% !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08) !important;
    }

    .story-video-overlay {
        padding: 20px !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%) !important;
    }

    .video-label {
        font-size: 16px !important;
        font-weight: 700 !important;
    }

    .play-icon-circle-lg {
        width: 50px !important;
        height: 50px !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
    }

    .play-icon-circle-lg svg {
        width: 20px !important;
        height: 20px !important;
    }

    /* 3. Blue Mission Section Mobilization */
    .story-mission {
        padding: 60px 0 !important;
        border-radius: 40px 40px 0 0 !important;
        margin-top: -24px !important;
    }

    .mission-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        margin-bottom: 48px !important;
    }

    .mission-row:last-child {
        margin-top: 12px !important;
        margin-bottom: 0 !important;
    }

    .mission-left h2 {
        font-size: clamp(24px, 7vw, 30px) !important;
        line-height: 1.2 !important;
        text-align: center !important;
        letter-spacing: -0.03em !important;
    }

    .mission-right p {
        font-size: 15px !important;
        line-height: 1.6 !important;
        text-align: center !important;
        margin-bottom: 16px !important;
        opacity: 0.9 !important;
    }

    /* 4. Marquee Mobilization */
    .lofingos-marquee-container {
        width: 100vw !important;
        margin-left: 50% !important;
        transform: translateX(-50%) !important;
        margin-top: 32px !important;
        margin-bottom: 32px !important;
        overflow: hidden !important;
    }

    .lofingo-card-mini {
        width: 200px !important;
        height: 200px !important;
        border-radius: 16px !important;
    }

    .lofingos-marquee-content {
        gap: 12px !important;
    }

    /* 5. Stats Section Mobilization */
    .story-stats {
        padding: 60px 0 !important;
        border-radius: 40px 40px 0 0 !important;
        margin-top: -24px !important;
    }

    .stats-header {
        margin-bottom: 32px !important;
    }

    .stats-title {
        font-size: 22px !important;
        line-height: 1.3 !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 36px !important;
    }

    .stat-item {
        align-items: center !important;
        text-align: center !important;
    }

    .stat-number-wrapper {
        font-size: 60px !important;
        margin-bottom: 8px !important;
        justify-content: center !important;
    }

    .stat-label {
        font-size: 16px !important;
        margin-bottom: 6px !important;
    }

    .stat-desc {
        font-size: 13px !important;
        max-width: 100% !important;
    }

    /* 6. How It Started Section Mobilization */
    .story-how-started {
        padding: 60px 0 !important;
        border-radius: 40px 40px 0 0 !important;
        margin-top: -24px !important;
        background-color: #ffffff !important;
    }

    .how-started-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        text-align: center !important;
    }

    .how-started-title {
        font-size: 32px !important;
        margin-bottom: 20px !important;
    }

    .how-started-subtitle {
        font-size: 17px !important;
        line-height: 1.4 !important;
        margin-bottom: 16px !important;
        max-width: 100% !important;
    }

    .how-started-text p {
        font-size: 15px !important;
        line-height: 1.6 !important;
        margin-bottom: 16px !important;
        color: #4b5563 !important;
    }

    .how-started-visual {
        margin-right: 0 !important;
        margin-top: 24px !important;
        height: auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .collage-wrap {
        width: 100% !important;
        max-width: 320px !important;
        height: 240px !important;
        margin: 0 auto !important;
        transform: none !important;
    }

    .collage-img {
        border-radius: 16px !important;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
    }

    .img-founders {
        width: 140px !important;
        height: 220px !important;
        top: 0 !important;
        left: 90px !important;
        z-index: 1 !important;
    }

    .img-hugging {
        width: 80px !important;
        height: 80px !important;
        top: 20px !important;
        left: 0 !important;
        z-index: 2 !important;
    }

    .img-mom-dog {
        width: 80px !important;
        height: 80px !important;
        bottom: 20px !important;
        right: 0 !important;
        z-index: 3 !important;
    }

    /* 7. Vision Section Mobilization */
    .story-vision {
        padding: 60px 0 100px !important;
        border-radius: 40px 40px 0 0 !important;
        margin-top: -24px !important;
    }

    .vision-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .vision-title {
        font-size: 28px !important;
        line-height: 1.2 !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    .timeline {
        padding-left: 24px !important;
        margin-top: 16px !important;
    }

    .timeline::before,
    .timeline-progress {
        left: 4px !important;
    }

    .timeline-item {
        margin-bottom: 32px !important;
        text-align: left !important;
    }

    .timeline-marker {
        left: -24px !important;
    }

    .timeline-date {
        font-size: 15px !important;
        margin-bottom: 8px !important;
    }

    .timeline-text {
        font-size: 16px !important;
        line-height: 1.4 !important;
        margin-bottom: 6px !important;
        max-width: 100% !important;
    }

    .timeline-stat {
        font-size: 13px !important;
    }
}

/* ==========================================================================
   PARTNER REQUEST PAGE MOBILE REDESIGN & OPTIMIZATION (BREAKPOINT: 768PX)
   ========================================================================== */
@media (max-width: 768px) {

    /* 1. Page Section Spacing & Sizing */
    .partner-hero {
        padding-top: 110px !important;
        padding-bottom: 60px !important;
    }

    /* 2. Grid Constraints & Layout */
    .partner-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    /* 3. Hero Left Side Redesign (Hero Copy & CTA) */
    .partner-hero-left {
        padding-top: 0 !important;
        text-align: left !important;
    }

    .partner-title {
        font-size: 32px !important;
        line-height: 1.15 !important;
        margin-bottom: 16px !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        letter-spacing: -0.02em !important;
    }

    .partner-subtitle {
        font-size: 15px !important;
        line-height: 1.5 !important;
        margin-bottom: 24px !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        color: var(--text-muted) !important;
    }

    /* Rating element left-aligned & scaled */
    .partner-rating {
        justify-content: flex-start !important;
        gap: 8px !important;
        margin-bottom: 28px !important;
    }

    .rating-number {
        font-size: 16px !important;
    }

    .stars svg {
        width: 14px !important;
        height: 14px !important;
    }

    .rating-text {
        font-size: 13px !important;
    }

    /* CTA Button full-width & optimized for thumb taps */
    .btn-partner-cta {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 16px 24px !important;
        font-size: 15px !important;
        border-radius: 100px !important;
        box-sizing: border-box !important;
    }

    /* 4. Hero Right Side Redesign (Features & Cards) */
    .demo-intro {
        font-size: 15px !important;
        font-weight: 700 !important;
        margin-bottom: 20px !important;
        text-align: left !important;
    }

    /* Stack features grid to single column */
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-bottom: 20px !important;
    }

    /* Horizontal flex item structure for iOS/Android native app feel */
    .feature-item {
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 16px !important;
        border-radius: 12px !important;
        background: #ffffff !important;
    }

    .feature-icon {
        width: 20px !important;
        height: 20px !important;
        margin-top: 2px !important;
        flex-shrink: 0 !important;
    }

    .feature-icon svg {
        width: 20px !important;
        height: 20px !important;
    }

    .feature-text {
        text-align: left !important;
    }

    .feature-text h3 {
        font-size: 15px !important;
        font-weight: 700 !important;
        margin-bottom: 4px !important;
        line-height: 1.2 !important;
    }

    .feature-text p {
        font-size: 13px !important;
        line-height: 1.4 !important;
        color: var(--text-muted) !important;
    }

    /* Stack awards row vertically */
    .awards-row {
        flex-direction: column !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
        padding-top: 10px !important;
    }

    .award-item {
        padding: 12px 14px !important;
        border-radius: 12px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        gap: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
    }

    .award-icon {
        width: 20px !important;
        height: 20px !important;
    }

    /* Testimonial Card mobilization */
    .testimonial-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
        padding: 20px !important;
        border-radius: 16px !important;
        background-color: #f6f1eb !important;
        text-align: left !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .testimonial-user {
        width: 48px !important;
        height: 48px !important;
        border-radius: 50% !important;
        /* Premium circular avatar */
    }

    .testimonial-content {
        text-align: left !important;
    }

    .testimonial-content .quote {
        font-size: 15px !important;
        line-height: 1.45 !important;
        margin-bottom: 8px !important;
        font-weight: 700 !important;
    }

    .testimonial-content .author {
        font-size: 12px !important;
        font-weight: 500;
        color: var(--text-muted) !important;
    }
}

/* ==========================================================================
   MOBILE-ONLY CUSTOM DRAWER REDESIGN STYLE OVERRIDES
   ========================================================================== */
@media (min-width: 1025px) {
    .mobile-only {
        display: none !important;
    }
}

@media (max-width: 1024px) {

    /* Hide the original header elements (logo and hamburger) when the menu drawer is open on mobile */
    body.menu-open .logo,
    body.menu-open #mobile-toggle {
        display: none !important;
    }

    /* Hide all desktop-only elements inside the active drawer */
    .nav-links .desktop-only {
        display: none !important;
    }

    /* Display mobile menu container inside the active drawer */
    .nav-links .mobile-only {
        display: block !important;
    }

    /* Redesign active drawer layout to be full screen, soft off-white background */
    .nav-links.active {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background-color: #fafbfa !important;
        /* Soft warm off-white exactly like design */
        padding: 24px 20px !important;
        box-sizing: border-box !important;
        border-top: none !important;
        box-shadow: none !important;
        overflow-y: auto !important;
        z-index: 99999 !important;
    }

    /* Custom Mobile Menu Container */
    .mobile-menu-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 20px;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    }

    /* Header Bar */
    .mobile-menu-header {
        display: flex;
        align-items: center;
        margin-top: 10px;
        margin-bottom: 5px;
    }

    .mobile-back-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        color: #000000;
        font-size: 20px;
        font-weight: 700;
        /* Bold 'Back' */
        font-family: inherit;
        transition: opacity 0.2s ease;
    }

    .mobile-back-btn:active {
        opacity: 0.6;
    }

    .back-arrow-icon {
        color: #000000;
        stroke-width: 2.5px;
    }

    /* Profile Card */
    .mobile-profile-card {
        background: #ffffff;
        border-radius: 20px;
        border: 1px solid #eef2ef;
        /* Soft grey border */
        padding: 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.015);
        margin-bottom: 12px;
        /* Add clean vertical gap between profile card and stats row */
    }

    .profile-avatar-wrapper {
        position: relative;
        width: 72px;
        height: 72px;
        flex-shrink: 0;
    }

    .profile-avatar {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #0c3e21;
        /* Dark green border */
        padding: 2px;
        background-color: #ffffff;
    }

    .profile-status-dot {
        position: absolute;
        top: 2px;
        right: 2px;
        width: 12px;
        height: 12px;
        background-color: #0c3e21;
        /* Active status green dot */
        border-radius: 50%;
        border: 2px solid #ffffff;
    }

    .profile-details {
        flex: 1;
        margin-left: 16px;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .profile-name {
        font-size: 22px;
        font-weight: 800;
        color: #000000;
        margin: 0;
        line-height: 1.2;
        letter-spacing: -0.02em;
    }

    .profile-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        color: #6e7a72;
        /* Muted text */
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.05em;
    }

    .crown-icon {
        color: #0c3e21;
    }

    .profile-edit-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background-color: #0c3e21;
        /* Dark green rounded square button */
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        cursor: pointer;
        flex-shrink: 0;
        transition: background-color 0.2s ease;
    }

    .profile-edit-btn:active {
        background-color: #072514;
    }

    /* Stats Row (3 Columns) */
    .mobile-stats-row {
        display: flex;
        gap: 8px;
        width: 100%;
    }

    .stat-card {
        flex: 1;
        min-width: 0;
        background: #ffffff;
        border-radius: 12px;
        border: 1px solid #eef2ef;
        padding: 8px 6px;
        display: flex;
        align-items: center;
        gap: 6px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
        height: 46px;
        /* Set exact same height for all 3 boxes */
        box-sizing: border-box;
    }

    .stat-icon-circle {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background-color: #0c3e21;
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .stat-icon-square {
        width: 24px;
        height: 24px;
        border-radius: 8px;
        background-color: #0c3e21;
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .stat-icon-circle svg,
    .stat-icon-square svg {
        width: 12px;
        height: 12px;
    }

    .stat-info {
        display: flex;
        flex-direction: column;
        line-height: 1.1;
        min-width: 0;
    }

    .stat-value {
        font-size: 12px;
        font-weight: 800;
        color: #000000;
    }

    .stat-label {
        font-size: 9px;
        color: #888888;
        font-weight: 500;
    }

    .stat-booking-label,
    .stat-reservation-label {
        font-size: 12px;
        font-weight: 700;
        color: #000000;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Vertical Navigation List */
    .mobile-nav-list {
        display: flex;
        flex-direction: column;
        background: transparent;
        margin-top: 15px;
    }

    .mobile-nav-row-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 0;
        border-bottom: 1px solid #ebf0ec;
        /* Soft line divider */
        text-decoration: none;
        color: inherit;
        transition: background-color 0.2s ease;
    }

    .mobile-nav-row-item:active {
        background-color: rgba(0, 0, 0, 0.02);
    }

    .nav-row-left {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .nav-row-icon-box {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background-color: #f2f5f3;
        /* Light grey/green background */
        color: #0c3e21;
        /* Dark green icon */
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        position: relative;
    }

    .nav-row-title {
        font-size: 16px;
        font-weight: 700;
        color: #000000;
    }

    .chevron-right-icon {
        color: #b3c0b7;
        /* Muted chevron */
    }

    /* Badges for Contact Us */
    .badge-container {
        position: relative;
    }

    .icon-tiny-badge {
        position: absolute;
        top: -4px;
        right: -4px;
        width: 16px;
        height: 16px;
        background-color: #0c3e21;
        color: #ffffff;
        font-size: 9px;
        font-weight: 800;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #f2f5f3;
    }

    .nav-row-middle-badge {
        width: 24px;
        height: 24px;
        background-color: #0c3e21;
        color: #ffffff;
        font-size: 12px;
        font-weight: 800;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        margin-right: 16px;
    }

    /* Accordion Dropdown Styles */
    .mobile-nav-dropdown-item {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .mobile-submenu-panel {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background-color: transparent;
        padding-left: 0;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .mobile-nav-dropdown-item.open .mobile-submenu-panel {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .mobile-submenu-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 6px;
        background-color: #ffffff;
        border: 1px solid #eef2ef;
        border-radius: 12px;
        text-align: center;
        transition: all 0.2s ease;
        text-decoration: none;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.015);
        box-sizing: border-box;
        min-height: 90px;
    }

    .mobile-submenu-link:active {
        background-color: #f2f5f3;
        border-color: #0c3e21;
        transform: scale(0.97);
    }

    .mobile-submenu-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background-color: #f2f5f3;
        color: #0c3e21;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: background-color 0.2s ease;
    }

    .mobile-submenu-link:active .mobile-submenu-icon {
        background-color: #e2e8e4;
    }

    .mobile-submenu-icon svg {
        width: 16px;
        height: 16px;
        stroke-width: 2.2px;
    }

    .mobile-submenu-text {
        font-size: 11px;
        font-weight: 700;
        color: #14151a;
        line-height: 1.25;
        word-wrap: break-word;
        text-align: center;
        display: block;
    }

    .dropdown-chevron {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        color: #b3c0b7;
    }
}

/* ==========================================================================
   MOBILE FOOTER REDESIGN (BREAKPOINT: 1024PX)
   ========================================================================== */
@media (max-width: 1024px) {

    /* Hide the desktop footer container */
    .main-footer .desktop-only {
        display: none !important;
    }

    /* Show the mobile footer container */
    .main-footer .mobile-footer-redesign {
        margin-top: -33px;
        display: block !important;
        background-color: #ffffff !important;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    }

    /* Logo row */
    .mob-footer-logo-row {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        margin-bottom: 12px !important;
    }

    .mob-footer-logo-row img {
        width: 11rem !important;
        height: auto !important;
    }

    .mob-footer-logo-row svg {
        width: 32px !important;
        height: 32px !important;
        flex-shrink: 0 !important;
    }

    .mob-footer-logo-text {
        font-size: 28px !important;
        font-weight: 800 !important;
        color: #14151a !important;
        letter-spacing: -0.03em !important;
    }

    /* Buttons */
    .mob-footer-btns {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        align-items: center !important;
        margin-bottom: 20px !important;
    }

    .mob-footer-btns .btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 48px !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
        transition: all 0.2s ease !important;
        text-decoration: none !important;
    }

    .mob-footer-btns .btn-footer-primary {
        background-color: #0b4619 !important;
        color: #ffffff !important;
        border: none !important;
    }

    .mob-footer-btns .btn-footer-primary:active {
        background-color: #072e10 !important;
    }

    .mob-footer-btns .btn-footer-secondary {
        background-color: #ffffff !important;
        color: #0b4619 !important;
        border: 1px solid #e5e7eb !important;
    }

    .mob-footer-btns .btn-footer-secondary:active {
        background-color: #f9fafb !important;
    }

    /* Accordions Container */
    .mob-footer-accordions {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        margin-bottom: 24px !important;
        border-top: 1px solid #f3f4f6 !important;
    }

    .mob-footer-accordion-item {
        border-bottom: 1px solid #f3f4f6 !important;
        width: 100% !important;
    }

    .mob-footer-accordion-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 18px 0 !important;
        background: transparent !important;
        border: none !important;
        font-family: inherit !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #0b4619 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.03em !important;
        text-align: left !important;
        cursor: pointer !important;
        outline: none !important;
    }

    .accordion-chevron {
        width: 18px !important;
        height: 18px !important;
        color: #0b4619 !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .mob-footer-accordion-item.active .accordion-chevron {
        transform: rotate(180deg) !important;
    }

    .mob-footer-accordion-panel {
        max-height: 0;
        overflow: hidden !important;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    /* Padding for inner links inside panel */
    .mob-footer-accordion-panel .mob-footer-links {
        list-style: none !important;
        padding: 0 0 18px 4px !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .mob-footer-links li {
        margin: 0 !important;
        padding: 0 !important;
    }

    .mob-footer-links a {
        display: inline-flex !important;
        align-items: center !important;
        font-size: 13.5px !important;
        font-weight: 500 !important;
        color: #14151a !important;
        line-height: 1.4 !important;
        text-decoration: none !important;
    }

    .mob-footer-links a .arrow {
        color: #0b4619 !important;
        font-weight: 800 !important;
        margin-right: 6px !important;
        font-size: 12px !important;
        flex-shrink: 0 !important;
    }

    /* Support section specific icons */
    .mob-footer-links.support-links {
        gap: 16px !important;
    }

    .mob-footer-links.support-links a {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        font-size: 13px !important;
        font-weight: 500 !important;
    }

    .support-icon {
        color: #0b4619 !important;
        flex-shrink: 0 !important;
        width: 16px !important;
        height: 16px !important;
    }

    /* Follow Us Section */
    .mob-footer-follow-section {
        width: 100% !important;
        padding: 24px 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    .mob-footer-follow-title {
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #0b4619 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.03em !important;
        margin: 0 !important;
    }

    /* Follow Us social icons */
    .mob-footer-social {
        display: flex !important;
        gap: 12px !important;
        align-items: center !important;
        margin-bottom: 24px !important;
    }

    .mob-footer-social .social-icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 38px !important;
        height: 38px !important;
        border: 1.5px solid #0b4619 !important;
        border-radius: 50% !important;
        color: #0b4619 !important;
        transition: all 0.2s ease !important;
        text-decoration: none !important;
        background: transparent !important;
    }

    .mob-footer-social .social-icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    .mob-footer-social .social-icon:active {
        background-color: rgba(11, 70, 25, 0.05) !important;
    }

    /* Bottom Bar */
    .mob-footer-bottom {
        padding-top: 24px !important;
        border-top: 1px solid #f3f4f6 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .mob-footer-copyright {
        font-size: 12.5px !important;
        color: #6b7280 !important;
        margin-bottom: 16px !important;
    }

    .mob-footer-bottom-links {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        align-items: center !important;
        width: 100% !important;
    }

    .mob-footer-bottom-links .links-row {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        column-gap: 16px !important;
        row-gap: 4px !important;
    }

    .mob-footer-bottom-links a {
        font-size: 12px !important;
        color: #6b7280 !important;
        text-decoration: none !important;
    }

    .mob-footer-bottom-links a:active {
        color: #0b4619 !important;
    }

    /* Back to Top */
    .mob-footer-back-to-top {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        margin-top: 24px !important;
    }

    .back-to-top-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        background: transparent !important;
        border: none !important;
        color: #6b7280 !important;
        cursor: pointer !important;
        transition: color 0.2s ease !important;
        outline: none !important;
    }

    .back-to-top-btn svg {
        width: 24px !important;
        height: 24px !important;
    }

    .back-to-top-btn:active {
        color: #0b4619 !important;
    }
}

/* Mobile Testimonials Custom Override */
@media (max-width: 768px) {
    .section-lofingo-testimonials {
        display: none !important;
    }
    
    .section-testimonials-mobile {
        display: block !important;
        padding: 50px 0;
        background-color: #fff;
        border-radius: 40px 40px 0 0;
        margin-top: -40px;
        position: relative;
        z-index: 5;
    }
    
    .testimonials-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 24px;
        padding: 0 4px;
    }
    
    .testimonials-mobile-title {
        font-size: 26px;
        font-weight: 800;
        color: #14151a;
        letter-spacing: -0.02em;
        margin: 0;
    }
    
    .testimonials-mobile-nav {
        display: flex;
        gap: 8px;
    }
    
    .mob-nav-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid #e5e7eb;
        background: #f5f7f9;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 16px;
        color: #14151a;
        transition: all 0.2s ease;
    }
    
    .mob-nav-btn:active {
        background: #eef2f6;
        transform: scale(0.95);
    }
    
    .testimonials-mobile-slides {
        position: relative;
        min-height: 420px;
    }
    
    .testimonials-mobile-slide {
        display: none;
        background: #f9f9f9;
        border-radius: 28px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    }
    
    .testimonials-mobile-slide.active {
        display: flex;
        flex-direction: column;
        animation: fadeInSlide 0.4s ease forwards;
    }
    
    @keyframes fadeInSlide {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .testimonials-mobile-image-wrap {
        position: relative;
        height: 240px;
        width: 100%;
        overflow: hidden;
    }
    
    .testimonials-mobile-image-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .testimonials-mobile-image-wrap.has-play::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.15);
    }
    
    .mob-play-btn {
        position: absolute;
        bottom: 20px;
        left: 20px;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: #00d26a;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
        box-shadow: 0 8px 16px rgba(0, 210, 106, 0.3);
    }
    
    .mob-play-btn svg {
        margin-left: 2px;
    }
    
    .testimonials-mobile-content {
        padding: 24px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .mob-quote {
        font-size: 18px;
        font-weight: 600;
        line-height: 1.45;
        color: #14151a;
        margin: 0;
        letter-spacing: -0.01em;
    }
    
    .mob-attribution {
        font-size: 14px;
        color: #71717a;
        margin: 0;
        font-weight: 500;
    }
    
    .mob-btn-learn-more {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        color: #00d26a;
        text-decoration: none;
        font-weight: 600;
        font-size: 15px;
        margin-top: 4px;
        transition: opacity 0.2s ease;
    }
    
    .mob-btn-learn-more:active {
        opacity: 0.7;
    }
}