/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #f9fafb;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.medicaid-page .hero {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.tenant-page .hero {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
}

.collector-page .hero {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.customs-page .hero {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.insurance-page .hero {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.divorce-page .hero {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.highlight {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTAs */
.cta-group {
    margin-bottom: 60px;
}

.btn-primary,
.btn-primary-large {
    background: white;
    color: #4f46e5;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary-large {
    padding: 20px 48px;
    font-size: 20px;
}

.btn-primary:hover,
.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.trust-signal {
    margin-top: 12px;
    font-size: 14px;
    opacity: 0.9;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Section Styles */
section {
    padding: 80px 0;
}

h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
}

/* Problem Grid */
.problem {
    background: white;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.problem-card {
    background: #f9fafb;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-4px);
}

.icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.problem-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

/* Solution Steps */
.solution {
    background: #f9fafb;
}

.solution-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.step {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.medicaid-page .step-number {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.tenant-page .step-number {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
}

.collector-page .step-number {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.step h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

/* Use Case / Case Study */
.use-case {
    background: white;
}

.case-study {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.case-before,
.case-after {
    padding: 32px;
    border-radius: 16px;
}

.case-before {
    background: #fef2f2;
    border: 2px solid #ef4444;
}

.case-after {
    background: #f0fdf4;
    border: 2px solid #10b981;
}

.case-before h3,
.case-after h3 {
    margin-bottom: 16px;
}

/* Features Grid */
.features {
    background: white;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature {
    text-align: center;
    padding: 24px;
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

/* Testimonials */
.testimonials {
    background: #f9fafb;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.quote {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 16px;
    line-height: 1.6;
}

.author {
    color: #6b7280;
    font-size: 14px;
}

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-align: center;
}

.medicaid-page .final-cta {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.tenant-page .final-cta {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
}

.collector-page .final-cta {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.final-cta h2 {
    color: white;
    margin-bottom: 16px;
}

.final-cta p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.95;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    text-align: center;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #9ca3af;
    cursor: pointer;
}

.close:hover {
    color: #1f2937;
}

.modal h3 {
    font-size: 28px;
    margin-bottom: 16px;
}

.modal p {
    margin-bottom: 24px;
    color: #6b7280;
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal input[type="email"] {
    padding: 16px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
}

.modal input[type="email"]:focus {
    border-color: #667eea;
}

.privacy {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 16px;
}

/* Sticky Email Bar (hidden on desktop) */
.sticky-email-bar {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {

    /* Hide button CTA on mobile, show email form instead */
    .cta-group {
        display: none;
    }

    /* Mobile Sticky Email Bar */
    .sticky-email-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: white;
        padding: 12px 15px;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
        z-index: 999;
    }

    .sticky-email-bar form {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .sticky-email-bar input[type="email"] {
        flex: 1;
        padding: 14px 16px;
        font-size: 16px;
        border: 2px solid #e5e7eb;
        border-radius: 10px;
        outline: none;
        min-width: 0;
    }

    .sticky-email-bar input[type="email"]:focus {
        border-color: #4f46e5;
    }

    .btn-sticky {
        background: linear-gradient(135deg, #4f46e5, #7c3aed);
        color: white;
        padding: 14px 20px;
        font-size: 16px;
        font-weight: 600;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        white-space: nowrap;
    }

    .hero {
        padding-bottom: 100px;
        /* Prevent sticky bar overlap */
    }

    .final-cta {
        padding-bottom: 120px;
        /* Extra space at bottom for sticky bar */
    }

    .hero h1 {
        font-size: 32px;
    }

    .subtitle {
        font-size: 16px;
    }

    section {
        padding: 60px 0;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}