/* Custom CSS variables based on requirements */
:root {
    --max-width: 1280px;
    --section-padding: 96px;
    --border-radius-large: 60px;
    --border-radius-small: 24px;
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Container styles */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.secondary-hero {
    position: relative;
    z-index: 1;
    margin-top: -80px;
    background-color: #FAFFFB;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    padding-top: 6rem;
    overflow: visible;
    
}


@media (max-width: 768px) {
    .secondary-hero {
        margin-top: -60px;
        padding-top: 4rem;
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
    }
}

.hero-chat-glow {
    box-shadow: 0 0 30px 0 rgba(148, 193, 31, 0.40);
}

/* ==========================================================================
   Solicitor Types Section
   ========================================================================== */
.solicitor-types-bg {
    background-color: #E0ECC0;
}

@media (min-width: 768px) {
    .solicitor-types-bg {
        background-image: url('/static/landing/assets/value-bg.png');
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }
}

/* ==========================================================================
   Get Started B2C Section - Animation Overrides
   ========================================================================== */
@media (max-width: 767px) {
    .card-animate-b2c,
    .cta-animate-b2c {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: none !important;
    }
}

/* ==========================================================================
   Get Started B2B Section
   ========================================================================== */
.get-started-header-bg {
    background: url('/static/landing/assets/backgroundwithcurves.svg') #06231D;
    background-size: cover, 50% 50%, 50% 50%, 50% 50%, 50% 50%, auto;
    background-position: calc(70%) 250px, bottom right, bottom left, top left, top right, center;
    background-repeat: no-repeat;
}

/* Get Started Cards - Fixed height */
.get-started-card {
    height: 640px;
    min-height: 640px;
}

/* Card animation base state */
.card-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.card-animate.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.card-animate:nth-child(1) {
    transition-delay: 0.1s;
}

.card-animate:nth-child(2) {
    transition-delay: 0.3s;
}

.card-animate:nth-child(3) {
    transition-delay: 0.5s;
}

/* Mobile: Disable animations for cards */
@media (max-width: 767px) {
    .card-animate {
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: none !important;
    }

    .card-animate.animate-in {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

/* ==========================================================================
   Hero Section B2B
   ========================================================================== */
.hero-title {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
}

.hero-section {
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    position: relative;
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Core Features Section B2B
   ========================================================================== */
.core-features-section {
    position: relative;
    background-color: rgb(var(--brand-50));
}

/* ==========================================================================
   Pricing Section B2B
   ========================================================================== */
.pricing-header-bg {
    background:
        url('/static/landing/assets/curves.svg'),
        linear-gradient(to bottom right, rgba(130, 176, 22, 0.20) 0%, rgba(10, 13, 18, 0.01) 50%) bottom right / 50% 50% no-repeat,
        linear-gradient(to bottom left, rgba(130, 176, 22, 0.20) 0%, rgba(10, 13, 18, 0.01) 50%) bottom left / 50% 50% no-repeat,
        linear-gradient(to top left, rgba(130, 176, 22, 0.20) 0%, rgba(10, 13, 18, 0.01) 50%) top left / 50% 50% no-repeat,
        linear-gradient(to top right, rgba(130, 176, 22, 0.20) 0%, rgba(10, 13, 18, 0.01) 50%) top right / 50% 50% no-repeat,
        #06231D;
    background-size: cover, 50% 50%, 50% 50%, 50% 50%, 50% 50%, auto;
    background-position: calc(70%) 250px, bottom right, bottom left, top left, top right, center;
    background-repeat: no-repeat;
    border-radius: 0px 0px 60px 60px;
}

.billing-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.billing-toggle-active {
    background: white;
    color: #252B37;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Pricing Card Animations */
.pricing-card-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.pricing-card-animate.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.pricing-card-animate:nth-child(1) {
    transition-delay: 0.1s;
}

.pricing-card-animate:nth-child(2) {
    transition-delay: 0.3s;
}

/* ==========================================================================
   Feature Tabs B2B
   ========================================================================== */
.feature-tab {
    position: relative;
    padding: 24px 0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 5px solid #e5e7eb;
    transform: translateX(0);
}

.feature-tab.active {
    border-left-color: #82B016;
    border-right-color: transparent;
}

.feature-tab:hover {
    background-color: rgba(130, 176, 22, 0.05);
}

.feature-tab::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0;
    height: 100%;
    width: 5px;
    background-color: #82B016;
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: top;
}

.feature-tab.active::before {
    transform: scaleY(1);
}

.feature-tab-content {
    padding-left: 20px;
}

.feature-tab-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.feature-tab-description {
    color: #6b7280;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.feature-tab.active .feature-tab-description {
    color: #374151;
}

.feature-visual-block {
    background: linear-gradient(135deg, #82B016 0%, #6A9412 100%);
}

/* Feature animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    opacity: 0;
    animation: slideInLeft 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.slide-in-right {
    opacity: 0;
    animation: slideInRight 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

.image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1.5rem;
    overflow: hidden;
}

.image-container.active {
    opacity: 1;
    z-index: 2;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Feature tab mobile */
@media (max-width: 640px) {
    .feature-tab {
        padding: 16px 0;
        border-left: 3px solid #e5e7eb;
    }

    .feature-tab-content {
        padding-left: 16px;
    }

    .feature-tab-title {
        font-size: 1.125rem;
        line-height: 1.4;
    }

    .feature-tab-description {
        font-size: 0.875rem;
        line-height: 1.5;
    }
}

/* ==========================================================================
   Value Section B2B
   ========================================================================== */
.value-b2b-bg-image {
    background-color: var(--Colors-Brand-100, #E0ECC0);
}

@media (min-width: 768px) {
    .value-b2b-bg-image {
        background-image: url('/static/landing/assets/value-bg.png');
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }
}

.shadow-xxs {
    box-shadow: 0 0 0 1px rgba(10, 13, 18, 0.1) inset,
                0 -2px 0 0 rgba(10, 13, 18, 0.05) inset,
                0 1px 2px 0 rgba(10, 13, 18, 0.05);
}

/* ==========================================================================
   Lottie Container Overrides
   ========================================================================== */
#lottie-container {
    width: 100% !important;
    height: 100% !important;
    margin: 0;
}

#lottie-container svg {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* Mobile styles */
@media (max-width: 375px) {
    /* Mobile-specific styles */
}
