/* =============================================================================
 * erp-affiliate.css — the `/affiliates` Affiliate Partner Program page.
 *
 * Lifted VERBATIM from the source's own `/build/affiliate-program.css?v=20261013`
 * (captured 2026-10-24). The source ships it unminified, so this is a straight
 * copy with only this header added — every value, every breakpoint is theirs.
 *
 * ⚠️ The stylesheet is scoped entirely under `.ap` plus `.page-affiliate-program`
 * on BODY, which `erp_supply_body_class()` adds. Nothing here leaks to another
 * template.
 *
 * ⚠️ `.ap-form-grid`, `.ap-field`, `.ap-checkbox`, `.ap-honeypot` and
 * `#ap-form-message` style a form the source only renders to LOGGED-IN visitors
 * (anonymous visitors get the `.ap-login` card instead). We render the real
 * application form to everyone, so those rules are load-bearing for us even
 * though an anonymous capture of the source never exercises them.
 *
 * @package erppeptide
 * ========================================================================== */

.page-affiliate-program {
  background: #faf8f1;
}

.ap {
  --ap-ink: #10213d;
  --ap-muted: #606b78;
  --ap-gold: #f6c95b;
  color: var(--ap-ink);
  background: #faf8f1;
  font-family: inherit;
  padding: 36px 0 72px;
}

.ap .ap-shell {
  width: min(1280px, 100% - 64px);
  margin: auto;
}

.ap *, .ap *::before, .ap *::after {
  box-sizing: border-box;
}

.ap h1, .ap h2, .ap h3, .ap p {
  margin: 0;
  color: inherit;
}

.ap h1, .ap h2 {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: -0.055em;
}

.ap h2 {
  font-size: clamp(28px, 3.2vw, 43px);
  line-height: 1.15;
}

.ap h3 {
  font-family: inherit;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}

.ap p {
  line-height: 1.75;
}

.ap a {
  color: inherit;
}

.ap a:focus-visible, .ap button:focus-visible, .ap summary:focus-visible {
  outline: 3px solid #b48412;
  outline-offset: 5px;
}

.ap .ap-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.6;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.ap .ap-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--ap-gold);
  border-radius: 50%;
  margin-right: 10px;
}

.ap .ap-lead {
  color: var(--ap-muted);
  font-size: 16px;
  max-width: 540px;
}

.ap .ap-hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 42px 0 62px;
}

.ap .ap-hero h1 {
  font-size: clamp(40px, 4.6vw, 66px);
  line-height: 1.08;
  margin-bottom: 26px;
}

.ap .ap-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.ap .ap-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 17px 22px;
  background: var(--ap-ink);
  color: #fff;
  border: 1px solid var(--ap-ink);
  border-radius: 8px;
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.ap .ap-button:hover {
  background: #233b5e;
  color: #fff;
}

.ap .ap-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.ap .ap-button span {
  font-size: 22px;
  line-height: 1;
}

.ap .ap-text-link {
  font-weight: 600;
  font-size: 13px;
  text-underline-offset: 5px;
}

.ap .ap-hero-foot {
  font-size: 12px;
  color: var(--ap-muted);
  margin-top: 22px;
}

.ap .ap-hero-foot span {
  color: #3c7253;
  margin-right: 6px;
}

.ap .ap-hero-card {
  border-radius: 22px;
  padding: 30px 36px;
  background: var(--ap-ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(20, 36, 65, 0.0823529412);
}

.ap .ap-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.ap .ap-orbit {
  border: 1px solid rgba(255, 255, 255, 0.2509803922);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: var(--ap-gold);
}

.ap .ap-big-rate {
  font-size: 138px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.07em;
  color: var(--ap-gold);
}

.ap .ap-big-rate span {
  font-size: 0.55em;
}

.ap .ap-card-caption {
  font-size: 15px;
  color: #eceff4;
}

.ap .ap-growth {
  display: flex;
  gap: 9px;
  height: 75px;
  align-items: flex-end;
  margin: 26px 0;
}

.ap .ap-growth span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: #f6c95b;
}

.ap .ap-growth span:nth-child(1) {
  height: 15px;
  opacity: 0.36;
}

.ap .ap-growth span:nth-child(2) {
  height: 30px;
  opacity: 0.52;
}

.ap .ap-growth span:nth-child(3) {
  height: 45px;
  opacity: 0.68;
}

.ap .ap-growth span:nth-child(4) {
  height: 60px;
  opacity: 0.84;
}

.ap .ap-growth span:nth-child(5) {
  height: 75px;
  opacity: 1;
}

.ap .ap-card-requirement {
  font-size: 12px;
  color: #dfe5ef;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1450980392);
}

.ap .ap-hero-card small {
  display: block;
  font-size: 11px;
  color: #b9c5d8;
  margin-top: 7px;
  line-height: 1.6;
}

.ap .ap-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  border-block: 1px solid #e2e1d9;
  padding: 28px 0;
}

.ap .ap-benefits article {
  display: flex;
  gap: 15px;
}

.ap .ap-benefit-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid #deddd3;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  font-size: 24px;
}

.ap .ap-benefits h2 {
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.ap .ap-benefits p {
  color: var(--ap-muted);
  font-size: 12px;
  margin-top: 7px;
}

.ap .ap-section {
  padding-top: 80px;
  scroll-margin-top: 110px;
}

.ap .ap-section-head {
  max-width: 730px;
  margin-bottom: 32px;
}

.ap .ap-section-head > p:last-child {
  margin-top: 18px;
  color: var(--ap-muted);
  font-size: 14px;
}

.ap .ap-tiers {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.ap .ap-tier {
  padding: 25px 20px;
  background: #fff;
  border: 1px solid #e3e2da;
  border-radius: 12px;
}

.ap .ap-tier-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.ap .ap-tier-rate {
  display: block;
  font-size: 66px;
  letter-spacing: -0.07em;
  line-height: 1.2;
  margin: 16px 0 20px;
}

.ap .ap-tier-rate span {
  font-size: 32px;
}

.ap .ap-tier-metric strong {
  display: block;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.ap .ap-tier-metric span {
  display: block;
  font-size: 10px;
  color: var(--ap-muted);
  margin-top: 6px;
  line-height: 1.5;
}

.ap .ap-tier-and {
  display: block;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--ap-muted);
  margin: 12px 0;
}

.ap .ap-tier--top {
  background: var(--ap-gold);
  border-color: #e6b843;
}

.ap .ap-tier--top .ap-tier-metric span, .ap .ap-tier--top .ap-tier-and {
  color: #4c442e;
}

.ap .ap-fine-print {
  font-size: 11px;
  color: var(--ap-muted);
  line-height: 1.8;
  margin-top: 19px;
}

.ap .ap-calculator {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: #fff;
  border: 1px solid #e3e2da;
  border-radius: 20px;
  margin-top: 74px;
  overflow: hidden;
  scroll-margin-top: 110px;
}

.ap .ap-calculator-inputs {
  padding: 42px;
}

.ap .ap-calculator-inputs > p:not(.ap-eyebrow) {
  color: var(--ap-muted);
  font-size: 13px;
  margin: 20px 0 24px;
}

.ap .ap-calc-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.ap .ap-calc-field label {
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}

.ap .ap-calc-field input {
  width: 132px;
  flex-shrink: 0;
}

.ap input:not([type=checkbox]), .ap select, .ap textarea {
  max-width: 100%;
  min-width: 0;
  border: 1px solid #d8dce0;
  border-radius: 7px;
  background: #fff;
  color: var(--ap-ink);
  font: inherit;
  padding: 11px 12px;
  font-size: 14px;
}

.ap input:focus, .ap select:focus, .ap textarea:focus {
  border-color: #9b741d;
  outline: 2px solid rgba(246, 201, 91, 0.3960784314);
  outline-offset: 1px;
}

.ap .ap-calculator-result {
  background: #f3efdf;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ap .ap-result-label {
  font-size: 12px;
  font-weight: 600;
}

.ap .ap-result-total {
  display: block;
  font-size: clamp(36px, 4.1vw, 58px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.3;
  margin: 18px 0 27px;
  overflow-wrap: anywhere;
}

.ap .ap-result-total small {
  font-size: 12px;
  letter-spacing: 0.03em;
}

.ap .ap-result-row {
  border-top: 1px solid #dcd7c7;
  padding: 16px 0;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  font-size: 12px;
}

.ap .ap-result-row strong {
  white-space: nowrap;
}

.ap .ap-calculator-result .ap-button {
  margin-top: 24px;
  align-self: flex-start;
}

.ap .ap-calc-warning {
  font-size: 12px;
  color: #94401d;
  margin-top: 12px;
}

.ap .ap-fit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.ap .ap-fit .ap-lead {
  margin-top: 23px;
  font-size: 14px;
}

.ap .ap-fit-list article {
  display: flex;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid #e2e1d9;
}

.ap .ap-fit-list article:first-child {
  padding-top: 0;
}

.ap .ap-fit-number {
  color: #9b741d;
  font-size: 12px;
  padding-top: 3px;
}

.ap .ap-fit-list p {
  margin-top: 8px;
  color: var(--ap-muted);
  font-size: 13px;
}

.ap .ap-steps {
  list-style: none;
  margin: 65px 0 0;
  padding: 32px;
  border-radius: 16px;
  background: #eeeae0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.ap .ap-steps li > span {
  font-size: 12px;
  color: #80735c;
}

.ap .ap-steps h3 {
  margin-top: 12px;
  font-size: 17px;
}

.ap .ap-steps p {
  color: var(--ap-muted);
  font-size: 12px;
  margin-top: 8px;
}

.ap .ap-apply {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}

.ap .ap-apply-intro .ap-lead {
  margin-top: 24px;
  font-size: 14px;
}

.ap .ap-minimum {
  padding: 24px;
  border: 1px solid #e0d7bf;
  border-radius: 12px;
  margin-top: 30px;
  background: #f6f0df;
}

.ap .ap-minimum strong {
  display: block;
  font-size: 28px;
}

.ap .ap-minimum strong span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--ap-muted);
}

.ap .ap-minimum b {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ap-muted);
  margin: 12px 0;
}

.ap .ap-application-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e3e2da;
  padding: 32px;
  align-self: start;
}

.ap .ap-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ap .ap-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ap .ap-field label {
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

.ap .ap-field small {
  font-size: 10px;
  color: var(--ap-muted);
  line-height: 1.7;
}

.ap .ap-field--wide {
  grid-column: 1/-1;
}

.ap .ap-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 11px;
  line-height: 1.75;
  margin: 24px 0 0;
  cursor: pointer;
}

.ap .ap-checkbox input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--ap-ink);
}

.ap #ap-application-form > .ap-button {
  width: 100%;
  margin-top: 26px;
}

.ap .ap-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ap #ap-form-message {
  margin-top: 22px;
  padding: 14px;
  border-radius: 6px;
  background: #edf5ef;
  color: #2b5c3c;
  font-size: 12px;
  white-space: pre-line;
}

.ap #ap-form-message.ap-error {
  background: #fff0e9;
  color: #933c21;
}

.ap .ap-login {
  padding: 24px 4px;
}

.ap .ap-login-symbol {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--ap-gold);
  font-size: 30px;
  margin-bottom: 24px;
}

.ap .ap-login h3 {
  font-size: 26px;
}

.ap .ap-login p {
  font-size: 14px;
  color: var(--ap-muted);
  margin: 18px 0 28px;
}

.ap .ap-login .ap-text-link {
  display: block;
  margin-top: 22px;
}

.ap .ap-faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}

.ap .ap-faq details {
  border-bottom: 1px solid #deded4;
  padding: 19px 0;
}

.ap .ap-faq details:first-child {
  padding-top: 0;
}

.ap .ap-faq summary {
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.6;
}

.ap .ap-faq details p {
  margin-top: 15px;
  color: var(--ap-muted);
  font-size: 13px;
}

.ap [hidden] {
  display: none !important;
}

@media (max-width: 1023px) {
  .ap .ap-hero {
    gap: 35px;
  }
  .ap .ap-tiers {
    grid-template-columns: repeat(3, 1fr);
  }
  .ap .ap-benefits {
    gap: 20px;
  }
  .ap .ap-apply, .ap .ap-fit, .ap .ap-faq {
    gap: 32px;
  }
  .ap .ap-calculator-inputs, .ap .ap-calculator-result {
    padding: 28px;
  }
  .ap .ap-calc-field {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .ap .ap-calc-field input {
    width: 100%;
  }
  .ap .ap-form-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .ap {
    padding-top: 10px;
  }
  .ap .ap-shell {
    width: calc(100% - 32px);
  }
  .ap .ap-hero {
    grid-template-columns: 1fr;
    padding: 28px 0 36px;
    gap: 28px;
  }
  .ap .ap-hero h1 {
    font-size: 42px;
  }
  .ap .ap-hero-card {
    padding: 25px;
  }
  .ap .ap-big-rate {
    font-size: 110px;
  }
  .ap .ap-growth {
    height: 55px;
    margin: 18px 0;
  }
  .ap .ap-growth span:nth-child(1) {
    height: 11px;
  }
  .ap .ap-growth span:nth-child(2) {
    height: 22px;
  }
  .ap .ap-growth span:nth-child(3) {
    height: 33px;
  }
  .ap .ap-growth span:nth-child(4) {
    height: 44px;
  }
  .ap .ap-growth span:nth-child(5) {
    height: 55px;
  }
  .ap .ap-actions {
    gap: 18px;
  }
  .ap .ap-benefits, .ap .ap-calculator, .ap .ap-fit, .ap .ap-apply, .ap .ap-faq, .ap .ap-steps {
    grid-template-columns: 1fr;
  }
  .ap .ap-benefits {
    gap: 24px;
    padding: 25px 0;
  }
  .ap .ap-section {
    padding-top: 52px;
  }
  .ap .ap-tiers {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .ap .ap-tier {
    padding: 20px 14px;
  }
  .ap .ap-tier--top {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  .ap .ap-tier--top .ap-tier-label {
    grid-column: 1/-1;
  }
  .ap .ap-tier--top .ap-tier-rate {
    grid-row: 2/5;
    margin: 15px 0 0;
    align-self: center;
  }
  .ap .ap-tier--top .ap-tier-metric:first-of-type {
    margin-top: 16px;
  }
  .ap .ap-tier--top .ap-tier-and {
    margin: 8px 0;
  }
  .ap .ap-tier-rate {
    font-size: 54px;
  }
  .ap .ap-tier-metric strong {
    font-size: 19px;
  }
  .ap .ap-calculator {
    margin-top: 48px;
  }
  .ap .ap-calculator-inputs, .ap .ap-calculator-result, .ap .ap-application-card {
    padding: 24px 20px;
  }
  .ap .ap-result-total {
    font-size: 44px;
  }
  .ap .ap-result-row {
    gap: 10px;
    font-size: 11px;
  }
  .ap .ap-result-row strong {
    white-space: normal;
    text-align: right;
  }
  .ap .ap-steps {
    margin-top: 42px;
    padding: 26px;
    gap: 24px;
  }
  .ap .ap-fit, .ap .ap-apply, .ap .ap-faq {
    gap: 30px;
  }
  .ap .ap-eyebrow {
    font-size: 10px;
    margin-bottom: 16px;
  }
  .ap .ap-lead {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ap .ap-button {
    transition: none;
  }
}
