/* Custom styles for imagetotext.cloud - Non-critical styles only */

/* Social Proof Section */
.social-proof {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
}

.testimonials {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    animation: scroll-horizontal 30s linear infinite;
    width: max-content;
}

@keyframes scroll-horizontal {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.testimonials:hover {
    animation-play-state: paused;
}

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 300px;
    flex-shrink: 0;
}

.stars {
    color: #fbbf24;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial p {
    font-style: italic;
    margin: 0 0 1rem 0;
    color: #1f2937;
}

.author {
    color: #6b7280;
    font-weight: 500;
}

.app-ratings {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.rating-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rating-stars {
    color: #fbbf24;
    font-size: 1rem;
}

.rating-text {
    display: flex;
    flex-direction: column;
}

.rating-score {
    font-weight: 700;
    font-size: 1.125rem;
    color: #1f2937;
}

.rating-label {
    font-size: 0.875rem;
    color: #6b7280;
}

/* How It Works Section */
.how-it-works {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #1f2937;
    letter-spacing: -0.025em;
}

.section-header p {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
}

.step-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin: 1rem 0.5rem;
}

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

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.step-screenshot {
    width: 200px;
    height: 400px;
    margin: 0 auto 1.5rem;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.step-screenshot:hover {
    transform: scale(1.02);
}

/* Hide view indicators on desktop */
.phone-view-indicators {
    display: none;
}

/* Screenshot popup modal */
.screenshot-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.screenshot-modal.active {
    opacity: 1;
    visibility: visible;
}

.screenshot-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.screenshot-modal img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.screenshot-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: background 0.2s ease;
}

.screenshot-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.step-screenshot .screenshot-content {
    width: 100%;
    height: 100%;
    background: #000000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 2px solid #374151;
    position: relative;
}

.step-screenshot .screenshot-content::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: linear-gradient(145deg, #1f2937, #111827);
    border-radius: 12px;
    z-index: 1;
}

.step-screenshot .screenshot-content::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #374151;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.step-screenshot .screenshot-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    position: relative;
    z-index: 3;
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    z-index: 5;
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #1f2937;
}

.step-card p {
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

.step-connector {
    display: none;
}

/* Algorithm Section */
.algorithm-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.algorithm-demo {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}

.demo-column h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #1f2937;
}

.sample-image {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.receipt-content {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.4;
}

.receipt-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.store-name {
    font-weight: 700;
}

.date {
    color: #6b7280;
}

.receipt-items {
    margin-bottom: 1rem;
}

.item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.receipt-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.5rem;
}

.demo-arrow {
    font-size: 2rem;
    color: #3b82f6;
    font-weight: 700;
}

.extracted-text {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.text-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.text-header span {
    font-weight: 600;
    color: #1f2937;
}

.copy-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.text-content {
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    white-space: pre-line;
    color: #1f2937;
    background: #fefefe;
}

.algorithm-explanation {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.algorithm-explanation p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #4b5563;
    margin: 0 0 2rem 0;
}

.learn-more-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.learn-more-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Info Section */
.info-section {
    padding: 4rem 0;
    background: white;
}

.info-content {
    text-align: center;
    margin-bottom: 3rem;
}

.info-icon {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.info-text {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

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

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.category-item:hover {
    background: #e5e7eb;
    transform: translateX(4px);
}

.category-title {
    font-weight: 600;
    color: #1f2937;
}

.category-arrow {
    color: #3b82f6;
    font-weight: 700;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-icon {
    transition: transform 0.2s;
    color: #3b82f6;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8fafc;
}

.faq-answer p {
    margin: 0;
    padding: 0 1.5rem 1.5rem;
    color: #4b5563;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: white;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.honeypot {
    position: absolute;
    left: -9999px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1f2937;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.submit-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.submit-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.contact-success {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.contact-success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #1f2937;
}

.contact-success p {
    color: #6b7280;
    margin: 0;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.modal-open {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.modal.modal-open .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.modal-close {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.modal-body {
    padding: 1.5rem;
}

.algorithm-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.algorithm-details li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    color: #4b5563;
}

.algorithm-details li:before {
    content: "•";
    color: #3b82f6;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: #9ca3af;
}

.footer-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .hero-section {
        gap: 3rem;
        padding: 3rem 0;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .phone-trio-mockup {
        width: 600px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-nav {
        display: block;
    }
    
    /* Header adjustments */
    .header {
        height: 60px;
    }
    
    /* Container constraints */
    .container {
        max-width: 100vw;
        padding: 0 1rem;
        overflow-x: hidden;
    }
    
    /* Hero section mobile optimization */
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 2rem 0;
        min-height: auto;
        overflow: hidden;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        word-wrap: break-word;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .hero-ctas {
        justify-content: center;
        gap: 1rem;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .app-store-badge {
        display: block;
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .app-store-badge img {
        height: 45px;
        width: auto;
        max-width: 100%;
        display: block;
        margin: 0 auto;
    }
    
    .app-store-badge:last-child img {
        height: 63px;
    }
    
    /* Phone mockup mobile adjustments - Scroll-triggered animation */
    .hero-visual {
        width: 100%;
        overflow: visible;
        padding: 0rem 0;
        min-height: 420px;
        margin-top: -1rem;
    }
    
    .phone-trio-mockup {
        width: 100%;
        max-width: 380px;
        height: 420px;
        margin: 0 auto;
        cursor: pointer;
        position: relative;
        touch-action: pan-y;
    }
    
    .phone-frame {
        width: 170px;
        height: 340px;
    }
    
    /* Default state: Single phone view (center phone only) */
    .phone-center {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
        z-index: 3;
        transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
        will-change: transform, opacity;
    }
    
    .phone-left {
        transform: translate(-50%, -50%) scale(0.7);
        opacity: 0;
        z-index: 1;
        transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
        will-change: transform, opacity;
        pointer-events: none;
    }
    
    .phone-right {
        transform: translate(-50%, -50%) scale(0.7);
        opacity: 0;
        z-index: 2;
        transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
        will-change: transform, opacity;
        pointer-events: none;
    }
    
    /* Expanded state: Show all three phones with 60% visibility */
    .phone-trio-mockup.expanded .phone-center {
        transform: translate(-50%, -50%) scale(0.85);
        opacity: 1;
        z-index: 3;
    }
    
    .phone-trio-mockup.expanded .phone-left {
        transform: translate(-110%, -50%) scale(0.8);
        opacity: 0.9;
        z-index: 1;
        pointer-events: auto;
    }
    
    .phone-trio-mockup.expanded .phone-right {
        transform: translate(10%, -50%) scale(0.8);
        opacity: 0.9;
        z-index: 2;
        pointer-events: auto;
    }
    
    /* Ensure clean transition between states */
    .phone-trio-mockup {
        transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    }
    
    .phone-trio-mockup * {
        transition-timing-function: cubic-bezier(0.4, 0.0, 0.2, 1);
    }
    

    
    /* Social proof mobile */
    .social-proof {
        padding: 3rem 0;
    }
    
    .testimonials {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .testimonial {
        min-width: 280px;
        padding: 1.5rem;
    }
    
    .app-ratings {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .rating-badge {
        padding: 0.75rem 1rem;
    }
    
    /* Section headers mobile */
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* How it works mobile */
    .how-it-works {
        padding: 4rem 0;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .step-card {
        padding: 2rem 1.5rem;
        margin: 1rem 0;
    }
    
    .step-number {
        top: 15px;
        right: 15px;
    }
    
    .step-screenshot {
        width: 150px;
        height: 300px;
        cursor: pointer;
    }
    
    .step-connector {
        display: block;
        width: 2px;
        height: 2rem;
        background: #e5e7eb;
        margin: 1rem auto;
    }
    
    /* Algorithm section mobile */
    .algorithm-section {
        padding: 4rem 0;
    }
    
    .algorithm-demo {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .demo-arrow {
        transform: rotate(90deg);
        text-align: center;
        margin: 1rem 0;
    }
    
    .image-placeholder {
        height: 250px;
    }
    
    .algorithm-explanation p {
        font-size: 1rem;
    }
    
    /* Info section mobile */
    .info-section {
        padding: 3rem 0;
    }
    
    .categories {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .category-item {
        padding: 0.75rem 1rem;
    }
    
    /* FAQ mobile */
    .faq-section {
        padding: 4rem 0;
    }
    
    .faq-question {
        padding: 1.25rem;
        font-size: 1rem;
    }
    
    .faq-answer p {
        padding: 0 1.25rem 1.25rem;
    }
    
    /* Contact mobile */
    .contact-section {
        padding: 4rem 0;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    /* Footer mobile */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-links {
        justify-content: center;
        gap: 1.5rem;
    }
    
    /* Modal mobile */
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    /* Extra small devices */
    .container {
        padding: 0 1rem;
    }
    
    .header {
        height: 55px;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .nav a {
        font-size: 0.85rem;
    }
    
    /* Hero section extra mobile */
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .tagline {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .app-store-badge img {
        height: 40px;
    }
    
    .app-store-badge:last-child img {
        height: 56px;
    }
    
    /* Phone mockup extra mobile */
    .phone-trio-mockup {
        height: 350px;
        max-width: 300px;
    }
    
    .phone-frame {
        width: 160px;
        height: 320px;
    }
    
    /* Social proof extra mobile */
    .testimonial {
        min-width: 260px;
        padding: 1.25rem;
    }
    
    .testimonial p {
        font-size: 0.9rem;
    }
    
    /* Section headers extra mobile */
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    /* Steps extra mobile */
    .how-it-works {
        padding: 3rem 0;
        overflow: hidden;
    }
    
    .step-card {
        padding: 1.5rem 1rem;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        margin: 1.5rem 0;
    }
    
    .step-number {
        top: 10px;
        right: 10px;
    }
    
    .step-card h3 {
        font-size: 1.1rem;
    }
    
    .step-card p {
        font-size: 0.9rem;
    }
    
    .step-screenshot {
        width: 120px;
        height: 240px;
        margin: 0 auto 1rem;
        cursor: pointer;
    }
    
    /* Algorithm extra mobile */
    .demo-column h3 {
        font-size: 1.25rem;
    }
    
    .image-placeholder {
        height: 200px;
    }
    
    .receipt-content {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    .text-content {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    /* FAQ extra mobile */
    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .faq-answer p {
        padding: 0 1rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Contact extra mobile */
    .contact-form {
        padding: 1.5rem 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.625rem;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Modal extra mobile */
    .modal-content {
        width: 98%;
        margin: 0.5rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .step-card:hover {
        transform: none;
    }
    
    .faq-item:hover {
        transform: none;
    }
    
    .category-item:hover {
        transform: none;
    }
    
    .learn-more-btn:hover {
        transform: none;
    }
    
    .submit-btn:hover {
        transform: none;
    }
    
    /* Increase touch targets */
    .nav a {
        padding: 0.5rem;
    }
    
    .faq-question {
        min-height: 44px;
    }
    
    .copy-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .modal-close {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Phone mockup touch interactions */
    .phone-trio-mockup {
        -webkit-tap-highlight-color: transparent;
    }
    
    .phone-trio-mockup:active {
        transform: scale(0.98);
    }
}

/* Landscape mobile optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 1.5rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .phone-trio-mockup {
        height: 250px;
    }
    
    .how-it-works,
    .algorithm-section,
    .faq-section,
    .contact-section {
        padding: 2rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .phone-frame {
        border-width: 1px;
    }
    
    .step-screenshot .screenshot-content {
        border-width: 1px;
    }
}

/* Print styles */
@media print {
    .header,
    .nav,
    .hero-ctas,
    .modal,
    .footer {
        display: none;
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .phone-trio-mockup {
        display: none;
    }
    
    .step-screenshot {
        display: none;
    }
    
    .algorithm-demo {
        grid-template-columns: 1fr;
    }
    
    .demo-arrow {
        display: none;
    }
}
