/* ============================================
   RESPONSIVE OVERRIDES - FORCE RESPONSIVE
   This file uses !important to override existing styles
   ============================================ */

/* Mobile Viewport Meta Fix */
@viewport {
  width: device-width;
  zoom: 1.0;
}

/* Global Fixes */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

* {
  box-sizing: border-box !important;
}

/* Mobile Styles (320px - 767px) */
@media (max-width: 767px) {
  
  /* FORCE DISABLE STICKY BEHAVIOR ON MOBILE ONLY */
  .ln-new-feature-stage {
    position: relative !important;
    padding: 40px 0 !important;
    background: transparent !important;
    min-height: auto !important;
    height: auto !important;
  }
  
  .ln-new-feature-stage-inner {
    position: relative !important;
    top: auto !important;
    min-height: auto !important;
    height: auto !important;
    transform: none !important;
  }
  
  .ln-new-feature-stage [data-feature-card] {
    position: relative !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    margin-bottom: 40px !important;
    inset: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
  }
  
  .ln-new-feature-stage [data-feature-card]:last-child {
    margin-bottom: 0 !important;
  }
  
  /* Remove all transition classes on mobile */
  .ln-new-feature-stage [data-feature-card].ln-new-feature-active,
  .ln-new-feature-stage [data-feature-card].ln-new-feature-next,
  .ln-new-feature-stage [data-feature-card].ln-new-feature-prev,
  .ln-new-feature-stage [data-feature-card].ln-new-feature-transition-out,
  .ln-new-feature-stage [data-feature-card].ln-new-feature-transition-left,
  .ln-new-feature-stage [data-feature-card].ln-new-feature-transition-right {
    position: relative !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
  
  /* Hide progress dots on mobile */
  .ln-new-feature-stage-progress {
    display: none !important;
    visibility: hidden !important;
  }
  
  /* Force container widths */
  .container,
  .ln-new-hero-content,
  .ln-new-consolidation-container,
  .ln-new-platform-features-container,
  .ln-new-journey-flow-container,
  .ln-new-feature-split-container,
  .ln-new-crm-container,
  .ln-new-edocusign-container,
  .ln-new-why-switch-container,
  .ln-new-integrations-container,
  .ln-new-testimonials-container,
  .ln-new-trust-container,
  .ln-new-faq-container,
  .ln-new-cta-container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    overflow-x: hidden !important;
  }
  
  /* Hero Section */
  .ln-new-designer-mode .ln-new-hero {
    padding: 100px 0 60px !important;
    min-height: auto !important;
  }
  
  .ln-new-hero-content {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  
  .ln-new-hero-text h1 {
    font-size: clamp(1.75rem, 6vw, 2.2rem) !important;
    line-height: 1.2 !important;
  }
  
  .ln-new-hero-cta {
    flex-direction: column !important;
    gap: 12px !important;
  }
  
  .ln-new-hero-cta .ln-new-btn {
    width: 100% !important;
  }
  
  .ln-new-hero-dashboard {
    transform: scale(0.85) !important;
    max-width: 100% !important;
  }
  
  .ln-new-float-card {
    display: none !important;
  }
  
  /* Stats - Horizontal Scroll */
  .ln-new-stats-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 16px !important;
    padding: 0 20px !important;
    grid-template-columns: none !important;
  }
  
  .ln-new-stat-item {
    flex: 0 0 280px !important;
    min-width: 280px !important;
    scroll-snap-align: center !important;
    border-right: 0 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    padding: 24px !important;
    border-radius: 16px !important;
  }
  
  /* Consolidation Tools - Horizontal Scroll */
  .ln-new-tools-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 16px !important;
    grid-template-columns: none !important;
  }
  
  .ln-new-tool-card {
    flex: 0 0 140px !important;
    min-width: 140px !important;
    scroll-snap-align: center !important;
  }
  
  /* Platform Features - Horizontal Scroll */
  .ln-new-platform-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 16px !important;
    grid-template-columns: none !important;
  }
  
  .ln-new-platform-item {
    flex: 0 0 280px !important;
    min-width: 280px !important;
    scroll-snap-align: center !important;
  }
  
  /* Journey Flow - Horizontal Scroll */
  .ln-new-journey-steps-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 12px !important;
  }
  
  .ln-new-journey-step-card {
    flex: 0 0 200px !important;
    min-width: 200px !important;
    scroll-snap-align: center !important;
  }
  
  .ln-new-journey-step-link {
    display: none !important;
  }
  
  /* Feature Splits - Stack */
  .ln-new-feature-split-container {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  
  .ln-new-feature-split-media,
  .ln-new-feature-split-content {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .ln-new-feature-split-media {
    order: 1 !important;
  }
  
  .ln-new-feature-split-content {
    order: 2 !important;
  }
  
  .ln-new-feature-split-alt .ln-new-feature-split-media {
    order: 1 !important;
  }
  
  .ln-new-feature-split-alt .ln-new-feature-split-content {
    order: 2 !important;
  }
  
  /* Feature Mockups - Scale Down */
  .ln-new-feature-phone,
  .ln-new-email-builder,
  .ln-new-email-suite-mockup,
  .ln-new-push-notification-mockup,
  .ln-new-schedule-widget,
  .ln-new-sms-phone {
    transform: scale(0.85) !important;
    transform-origin: center !important;
    max-width: 100% !important;
  }
  
  /* CRM Section */
  .ln-new-crm-container {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  
  .ln-new-crm-showcase {
    order: 2 !important;
  }
  
  .ln-new-crm-content {
    order: 1 !important;
  }
  
  .ln-new-crm-interface {
    transform: scale(0.8) !important;
    transform-origin: top center !important;
  }
  
  .ln-new-crm-pipeline {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 12px !important;
    grid-template-columns: none !important;
  }
  
  .ln-new-crm-column {
    flex: 0 0 280px !important;
    min-width: 280px !important;
    scroll-snap-align: start !important;
  }
  
  /* eDocuSign Section */
  .ln-new-edocusign-container {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  
  .ln-new-edocusign-visual {
    order: 1 !important;
  }
  
  .ln-new-edocusign-content {
    order: 2 !important;
  }
  
  .ln-new-edocusign-mockup {
    transform: scale(0.85) !important;
  }
  
  /* Comparison Grid */
  .ln-new-comparison-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  
  /* Testimonials - Horizontal Scroll */
  .ln-new-testimonials-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 20px !important;
    grid-template-columns: none !important;
  }
  
  .ln-new-testimonial-card {
    flex: 0 0 300px !important;
    min-width: 300px !important;
    scroll-snap-align: center !important;
  }
  
  /* Trust Section - Horizontal Scroll */
  .ln-new-trust-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 16px !important;
    grid-template-columns: none !important;
  }
  
  .ln-new-trust-item {
    flex: 0 0 260px !important;
    min-width: 260px !important;
    scroll-snap-align: center !important;
  }
  
  /* FAQ */
  .ln-new-faq-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Hide scrollbars but keep functionality */
  .ln-new-stats-grid::-webkit-scrollbar,
  .ln-new-tools-grid::-webkit-scrollbar,
  .ln-new-platform-grid::-webkit-scrollbar,
  .ln-new-journey-steps-row::-webkit-scrollbar,
  .ln-new-crm-pipeline::-webkit-scrollbar,
  .ln-new-testimonials-grid::-webkit-scrollbar,
  .ln-new-trust-grid::-webkit-scrollbar {
    display: none !important;
  }
  
  .ln-new-stats-grid,
  .ln-new-tools-grid,
  .ln-new-platform-grid,
  .ln-new-journey-steps-row,
  .ln-new-crm-pipeline,
  .ln-new-testimonials-grid,
  .ln-new-trust-grid {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  
  /* Section Padding */
  .ln-new-consolidation,
  .ln-new-platform-features,
  .ln-new-journey-flow,
  .ln-new-feature-split,
  .ln-new-crm-section,
  .ln-new-edocusign-section,
  .ln-new-why-switch,
  .ln-new-integrations,
  .ln-new-testimonials,
  .ln-new-trust,
  .ln-new-faq,
  .ln-new-cta {
    padding: 50px 0 !important;
  }
  
  /* Typography */
  h2 {
    font-size: clamp(1.75rem, 5vw, 2.2rem) !important;
    line-height: 1.2 !important;
  }
  
  h3 {
    font-size: 1.1rem !important;
  }
  
  p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }
}

/* Tablet Styles (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  
  .ln-new-hero-content {
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
  }
  
  .ln-new-platform-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  .ln-new-testimonials-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .ln-new-trust-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .ln-new-comparison-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
