/* Remode - Utility Styles */
/* Generated: Thu Aug  7 10:13:29 CEST 2025 */

/* ===== From scroll-fixes.css ===== */
/* --- SCROLL END CLAMP (Less Aggressive) --- */
html {
  overflow-y: auto !important;   /* single scrollbar */
  overflow-x: hidden !important;
  scroll-snap-type: none !important;
  overscroll-behavior: none !important;
}

body {
  overflow: visible !important;   /* no inner scrollbars */
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  overscroll-behavior: none !important;
}

/* Main content expands */
main { 
  flex: 1 0 auto !important;
  overflow: visible !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Footer is absolutely last */
footer, .footer {
  flex-shrink: 0 !important;
  margin: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  /* Keep original footer padding */
}

/* Kill ALL elements after footer */
.footer ~ *,
footer ~ *,
body > :last-child ~ * {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Ensure footer is truly last visible element */
body > :last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Only kill body/html/footer pseudo elements */
body::after, body::before,
html::after, html::before,
.footer::after, .footer::before,
footer::after, footer::before {
  display: none !important;
  content: none !important;
}

/* Remove any invisible spacers */
br:last-child,
div:empty:last-child,
p:empty:last-child,
span:empty:last-child {
  display: none !important;
}

/* Only limit hero height */
.hero {
  overflow: visible !important;
}

/* Absolute positioning containment */
.hero-video, .hero-gradient, .gradient-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
}


/* Prevent ALL overscroll */
html, body, main, section { 
  overscroll-behavior-y: none !important;
  overscroll-behavior-x: none !important;
}


/* ===== From why-remode-mobile-perfect.css ===== */
/* Perfect mobile and tablet optimization for Why Use Remode section */

/* Mobile optimizations (< 768px) */
@media (max-width: 767px) {
    .why-remode {
        padding: 100px 20px 80px !important;
        margin-top: -50px !important;
        background: linear-gradient(to bottom,
            rgba(255, 248, 231, 0.3) 0%,
            #FFF8E7 15%,
            #FFF8E7 85%,
            rgba(246, 230, 255, 0.2) 100%
        ) !important;
    }
    
    /* Remove decorative elements on mobile for cleaner look */
    .why-remode::before,
    .why-remode::after {
        display: none !important;
    }
    
    .why-remode h2 {
        font-size: 32px !important;
        line-height: 1.2 !important;
        margin-bottom: 16px !important;
        font-weight: 400 !important;
    }
    
    .why-intro {
        font-size: 16px !important;
        line-height: 1.5 !important;
        margin-bottom: 40px !important;
        padding: 0 10px !important;
        color: rgba(26, 26, 26, 0.8) !important;
    }
    
    /* Benefits grid mobile optimization */
    .benefits-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .benefit-card {
        background: rgba(255, 255, 255, 0.8) !important;
        backdrop-filter: blur(10px) !important;
        border-radius: 20px !important;
        padding: 32px 24px !important;
        min-height: auto !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
        border: 1px solid rgba(180, 75, 255, 0.1) !important;
    }
    
    .benefit-icon {
        width: 56px !important;
        height: 56px !important;
        margin-bottom: 20px !important;
        background: linear-gradient(135deg, rgba(180, 75, 255, 0.1) 0%, rgba(255, 111, 207, 0.1) 100%) !important;
    }
    
    .benefit-emoji {
        font-size: 28px !important;
    }
    
    .benefit-card h3 {
        font-size: 20px !important;
        font-weight: 600 !important;
        margin-bottom: 12px !important;
        color: #1a1a1a !important;
    }
    
    .benefit-card p {
        font-size: 14px !important;
        line-height: 1.6 !important;
        color: rgba(26, 26, 26, 0.7) !important;
        margin-bottom: 16px !important;
    }
    
    .micro-stat {
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #B44BFF !important;
        background: rgba(180, 75, 255, 0.1) !important;
        padding: 6px 12px !important;
        border-radius: 12px !important;
        display: inline-block !important;
    }
    
    /* CTA section mobile */
    .section-cta {
        margin-top: 48px !important;
        padding: 36px 24px !important;
        border-radius: 20px !important;
        background: linear-gradient(135deg, 
            rgba(250, 244, 255, 0.8) 0%, 
            rgba(251, 221, 250, 0.8) 100%) !important;
        box-shadow: 0 8px 32px rgba(180, 75, 255, 0.12) !important;
    }
    
    .cta-personality {
        font-size: 18px !important;
        font-weight: 600 !important;
        color: #B44BFF !important;
        margin-bottom: 8px !important;
    }
    
    .section-cta .cta-text {
        font-size: 16px !important;
        margin-bottom: 24px !important;
        color: #1a1a1a !important;
        font-weight: 500 !important;
    }
    
    /* Badge positioning in Why section */
    .section-cta .hero-app-badges {
        gap: 12px !important;
        margin-top: 0 !important;
    }
}

/* Small mobile devices (< 375px) */
@media (max-width: 374px) {
    .why-remode {
        padding: 80px 16px 60px !important;
    }
    
    .why-remode h2 {
        font-size: 28px !important;
    }
    
    .why-intro {
        font-size: 15px !important;
        margin-bottom: 32px !important;
    }
    
    .benefit-card {
        padding: 24px 20px !important;
    }
    
    .benefit-icon {
        width: 48px !important;
        height: 48px !important;
    }
    
    .benefit-emoji {
        font-size: 24px !important;
    }
    
    .benefit-card h3 {
        font-size: 18px !important;
    }
    
    .benefit-card p {
        font-size: 13px !important;
    }
    
    .section-cta {
        padding: 28px 20px !important;
    }
}

/* Tablet optimizations (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .why-remode {
        padding: 120px 40px 100px !important;
    }
    
    .why-remode h2 {
        font-size: 40px !important;
        margin-bottom: 20px !important;
    }
    
    .why-intro {
        font-size: 20px !important;
        margin-bottom: 60px !important;
        max-width: 600px !important;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 32px !important;
        max-width: 900px !important;
        margin: 0 auto !important;
    }
    
    .benefit-card {
        padding: 40px 28px !important;
        background: rgba(255, 255, 255, 0.7) !important;
        backdrop-filter: blur(10px) !important;
        border-radius: 24px !important;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08) !important;
    }
    
    .benefit-icon {
        width: 64px !important;
        height: 64px !important;
    }
    
    .benefit-emoji {
        font-size: 32px !important;
    }
    
    .section-cta {
        margin-top: 80px !important;
        padding: 56px 48px !important;
        max-width: 800px !important;
    }
    
    .cta-personality {
        font-size: 20px !important;
    }
    
    .section-cta .cta-text {
        font-size: 24px !important;
        margin-bottom: 36px !important;
    }
}

/* Landscape mobile optimization */
@media (max-width: 767px) and (orientation: landscape) {
    .why-remode {
        padding: 60px 40px 60px !important;
    }
    
    .benefits-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
    
    .benefit-card {
        padding: 24px 20px !important;
    }
    
    .section-cta {
        margin-top: 40px !important;
        padding: 28px 32px !important;
    }
}

/* Ensure smooth transitions */
@media (max-width: 1024px) {
    .why-remode,
    .benefit-card,
    .section-cta {
        transition: all 0.3s ease !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .benefit-card {
        border: 2px solid #B44BFF !important;
    }
    
    .micro-stat {
        border: 1px solid #B44BFF !important;
    }
}
