/* High Conversion CSS - Mobile First Approach */

/* MOBILE-FIRST: Everything designed for stressed users on phones */
@media (max-width: 768px) {
    /* HERO SECTION - MAXIMUM IMPACT */
    #heroSection {
        padding: 1rem !important;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    /* EMOTIONAL HEADLINE - BIGGER, BOLDER */
    #heroSection h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        font-weight: 900 !important;
        margin-bottom: 0.5rem !important;
        color: #1a1a1a !important;
    }

    /* SUBHEADLINE - CLEAR VALUE PROP */
    #heroSection .text-xl,
    #heroSection .text-2xl {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1.5rem !important;
        color: #4a4a4a !important;
    }

    /* PRIMARY CTA - IMPOSSIBLE TO MISS */
    #startAppealBtn,
    .hero-cta-button {
        font-size: 1.4rem !important;
        padding: 1.2rem 2rem !important;
        min-height: 60px !important;
        width: 100% !important;
        max-width: 350px !important;
        background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
        color: white !important;
        border-radius: 12px !important;
        font-weight: 700 !important;
        box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3) !important;
        transition: all 0.3s ease !important;
        margin: 1rem auto !important;
        display: block !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        position: relative !important;
        overflow: hidden !important;
    }

    /* CTA HOVER/ACTIVE STATE */
    #startAppealBtn:active,
    .hero-cta-button:active {
        transform: scale(0.98) !important;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2) !important;
    }

    /* FREE BADGE ON BUTTON */
    #startAppealBtn::after {
        content: "100% FREE" !important;
        position: absolute !important;
        top: -8px !important;
        right: 20px !important;
        background: #ef4444 !important;
        color: white !important;
        padding: 2px 8px !important;
        font-size: 0.7rem !important;
        border-radius: 4px !important;
        font-weight: 600 !important;
    }

    /* TRUST SIGNALS - ABOVE THE FOLD */
    .trust-signals {
        display: flex !important;
        justify-content: space-around !important;
        margin: 1.5rem 0 !important;
        padding: 1rem !important;
        background: #f0fdf4 !important;
        border-radius: 8px !important;
    }

    .trust-signal-item {
        text-align: center !important;
        flex: 1 !important;
    }

    .trust-number {
        font-size: 1.8rem !important;
        font-weight: 800 !important;
        color: #059669 !important;
        line-height: 1 !important;
    }

    .trust-label {
        font-size: 0.7rem !important;
        color: #6b7280 !important;
        margin-top: 0.25rem !important;
    }

    /* HIDE COMPLEXITY ON MOBILE */
    .bg-blue-600,
    .bg-indigo-600,
    #aiTeamSection,
    .ai-team-section {
        display: none !important; /* Hide AI team section on mobile initially */
    }

    /* SIMPLE 3-STEP PROCESS */
    .mobile-steps {
        margin: 2rem 0 !important;
        padding: 1rem !important;
        background: white !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
    }

    .step-item {
        display: flex !important;
        align-items: center !important;
        margin-bottom: 1rem !important;
    }

    .step-number {
        width: 32px !important;
        height: 32px !important;
        background: #10b981 !important;
        color: white !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 700 !important;
        margin-right: 1rem !important;
        flex-shrink: 0 !important;
    }

    .step-text {
        font-size: 0.95rem !important;
        color: #374151 !important;
        line-height: 1.3 !important;
    }

    /* URGENCY BANNER */
    .urgency-banner {
        background: #fef3c7 !important;
        border-left: 4px solid #f59e0b !important;
        padding: 0.75rem !important;
        margin: 1rem 0 !important;
        border-radius: 0 8px 8px 0 !important;
    }

    .urgency-text {
        font-size: 0.9rem !important;
        color: #92400e !important;
        font-weight: 600 !important;
    }

    /* SOCIAL PROOF */
    .success-stories {
        margin-top: 2rem !important;
        padding: 1rem !important;
    }

    .story-card {
        background: white !important;
        padding: 1rem !important;
        border-radius: 8px !important;
        margin-bottom: 1rem !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    }

    .story-quote {
        font-style: italic !important;
        color: #4b5563 !important;
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.5rem !important;
    }

    .story-author {
        font-weight: 600 !important;
        color: #1f2937 !important;
        font-size: 0.85rem !important;
    }

    .story-result {
        color: #059669 !important;
        font-weight: 700 !important;
        font-size: 0.9rem !important;
    }

    /* ALL BUTTONS - MINIMUM 48px HEIGHT - FORCE ON ALL ELEMENTS */
    button,
    .btn,
    [role="button"],
    a.button,
    input[type="button"],
    input[type="submit"],
    .bg-green-500,
    .bg-blue-600,
    .bg-indigo-600,
    a[href*="start"],
    a[href*="demo"],
    .rounded-lg,
    .rounded-full {
        min-height: 48px !important;
        min-width: 48px !important;
        padding: 12px 20px !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
        cursor: pointer !important;
        touch-action: manipulation !important; /* Better touch handling */
    }

    /* Specific fix for small inline buttons */
    .text-sm.rounded,
    .text-xs.rounded {
        min-height: 44px !important;
        padding: 10px 16px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* REDUCE WHITESPACE */
    .py-20, .py-16, .py-12 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    /* STICKY CTA for easy access */
    .sticky-cta {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 1rem !important;
        background: white !important;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.1) !important;
        z-index: 999 !important;
        display: none !important; /* Show after scroll */
    }

    .sticky-cta.visible {
        display: block !important;
    }
}

/* DESKTOP OPTIMIZATIONS */
@media (min-width: 769px) {
    /* HERO CTA PROMINENCE */
    #startAppealBtn,
    .hero-cta-button {
        font-size: 1.3rem !important;
        padding: 1rem 2.5rem !important;
        min-height: 56px !important;
        font-weight: 700 !important;
        background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25) !important;
        transition: all 0.3s ease !important;
        position: relative !important;
    }

    #startAppealBtn:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3) !important;
    }

    /* FREE BADGE */
    #startAppealBtn::after {
        content: "FREE - No Credit Card" !important;
        position: absolute !important;
        top: -10px !important;
        right: -10px !important;
        background: #ef4444 !important;
        color: white !important;
        padding: 4px 12px !important;
        font-size: 0.75rem !important;
        border-radius: 4px !important;
        font-weight: 600 !important;
        transform: rotate(10deg) !important;
    }

    /* TRUST BAR */
    .desktop-trust-bar {
        display: flex !important;
        justify-content: center !important;
        gap: 3rem !important;
        margin: 2rem 0 !important;
        padding: 1.5rem !important;
        background: linear-gradient(to right, #f0fdf4, #dbeafe) !important;
        border-radius: 12px !important;
    }

    .trust-metric {
        text-align: center !important;
    }

    .metric-number {
        font-size: 2.5rem !important;
        font-weight: 800 !important;
        background: linear-gradient(135deg, #059669, #2563eb) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        line-height: 1 !important;
    }

    .metric-label {
        font-size: 0.9rem !important;
        color: #6b7280 !important;
        margin-top: 0.5rem !important;
        font-weight: 600 !important;
    }
}

/* ANIMATIONS FOR ENGAGEMENT */
@keyframes pulse-shadow {
    0% {
        box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
    }
    100% {
        box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
    }
}

#startAppealBtn {
    animation: pulse-shadow 2s ease-in-out infinite !important;
}

/* LOADING STATE FOR TRUST */
.loading-appeal {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    border: 3px solid rgba(16, 185, 129, 0.3) !important;
    border-radius: 50% !important;
    border-top-color: #10b981 !important;
    animation: spin 1s ease-in-out infinite !important;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* HIGH CONTRAST FOR ACCESSIBILITY */
body {
    color: #1a1a1a !important;
    background: #ffffff !important;
}

h1, h2, h3 {
    color: #111827 !important;
}

/* CLEAR FOCUS STATES */
button:focus,
a:focus,
input:focus {
    outline: 3px solid #2563eb !important;
    outline-offset: 2px !important;
}

/* SUCCESS MESSAGE */
.success-notification {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    background: #10b981 !important;
    color: white !important;
    padding: 1rem 1.5rem !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    z-index: 9999 !important;
    animation: slideIn 0.3s ease !important;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}