/* ============================================================
   Honest Mortgage — Partners portal identity
   "Sharp & proof-driven." Navy-forward, high-contrast.
   Signature interactions: a draggable before/after comparison
   ("a typical lender" vs "with Honest") and stats that count up.
   Loaded on partners.html on top of site.css.
   ============================================================ */

/* ---- count-up stat band (navy, sits under the hero) ---- */
.pstats { background: var(--navy); color: var(--cream); position: relative; overflow: hidden; }
.pstats::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 88% 14%, rgba(126,181,227,0.16), transparent 46%); }
.pstats .wrap { position: relative; }
.pstatgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.pstat { border-left: 2px solid rgba(126,181,227,0.4); padding-left: 22px; }
.pstat__num { font-weight: 900; font-size: clamp(40px, 5vw, 60px); letter-spacing: -0.03em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pstat__num .u { color: #fff; }
.pstat__label { margin-top: 12px; font-size: 15px; line-height: 1.45; color: var(--fg-on-dark-2); max-width: 22ch; }

/* ============================================================
   DRAGGABLE BEFORE / AFTER COMPARISON
   ============================================================ */
.cmp { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); }
@media (max-width: 720px) { .cmp { grid-template-columns: 1fr; } }
.cmp__layer { top: 0; left: 0; width: 100%; }
.cmp__before { position: relative; }
.cmp__after { position: absolute; height: 100%; clip-path: inset(0 0 0 50%); will-change: clip-path; }
.cmp__pane { padding: clamp(34px, 4vw, 56px); min-height: 100%; box-sizing: border-box; }
.cmp__pane--before { background: var(--surface-sand); }
.cmp__pane--after { background: var(--navy); height: 100%; position: relative; overflow: hidden; }
.cmp__pane--after::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 80% 12%, rgba(126,181,227,0.18), transparent 52%); }
.cmp__kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 8px; position: relative; }
.cmp__pane--before .cmp__kicker { color: var(--muted); }
.cmp__pane--after .cmp__kicker { color: var(--sky); }
.cmp__h { font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 26px; position: relative; }
.cmp__pane--before .cmp__h { color: #8a8175; }
.cmp__pane--after .cmp__h { color: #fff; }
.cmp__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; position: relative; }
.cmp__list li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; line-height: 1.45; }
.cmp__list li svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.cmp__pane--before .cmp__list li { color: #8a8175; }
.cmp__pane--before .cmp__list li svg { color: #b9b0a2; }
.cmp__pane--after .cmp__list li { color: var(--cream); }
.cmp__pane--after .cmp__list li svg { color: var(--sky); }

/* divider + handle */
.cmp__divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 0 1px rgba(0,44,89,0.06); }
.cmp__handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 999px; background: var(--terracotta); border: 3px solid #fff; box-shadow: var(--shadow-btn); color: #fff; display: grid; place-items: center; cursor: ew-resize; pointer-events: auto; transition: transform var(--dur-fast) var(--ease); }
.cmp__handle:hover { transform: translate(-50%, -50%) scale(1.06); }
.cmp__handle:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.cmp__handle svg { width: 26px; height: 26px; }
.cmp__hint { text-align: center; margin: 16px 0 0; font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
.cmp__labels { display: none; }

@media (max-width: 760px) {
  /* on small screens the wipe is fiddly — stack the two panes instead */
  .cmp { cursor: default; }
  .cmp__after { position: relative; height: auto; clip-path: none !important; }
  .cmp__divider, .cmp__handle { display: none; }
  .cmp__hint { display: none; }
}

/* ============================================================
   PROOF CARDS — sharp navy/sky feature tiles (partner-specific)
   ============================================================ */
.pcard { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-card); padding: 32px 30px; box-shadow: var(--shadow-soft); border-top: 4px solid var(--sky); display: flex; flex-direction: column; gap: 12px; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.pcard__icon { width: 48px; height: 48px; border-radius: var(--radius-card); display: grid; place-items: center; background: var(--navy); color: var(--sky); }
.pcard__icon svg { width: 24px; height: 24px; }
.pcard h3 { margin: 6px 0 0; font-size: 20px; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
.pcard p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--fg2); }

@media (max-width: 980px) {
  .pstatgrid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}
/* stays 2×2 on phones: stacked one-up, four short stats left the right half
   of the band empty and made it ~700px tall */
@media (max-width: 560px) {
  .pstatgrid { gap: 28px 16px; }
  .pstat { padding-left: 14px; }
  .pstat__num { font-size: 32px; }
}
