/*
 * /data-partners/refer — the fold and the pieces every section shares. The
 * /enterprise hero statement (enterprise-hero.css .ent-h1 / .ent-sub) and
 * what a referral earns, over the /data-partners reel (enterprise-hero.css
 * .ent-reel), with the referral form card (refer-form.css) beside it. No new palette: white on black, hairlines, the white pill. The
 * sections live in refer-sections.css, the form in refer-form.css.
 */

/* ── Fold ────────────────────────────────────────────────────────────────── */
.rf-hero {
  overflow: hidden;
  background: var(--band-black);
}
/* The reel runs under the fold, so the statement carries the same feathered
   dark pool as /enterprise's (.ent-fold .hero-intro::before): it reads over
   the brightest frame. A gradient, not a blur (PERFORMANCE.md rule 2). */
.rf-intro {
  position: relative;
  isolation: isolate;
}
.rf-intro::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  z-index: -1;
  background: radial-gradient(
    closest-side,
    rgba(8, 8, 8, 0.7),
    rgba(8, 8, 8, 0.5) 55%,
    rgba(8, 8, 8, 0) 100%
  );
  pointer-events: none;
}
.rf-hero .btn-ghost {
  background: rgba(10, 10, 10, 0.32);
}
.rf-hero .btn-ghost:hover {
  background: rgba(10, 10, 10, 0.5);
}
.rf-fold {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
  max-width: var(--measure);
  min-height: 100svh;
  margin: 0 auto;
  padding: 112px var(--gutter) 56px;
  align-content: center;
}
/* The form needs room for two fields a row, so it takes the wider column
   once the fold splits. */
@media (min-width: 960px) {
  .rf-fold {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(40px, 5vw, 80px);
  }
}
/* The statement shares the row with the form, so it runs a step smaller than
   /enterprise's; it keeps the hero's text shadow for the reel behind it. */
.rf-h1 {
  font-size: clamp(38px, min(4.2vw, 7.5vh), 64px);
}
.rf-unlisted .btn svg {
  width: 15px;
  height: 15px;
}
/* The nav and every "Refer a company" land here, below the fixed bar. */
.rf-hero-form {
  scroll-margin-top: 88px;
}


/* ── What a referral earns ───────────────────────────────────────────────── */
/* Under the statement, on the reel: the figure large and light, the terms on
   a hairline below it. */
.rf-earn {
  margin-top: clamp(28px, 3.4vw, 40px);
  color: #fff;
}
.rf-card-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--on-ink-muted);
}
/* The figure: big, light, tabular, the hero's own voice. */
.rf-earn-amount {
  margin-top: 8px;
  font-size: clamp(40px, 4.4vw, 60px);
  font-weight: 340;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.rf-earn-amount span {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--on-ink-muted);
}
.rf-hero-how {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: clamp(22px, 2.6vw, 30px);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.rf-hero-how svg {
  width: 15px;
  height: 15px;
}
.rf-card-terms {
  list-style: none;
  margin-top: clamp(22px, 2.4vw, 30px);
  padding-top: clamp(18px, 2vw, 24px);
  border-top: 1px solid var(--line-on-ink);
  display: grid;
  gap: 14px;
}
.rf-card-terms li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.86);
}
.rf-card-terms svg {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: #fff;
}

/* ── Shared ──────────────────────────────────────────────────────────────── */
/* A pill that follows the page's tone: ink on white, white on black. */
.is-dark .rf-tone-btn {
  background: #fff;
  color: var(--ink-strong);
}
.is-dark .rf-tone-btn:hover {
  background: #ececec;
}
/* The section leads keep their dark-band dress while the flow is dark. */
.section.is-dark .sec-lead {
  color: var(--on-ink-muted);
}
