/* Fintech & Sovereign Banking — 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 — mobile card alignment, icon centering and safe section gutters */
@media (max-width: 767px) {
  .hs-stitch-fintech-sovereign-banking .max-w-7xl,
  .hs-stitch-fintech-sovereign-banking .max-w-5xl {
    width: calc(100% - 32px) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hs-stitch-fintech-sovereign-banking section {
    overflow: hidden;
  }

  .hs-stitch-fintech-sovereign-banking section > .max-w-7xl,
  .hs-stitch-fintech-sovereign-banking section > .max-w-5xl {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Hero KPI cards: vertically center the icon and keep a clean text column. */
  .hs-stitch-fintech-sovereign-banking .lg\:col-span-4 > .p-5 {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 1.25rem !important;
    min-width: 0 !important;
  }

  .hs-stitch-fintech-sovereign-banking .lg\:col-span-4 > .p-5 > div:first-child {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    flex: 0 0 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 0 !important;
    padding: 0 !important;
  }

  .hs-stitch-fintech-sovereign-banking .lg\:col-span-4 > .p-5 > div:first-child .material-symbols-outlined {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  .hs-stitch-fintech-sovereign-banking .lg\:col-span-4 > .p-5 > div:last-child {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .hs-stitch-fintech-sovereign-banking .font-metric-callout,
  .hs-stitch-fintech-sovereign-banking .text-metric-callout {
    font-size: 34px !important;
    line-height: 1.05 !important;
  }

  .hs-stitch-fintech-sovereign-banking .font-label-lg,
  .hs-stitch-fintech-sovereign-banking .text-label-lg {
    font-size: 16px !important;
    line-height: 1.25 !important;
  }

  .hs-stitch-fintech-sovereign-banking .font-body-sm,
  .hs-stitch-fintech-sovereign-banking .text-body-sm {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  .hs-stitch-fintech-sovereign-banking .grid {
    min-width: 0 !important;
    gap: 1rem !important;
  }

  .hs-stitch-fintech-sovereign-banking .p-6,
  .hs-stitch-fintech-sovereign-banking .p-5 {
    min-width: 0 !important;
  }

  /* Keep badges, buttons and pills inside the viewport. */
  .hs-stitch-fintech-sovereign-banking .inline-flex {
    max-width: 100%;
  }

  .hs-stitch-fintech-sovereign-banking a.inline-flex {
    white-space: normal !important;
    text-align: center;
  }

  /* FAQ controls and other rows should never touch the viewport edges. */
  .hs-stitch-fintech-sovereign-banking button.w-full {
    padding: 1rem !important;
  }
}

@media (max-width: 420px) {
  .hs-stitch-fintech-sovereign-banking .max-w-7xl,
  .hs-stitch-fintech-sovereign-banking .max-w-5xl {
    width: calc(100% - 24px) !important;
  }

  .hs-stitch-fintech-sovereign-banking .lg\:col-span-4 > .p-5 {
    padding: 1rem !important;
    gap: .75rem !important;
  }

  .hs-stitch-fintech-sovereign-banking .lg\:col-span-4 > .p-5 > div:first-child {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    flex-basis: 40px !important;
  }

  .hs-stitch-fintech-sovereign-banking .font-metric-callout,
  .hs-stitch-fintech-sovereign-banking .text-metric-callout {
    font-size: 30px !important;
  }
}


/* v1.9.9 — mobile hero gutters and FAQ accordion hardening */
@media (max-width: 767px) {
  /* Reduce the first/hero section side padding while keeping a safe gutter. */
  .hs-stitch-fintech-sovereign-banking > div.relative.w-full.overflow-hidden > section:first-of-type {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    padding-top: 1.75rem !important;
    padding-bottom: 3rem !important;
  }

  .hs-stitch-fintech-sovereign-banking > div.relative.w-full.overflow-hidden > section:first-of-type > .grid {
    width: 100% !important;
    min-width: 0 !important;
  }

  .hs-stitch-fintech-sovereign-banking > div.relative.w-full.overflow-hidden > section:first-of-type .lg\:col-span-8,
  .hs-stitch-fintech-sovereign-banking > div.relative.w-full.overflow-hidden > section:first-of-type .lg\:col-span-4 {
    min-width: 0 !important;
    width: 100% !important;
  }

  /* FAQ wrapper: full-width with controlled mobile gutters. */
  .hs-stitch-fintech-sovereign-banking section.relative.z-10.w-full.py-24.max-w-5xl {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 3rem 14px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .hs-stitch-fintech-sovereign-banking section.relative.z-10.w-full.py-24.max-w-5xl > .text-center {
    margin-bottom: 1.75rem !important;
    padding: 0 4px !important;
  }

  .hs-stitch-fintech-sovereign-banking section.relative.z-10.w-full.py-24.max-w-5xl > .text-center h2 {
    font-size: 26px !important;
    line-height: 1.18 !important;
  }

  .hs-stitch-fintech-sovereign-banking section.relative.z-10.w-full.py-24.max-w-5xl > .text-center p {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  .hs-stitch-fintech-sovereign-banking section.relative.z-10.w-full.py-24.max-w-5xl .space-y-4 {
    width: 100% !important;
    min-width: 0 !important;
  }

  .hs-stitch-fintech-sovereign-banking section.relative.z-10.w-full.py-24.max-w-5xl .rounded-xl.bg-surface-card\/75 {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .hs-stitch-fintech-sovereign-banking section.relative.z-10.w-full.py-24.max-w-5xl .rounded-xl.bg-surface-card\/75 > button {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 1rem 1rem !important;
    gap: .65rem !important;
    align-items: flex-start !important;
  }

  .hs-stitch-fintech-sovereign-banking section.relative.z-10.w-full.py-24.max-w-5xl .rounded-xl.bg-surface-card\/75 > button > span:first-child {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    overflow-wrap: anywhere !important;
  }

  .hs-stitch-fintech-sovereign-banking section.relative.z-10.w-full.py-24.max-w-5xl .rounded-xl.bg-surface-card\/75 > button > .arrow-icon {
    flex: 0 0 20px !important;
    width: 20px !important;
    height: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 1px !important;
  }

  .hs-stitch-fintech-sovereign-banking section.relative.z-10.w-full.py-24.max-w-5xl .rounded-xl.bg-surface-card\/75 > div:not(.hidden) {
    box-sizing: border-box !important;
    width: 100% !important;
    padding: 0 1rem 1rem !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    overflow-wrap: anywhere !important;
  }
}

@media (max-width: 420px) {
  .hs-stitch-fintech-sovereign-banking > div.relative.w-full.overflow-hidden > section:first-of-type {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .hs-stitch-fintech-sovereign-banking section.relative.z-10.w-full.py-24.max-w-5xl {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .hs-stitch-fintech-sovereign-banking section.relative.z-10.w-full.py-24.max-w-5xl .rounded-xl.bg-surface-card\/75 > button {
    padding: .9rem .85rem !important;
  }

  .hs-stitch-fintech-sovereign-banking section.relative.z-10.w-full.py-24.max-w-5xl .rounded-xl.bg-surface-card\/75 > button > span:first-child {
    font-size: 14px !important;
  }

  .hs-stitch-fintech-sovereign-banking section.relative.z-10.w-full.py-24.max-w-5xl .rounded-xl.bg-surface-card\/75 > div:not(.hidden) {
    padding-left: .85rem !important;
    padding-right: .85rem !important;
    font-size: 13.5px !important;
  }
}
