/* Non-critical CSS loaded after initial render */

/* Utility Classes */

/* Image Classes */
.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.hero-img:hover {
    transform: scale(1.02);
}

.icon-img {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: block;
    filter: drop-shadow(0 4px 6px rgb(0 0 0 / 0.1));
}

.bg-illustration {
    background-image: url('proof-bg.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-blend-mode: overlay;
    position: relative;
}

.bg-illustration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 43, 87, 0.85);
    border-radius: 20px;
    z-index: 1;
}

.bg-illustration > * {
    position: relative;
    z-index: 2;
}
.icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex-shrink: 0;
}

.icon--sm {
    width: 16px;
    height: 16px;
}

.icon--lg {
    width: 32px;
    height: 32px;
}

/* Section Spacing */
.reassurance {
    padding: 60px 0;
    background-color: white;
}

.how-it-works {
    padding: 80px 0;
    background-color: var(--primary-bg);
}

.social-proof {
    padding: 60px 0;
    background-color: white;
}

.privacy-notice {
    padding: 40px 0;
    background-color: #f8fafc;
}

.footer {
    padding: 40px 0 20px;
    background-color: var(--navy);
    color: white;
}

/* Reassurance Panel */
.reassurance__card {
    background-color: var(--navy);
    color: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.reassurance__card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
    margin-bottom: 40px;
}

.feature-list__item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    margin-bottom: 15px;
    justify-content: flex-start;
    text-align: left;
}

.feature-list__item .icon {
    color: var(--cta-green);
    flex-shrink: 0;
}

.btn--secondary {
    background-color: white;
    color: var(--navy);
    box-shadow: var(--shadow);
}

.btn--secondary:hover {
    background-color: #f8fafc;
    transform: translateY(-1px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* How It Works */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--navy);
}

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.step {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }

.step__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--cta-green), var(--cta-green-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
}

/* Remove step icon styling when using images */
.step .icon-img + h3 {
    margin-top: 0;
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--navy);
}

.step p {
    color: var(--text-light);
    line-height: 1.6;
}

/* FAQ */
.faq {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.faq__item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq__item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.faq__item p {
    color: var(--text-light);
}

/* Social Proof */
.stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.stat {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.stat .icon {
    color: var(--cta-green);
    margin-bottom: 15px;
}

.stat__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 5px;
}

.stat__label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Privacy Notice */
.privacy-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.privacy-text strong {
    color: var(--navy);
}

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 15px 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 6px -1px rgb(0 0 0 / 0.1);
}

.sticky-cta.show {
    transform: translateY(0);
}

.btn--full {
    width: 100%;
    font-size: 1rem;
    padding: 16px;
}

/* Footer */
.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer__links a:hover {
    color: white;
}

.footer__disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ef4444;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1001;
}

.toast.show {
    transform: translateX(0);
}

.toast__content {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hero Visual */
.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

@media (max-width: 767px) {
    .hero-img {
        max-width: 90%;
        margin: 20px 0;
    }
}

@media (min-width: 768px) {
    .hero-img {
        max-width: 500px;
    }
}

@media (min-width: 1024px) {
    .hero-img {
        max-width: 600px;
    }
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus States for Accessibility */
.btn:focus,
a:focus {
    outline: 2px solid var(--cta-green);
    outline-offset: 2px;
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3);
        --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .step {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .btn,
    .sticky-cta,
    .toast,
    .hero-img {
        transition: none;
    }
    
    .hero-img:hover {
        transform: none;
    }
}

/* Tablet Styles */
@media (min-width: 768px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .feature-list__item {
        justify-content: center;
        text-align: center;
    }
    
    .sticky-cta {
        display: none; /* Hide on tablet and desktop */
    }
    
    .faq {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .faq__item {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .hero {
        padding: 100px 0 120px;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .how-it-works {
        padding: 100px 0;
    }
    
    .reassurance {
        padding: 80px 0;
    }
}

/* Print Styles */
@media print {
    .sticky-cta,
    .toast,
    .btn {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
