@media (max-width:767px) {
  body, .flow-main, .partners-section, .wheel-section {
    overflow-x: hidden;
  }
  .search-section, .approach-section {
    padding-left: 5%;
    padding-right: 5%;
  }
  .search-section {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .flow-inner {
    padding: clamp(1.5rem, 6vw, 3rem) 5vw 3rem;
    min-height: auto;
    min-height: 0;
  }
  /* About page: flow-sections use auto height on mobile, not full viewport */
  .flow-section {
    min-height: auto;
    min-height: 0;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  /* About page: content-sections (hero) also use auto height on mobile */
  .content-section {
    min-height: auto;
    min-height: 0;
    height: auto !important;
  }
  .flow-heading {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    max-width: 100%;
  }
  .search-top h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }
  .partners-header h2 {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }
  .approach-section {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .cta-section {
    padding: 32px 12px;
  }
  /* About page: hide sticky widget on mobile to prevent overlap */
  .sticky-widget {
    z-index: 999998;
  }
  /* iOS safe area padding for bottom elements */
  .scroll-progress,
  .brand-mark,
  .faq-accordion-section,
  .closing-cta {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  /* Mobile: flow-feature-grid better spacing */
  .flow-feature-grid {
    gap: 20px;
  }
  .flow-feature {
    min-width: 100px;
  }
  /* Mobile: flow-no-list better spacing */
  .flow-no-list {
    gap: 12px;
  }
  .flow-no-item {
    min-width: 100%;
    padding-left: 16px;
  }
  /* Mobile: flow-years-badge sizing */
  .flow-years-badge {
    padding: 8px 16px;
  }
  .flow-years-badge .big {
    font-size: clamp(1.2rem, 6vw, 1.8rem);
  }
  /* Mobile: hero-container allows content to flow naturally */
  .hero-container {
    position: relative;
  }
  /* Mobile: fix scroll-line z-index under header */
  .scroll-line {
    z-index: 901;
  }
}

@media (max-width: 480px) {
  h1, h2, h3, .flow-heading, .search-list-item h3 {
    word-break: break-word;
  }
  .flow-heading {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
    max-width: 100%;
  }
  .cta-card {
    border-radius: 24px;
  }
  .cta-card-content {
    padding: 24px;
  }
  .cta-card h2 {
    font-size: clamp(1.6rem, 8vw, 2.5rem);
  }
  /* About hero: smaller text on very small screens */
  .hero-title {
    white-space: normal !important;
    padding: 0 1rem;
    line-height: 1.15;
  }
  .hero-subtitle {
    padding: 0 1rem;
  }
  .section-label {
    font-size: 0.5rem;
    top: 0.8rem;
    right: 0.8rem;
  }
  /* FAQ on mobile */
  .faq-accordion-section {
    padding-left: 4vw;
    padding-right: 4vw;
  }
  .faq-accordion-header {
    padding-left: 0;
  }
  /* CTA section safe area */
  .closing-cta {
    padding: 80px 4vw 120px !important;
  }
  /* Very small screens: further reduce flow-inner padding */
  .flow-inner {
    padding: clamp(1.2rem, 5vw, 2rem) 4vw 2rem;
  }
  /* Mobile: ensure flow-sub text wraps properly */
  .flow-sub {
    max-width: 100% !important;
  }
  /* Mobile: flow-body full width */
  .flow-body {
    max-width: 100% !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .search-section {
    padding-left: 8%;
    padding-right: 8%;
  }
  .flow-heading {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
  }
}

@media (min-width: 1400px) {
  .approach-inner {
    max-width: 1400px;
  }
}

/* iOS Safari specific fix: prevent bounce scroll on fixed elements */
@supports (-webkit-touch-callout: none) {
  .hero-container {
    position: relative;
  }
  #hero-canvas {
    position: fixed;
  }
}