/* ============================================================================
   Solutions Provider Marketplace — marketing pages
   Aligns with Pricing / Get Started custom-template layout (wdi-custom-template).
   ============================================================================ */

/* Hide stray Divi builder sections when PHP template owns the page */
body.wdi-spm-page.wdi-custom-template #main-content .entry-content > .et_pb_section,
body.wdi-spm-page.wdi-custom-template #main-content article .et_pb_section {
  display: none !important;
}

body.wdi-spm-page #et-main-area {
  background: #fcfbf9;
}

/* ── Shared section rhythm ─────────────────────────────────────────────── */
body.wdi-spm-page .wdi-spm-what,
body.wdi-spm-page .wdi-spm-paths,
body.wdi-spm-page .wdi-spm-features,
body.wdi-spm-page .wdi-spm-compare,
body.wdi-spm-page .wdi-servicer-path,
body.wdi-spm-page .wdi-servicer-tiers,
body.wdi-spm-page .wdi-servicer-growth,
body.wdi-spm-page .wdi-partner-paths,
body.wdi-spm-page .wdi-partner-benefits,
body.wdi-spm-page .wdi-partner-featured {
  padding: 70px 0;
  position: relative;
  z-index: 2;
}

body.wdi-spm-page .wdi-spm-paths,
body.wdi-spm-page .wdi-servicer-tiers,
body.wdi-spm-page .wdi-partner-benefits {
  background: #f9f9f9;
}

body.wdi-spm-page .wdi-spm-compare,
body.wdi-spm-page .wdi-servicer-path,
body.wdi-spm-page .wdi-partner-paths {
  background: #fff;
}

body.wdi-spm-page .wdi-spm-section-lead,
body.wdi-spm-page .wdi-stage-journey__intro {
  color: #333;
  font-size: 18px;
  line-height: 1.6;
  margin: 0 auto 2rem;
  max-width: 46rem;
  text-align: center;
}

/* ── Hero actions (inline CTAs, not full-width blocks) ───────────────────── */
body.wdi-spm-page .wdi-spm-hero__actions,
body.wdi-spm-page .wdi-get-started-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
  margin-top: 1.75rem;
}

body.wdi-spm-page .wdi-spm-hero__actions .btn-linnk,
body.wdi-spm-page .wdi-spm-cta .wdi-spm-hero__actions .btn-linnk {
  display: inline-block;
  width: auto;
  min-width: 12rem;
  padding: 16px 28px;
}

body.wdi-spm-page a.btn-linnk--consult {
  background-color: transparent !important;
  border: 2px solid #c9a734;
  color: #c9a734 !important;
}

body.wdi-spm-page a.btn-linnk--consult:hover {
  background-color: rgba(201, 167, 52, 0.12) !important;
}

body.wdi-spm-page .bottom-cta-pricing .wdi-spm-hero__actions {
  justify-content: center;
  margin-top: 1.25rem;
}

body.wdi-spm-page .bottom-cta-pricing .wdi-spm-hero__actions .btn-linnk {
  background: #0b2342 !important;
  color: #fff !important;
}

body.wdi-spm-page .bottom-cta-pricing .wdi-spm-hero__actions .btn-linnk--consult {
  background: transparent !important;
  border-color: #fff;
  color: #fff !important;
}

/* ── Path chooser cards (hub + partner paths) ───────────────────────────── */
.wdi-spm-paths__grid,
.wdi-partner-paths__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.5rem;
}

.wdi-spm-path-card {
  background: #fff;
  border: 2px solid #e8e4dc;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(11, 35, 66, 0.06);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.wdi-spm-path-card:hover {
  border-color: #c9a734;
  box-shadow: 0 8px 24px rgba(201, 167, 52, 0.15);
  transform: translateY(-3px);
}

.wdi-spm-path-card--servicer {
  border-top: 4px solid #c9a734;
}

.wdi-spm-path-card--partner {
  border-top: 4px solid #0b2342;
}

.wdi-spm-path-card__eyebrow {
  color: #c9a734;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

.wdi-spm-path-card__title {
  color: #0b2342;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

.wdi-spm-path-card__body {
  color: #444;
  flex: 1;
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 1rem;
}

.wdi-spm-path-card__list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.wdi-spm-path-card__list li {
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.wdi-spm-path-card__list li::before {
  background: #c9a734;
  border-radius: 50%;
  color: #fff;
  content: "✓";
  font-size: 10px;
  font-weight: 700;
  height: 18px;
  left: 0;
  line-height: 18px;
  position: absolute;
  text-align: center;
  top: 0.15em;
  width: 18px;
}

.wdi-spm-path-card__cta {
  margin-top: auto;
  width: 100% !important;
}

/* ── Feature buckets ───────────────────────────────────────────────────── */
.wdi-spm-features__grid,
.wdi-servicer-tiers__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-top: 0.5rem;
}

.wdi-spm-features__card {
  background: #fff;
  border: 1px solid #e8e4dc;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 1.5rem 1.75rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.wdi-spm-features__card:hover {
  box-shadow: 0 6px 20px rgba(201, 167, 52, 0.12);
  transform: translateY(-2px);
}

.wdi-spm-features__card-title {
  border-bottom: 2px solid #c9a734;
  color: #0b2342;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
}

.wdi-spm-features__list,
.wdi-spm-tier-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wdi-spm-features__list li,
.wdi-spm-tier-card__list li {
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 0.65rem;
  padding-left: 1.5rem;
  position: relative;
}

.wdi-spm-features__list li::before,
.wdi-spm-tier-card__list li::before {
  background: #c9a734;
  border-radius: 50%;
  color: #fff;
  content: "✓";
  font-size: 10px;
  font-weight: 700;
  height: 16px;
  left: 0;
  line-height: 16px;
  position: absolute;
  text-align: center;
  top: 0.2em;
  width: 16px;
}

/* ── Step timeline (servicer join flow) ────────────────────────────────── */
.wdi-spm-steps {
  counter-reset: spm-step;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.wdi-spm-step {
  background: #fff;
  border: 1px solid #e8e4dc;
  border-radius: 10px;
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}

.wdi-spm-step__num {
  align-items: center;
  background: linear-gradient(135deg, #c9a734, #d4b84a);
  border-radius: 50%;
  color: #0b2342;
  display: flex;
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 800;
  height: 2.75rem;
  justify-content: center;
  width: 2.75rem;
}

.wdi-spm-step__title {
  color: #0b2342;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.wdi-spm-step__body p {
  color: #555;
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

/* ── Membership tier cards ─────────────────────────────────────────────── */
.wdi-spm-tier-card {
  background: #fff;
  border: 2px solid #e8e4dc;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  position: relative;
}

.wdi-spm-tier-card--featured {
  border-color: #c9a734;
  box-shadow: 0 8px 28px rgba(201, 167, 52, 0.2);
  transform: scale(1.02);
}

.wdi-spm-tier-card__badge {
  background: #0b2342;
  border-radius: 50px;
  color: #fff;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.85rem;
  text-transform: uppercase;
}

.wdi-spm-tier-card__title {
  color: #c9a734;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.wdi-spm-tier-card__desc {
  color: #444;
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 1rem;
}

.wdi-spm-tier-card__cta {
  margin-top: auto;
  width: 100% !important;
}

/* ── Comparison table ──────────────────────────────────────────────────── */
.wdi-spm-compare__table-wrap {
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  margin-top: 0.5rem;
  overflow-x: auto;
}

.wdi-spm-compare__table {
  border-collapse: collapse;
  min-width: 36rem;
  width: 100%;
}

.wdi-spm-compare__table th,
.wdi-spm-compare__table td {
  border: 1px solid #e8e4dc;
  font-size: 15px;
  line-height: 1.45;
  padding: 1rem 1.15rem;
  text-align: left;
  vertical-align: top;
}

.wdi-spm-compare__table thead th {
  background: #0b2342;
  color: #fff;
  font-weight: 700;
}

.wdi-spm-compare__table thead th:last-child {
  background: #c9a734;
  color: #0b2342;
}

.wdi-spm-compare__table tbody th {
  background: #f5f3ef;
  color: #0b2342;
  font-weight: 600;
  width: 22%;
}

.wdi-spm-compare__table tbody td:last-child {
  background: rgba(201, 167, 52, 0.08);
  font-weight: 500;
}

/* ── Partner benefits grid ───────────────────────────────────────────────── */
.wdi-spm-benefits-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.wdi-spm-benefit {
  background: #fff;
  border: 1px solid #e8e4dc;
  border-left: 4px solid #c9a734;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1.25rem;
}

.wdi-spm-benefit strong {
  color: #0b2342;
  font-size: 15px;
}

.wdi-spm-benefit span {
  color: #555;
  font-size: 14px;
  line-height: 1.45;
}

/* ── Featured partner stores ───────────────────────────────────────────── */
.wdi-partner-featured__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.wdi-partner-featured__card {
  background: #fff;
  border: 1px solid #e8e4dc;
  border-radius: 8px;
  overflow: hidden;
}

.wdi-partner-featured__link {
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.wdi-partner-featured__link:hover {
  background: rgba(201, 167, 52, 0.08);
}

.wdi-partner-featured__name {
  color: #0b2342;
  font-size: 16px;
  font-weight: 700;
}

.wdi-partner-featured__action {
  color: #c9a734;
  font-size: 13px;
  font-weight: 600;
}

/* ── Technology partners directory (when on SPM stylesheet) ─────────────── */
.wdi-about-partners--directory-only .wdi-about-partners__grid {
  margin-top: 0;
}

.wdi-about-servicers__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
}

.wdi-marketplace-loading {
  opacity: 0.55;
  pointer-events: none;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media screen and (max-width: 768px) {
  body.wdi-spm-page #et-main-area {
    padding-top: 60px !important;
  }

  body.wdi-spm-page .wdi-spm-what,
  body.wdi-spm-page .wdi-spm-paths,
  body.wdi-spm-page .wdi-spm-features,
  body.wdi-spm-page .wdi-spm-compare,
  body.wdi-spm-page .wdi-servicer-path,
  body.wdi-spm-page .wdi-servicer-tiers,
  body.wdi-spm-page .wdi-servicer-growth,
  body.wdi-spm-page .wdi-partner-paths,
  body.wdi-spm-page .wdi-partner-benefits,
  body.wdi-spm-page .wdi-partner-featured {
    padding: 48px 0;
  }

  .wdi-spm-paths__grid,
  .wdi-partner-paths__grid,
  .wdi-spm-steps {
    grid-template-columns: 1fr;
  }

  .wdi-spm-tier-card--featured {
    transform: none;
  }

  body.wdi-spm-page .wdi-spm-hero__actions .btn-linnk,
  body.wdi-spm-page .wdi-spm-cta .wdi-spm-hero__actions .btn-linnk {
    min-width: unset;
    width: 100% !important;
  }

  /* Comparison → stacked cards on small screens */
  .wdi-spm-compare__table thead {
    display: none;
  }

  .wdi-spm-compare__table,
  .wdi-spm-compare__table tbody,
  .wdi-spm-compare__table tr,
  .wdi-spm-compare__table td,
  .wdi-spm-compare__table th {
    display: block;
    min-width: unset;
    width: 100%;
  }

  .wdi-spm-compare__table tr {
    border-bottom: 1px solid #e8e4dc;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
  }

  .wdi-spm-compare__table tbody th {
    background: #0b2342;
    color: #fff;
    width: 100%;
  }

  .wdi-spm-compare__table td::before {
    color: #888;
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
  }
}
