@layer base{html,body{margin:0;padding:0;}main>:first-child{margin-top:0!important;}main>:last-child{margin-bottom:0!important;}}


/* Mobile QA repairs for hero KPI rows, terminal card and case-study metrics. */
@media (max-width: 767px) {
  body.page-template-page-web-app-development main > div > section:first-of-type .grid.grid-cols-2 {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: .75rem !important;
  }
  body.page-template-page-web-app-development main > div > section:first-of-type .grid.grid-cols-2 > div {
    min-width: 0 !important;
  }
  body.page-template-page-web-app-development main > div > section:first-of-type .font-metric-callout {
    font-size: 30px !important;
    white-space: normal !important;
  }

  body.page-template-page-web-app-development main > div > section:first-of-type .lg\:col-span-5 .bg-surface-card\/90 {
    padding: 1rem !important;
  }
  body.page-template-page-web-app-development main > div > section:first-of-type .lg\:col-span-5 .bg-surface-card\/90 > .flex.items-center.justify-between:first-of-type {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: .65rem !important;
  }
  body.page-template-page-web-app-development main > div > section:first-of-type .lg\:col-span-5 .bg-surface-card\/90 > .flex.items-center.justify-between:first-of-type > div {
    flex-wrap: wrap !important;
  }
  body.page-template-page-web-app-development main > div > section:first-of-type .lg\:col-span-5 .bg-surface-card\/90 > .flex.items-center.justify-between:first-of-type > span {
    align-self: flex-start !important;
    max-width: 100% !important;
    white-space: normal !important;
    line-height: 1.25 !important;
  }
  body.page-template-page-web-app-development main > div > section:first-of-type .grid.grid-cols-3 {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.page-template-page-web-app-development main > div > section:first-of-type .grid.grid-cols-3 > div {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    text-align: left !important;
    gap: .75rem !important;
  }
  body.page-template-page-web-app-development main > div > section:first-of-type .flex.items-center.justify-between.pt-space-md {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: .5rem !important;
  }

  /* Performance and case-study metric cards should never squeeze words vertically. */
  body.page-template-page-web-app-development .grid.grid-cols-2.gap-space-md.pt-space-sm {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.page-template-page-web-app-development .grid.grid-cols-3.gap-space-sm.pt-space-xs {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.page-template-page-web-app-development .grid.grid-cols-3.gap-space-sm.pt-space-xs > div,
  body.page-template-page-web-app-development .grid.grid-cols-2.gap-space-md.pt-space-sm > div {
    min-width: 0 !important;
  }
}
