/* MAIN CARD WRAPPER (was .wrap) */
.wrap {
  max-width:1180px;             /* was 1500px – narrower so more side space */
  width:100%;
  margin:80px auto;             /* keep auto to stay centered */
  padding:60px 70px;
  background:#ffffff;
  border-radius:24px;
  box-shadow:0 18px 45px rgba(0,0,0,0.16);
  font-family:Montserrat,system-ui,-apple-system,sans-serif;
  color:#051729;
  box-sizing:border-box;
}

/* HERO / TITLE */
.hero {
  margin:0 0 24px;
}

.hero .title {
  font-family:Arial,sans-serif;
  font-weight:700;
  font-size:46px;
  line-height:1.1;
  letter-spacing:-0.06em;
  color:#051729;
  margin:0 0 12px;
}

.hero .subtitle {
  max-width:900px;
  font-family:Montserrat,system-ui,-apple-system,sans-serif;
  font-size:16px;
  line-height:1.6;
  margin:0;
}

.hero .subtitle b {
  font-weight:600;
}

/* CONTROLS: SEARCH + FILTER PILLS */
.controls {
  display:flex;
  flex-wrap:wrap;
  gap:16px 24px;
  align-items:center;
  justify-content:space-between;
  margin-bottom:16px;
}

.search {
  flex:1 1 260px;
  max-width:420px;
}

.search input[type="search"] {
  width:100%;
  padding:12px 14px;
  border-radius:999px;
  border:1px solid #c1dbf5;
  background:#ffffff;
  font-family:Montserrat,system-ui,-apple-system,sans-serif;
  font-size:14px;
  outline:none;
  box-shadow:0 3px 8px rgba(0,0,0,0.04);
}

.search input[type="search"]::placeholder {
  color:#8a97aa;
}

.filters {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}

.pill {
  border-radius:999px;
  border:1px solid #c1dbf5;
  background:#f3f5f9;
  padding:8px 16px;
  font-family:Montserrat,system-ui,-apple-system,sans-serif;
  font-size:13px;
  font-weight:600;
  letter-spacing:-0.02em;
  color:#051729;
  cursor:pointer;
  transition:background 0.15s ease, color 0.15s ease,
             box-shadow 0.15s ease, border-color 0.15s ease;
}

.pill:hover {
  box-shadow:0 4px 10px rgba(0,0,0,0.08);
}

.pill.active,
.pill[aria-pressed="true"] {
  background:#051729;
  border-color:#051729;
  color:#ffffff;
  box-shadow:0 4px 10px rgba(0,0,0,0.18);
}

/* GRID + CARDS (JS output) */
.grid {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:20px;
  margin-top:16px;
}

.card {
  background:#ffffff;
  border-radius:16px;
  box-shadow:0 8px 18px rgba(0,0,0,0.08);
  padding:16px 18px;
  display:flex;
  align-items:center;
  min-height:72px;
}

.card-header {
  display:flex;
  align-items:center;
  gap:14px;
  width:100%;
}

.card-header h3 {
  font-family:Arial,sans-serif;
  font-size:16px;
  font-weight:600;
  letter-spacing:-0.04em;
  margin:0;
  color:#051729;
  text-transform:capitalize !important; /* NEW: first letter of each word uppercase, rest lowercase */
}

/* LOGO BOX + INITIAL FALLBACK */
.logoBox {
  width:40px;
  height:40px;
  border-radius:12px;
  background:#f3f5f9;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  flex-shrink:0;
}

.logoBox img {
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  display:block;
}

.logoFallback {
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  font-family:Arial,sans-serif;
  font-weight:700;
  font-size:18px;
  color:#4088cf;
}

/* NOTE + CTA LINK */
.note {
  margin-top:24px;
  font-family:Montserrat,system-ui,-apple-system,sans-serif;
  font-size:14px;
  color:#051729;
}

.note .cta {
  color:#4088cf;
  font-weight:600;
  text-decoration:none;
  border-bottom:1px solid rgba(64,136,207,0.4);
}

.note .cta:hover {
  border-bottom-color:#4088cf;
}

/* NOSCRIPT */
.noscript-note {
  margin-top:20px;
  padding:18px 16px;
  border-radius:16px;
  background:#f7f8fc;
  font-family:Montserrat,system-ui,-apple-system,sans-serif;
  font-size:14px;
}

.noscript-note ul {
  margin:8px 0 0;
  padding-left:20px;
  columns:2;
  column-gap:32px;
}

.noscript-note li {
  margin-bottom:4px;
}

/* SCREEN READER ONLY */
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .wrap {
    max-width:100%;
    margin:40px auto;       /* keep centered on mobile too */
    padding:40px 24px;
  }

  .controls {
    flex-direction:column;
    align-items:stretch;
    gap:16px;
  }

  .filters {
    justify-content:flex-start;
  }

  .noscript-note ul {
    columns:1;x
  }
}

/* ===== Integration form popup modal ===== */
.fp-modal{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box;}
.fp-modal[hidden]{display:none;}
.fp-modal__overlay{position:absolute;inset:0;background:rgba(5,23,41,0.55);opacity:0;transition:opacity .2s ease;}
.fp-modal__dialog{position:relative;display:flex;flex-direction:column;width:540px;max-width:100%;max-height:calc(100vh - 40px);background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 18px 45px rgba(0,0,0,0.22);opacity:0;transform:translateY(10px) scale(.985);transition:opacity .2s ease,transform .2s ease;font-family:Montserrat,system-ui,-apple-system,sans-serif;}
.fp-modal.is-open .fp-modal__overlay{opacity:1;}
.fp-modal.is-open .fp-modal__dialog{opacity:1;transform:none;}
.fp-modal__header{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#051729;color:#fff;padding:20px 24px;}
.fp-modal__title{font-family:Arial,sans-serif;font-weight:700;font-size:22px;letter-spacing:-0.04em;line-height:1.15;margin:0;color:#fff;}
.fp-modal__close{flex:0 0 auto;width:34px;height:34px;line-height:1;background:transparent;border:0;border-radius:999px;color:#fff;font-size:24px;cursor:pointer;transition:background .15s ease;}
.fp-modal__close:hover{background:rgba(255,255,255,0.16);}
.fp-modal__close:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(64,136,207,0.7);}
.fp-modal__body{padding:24px;overflow-y:auto;}

/* HubSpot-injected form, matched to your page */
#hs-form-mount{font-family:Montserrat,system-ui,-apple-system,sans-serif;color:#051729;}
#hs-form-mount .hs-form-field{margin-bottom:14px;}
#hs-form-mount .hs-form-field>label{display:block;margin-bottom:6px;font-weight:600;font-size:13px;letter-spacing:-0.02em;}
#hs-form-mount .hs-input{width:100%;box-sizing:border-box;padding:12px 14px;border:1px solid #c1dbf5;border-radius:12px;background:#fff;font-family:Montserrat,system-ui,sans-serif;font-size:14px;color:#051729;box-shadow:0 3px 8px rgba(0,0,0,0.04);}
#hs-form-mount textarea.hs-input{min-height:96px;resize:vertical;}
#hs-form-mount .hs-input:focus{outline:none;border-color:#4088cf;box-shadow:0 0 0 3px rgba(64,136,207,0.18);}
#hs-form-mount .hs-input::placeholder{color:#8a97aa;}
#hs-form-mount .hs-error-msg,#hs-form-mount .hs-error-msgs label{color:#d12d2d;font-size:12px;}
#hs-form-mount .hs-button{appearance:none;border:0;cursor:pointer;background:#4088cf;color:#fff;border-radius:999px;padding:12px 26px;font-family:Montserrat,system-ui,sans-serif;font-weight:600;font-size:14px;letter-spacing:-0.02em;box-shadow:0 4px 10px rgba(64,136,207,0.25);transition:background .15s ease;}
#hs-form-mount .hs-button:hover{background:#3474b4;}
#hs-form-mount .hs-button:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(64,136,207,0.4);}
#hs-form-mount .submitted-message{color:#1a8a4a;font-weight:600;font-size:15px;padding:8px 0;}
.fp-form-fallback{font-size:14px;}
.fp-form-fallback a{color:#4088cf;font-weight:600;}

@media (max-width:900px){.fp-modal{padding:12px;}.fp-modal__title{font-size:20px;}.fp-modal__body{padding:18px;}}
@media (prefers-reduced-motion:reduce){.fp-modal__overlay,.fp-modal__dialog{transition:none;}}