/* Optimize images for web */
.feature-image img, .before img, .after img, .phone-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Improve loading performance */
.phone-mockup, .feature-card, .result-card {
    will-change: transform;
}

/* Ensure App Store button stands out */
.btn-primary {
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(26, 95, 122, 0.3);
}

.hero .btn-primary, .download .btn-primary {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 95, 122, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(26, 95, 122, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(26, 95, 122, 0);
    }
}

/* Fix for iOS devices */
@supports (-webkit-touch-callout: none) {
    .hero, .download {
        background-attachment: scroll;
    }
}

/* Improve accessibility */
.btn, .nav a, .footer a {
    transition: all 0.2s ease;
}

.btn:focus, .nav a:focus, .footer a:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header, .footer {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
    
    .hero-content, .download-content, .features-grid, .steps, .results-grid {
        display: block;
    }
    
    .btn {
        border: 1px solid black;
        color: black;
        background: none;
    }
}
