/*
 * Mobile containment overrides for the production homepage.
 * Scoped to the affected sections so desktop and unrelated pages remain unchanged.
 */
@media (max-width: 760px) {
  html body #root main.site-shell section.problem.section-pad .section-heading h2,
  html body #root main.site-shell .agent-showcase-heading h2,
  html body #root main.site-shell #industries .industries-heading-panel h2,
  html body #root main.site-shell #comparison .comparison-hero-copy h2 {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  html body #root main.site-shell #industries.use-cases.section-pad {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  html body #root main.site-shell #industries .industries-heading-panel,
  html body #root main.site-shell #industries .usecase-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  html body #root main.site-shell #industries .usecase-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body #root main.site-shell #industries .usecase-card {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
  }

  html body #root main.site-shell #comparison .comparison-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: none !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  html body #root main.site-shell #comparison .comparison-hero-copy,
  html body #root main.site-shell #comparison .comparison-table-card {
    grid-area: auto !important;
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    position: static !important;
    transform: none !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  html body #root main.site-shell #comparison .comparison-table-card {
    overflow-x: auto !important;
    overscroll-behavior-inline: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html body #root main.site-shell #comparison .comparison-table-card table {
    min-width: 680px !important;
  }
}

@media (max-width: 379px) {
  html body #root main.site-shell .business-outcome-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body #root main.site-shell .business-outcome-card {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
  }
}
