/* ==========================================================================
   Landing Page Specific Styles (static/css/landing.css)
   ========================================================================== */

/* General Landing Page Styles
   ========================================================================== */

   .landing-section {
    padding: 4rem 2rem; /* Default padding for sections */
}

.highlight-text {
    color: #ff6f61; /* Coral color for highlighted text */
}

/* Ensure landing page uses Inter font if base body is overridden elsewhere */
/* Using more specific selectors */
#hero h1, #hero p,
#how-it-works h2, #how-it-works h3, #how-it-works p,
#features-cta h2, #features-cta h3, #features-cta p {
     font-family: 'Inter', sans-serif; /* Removed !important, should cascade correctly */
}


/* Hero Section (#hero)
   ========================================================================== */
#hero {
    background: #f8fafc;
    text-align: center;
    min-height: 100vh; /* Equivalent to Tailwind min-h-screen */
}

#hero .hero-content {
    max-width: 800px;
}

#hero h1 {
    font-size: 3.5rem;
    font-weight: 600;
    color: #1a2a44;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

#hero p {
    font-size: 1.25rem;
    color: #1a2a44;
    margin-bottom: 2rem;
    line-height: 1.6;
}

#hero .hero-actions {
    gap: 1rem; /* Replaces inline style gap */
}

/* CTA Button - used in Hero and Final CTA */
.cta-btn {
    background: #ff6f61;
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 111, 97, 0.5);
    display: inline-block; /* Needed for final CTA button */
    border: none; /* Ensure no default border */
}

.cta-btn:hover {
    background: #ff5a4a; /* Darker coral */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 111, 97, 0.7);
    color: #fff; /* Ensure text color remains white on hover */
}

/* How It Works Link */
.how-it-works-link {
    color: #ff6f61;
    font-weight: 600;
    padding: 1rem;
    text-decoration: underline;
}

/* How It Works Section (#how-it-works)
   ========================================================================== */
#how-it-works {
    background: #f8fafc;
}

#how-it-works .how-it-works-container {
    max-width: 1000px;
}

#how-it-works h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1a2a44;
    text-align: center;
    margin-bottom: 3rem;
}

/* Animated Stack */
.how-it-works-stack {
    position: relative;
    height: 300px; /* Adjust as needed */
    max-width: 700px;
    margin: 0 auto;
    perspective: 1000px;
    overflow: hidden;
}

/* Individual Card Styles (shared between animated and static) */
.how-it-works-card,
.static-display-card { /* Apply common styles to static cards too */
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

/* Styles only for animated cards */
.how-it-works-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease, opacity 0.3s ease;
}

/* Card Grid Layout (shared) */
.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
    height: 100%; /* Ensure grid takes full card height */
}

/* Card Columns (shared) */
.card-column-icon {
    text-align: center;
}

.card-column-icon span {
    font-size: 2.5rem;
    color: #ff6f61;
}

.card-column-icon h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a2a44;
    margin: 0.5rem 0 0.25rem;
}

.card-column-icon p {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 0; /* Reset margin */
}

.card-column-text {
    display: flex;
    align-items: center;
    padding: 1rem;
    text-align: left;
}

.card-column-text p {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ff6f61;
    line-height: 1.6;
    margin-bottom: 0; /* Reset margin */
}

/* Animation States */
.how-it-works-card.active { opacity: 1; transform: translateX(0); z-index: 10; }
.how-it-works-card.next { opacity: 0; transform: translateX(100%); z-index: 5; }
.how-it-works-card.previous { opacity: 0; transform: translateX(-100%); z-index: 5; }

/* Static Stack */
.how-it-works-static {
    display: none; /* Hidden by default, shown by JS */
    max-width: 700px;
    margin: 0 auto;
}

.static-display-card {
    margin-bottom: 1rem;
}
.static-display-card:last-child {
    margin-bottom: 0;
}

/* Features & CTA Section (#features-cta)
   ========================================================================== */
#features-cta {
    background: #fff;
}

#features-cta .features-container {
    max-width: 1000px;
}

#features-cta h2 { /* Applies to both h2s in this section */
    font-size: 2rem;
    font-weight: 600;
    color: #1a2a44;
    text-align: center;
    margin-bottom: 3rem; /* Default bottom margin */
}

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

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

.feature-item h3 {
    font-size: 1.125rem; /* Was 1.125rem in one place, 1.25rem in another, standardized */
    font-weight: 600;
    color: #1a2a44;
    margin-bottom: 0.75rem;
}

.feature-item p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0; /* Reset margin */
}

/* Final CTA Area */
.final-cta-area {
    text-align: center;
    margin-top: 3rem;
}

.final-cta-area h2 {
    margin-bottom: 1.5rem; /* Override default h2 margin for this specific one */
}

.final-cta-area p {
    font-size: 1.125rem;
    color: #1a2a44;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Footer (#landing-footer)
   ========================================================================== */
#landing-footer {
    background: #1a2a44;
    padding: 2rem;
    text-align: center;
    color: #fff;
}

#landing-footer p {
    font-size: 0.875rem;
    margin-bottom: 0; /* Reset margin */
}

#landing-footer a {
    color: #ff6f61;
    text-decoration: none;
}
#landing-footer a:hover {
    text-decoration: underline;
}

/* Responsive Styles (from original <style> block)
   ========================================================================== */
@media (max-width: 768px) {
    /* Combined landing section padding adjustment */
    .landing-section {
        padding: 3rem 1rem; /* Adjust padding for smaller screens */
    }

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

    #how-it-works h2 {
        font-size: 1.75rem;
    }

    .cta-btn {
        padding: 0.75rem 2rem;
    }

    .how-it-works-stack {
        height: auto; /* Allow height to adjust to content */
        min-height: 350px; /* Adjust based on content */
        overflow: visible; /* May need this if cards overflow vertically */
        perspective: none; /* Disable perspective */
    }

    /* Make grid stack vertically on smaller screens */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center; /* Center content when stacked */
    }
     .card-column-text {
        justify-content: center; /* Center text horizontally */
        padding: 0.5rem; /* Adjust padding */
     }
     .card-column-text p {
        text-align: center;
     }

    .features-grid {
        gap: 1.5rem;
    }

    #features-cta h2 {
        font-size: 1.75rem; /* Adjust heading sizes */
    }
     .final-cta-area h2 {
         font-size: 1.75rem;
     }
     .final-cta-area p {
         font-size: 1rem;
     }
}