/* =========================================
   COLLECTIONS (FOR LENDERS)
   Page-level styles for /partners/collections
   (site/partners/collections/index.html).
   Loads after: tailwind, site, launch, corporate (whose "Lender pages:
   navy-led B2B surfaces" block styles the navy hero, proof strip, bands,
   regulation tags, FAQ and close band shared with /partners).
   Signature: a transparent editorial illustration connects AI calling,
   messaging and the people running collections to one account record.
   Sections: Hero illustration · Proof · Why · Stack · People · One record ·
   Norms · Start · Responsive
   ========================================= */

/* ---------- Hero illustration ---------- */
.collections-hero .corporate-hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.collections-hero h1 {
  max-width: 22ch;
}
.collections-illustration {
  width: 100%;
  max-width: 600px;
  margin: 0;
  justify-self: center;
}
.collections-illustration__image {
  display: block;
  width: 100%;
  height: auto;
}
.collections-illustration__caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--partner-line-dark);
  color: var(--partner-mint);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.collections-illustration__caption .pi {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

/* ---------- Proof ---------- */
.partner-proof__list--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---------- Why ---------- */
.collections-why__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.collections-why h2,
.collections-norms h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 3.1vw, 42px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.collections-why__body p {
  max-width: 60ch;
  margin: 0 0 16px;
  color: var(--ink-body);
  font-size: 17px;
  line-height: 1.7;
}
.collections-why__body .collections-why__lead {
  color: var(--navy);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.collections-why__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.collections-why__pair li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--lender-accent-line);
  border-radius: 12px;
  color: var(--ink-body);
  font-size: 16px;
}
.collections-why__pair .pi {
  width: 26px;
  height: 26px;
  color: var(--forest);
}
.collections-why__pair strong {
  color: var(--navy);
}

/* ---------- Stack ---------- */
.collections-stack {
  background: var(--mist);
  border-top: 1px solid var(--line);
}
.collections-stack__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: 48px;
  align-items: start;
}
.collections-stack__lead {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}
.collections-stack__lead > .pi {
  box-sizing: content-box;
  width: 28px;
  height: 28px;
  padding: 12px;
  border-radius: 50%;
  background: var(--lender-accent-soft);
  color: var(--forest);
}
.collections-stack h3 {
  margin: 0;
}
.collections-stack__lead h3 {
  margin-top: 18px;
  font-size: 24px;
}
.collections-stack p {
  margin: 12px 0 0;
  color: var(--ink-body);
  font-size: 16px;
  line-height: 1.65;
}
.collections-checks {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.collections-checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
.collections-checks .pi {
  width: 20px;
  height: 20px;
  color: var(--forest);
}
.collections-stack__list article {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.collections-stack__list article:first-child {
  padding-top: 0;
  border-top: 0;
}
.collections-stack__list h3 {
  display: flex;
  align-items: center;
  gap: 12px;
}
.collections-stack__list h3 .pi {
  color: var(--forest);
}

/* ---------- People ---------- */
/* Three hand-offs in order: a person, the field, late-stage recovery. */
.collections-handoff {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}
.collections-handoff::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 26px;
  right: 26px;
  height: 1px;
  background: var(--lender-accent-line);
}
.collections-handoff li {
  position: relative;
  min-width: 0;
}
.collections-handoff .pi {
  box-sizing: content-box;
  width: 24px;
  height: 24px;
  padding: 13px;
  border: 1px solid var(--lender-accent-line);
  border-radius: 50%;
  background: white;
  color: var(--forest);
}
.collections-handoff h3 {
  margin: 18px 0 0;
}
.collections-handoff__when {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--lender-accent-soft);
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
}
.collections-handoff p {
  margin: 12px 0 0;
  color: var(--ink-body);
  font-size: 15px;
  line-height: 1.65;
}

/* ---------- One record ---------- */
.record-flow {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin-top: 48px;
}
.record-flow__channels {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.record-flow__channels li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--partner-line-dark);
  border-radius: 10px;
  color: white;
  font-size: 15px;
  font-weight: 600;
}
.record-flow__channels .pi {
  width: 20px;
  height: 20px;
  color: var(--partner-mint);
}
/* Every channel joins one bus that feeds the account history; the history
   feeds the MIS. */
.record-flow__channels li::after,
.record-flow__channels::after,
.record-flow__node::before {
  content: "";
  position: absolute;
  background: var(--partner-mint);
  opacity: 0.6;
}
.record-flow__channels li::after {
  top: 50%;
  left: 100%;
  width: 24px;
  height: 1px;
}
.record-flow__channels::after {
  top: 24px;
  bottom: 24px;
  right: -24px;
  width: 1px;
}
.record-flow__node {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--partner-mint);
  border-radius: 14px;
  background: #12233a;
}
.record-flow__node::before {
  top: 50%;
  right: 100%;
  width: 48px;
  height: 1px;
}
.record-flow__node:first-of-type::before {
  width: 24px;
}
.record-flow__node .pi {
  width: 28px;
  height: 28px;
  color: var(--partner-mint);
  stroke-width: 1.5;
}
.record-flow__node strong {
  color: white;
  font-size: 18px;
  line-height: 1.3;
}
.record-flow__node span {
  color: var(--partner-text-dark);
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- Norms ---------- */
.collections-norms .partner-band__head p {
  margin-top: 14px;
}
.collections-norms__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.collections-norms__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
.collections-norms__list .pi {
  color: var(--forest);
}
.collections-norms .partner-regulation {
  margin-top: 48px;
}

/* ---------- Start ---------- */
.collections-start {
  max-width: 560px;
}
.collections-start p {
  margin: 14px 0 0;
  color: var(--partner-text-dark);
  font-size: 17px;
  line-height: 1.65;
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .collections-hero .corporate-hero-grid,
  .collections-why__grid,
  .collections-stack__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .collections-illustration {
    max-width: 520px;
  }
  .partner-proof__list--three {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }
  .partner-proof__list--three > li,
  .partner-proof__list--three > li + li {
    padding: 20px 0;
    border-left: 0;
    border-top: 1px solid var(--partner-line-dark);
  }
  .partner-proof__list--three > li:first-child {
    padding-top: 0;
    border-top: 0;
  }
  .record-flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .record-flow__channels li::after,
  .record-flow__channels::after,
  .record-flow__node:first-of-type::before {
    display: none;
  }
  .record-flow__node + .record-flow__node::before {
    top: auto;
    bottom: 100%;
    right: auto;
    left: 50%;
    width: 1px;
    height: 40px;
  }
}
@media (max-width: 767px) {
  .collections-handoff {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .collections-handoff::before {
    display: none;
  }
  .collections-why__pair,
  .collections-norms__list {
    grid-template-columns: minmax(0, 1fr);
  }
  .collections-illustration__caption {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 16px;
  }
  .collections-illustration__caption .pi {
    margin-top: 1px;
  }
}
