.apps-page {
  color: #10213f;
}

.apps-page h1,
.apps-page h2,
.apps-page h3,
.apps-page p {
  margin-top: 0;
}

.apps-page h1 {
  max-width: 840px;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.apps-page h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.apps-eyebrow {
  margin-bottom: 10px;
  color: #357a70;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.apps-hero {
  padding: 76px 0 70px;
  background: linear-gradient(135deg, #f2faf7 0%, #ffffff 60%, #fff7f2 100%);
  border-bottom: 1px solid #e7ecea;
}

.apps-lede {
  max-width: 760px;
  margin-bottom: 28px;
  color: #4d5b70;
  font-size: 1.2rem;
  line-height: 1.65;
}

.apps-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.apps-actions .btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
}

.apps-secondary-link {
  color: #235bd8;
  font-weight: 650;
}

.apps-secondary-link:hover {
  color: #1645ae;
  text-decoration: underline;
}

.apps-directory,
.app-detail-section {
  padding: 72px 0;
}

.apps-section-heading,
.app-detail-section-heading {
  display: flex;
  gap: 28px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.apps-section-heading h2,
.app-detail-section-heading h2 {
  margin-bottom: 0;
}

.apps-search-wrap {
  width: min(100%, 360px);
}

.apps-search-wrap label {
  display: block;
  margin-bottom: 7px;
  color: #4d5b70;
  font-size: 0.86rem;
  font-weight: 650;
}

.apps-search {
  width: 100%;
  min-height: 48px;
  padding: 10px 15px;
  border: 1px solid #b8c4d1;
  border-radius: 10px;
  background: #fff;
  color: #10213f;
  font-size: 1rem;
}

.apps-search:focus {
  border-color: #235bd8;
  box-shadow: 0 0 0 3px rgba(35, 91, 216, 0.15);
  outline: 0;
}

.apps-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 26px;
  padding: 2px 2px 10px;
}

.apps-filter {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid #d6dde4;
  border-radius: 999px;
  background: #fff;
  color: #314158;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
}

.apps-filter:hover,
.apps-filter:focus-visible,
.apps-filter.is-active {
  border-color: #357a70;
  background: #eaf6f2;
  color: #1c5f55;
  outline: 0;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.apps-card[hidden] {
  display: none;
}

.apps-card {
  min-width: 0;
  margin: 0;
  border: 1px solid #e0e6eb;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 33, 63, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.apps-card:hover {
  border-color: #b8c8c4;
  box-shadow: 0 10px 24px rgba(16, 33, 63, 0.09);
  transform: translateY(-2px);
}

.apps-card-link {
  display: flex;
  min-height: 88px;
  gap: 13px;
  align-items: center;
  padding: 16px;
  color: #10213f;
}

.apps-card-link:hover {
  color: #10213f;
  text-decoration: none;
}

.apps-card-link:focus-visible,
.related-app-card:focus-visible,
.go-link-name:focus-visible {
  border-radius: 10px;
  box-shadow: 0 0 0 3px rgba(35, 91, 216, 0.18);
  outline: 2px solid #235bd8;
  outline-offset: 2px;
}

.apps-card-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  border-radius: 11px;
  background: #f7f9fb;
}

.apps-card-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.apps-card-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.apps-card-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apps-card-copy span {
  overflow: hidden;
  color: #6b778a;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apps-card-arrow {
  color: #8a96a6;
  font-size: 1.2rem;
}

.apps-no-results {
  padding: 34px;
  border: 1px dashed #b8c4d1;
  border-radius: 13px;
  background: #f8fafb;
  text-align: center;
}

.apps-no-results h3 {
  margin-bottom: 8px;
}

.apps-bottom-cta {
  padding: 52px 0;
  background: #245f57;
  color: #fff;
}

.apps-bottom-cta-inner {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}

.apps-bottom-cta h2 {
  margin-bottom: 8px;
  color: #fff;
}

.apps-bottom-cta p {
  max-width: 680px;
  margin-bottom: 0;
  color: #e5f1ef;
}

.apps-breadcrumb {
  padding-top: 24px;
}

.apps-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: #6b778a;
  font-size: 0.9rem;
  list-style: none;
}

.apps-breadcrumb li:not(:last-child)::after {
  margin-left: 8px;
  color: #a2adba;
  content: '/';
}

.app-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 56px;
  align-items: center;
  padding: 70px 0 76px;
}

.app-detail-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-detail-logo {
  display: grid;
  width: 136px;
  height: 136px;
  flex: 0 0 136px;
  place-items: center;
  border: 1px solid #dfe6e4;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(16, 33, 63, 0.1);
}

.app-detail-logo img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.app-detail-connector {
  width: 42px;
  border-top: 2px dashed #9ab8b2;
}

.app-detail-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 48px;
  border-radius: 20px;
  background: #f2faf7;
}

.app-detail-summary h2,
.app-detail-summary p {
  margin-bottom: 0;
}

.app-detail-summary > p {
  color: #4d5b70;
  font-size: 1.05rem;
  line-height: 1.7;
}

.app-detail-section {
  border-bottom: 1px solid #e5eaee;
}

.app-detail-section-heading > p {
  max-width: 440px;
  margin-bottom: 0;
  color: #5f6d80;
}

.go-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.go-link-card {
  display: flex;
  min-width: 0;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid #e0e6eb;
  border-radius: 13px;
  background: #fff;
}

.go-link-name {
  color: #174fc9;
  font-size: 1.04rem;
  font-weight: 750;
}

.go-link-name span {
  color: #6a7990;
}

.go-link-card p {
  margin: 6px 0 0;
  color: #687589;
  font-size: 0.9rem;
  line-height: 1.45;
}

.app-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.app-steps li {
  display: flex;
  gap: 14px;
}

.app-steps li > span {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 50%;
  background: #eaf6f2;
  color: #1c5f55;
  font-weight: 750;
}

.app-steps strong {
  display: block;
  margin: 5px 0 7px;
}

.app-steps p {
  margin: 0;
  color: #627085;
  line-height: 1.55;
}

.app-faq details {
  border-top: 1px solid #dfe5ea;
}

.app-faq details:last-child {
  border-bottom: 1px solid #dfe5ea;
}

.app-faq summary {
  padding: 19px 4px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 650;
}

.app-faq details p {
  max-width: 800px;
  padding: 0 4px 20px;
  color: #5d6a7d;
  line-height: 1.65;
}

.related-apps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.related-app-card {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid #e0e6eb;
  border-radius: 12px;
  color: #10213f;
}

.related-app-card:hover {
  border-color: #b8c8c4;
  color: #10213f;
  text-decoration: none;
}

.related-app-card img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.related-app-card span:nth-child(2) {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .apps-grid,
  .related-apps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-detail-hero {
    grid-template-columns: 1fr;
  }

  .app-detail-visual {
    justify-content: flex-start;
  }

  .app-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .apps-hero,
  .apps-directory,
  .app-detail-section {
    padding: 48px 0;
  }

  .apps-section-heading,
  .app-detail-section-heading,
  .apps-bottom-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .apps-search-wrap {
    width: 100%;
  }

  .apps-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .app-detail-hero {
    gap: 36px;
    padding: 48px 0;
  }

  .app-detail-summary {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px;
  }

  .go-link-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .apps-page h1 {
    font-size: 2.35rem;
  }

  .apps-grid,
  .related-apps-grid {
    grid-template-columns: 1fr;
  }

  .apps-card-link {
    min-height: 78px;
  }

  .app-detail-logo {
    width: 112px;
    height: 112px;
    flex-basis: 112px;
  }

  .app-detail-logo img {
    width: 68px;
    height: 68px;
  }

  .app-detail-connector {
    width: 26px;
  }

  .go-link-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .go-link-card .btn {
    width: 100%;
  }
}
