/* ===============================
   Mobile Responsive Styles
   Beautiful on Every Device
   =============================== */

/* Tablet Styles (768px and below) */
@media (max-width: 768px) {
  /* Typography Adjustments */
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  /* Container */
  .container {
    padding: 0 1rem;
  }
  
  /* Header Adjustments */
  .header-content {
    padding: 0.75rem 0;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .header-cta {
    display: none;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: auto;
    padding: var(--space-sm) 0; /* Reduced from var(--space-md) */
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg); /* Reduced from var(--space-xl) */
  }
  
  .hero-text {
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem; /* Reduced from 1rem */
  }
  
  .hero-text p {
    font-size: 1.125rem;
    margin-bottom: 1rem; /* Added explicit smaller margin */
  }
  
  .hero-features {
    max-width: 400px;
    margin: 0 auto;
  }
  
  /* Upload Card */
  .upload-card {
    padding: var(--space-md); /* Reduced from var(--space-lg) */
  }
  
  .upload-header h2 {
    font-size: 1.5rem;
  }
  
  /* Dropzone */
  .dropzone {
    padding: var(--space-xl);
  }
  
  .upload-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .upload-text h3 {
    font-size: 1.25rem;
  }
  
  /* Form Row */
  .form-row {
    grid-template-columns: 1fr;
  }
  
  /* Pricing Section */
  .price-tag .amount {
    font-size: 2.5rem;
  }
  
  /* How It Works */
  .how-it-works {
    padding: var(--space-md) 0; /* Further reduced for mobile */
  }
  
  .steps-grid {
    grid-template-columns: 1fr; /* Single column stack for mobile */
    gap: var(--space-md); /* Better spacing for mobile */
    max-width: 500px;
    margin: 0 auto;
  }
  
  .steps-grid::before {
    display: none !important;
  }
  
  .step-card {
    padding: 1.5rem; /* Better padding for mobile */
    min-height: 320px; /* Adequate height for mobile */
    gap: 1.25rem; /* Consistent spacing for mobile */
  }
  
  .step-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0; /* Remove margin, using gap instead */
    animation: bounce-float 3s ease-in-out infinite;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
  }
  
  .step-icon {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); /* Yellow accent from hero banner */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0; /* Remove margin, using gap instead */
    animation: float-icon 4s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3)); /* Add subtle glow */
    flex-shrink: 0;
    line-height: 1;
  }
  
  .step-card h3 {
    font-size: 1.25rem;
    margin: 0; /* Remove margin, using gap instead */
    line-height: 1.3;
    flex-shrink: 0;
  }
  
  .step-card p {
    font-size: 0.9rem; /* Slightly reduced for mobile */
    margin: 0;
    text-align: center;
    flex-grow: 1;
  }
  
  /* Trust Stats */
  .trust-badges {
    gap: var(--space-md);
  }
  
  .trust-badge {
    padding: var(--space-sm) var(--space-md);
  }
  
  .trust-stats {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  /* Scroll Indicator */
  .scroll-indicator {
    bottom: var(--space-md);
  }
  
  .scroll-arrow {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .scroll-text {
    font-size: 0.75rem;
  }
  
  /* Footer */
  .footer-content {
    text-align: center;
  }
  
  /* Buttons */
  .btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  /* Floating Shapes */
  .floating-shape {
    display: none;
  }
  
  .hero-section::after {
    width: 200px;
    height: 200px;
  }
}

/* Mobile Styles (480px and below) */
@media (max-width: 480px) {
  /* Typography */
  body {
    font-size: 0.875rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  h4 {
    font-size: 1.125rem;
  }
  
  /* Header */
  .logo {
    font-size: 1.25rem;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 400px;
    padding: calc(var(--space-2xl) * 1.25) 0;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .hero-text h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero-text p {
    font-size: 0.95rem;
  }
  
  .hero-features {
    max-width: none;
  }
  
  .hero-features .feature-item {
    font-size: 0.875rem;
  }
  
  /* Upload Card */
  .upload-card {
    padding: var(--space-md);
  }
  
  .upload-header h2 {
    font-size: 1.5rem;
  }
  
  .upload-header p {
    font-size: 0.875rem;
  }
  
  /* Dropzone */
  .dropzone {
    padding: var(--space-sm) var(--space-md);
    border-width: 2px;
  }
  
  .upload-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-bottom: var(--space-xs);
  }
  
  .upload-text h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }
  
  .upload-text p {
    font-size: 0.875rem;
  }
  
  .upload-button {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
  
  .file-types {
    font-size: 0.75rem;
  }
  
  /* Contact Form */
  .contact-info h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
  }
  
  .form-group input {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
  }
  
  .form-group label {
    font-size: 0.75rem;
  }
  
  /* Pricing */
  .pricing-section {
    padding: var(--space-md);
    margin-top: var(--space-md);
  }
  
  .pricing-header h3 {
    font-size: 1.25rem;
  }
  
  .price-tag .currency {
    font-size: 1.25rem;
  }
  
  .price-tag .amount {
    font-size: 2.5rem;
  }
  
  .price-tag .period {
    font-size: 1rem;
  }
  
  .pricing-features {
    font-size: 0.875rem;
  }
  
  /* Submit Button */
  .submit-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
  }
  
  .security-note,
  .terms-note {
    font-size: 0.75rem;
  }
  
  /* How It Works */
  .how-it-works {
    padding: var(--space-lg) 0; /* Reduced for small mobile */
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md); /* Reduced gap */
  }
  
  .steps-grid::before {
    display: none !important;
  }
  
  .step-card {
    padding: 1.25rem; /* Reduced padding */
    gap: 1rem; /* Tighter spacing for small screens */
  }
  
  .step-number {
    width: 65px;
    height: 65px;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0; /* Remove margin, using gap instead */
    animation: bounce-float 3s ease-in-out infinite;
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.35);
    flex-shrink: 0;
  }
  
  .step-icon {
    font-size: 2.25rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); /* Yellow accent from hero banner */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0; /* Remove margin, using gap instead */
    animation: float-icon 4s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3)); /* Add subtle glow */
    flex-shrink: 0;
    line-height: 1;
  }
  
  .step-card h3 {
    font-size: 1.15rem;
    margin: 0; /* Remove margin, using gap instead */
    flex-shrink: 0;
    font-weight: 600;
    line-height: 1.2;
  }
  
  .step-card p {
    font-size: 0.85rem; /* Reduced for small mobile */
    margin: 0;
    text-align: center;
    flex-grow: 1;
    line-height: 1.4;
  }

  /* Pricing Features Animation */
  .pricing-features {
    height: 75px; /* Reduced height for compact display */
    background: transparent; /* Make background transparent */
    padding: 0; /* Remove padding */
    border-radius: 0; /* Remove border radius */
  }
  
  .pricing-features::before {
    height: 20px; /* Adjusted fade height for mobile */
    background: linear-gradient(to bottom, 
        #f6f9fc 0%, 
        rgba(246, 249, 252, 0.98) 20%,
        rgba(246, 249, 252, 0.8) 60%,
        rgba(246, 249, 252, 0) 100%);
  }
  
  .pricing-features::after {
    height: 20px; /* Adjusted fade height for mobile */
    background: linear-gradient(to top, 
        #e9ecef 0%, 
        rgba(233, 236, 239, 0.98) 20%,
        rgba(233, 236, 239, 0.8) 60%,
        rgba(233, 236, 239, 0) 100%);
  }
  
  .pricing-features-scroll {
    padding: var(--space-xs) var(--space-sm); /* Adjusted padding for mobile */
  }
  
  .pricing-features li {
    height: 40px; /* Reduced from 45px to match proportion */
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.85); /* Semi-transparent background */
    backdrop-filter: blur(8px); /* Slightly less blur on mobile */
    border-radius: var(--radius-md); /* Smaller radius on mobile */
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 3px 15px rgba(102, 126, 234, 0.08);
    margin-bottom: var(--space-xs);
  }
  
  .pricing-features li i {
    color: #10b981; /* Bright green checkmarks */
    font-size: 1rem;
    filter: drop-shadow(0 1px 2px rgba(16, 185, 129, 0.3));
  }
  
  @keyframes pricing-scroll {
    0% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(-200px); /* Updated for 5 items × 40px height */
    }
  }
  
  /* Trust Section */
  .trust-indicators {
    padding: var(--space-xl) 0;
  }
  
  .trust-badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
  
  .trust-badge i {
    font-size: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 0.875rem;
  }
  
  /* Progress Bar */
  .progress-bar {
    height: 6px;
  }
  
  /* Analysis Steps */
  .analysis-step {
    padding: var(--space-xs);
  }
  
  .step-indicator {
    width: 28px;
    height: 28px;
    font-size: 0.875rem;
  }
  
  .step-content h4 {
    font-size: 0.875rem;
  }
  
  .step-content p {
    font-size: 0.75rem;
  }
  
  /* Results */
  .success-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
  
  .dispute-item {
    padding: var(--space-sm);
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }
  
  .item-info h4 {
    font-size: 0.875rem;
  }
  
  .item-info p {
    font-size: 0.75rem;
  }
  
  /* Modal */
  .modal-content {
    margin: var(--space-md);
    padding: var(--space-md);
  }
  
  /* Footer */
  .footer-brand h3 {
    font-size: 1.5rem;
  }
  
  .footer-links h4 {
    font-size: 0.875rem;
  }
  
  .footer-bottom {
    font-size: 0.75rem;
  }
  
  .scroll-indicator {
    bottom: 15px;
    width: 50px;
    height: 50px;
  }
  
  .scroll-arrow {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
  
  .scroll-text {
    font-size: 0.7rem;
  }
}

/* Touch Improvements */
@media (hover: none) and (pointer: coarse) {
  /* Increase touch targets */
  .btn,
  button,
  a,
  input,
  select,
  textarea {
    min-height: 44px;
  }
  
  /* Remove hover effects on touch devices */
  .card:hover,
  .trust-badge:hover,
  .btn:hover {
    transform: none;
    box-shadow: none;
  }
  
  /* Keep step-card hover effects but reduce them for touch */
  .step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.1);
  }
  
  /* Improve dropzone for mobile */
  .dropzone {
    cursor: default;
  }
  
  .upload-button {
    display: inline-flex;
    min-height: 44px;
  }
  
  /* Disable hover effects on steps container for touch devices */
  .steps-container {
    cursor: default;
  }
  
  .steps-container:hover {
    transform: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  }
  
  .steps-container:hover .steps-scroll {
    animation-play-state: running;
  }
  
  .steps-container::after {
    display: none;
  }
}

/* Landscape Mobile */
@media (max-height: 600px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: var(--space-md) 0;
  }
  
  .hero-text h1 {
    font-size: 1.75rem;
  }
  
  .upload-card {
    padding: var(--space-md);
  }
  
  .dropzone {
    padding: var(--space-md);
  }
}

/* Ultra Small Devices */
@media (max-width: 360px) {
  .container {
    padding: 0 0.75rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  .hero-text h1 {
    font-size: 1.625rem;
  }
  
  .price-tag .amount {
    font-size: 1.75rem;
  }
  
  .submit-btn {
    font-size: 0.875rem;
    padding: 0.875rem 1.5rem;
  }
}

/* Prevent Horizontal Scroll */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }
  
  * {
    max-width: 100vw;
  }
}

/* iOS Specific Fixes */
@supports (-webkit-touch-callout: none) {
  /* Fix for iOS input zoom */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px;
  }
  
  /* Fix for iOS button styles */
  button,
  .btn {
    -webkit-appearance: none;
    appearance: none;
  }
} 