body.page-partners-join {
  overflow-x: clip;
  background: var(--bg-page);
}
main[data-partners-join] { overflow-x: clip; width: 100%; max-width: 100%; }
#apply { scroll-margin-top: calc(var(--fo-header) + 16px); }

/* ── Hero ── */
.pj-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(16px, 2vw, 24px) 0 clamp(48px, 6vw, 80px);
  background: transparent;
}
.pj-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.pj-hero__copy { min-width: 0; }
.pj-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fo-orange-dark);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.pj-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--fo-orange);
}
.pj-hero h1 {
  font-family: var(--fo-font-display);
  font-size: clamp(1.85rem, 3.6vw, 2.65rem);
  font-weight: 700;
  line-height: 1.28;
  margin: 0 0 14px;
  max-width: none;
  white-space: nowrap;
  letter-spacing: -0.02em;
  color: var(--fo-navy);
}
.pj-hero__lead {
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  line-height: 1.75;
  color: var(--fo-text-muted);
  max-width: 36ch;
  margin: 0 0 26px;
}
.pj-hero .btn--primary {
  min-width: 148px;
  box-shadow: 0 10px 24px rgba(245, 130, 32, 0.28);
}
.pj-hero .btn--primary:hover { box-shadow: 0 12px 28px rgba(245, 130, 32, 0.36); }

.pj-hero__visual {
  position: relative;
  min-height: 320px;
}
.pj-hero__photo {
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: 24px;
  overflow: hidden;
  background: #dde3ea center / cover no-repeat;
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.6);
}
.pj-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Features — simple 3-column, no cards ── */
.pj-features {
  padding: clamp(56px, 8vw, 96px) 0;
  background: transparent;
}
.pj-head {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.pj-head h2 {
  font-family: var(--fo-font-display);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--fo-orange);
}
.pj-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  max-width: 1080px;
  margin-inline: auto;
}
.pj-feature {
  text-align: center;
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}
.pj-feature:hover { transform: none; box-shadow: none; }
.pj-feature__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--fo-blue-light);
  color: var(--fo-blue-dark);
  border: 1px solid #d6e8fb;
}
.pj-feature:nth-child(2) .pj-feature__icon {
  background: var(--fo-orange-light);
  color: var(--fo-orange-dark);
  border-color: #f5d5b0;
}
.pj-feature__icon svg { width: 26px; height: 26px; }
.pj-feature h3 {
  font-family: var(--fo-font-display);
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--fo-blue);
}
.pj-feature p {
  font-size: 0.9rem;
  color: var(--fo-text-muted);
  line-height: 1.75;
  margin: 0 auto;
  max-width: 32ch;
}

/* ── How it works ── */
.pj-how {
  padding: clamp(40px, 5vw, 72px) 0;
  background: transparent;
}
.pj-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  max-width: 1080px;
  margin-inline: auto;
}
.pj-step { text-align: center; }
.pj-step__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--fo-blue-light);
  color: var(--fo-blue-dark);
  border: 1px solid #d6e8fb;
}
.pj-step:nth-child(2) .pj-step__icon {
  background: var(--fo-orange-light);
  color: var(--fo-orange-dark);
  border-color: #f5d5b0;
}
.pj-step:nth-child(3) .pj-step__icon {
  background: var(--fo-blue-light);
  color: var(--fo-blue-dark);
}
.pj-step__icon svg { width: 26px; height: 26px; }
.pj-step h3 {
  font-family: var(--fo-font-display);
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--fo-blue);
}
.pj-step p {
  font-size: 0.9rem;
  color: var(--fo-text-muted);
  line-height: 1.75;
  margin: 0 auto;
  max-width: 32ch;
}

/* ── Apply form ── */
.pj-apply {
  padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 7vw, 88px);
  background: transparent;
}
.pj-apply__form {
  max-width: 720px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid rgba(232, 236, 240, 0.95);
  border-radius: 20px;
  padding: clamp(24px, 3.5vw, 36px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}
.pj-apply__form .field-row { margin-bottom: 0; }
.pj-apply__form .btn--primary { margin-top: 8px; }
.pj-apply__form .req {
  color: var(--fo-orange);
  font-weight: 700;
  margin-inline-start: 2px;
}
.pj-apply__note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--fo-text-muted);
  text-align: center;
}
.pj-apply__note a { color: var(--fo-blue); font-weight: 600; }

.footer { margin-top: 0; }

@media (max-width: 900px) {
  .pj-hero__grid { grid-template-columns: 1fr; }
  .pj-hero h1,
  .pj-hero__lead { max-width: none; }
  .pj-feature-grid,
  .pj-steps { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; gap: 36px; }
  .pj-hero__visual { order: -1; min-height: 0; }
}
@media (max-width: 600px) {
  .pj-hero { padding: 20px 0 36px; }
  .pj-hero__photo { border-radius: 18px; }
  .field-row { grid-template-columns: 1fr; }
}

/* Reference-led partner join layout */
body.page-partners-join { background: #fff; }
.page-partners-join main > section { position: relative; }
.page-partners-join main .container { max-width: 1120px; }

.pj-hero {
  padding: clamp(38px, 5vw, 70px) 0 clamp(50px, 6vw, 82px);
  background-color: #f8fcff;
  background-image:
    linear-gradient(rgba(74, 144, 226, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 144, 226, 0.055) 1px, transparent 1px);
  background-size: 18px 18px;
}
.pj-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  background: linear-gradient(transparent, rgba(255,255,255,.92));
  pointer-events: none;
}
.pj-hero__grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .82fr);
  gap: clamp(46px, 7vw, 92px);
  align-items: center;
}
.pj-hero__copy { padding-inline-start: clamp(6px, 2vw, 24px); }
.pj-kicker { margin-bottom: 16px; color: var(--fo-text-muted); font-size: .78rem; }
.pj-kicker::before { width: 7px; height: 7px; border-radius: 50%; }
.pj-hero h1 {
  white-space: normal;
  max-width: 15ch;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.25;
}
.pj-hero h1 strong { color: var(--fo-orange); font-weight: inherit; }
.pj-hero__lead { max-width: 48ch; margin-bottom: 24px; font-size: .93rem; }
.pj-hero .btn--primary { min-width: 132px; }
.pj-hero__visual { min-height: 390px; }
.pj-hero__photo {
  width: min(100%, 430px);
  margin-inline: auto;
  aspect-ratio: 1 / .92;
  border-radius: 18px;
  box-shadow: 0 22px 48px rgba(15, 23, 42, .16);
}
.pj-hero__photo img { object-position: center 48%; }
.pj-hero__stat {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid rgba(226,232,240,.9);
  border-radius: 10px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 24px rgba(15,23,42,.1);
  color: var(--fo-text-muted);
  font-size: .67rem;
}
.pj-hero__stat strong { display: block; color: var(--fo-navy); font-size: .82rem; }
.pj-hero__stat--one { inset-inline-start: -18px; bottom: 26px; }
.pj-hero__stat--two { inset-inline-end: -12px; bottom: -16px; }
.pj-hero__avatars { display: flex; direction: ltr; }
.pj-hero__avatars i {
  width: 24px; height: 24px; margin-inline-start: -6px; border: 2px solid #fff;
  border-radius: 50%; background: var(--fo-blue-light);
}
.pj-hero__avatars i:nth-child(2) { background: #ffd7b4; }
.pj-hero__avatars i:nth-child(3) { background: #cce9df; }

.pj-features { padding: clamp(64px, 8vw, 100px) 0; background: #fff; }
.pj-head { margin-bottom: clamp(32px, 4vw, 48px); }
.pj-head__eyebrow {
  display: block; margin-bottom: 9px; color: var(--fo-orange); font-size: .72rem; font-weight: 700;
}
.pj-head h2 { color: var(--fo-navy); font-size: clamp(1.6rem, 3vw, 2.25rem); }
.pj-head p { margin: 10px auto 0; color: var(--fo-text-muted); font-size: .82rem; }
.pj-feature-grid { gap: 22px; }
.pj-feature {
  padding: 28px 24px 26px;
  text-align: start;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15,23,42,.045);
}
.pj-feature__icon { width: 38px; height: 38px; margin: 0 0 17px; border-radius: 8px; }
.pj-feature__icon svg { width: 19px; height: 19px; }
.pj-feature h3 { color: var(--fo-navy); font-size: .98rem; margin-bottom: 8px; }
.pj-feature p { max-width: none; font-size: .77rem; line-height: 1.8; }

.pj-how { padding: clamp(70px, 9vw, 112px) 0; background: #f9fbfd; }
.pj-how .pj-head { text-align: start; margin-bottom: 34px; }
.pj-how__layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(54px, 8vw, 100px); align-items: center; }
.pj-how__content { min-width: 0; }
.pj-steps { display: block; max-width: none; margin: 0; }
.pj-step {
  position: relative;
  padding-block: 0 28px;
  padding-inline: 56px 0;
  text-align: start;
}
.pj-step + .pj-step { padding-top: 28px; border-top: 1px solid #dfe5eb; }
.pj-step__icon {
  position: absolute; top: 0; inset-inline-start: 0; width: 34px; height: 34px; margin: 0;
  border: 0; border-radius: 9px;
}
.pj-step + .pj-step .pj-step__icon { top: 28px; }
.pj-step__icon svg { width: 17px; height: 17px; }
.pj-step h3 { color: var(--fo-navy); font-size: 1.08rem; margin-bottom: 8px; }
.pj-step p { max-width: 52ch; margin: 0; font-size: .8rem; line-height: 1.85; }
.pj-how__visual { position: relative; min-height: 430px; }
.pj-how__visual::before {
  content: ""; position: absolute; width: 230px; height: 230px; inset-inline-start: 16%; top: 24%;
  border-radius: 50%; border: 1px solid rgba(74,144,226,.2);
  background:
    radial-gradient(circle,
      rgba(74,144,226,.025) 0 28px,
      rgba(74,144,226,.14) 29px 30px,
      rgba(74,144,226,.025) 31px 54px,
      rgba(74,144,226,.11) 55px 56px,
      rgba(74,144,226,.02) 57px 82px,
      rgba(74,144,226,.09) 83px 84px,
      rgba(74,144,226,.018) 85px 100%);
  box-shadow: 0 18px 42px rgba(74,144,226,.06);
}
.pj-how__image {
  position: absolute; overflow: hidden; border: 7px solid #fff; border-radius: 18px;
  background: #e8edf3; box-shadow: 0 20px 40px rgba(15,23,42,.13);
}
.pj-how__image img { width: 100%; height: 100%; object-fit: cover; }
.pj-how__image--back { width: 235px; height: 310px; top: 0; inset-inline-end: 5%; }
.pj-how__image--front { width: 245px; height: 210px; inset-inline-start: 2%; bottom: 0; }

.pj-apply { padding: clamp(70px, 8vw, 104px) 0; background: #fff; }
.pj-apply > .container > .pj-head { display: none; }
.pj-apply__grid {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  align-items: stretch;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .07);
}
.pj-apply__aside {
  position: relative; overflow: hidden; padding: 38px 34px; color: #fff;
  border-radius: 0;
  background: linear-gradient(155deg, #4a9bea, #1763b8 72%, #124b91);
}
.pj-apply__logo {
  position: absolute;
  left: 48%;
  bottom: -58px;
  width: 205px;
  height: auto;
  transform: translateX(-50%);
  object-fit: contain;
  opacity: .56;
  filter: saturate(1.15) brightness(1.08);
  mix-blend-mode: normal;
}
.pj-apply__aside-icon {
  width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 22px;
  border-radius: 12px; background: var(--fo-orange); color: #fff;
}
.pj-apply__aside-icon svg { width: 23px; height: 23px; }
.pj-apply__aside h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  line-height: 1.45;
  white-space: normal;
}
.pj-apply__brand-name {
  display: inline-block;
  direction: ltr;
  white-space: nowrap;
  color: var(--fo-orange);
}
.pj-apply__aside p { position: relative; z-index: 1; margin: 0 0 22px; color: #dcecff; font-size: .8rem; line-height: 1.8; }
.pj-apply__aside ul { position: relative; z-index: 1; list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.2); }
.pj-apply__aside li { display: flex; align-items: center; gap: 10px; margin: 11px 0; font-size: .76rem; color: #eaf4ff; }
.pj-apply__benefit-icon {
  flex: 0 0 auto; width: 26px; height: 26px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.2); border-radius: 8px; background: rgba(255,255,255,.1);
  color: #fff;
}
.pj-apply__benefit-icon svg { width: 14px; height: 14px; }
.pj-apply__form {
  width: 100%; max-width: none; margin: 0; padding: clamp(26px, 4vw, 42px);
  border-radius: 0; box-shadow: none;
}
.pj-apply__form label { font-size: .76rem; }
.pj-apply__form .field { margin-bottom: 12px; }
.pj-apply__form .help-block { margin: 6px 0 0; color: #b42318; font-size: .78rem; }
.pj-apply__form .alert ul { margin: 0; padding-inline-start: 1.2em; }
.pj-apply__form input,
.pj-apply__form select,
.pj-apply__form textarea {
  min-height: 40px;
  padding: 8px 12px;
  font-size: .875rem;
  line-height: 1.35;
  border-radius: 8px;
  background: #fcfdff;
}
.pj-apply__form textarea {
  min-height: 88px;
  padding-block: 10px;
  resize: vertical;
}
.pj-apply__form .btn--primary {
  background: var(--fo-orange);
  border-color: var(--fo-orange);
  min-height: 44px;
  padding: 10px 20px;
  font-size: .9rem;
}

@media (max-width: 900px) {
  .pj-hero__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .pj-hero__visual { order: initial; min-height: 300px; }
  .pj-hero h1 { font-size: clamp(1.7rem, 4vw, 2.35rem); }
  .pj-feature-grid { grid-template-columns: repeat(3, 1fr); max-width: none; gap: 14px; }
  .pj-feature { padding: 22px 18px; }
  .pj-how__layout { grid-template-columns: 1fr; }
  .pj-how__visual { width: min(100%, 520px); margin-inline: auto; }
  .pj-apply__grid { grid-template-columns: minmax(250px, .7fr) 1.3fr; }
}
@media (max-width: 720px) {
  .pj-hero__grid, .pj-feature-grid, .pj-apply__grid { grid-template-columns: 1fr; }
  .pj-hero__copy { padding: 0; }
  .pj-hero__visual { order: -1; min-height: 0; }
  .pj-hero__photo { aspect-ratio: 16 / 11; }
  .pj-hero__stat--one { inset-inline-start: 8px; }
  .pj-hero__stat--two { inset-inline-end: 8px; }
  .pj-feature-grid { max-width: 480px; }
  .pj-how__visual { min-height: 360px; }
  .pj-how__image--back { width: 52%; height: 270px; }
  .pj-how__image--front { width: 56%; height: 180px; }
  .pj-apply__aside { min-height: 400px; border-radius: 0; }
  .pj-apply__form { border-radius: 0; }
}
@media (max-width: 480px) {
  .pj-hero__stat { padding: 7px 9px; }
  .pj-hero__stat--two { display: none; }
  .pj-how__visual { min-height: 310px; }
  .pj-how__image--back { height: 230px; }
  .pj-how__image--front { height: 155px; }
  .pj-step { padding-inline-start: 46px; }
}
