/* Custom Software Development — Stitch design integration and mobile hardening */
@layer base {
  html, body { margin: 0; padding: 0; }
  .hs-stitch-template { overflow-x: clip; }
}

.hs-stitch-template .hs-stitch-existing-form {
  width: 100%;
  min-width: 0;
}

.hs-stitch-template .hs-stitch-existing-form .wpcf7,
.hs-stitch-template .hs-stitch-existing-form .wpcf7-form {
  width: 100%;
}

.hs-stitch-template img { max-width: 100%; height: auto; }
.hs-stitch-template table { min-width: 680px; }

/* Keep the Stitch comparison tables usable on phones without squeezing columns. */
.hs-stitch-template .overflow-x-auto {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

@media (max-width: 1023px) {
  .hs-stitch-template main { max-width: 100%; }
  .hs-stitch-template .text-display-hero {
    font-size: 42px !important;
    line-height: 1.1 !important;
  }
  .hs-stitch-template .font-display-hero {
    font-size: 42px !important;
    line-height: 1.1 !important;
  }
}

@media (max-width: 767px) {
  .hs-stitch-template {
    width: 100%;
    overflow-x: clip;
  }
  .hs-stitch-template section {
    max-width: 100%;
  }
  .hs-stitch-template .text-display-hero,
  .hs-stitch-template .font-display-hero {
    font-size: 32px !important;
    line-height: 1.12 !important;
    letter-spacing: -0.02em !important;
  }
  .hs-stitch-template .text-headline-lg,
  .hs-stitch-template .font-headline-lg {
    font-size: 28px !important;
    line-height: 1.2 !important;
  }
  .hs-stitch-template .text-body-lg,
  .hs-stitch-template .font-body-lg {
    font-size: 16px !important;
    line-height: 1.55 !important;
  }
  .hs-stitch-template [class*="px-gutter-desktop"],
  .hs-stitch-template [class*="px-margin-desktop"] {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .hs-stitch-template [class*="py-space-xxl"] {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  .hs-stitch-template .grid {
    min-width: 0;
  }
  .hs-stitch-template .hs-stitch-existing-form {
    min-width: 0;
  }
  .hs-stitch-template .hs-cf7-form .hs-cf7-grid--2 {
    grid-template-columns: 1fr !important;
  }
  .hs-stitch-template .hs-cf7-form .hs-cf7-mandates {
    grid-template-columns: 1fr !important;
  }
  .hs-stitch-template .hs-cf7-form .hs-cf7-phone {
    align-items: stretch;
  }
  .hs-stitch-template .hs-cf7-form .hs-cf7-phone-prefix {
    min-width: 86px;
  }
  .hs-stitch-template .hs-cf7-form input[type="text"],
  .hs-stitch-template .hs-cf7-form input[type="email"],
  .hs-stitch-template .hs-cf7-form input[type="tel"],
  .hs-stitch-template .hs-cf7-form select,
  .hs-stitch-template .hs-cf7-form textarea {
    max-width: 100%;
  }
  .hs-stitch-template .hs-cf7-form .hs-cf7-submit-wrap input[type="submit"] {
    width: 100%;
    min-height: 52px;
    white-space: normal;
  }
  .hs-stitch-template .overflow-x-auto {
    max-width: 100%;
    overflow-x: auto !important;
  }
}

@media (max-width: 420px) {
  .hs-stitch-template .text-display-hero,
  .hs-stitch-template .font-display-hero {
    font-size: 29px !important;
  }
  .hs-stitch-template .text-headline-lg,
  .hs-stitch-template .font-headline-lg {
    font-size: 25px !important;
  }
  .hs-stitch-template .hs-cf7-form .hs-cf7-phone-prefix {
    min-width: 74px;
    padding-left: .6rem;
    padding-right: .6rem;
  }
}


/* v1.9.8 — tighter mobile typography, card headers and section gutters */
@media (max-width: 767px) {
  .hs-stitch-custom-software-development .max-w-7xl,
  .hs-stitch-custom-software-development .max-w-5xl,
  .hs-stitch-custom-software-development .max-w-4xl {
    width: calc(100% - 32px) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hs-stitch-custom-software-development .p-space-xl {
    padding: 1.25rem !important;
  }

  .hs-stitch-custom-software-development .font-headline-sm,
  .hs-stitch-custom-software-development .text-headline-sm {
    font-size: 20px !important;
    line-height: 1.28 !important;
  }

  .hs-stitch-custom-software-development .font-body-md,
  .hs-stitch-custom-software-development .text-body-md {
    font-size: 16px !important;
    line-height: 1.55 !important;
  }

  /* Prevent [01], [02] etc. from wrapping into two lines. */
  .hs-stitch-custom-software-development .font-mono {
    white-space: nowrap;
  }

  .hs-stitch-custom-software-development .flex.items-center.justify-between.mb-space-md {
    align-items: flex-start !important;
    gap: .65rem !important;
  }

  .hs-stitch-custom-software-development .flex.items-center.justify-between.mb-space-md > span:first-child {
    flex: 0 0 auto !important;
    width: 42px !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
  }

  .hs-stitch-custom-software-development .flex.items-center.justify-between.mb-space-md > span:last-child {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    text-align: left !important;
    white-space: normal !important;
  }

  .hs-stitch-custom-software-development .material-symbols-outlined {
    flex-shrink: 0;
  }

  .hs-stitch-custom-software-development .grid {
    gap: 1rem !important;
  }

  .hs-stitch-custom-software-development table {
    min-width: 640px;
  }
}

@media (max-width: 420px) {
  .hs-stitch-custom-software-development .max-w-7xl,
  .hs-stitch-custom-software-development .max-w-5xl,
  .hs-stitch-custom-software-development .max-w-4xl {
    width: calc(100% - 24px) !important;
  }

  .hs-stitch-custom-software-development .p-space-xl {
    padding: 1rem !important;
  }

  .hs-stitch-custom-software-development .font-headline-sm,
  .hs-stitch-custom-software-development .text-headline-sm {
    font-size: 18px !important;
  }

  .hs-stitch-custom-software-development .flex.items-center.justify-between.mb-space-md > span:first-child {
    width: 36px !important;
    font-size: 18px !important;
  }
}


/* v1.9.9 — mobile production-card telemetry overflow fix */
@media (max-width: 767px) {
  .hs-stitch-custom-software-development .relative.rounded-xl.overflow-hidden .absolute.bottom-4 {
    position: absolute !important;
    left: .75rem !important;
    right: .75rem !important;
    bottom: .75rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: .45rem !important;
    padding: .7rem .8rem !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  .hs-stitch-custom-software-development .relative.rounded-xl.overflow-hidden .absolute.bottom-4 > div {
    width: 100% !important;
    min-width: 0 !important;
  }

  .hs-stitch-custom-software-development .relative.rounded-xl.overflow-hidden .absolute.bottom-4 > div:first-child {
    display: flex !important;
    align-items: flex-start !important;
    gap: .45rem !important;
  }

  .hs-stitch-custom-software-development .relative.rounded-xl.overflow-hidden .absolute.bottom-4 > div:first-child span:last-child,
  .hs-stitch-custom-software-development .relative.rounded-xl.overflow-hidden .absolute.bottom-4 > span:last-child {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    white-space: normal !important;
  }

  .hs-stitch-custom-software-development .relative.rounded-xl.overflow-hidden .absolute.bottom-4 > span:last-child {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    font-size: 10px !important;
  }

  .hs-stitch-custom-software-development .relative.rounded-xl.overflow-hidden .absolute.bottom-4 .material-symbols-outlined {
    flex: 0 0 auto !important;
    margin-top: 1px !important;
  }
}

@media (max-width: 420px) {
  .hs-stitch-custom-software-development .relative.rounded-xl.overflow-hidden .absolute.bottom-4 {
    left: .55rem !important;
    right: .55rem !important;
    bottom: .55rem !important;
    padding: .6rem .7rem !important;
    gap: .35rem !important;
  }
}


/* v2.0.0 — mobile case-study header/text overflow and email link polish */
@media (max-width: 767px) {
  .hs-stitch-custom-software-development .grid.grid-cols-1.lg\:grid-cols-12 > .lg\:col-span-6:first-child {
    min-width: 0 !important;
    width: 100% !important;
  }

  .hs-stitch-custom-software-development .grid.grid-cols-1.lg\:grid-cols-12 > .lg\:col-span-6:first-child > .flex.items-center.gap-2 {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: .45rem !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .hs-stitch-custom-software-development .grid.grid-cols-1.lg\:grid-cols-12 > .lg\:col-span-6:first-child > .flex.items-center.gap-2 > span {
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .hs-stitch-custom-software-development .grid.grid-cols-1.lg\:grid-cols-12 > .lg\:col-span-6:first-child > .flex.items-center.gap-2 > span:first-child {
    display: inline-block !important;
    line-height: 1.2 !important;
  }

  .hs-stitch-custom-software-development .grid.grid-cols-1.lg\:grid-cols-12 > .lg\:col-span-6:first-child h3,
  .hs-stitch-custom-software-development .grid.grid-cols-1.lg\:grid-cols-12 > .lg\:col-span-6:first-child p {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  .hs-stitch-custom-software-development .grid.grid-cols-3 {
    grid-template-columns: 1fr !important;
  }

  .hs-stitch-custom-software-development .grid.grid-cols-3 > * {
    min-width: 0 !important;
    width: 100% !important;
  }
}

@media (max-width: 420px) {
  .hs-stitch-custom-software-development .grid.grid-cols-1.lg\:grid-cols-12 > .lg\:col-span-6:first-child > .flex.items-center.gap-2 > span:first-child {
    font-size: 11px !important;
    padding-left: .65rem !important;
    padding-right: .65rem !important;
  }

  .hs-stitch-custom-software-development .grid.grid-cols-1.lg\:grid-cols-12 > .lg\:col-span-6:first-child > .flex.items-center.gap-2 > span:last-child {
    font-size: 11px !important;
  }
}
