/* ===================================================================
   CONVERSION OPTIMIZATION STYLES
   =================================================================== */

/* Hero brand logos row - Desktop ultra-premium layout */
@media (min-width: 1024px) {
    /* Consistent left alignment for all hero elements */
    .hero-text-section {
        padding-left: 64px !important;
        min-width: 0;
        position: relative; /* Ensure proper child positioning */
    }
    
    /* Premium spacing adjustments */
    .hero-headline {
        margin-bottom: 32px !important; /* 32px space to app badges */
        margin-left: 0 !important; /* Ensure left alignment */
        padding-left: 0 !important;
    }
    
    .hero-subheadline {
        line-height: 1.45 !important; /* Improved readability */
        margin-bottom: 0 !important;
        margin-left: 0 !important; /* Ensure left alignment */
        padding-left: 0 !important;
    }
    
    .hero-app-badges {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important; /* Ensure left alignment */
        padding-left: 0 !important;
        justify-content: flex-start !important; /* Align badges to left */
    }
    
    .app-badges-subtext {
        margin-bottom: 44px !important; /* Added 10px more space to logos */
        margin-left: 0 !important; /* Ensure left alignment */
        padding-left: 0 !important;
        text-align: left !important;
    }
    
    .hero-brand-logos {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 18px; /* Tighter horizontal spacing */
        row-gap: 14px; /* Tighter vertical spacing between rows */
        margin-top: 0;
        margin-bottom: 20px; /* Reduced margin to credibility row */
        margin-left: 0; /* Ensure no extra margin */
        flex-wrap: wrap;
        max-width: 600px; /* Slightly narrower to encourage tighter layout */
        opacity: 0;
        animation: fadeIn 0.4s ease-out forwards;
        animation-delay: 0.7s;
        padding-left: 0; /* Align with text above */
    }
    
    .hero-brand-logos .hero-brand-logo {
        margin: 0; /* Remove all margins */
    }
    
    .hero-brand-logos .brand-divider {
        margin: 0; /* Remove all margins */
        padding: 0;
    }
    
    /* Normalized logo height for visual consistency */
    .hero-brand-logo {
        height: 26px; /* Base height for all logos */
        width: auto;
        object-fit: contain;
        opacity: 1;
        transition: opacity 0.3s ease;
        image-rendering: -webkit-optimize-contrast; /* Crisp rendering */
        -webkit-font-smoothing: antialiased;
    }
    
    /* Force 2-row layout - break after Nike */
    .hero-brand-logos .hero-brand-logo[alt="Nike"] + .brand-divider {
        width: 100%;
        height: 0;
        opacity: 0;
        flex-basis: 100%;
        margin: 0;
        display: block;
        padding: 0;
    }
    
    /* Hide last divider */
    .hero-brand-logos .brand-divider:last-child {
        display: none; /* Hide last divider after Dior */
    }
    
    /* Desktop-specific divider styling - more visible */
    .hero-brand-logos .brand-divider {
        opacity: 0.6;
        font-size: 14px;
        line-height: 26px; /* Match logo height */
        display: inline-flex;
        align-items: center;
        margin: 0 2px;
        color: rgba(255, 255, 255, 0.6);
        font-weight: 400;
    }
}

/* Default mobile/tablet styles */
.hero-brand-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 0.4s ease-out forwards;
    animation-delay: 0.7s;
}

.hero-brand-logo {
    height: 20px;
    width: auto;
    object-fit: contain;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.hero-brand-logo:hover {
    opacity: 0.8;
}

.brand-divider {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    user-select: none;
    margin: 0 4px;
    line-height: 1;
    font-weight: 400;
}

/* Desktop-specific optical adjustments for visual consistency */
@media (min-width: 1024px) {
    /* Base height for visual consistency */
    .hero-brand-logo {
        height: 26px !important;
        width: auto !important;
        object-fit: contain;
    }
    
    /* Reduce size of visually heavier logos by 12-15% */
    .hero-brand-logo[alt="Farfetch"],
    .hero-brand-logo[alt="Levi's"],
    .hero-brand-logo[alt="Zalando"] {
        height: 22px !important; /* ~15% smaller */
    }
    
    /* Ensure ASOS and Uniqlo match others */
    .hero-brand-logo[alt="ASOS"],
    .hero-brand-logo[alt="Uniqlo"] {
        height: 26px !important;
        min-height: 26px !important;
    }
}

/* Ensure pure white (#FFFFFF) for all logos with crisp rendering */
.hero-brand-logo {
    filter: brightness(0) invert(1); /* Force pure white */
    -webkit-backface-visibility: hidden; /* Fix for crisp rendering */
    transform: translateZ(0); /* GPU acceleration for sharpness */
    -webkit-font-smoothing: antialiased;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Don't apply filter to already white PNGs */
.hero-brand-logo[src*="asos-white"],
.hero-brand-logo[src*="uniqlo-logo"],
.hero-brand-logo[src*="farfetch-white"],
.hero-brand-logos img[src*="asos-white"],
.hero-brand-logos img[src*="uniqlo-logo"],
.hero-brand-logos img[src*="farfetch-white"] {
    filter: none !important;
}


/* No visual weight adjustments - all logos equal */
/* Removed individual contrast boosts to maintain consistency */

/* CRITICAL OVERRIDES - Desktop only */
@media (min-width: 1024px) {
    /* ASOS needs to be much larger to match visual weight */
    .hero-brand-logos img[src="asos-white.png"],
    img.hero-brand-logo[src="asos-white.png"] {
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
        width: auto !important;
    }
    
    /* Uniqlo also needs to be larger */
    .hero-brand-logos img[src="uniqlo-logo-transparent.png"],
    img.hero-brand-logo[src="uniqlo-logo-transparent.png"] {
        height: 30px !important;
        min-height: 30px !important;
        max-height: 30px !important;
        width: auto !important;
    }
    
    /* Force alignment */
    .hero-text-section .hero-brand-logos {
        justify-content: flex-start !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
}


/* App badges subtext */
.app-badges-subtext {
    font-size: 0.813rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
    margin-bottom: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    opacity: 0;
    animation: fadeIn 0.4s ease-out forwards;
    animation-delay: 0.6s;
}

/* Reduce spacing in hero for tighter layout */
.hero-app-badges {
    margin-bottom: 12px !important;
}

/* Enhanced how-it-works step hover */
.how-step {
    transition: all 0.2s ease-out !important;
    transform: translateY(0);
}

.how-step:hover {
    transform: none !important;
    box-shadow: 0 16px 48px rgba(147, 51, 234, 0.12),
                0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

/* Add shadows to phone mockups for depth */
.how-step .premium-mockup {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15)) 
            drop-shadow(0 8px 16px rgba(147, 51, 234, 0.1));
    transition: filter 0.3s ease-out;
}

.how-step:hover .premium-mockup {
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.2)) 
            drop-shadow(0 12px 24px rgba(147, 51, 234, 0.15));
}

/* Aggregate rating styles */
.aggregate-rating {
    margin-bottom: 20px;
}

.stars-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.star-icon {
    font-size: 2rem;
}

.rating-number {
    font-family: 'Inter', sans-serif;
}

.rating-divider {
    opacity: 0.3;
    font-weight: 400;
}

.rating-total {
    opacity: 0.5;
    font-size: 2rem;
}

.rating-subtitle {
    font-size: 1rem;
    color: #666;
    font-family: 'Inter', sans-serif;
    margin: 0;
}

/* Hide the old star rating row since we have the new aggregate rating */
.star-rating-row {
    display: none;
}

/* Trust tagline under CTA */
.trust-tagline {
    font-size: 0.875rem;
    color: #666;
    margin-top: 15px;
    font-family: 'Inter', sans-serif;
    opacity: 0.8;
}

/* CTA text styling */
.cta-text {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
}

/* Footer privacy statement */
.footer-privacy-statement {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.938rem;
    margin-bottom: 40px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Tablet optimization - prevent overlap with subject */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-text-section {
        padding-left: 20px; /* Slight left shift to avoid bag overlap */
    }
    
    .hero-subheadline {
        margin-bottom: 60px !important; /* Generous breathing room on tablets */
    }
    
    .hero-app-badges {
        margin-top: 8px !important; /* Add some top margin too */
    }
    
    .app-badges-subtext {
        margin-bottom: 32px !important; /* Better spacing flow */
    }
}

/* Mobile optimizations - keep existing behavior */
@media (max-width: 1023px) {
    .hero-brand-logos {
        justify-content: center;
        gap: 14px;
        margin-top: 16px;
        margin-bottom: 20px;
    }
    
    .hero-brand-logo {
        height: 20px;
    }
    
    /* Mobile can stay as single row or scroll */
    .hero-brand-logo[alt="Uniqlo"] + .brand-divider {
        display: inline-block;
        width: auto;
        height: auto;
        flex-basis: auto;
    }
    
    .app-badges-subtext {
        text-align: center;
    }
    
    /* Stronger overlay on mobile for better text legibility */
    .gradient-overlay {
        background: linear-gradient(to bottom, 
            rgba(0,0,0,0.5) 0%,
            rgba(0,0,0,0.7) 100%) !important;
    }
}
    
    .aggregate-rating {
        margin-bottom: 15px;
    }
    
    .stars-large {
        font-size: 2rem;
    }
    
    .star-icon {
        font-size: 1.5rem;
    }
    
    .rating-total {
        font-size: 1.5rem;
    }
    
    .rating-subtitle {
        font-size: 0.875rem;
    }
}

/* Tighten hero section spacing */
.hero-headline {
    margin-bottom: 16px !important;
}

.hero-subheadline {
    margin-bottom: 0 !important;
}

.scroll-cta {
    margin-bottom: 20px !important;
}

/* Ensure proper brand logo sizing in trust strip */
.trust-logo[alt="Farfetch"] {
    height: 12px;
}

.trust-logo[alt="Dior"] {
    height: 14px;
}

/* Animation for trust elements */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Medium Screens - Subject Scaling Breakpoint */
@media (max-width: 1200px) and (min-width: 769px) {
    /* Scale down video/background to prevent text overlap */
    .hero-video {
        transform: scale(0.94);
        transform-origin: center right;
    }
    
    /* Adjust content spacing */
    .hero-content {
        padding-left: 45px !important;
        padding-right: 45px !important;
    }
    
    /* Slightly smaller text for this range */
    .hero-headline {
        font-size: 60px !important;
    }
    
    .hero-subheadline {
        font-size: 18px !important;
    }
}

/* Mobile Responsive Optimizations */
@media (max-width: 480px) {
    /* Tighter headline sizing */
    .hero-headline {
        font-size: clamp(38px, 10.5vw, 48px) \!important; /* ~10% smaller */
        line-height: 1.02 \!important;
        margin-bottom: 12px \!important;
    }
    
    .hero-subheadline {
        font-size: 15px !important;
        line-height: 1.35 !important;
        margin-bottom: 32px !important; /* More space before app badges */
    }
    
    /* Tighter app badge spacing */
    .hero-app-badges {
        margin-bottom: 10px \!important;
    }
    
    .app-badges-subtext {
        margin-bottom: 16px \!important;
        font-size: 0.75rem \!important;
    }
    
    /* Smaller brand logos on mobile */
    .hero-brand-logos {
        margin-bottom: 14px \!important;
    }
    
    /* Tighter credibility row */
    .credibility-row {
        margin-bottom: 20px \!important;
        font-size: 0.75rem \!important;
    }
}
