/* ============================================================
   PARTNER PROGRAM (/partner-program)

   Creator-facing recruiting page. Loaded AFTER v3.css, home.css and
   product.css, and deliberately adds nothing those already provide:
   .wrap, .section, .bg-forest/.bg-cream, .btn*, .section-head, .reveal,
   .page-hero, .steps, .faq and .finalcta all come from there.

   New here: the warmer hero treatment, the benefit-card grid, the
   forest pull-quote band, the motivation cards, the whole form, and
   the mobile sticky CTA.

   Every colour is a v3.css token — no new palette.
   ============================================================ */

/* ============================================================
   HERO — the product .page-hero band, warmed up for creators.
   ============================================================ */
.pp-hero{
  padding:112px 0 76px;
  background:
    radial-gradient(52% 108% at 84% -14%,rgba(245,158,11,.13),transparent 64%),
    radial-gradient(48% 104% at 6% 106%,rgba(1,44,24,.07),transparent 62%),
    var(--white);
}
/* Soft amber orb behind the headline. Decorative only, aria-hidden in markup. */
.pp-hero-glow{
  position:absolute;top:-160px;right:-120px;
  width:520px;height:520px;border-radius:50%;
  background:radial-gradient(circle,rgba(245,158,11,.16),rgba(245,158,11,0) 68%);
  pointer-events:none;
}
.pp-hero .page-hero-in{max-width:880px}

.pp-hero-tags{
  list-style:none;margin:30px 0 0;padding:0;
  display:flex;flex-wrap:wrap;gap:10px;
}
.pp-hero-tags li{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--surface-alt);border:1px solid var(--border);
  border-radius:999px;padding:8px 15px;
  font-size:.82rem;font-weight:600;color:var(--primary);
}
.pp-hero-tags li::before{
  content:"";width:6px;height:6px;border-radius:50%;
  background:var(--accent);flex:none;
}
/* The recurring-income claim is the page's differentiator — the one tag that
   gets the solid amber treatment so it reads first. */
.pp-hero-tags li.is-lead{
  background:var(--primary);border-color:var(--primary);color:#fff;
}
.pp-hero-tags li.is-lead::before{background:var(--accent)}

/* Line breaks that help on wide screens but hurt on phones. */
.pp-br{display:inline}
@media(max-width:820px){ .pp-br{display:none} }

/* The v3 default .section-head is 640px, tuned for short product headings.
   This page's headlines are longer and were orphan-wrapping ("...One minute to
   / start."), so give them room and let the deliberate <br class="pp-br">
   choose the break instead. */
.pp .section-head{max-width:780px}

@media(max-width:640px){
  .pp-hero{padding:86px 0 52px}
  .pp-hero-glow{width:320px;height:320px;top:-120px;right:-100px}
  .pp-hero-tags{gap:8px;margin-top:24px}
  .pp-hero-tags li{font-size:.76rem;padding:7px 12px}
}

/* ============================================================
   BENEFIT CARDS — auto-fit so 6 items reflow 3 / 2 / 1 without
   a breakpoint per count.
   ============================================================ */
/* Explicit 3 → 2 → 1, not auto-fit: there are exactly SIX cards, and 3-up
   splits them evenly. auto-fit resolved to 4 columns at container width and
   left an orphaned row of 2. Same ladder as .related / .steps in product.css.
   (It also avoids auto-fit's other trap — a track minimum wider than the
   container overflows the page horizontally instead of shrinking.) */
.pp-benefits{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:18px;margin-top:48px;
}
@media(max-width:960px){ .pp-benefits{grid-template-columns:repeat(2,1fr)} }
.pp-benefit{
  position:relative;overflow:hidden;
  background:#fff;border:1px solid var(--border);
  border-radius:var(--radius);padding:28px 26px;
  transition:transform .3s var(--ease),box-shadow .3s var(--ease),border-color .3s;
}
/* Amber hairline that wipes in on hover — the page's one flourish. */
.pp-benefit::after{
  content:"";position:absolute;inset:auto 0 0 0;height:3px;
  background:linear-gradient(90deg,var(--accent),var(--primary-light));
  transform:scaleX(0);transform-origin:left;
  transition:transform .35s var(--ease);
}
.pp-benefit:hover{transform:translateY(-4px);box-shadow:var(--shadow-md);border-color:var(--primary-10)}
.pp-benefit:hover::after{transform:scaleX(1)}

.pp-ico{
  display:inline-flex;align-items:center;justify-content:center;
  width:46px;height:46px;border-radius:13px;
  background:var(--primary-08);color:var(--primary);
  margin-bottom:18px;
  transition:background .3s,color .3s;
}
.pp-benefit:hover .pp-ico{background:var(--primary);color:#fff}

.pp-bt{font-size:1.06rem;font-weight:800;letter-spacing:-.01em;margin:0}
.pp-bd{font-size:.9rem;color:var(--muted);margin:9px 0 0;line-height:1.6}

@media(max-width:560px){
  .pp-benefits{grid-template-columns:1fr;gap:14px;margin-top:34px}
  .pp-benefit{padding:24px 22px}
}

/* ============================================================
   RECURRING INCOME BAND — .split from home.css, with a bullet
   list on the left and an earnings timeline on the right.
   ============================================================ */
.pp-why{list-style:none;margin:26px 0 0;padding:0;display:flex;flex-direction:column;gap:14px}
.pp-why li{
  position:relative;padding-left:30px;
  font-size:.93rem;color:var(--muted);line-height:1.6;
}
.pp-why li b{color:var(--foreground);font-weight:700}
/* Amber tick, drawn in CSS so the list needs no inline SVG per item. */
.pp-why li::before{
  content:"";position:absolute;left:2px;top:6px;
  width:11px;height:6px;
  border-left:2.4px solid var(--accent);border-bottom:2.4px solid var(--accent);
  transform:rotate(-45deg);
}

/* The timeline: first payment, then renewals, then an honest "and onward". */
.pp-earn{
  background:#fff;border:1px solid var(--border);
  border-radius:var(--radius-lg);box-shadow:var(--shadow-md);
  padding:28px 26px;
}
.pp-earn-head{
  font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;
  color:var(--muted-light);margin-bottom:20px;
}
.pp-earn-item{
  position:relative;display:flex;gap:15px;align-items:flex-start;
  padding-bottom:22px;
}
/* Connector rail between the dots. Not on the last item — hence :not(). */
.pp-earn-item:not(:last-of-type)::before{
  content:"";position:absolute;left:6px;top:16px;bottom:0;
  width:2px;background:var(--border-strong);
}
.pp-earn-dot{
  position:relative;z-index:1;flex:none;
  width:14px;height:14px;border-radius:50%;margin-top:3px;
  background:var(--surface-alt);border:2.5px solid var(--border-strong);
}
.pp-earn-item.is-first .pp-earn-dot{background:var(--accent);border-color:var(--accent)}
.pp-earn-item:not(.is-first) .pp-earn-dot{background:#fff;border-color:var(--primary-light)}
.pp-earn-body{display:flex;flex-direction:column;gap:3px;min-width:0}
.pp-earn-body b{font-size:.95rem;font-weight:700;color:var(--foreground)}
.pp-earn-body i{font-style:normal;font-size:.85rem;font-weight:600;color:var(--primary)}
.pp-earn-item.is-first .pp-earn-body i{color:var(--accent-dark)}

.pp-earn-more{
  display:flex;align-items:center;gap:11px;padding-left:1px;
  font-size:.82rem;color:var(--muted);font-style:italic;
}
.pp-earn-dots{display:flex;flex-direction:column;gap:3px;width:14px;align-items:center}
.pp-earn-dots i{width:3px;height:3px;border-radius:50%;background:var(--muted-light)}

.pp-earn-note{
  margin:20px 0 0;padding-top:16px;border-top:1px solid var(--border);
  font-size:.79rem;color:var(--muted);line-height:1.55;
}

@media(max-width:900px){ .pp-earn{margin-top:8px} }
@media(max-width:560px){ .pp-earn{padding:24px 20px} }

/* ============================================================
   "MADE FOR CREATORS" — pull-quote band on .bg-forest.
   ============================================================ */
.pp-made{overflow:hidden}
.pp-statement{max-width:760px}
.pp-quote{
  margin:18px 0 0;
  font-size:clamp(1.7rem,4.4vw,2.9rem);font-weight:900;
  letter-spacing:-.035em;line-height:1.15;color:#fff;
}
.pp-quote em{font-style:normal;color:var(--accent)}
.pp-statement .lead{margin-top:24px;max-width:620px}

/* ============================================================
   MOTIVATION CARDS — quieter than the benefit grid on purpose:
   this band reinforces, it doesn't re-sell.
   ============================================================ */
/* minmax is 196px so all FIVE cards sit on one row at container width —
   at 240px the fifth wrapped alone onto a second row and read like an
   afterthought. Reflows 3-up then 1-up on the way down. */
.pp-motive{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(196px,1fr));
  gap:16px;margin-top:44px;
}
.pp-mcard{
  background:var(--surface-alt);border:1px solid var(--border);
  border-radius:var(--radius);padding:24px 22px;
  transition:transform .3s var(--ease),border-color .3s;
}
.pp-mcard:hover{transform:translateY(-3px);border-color:var(--primary-10)}
.pp-mline{
  display:block;width:30px;height:3px;border-radius:2px;
  background:var(--accent);margin-bottom:15px;
}
.pp-mcard h3{font-size:.98rem;font-weight:800;margin:0}
.pp-mcard p{font-size:.86rem;color:var(--muted);margin:8px 0 0;line-height:1.55}

@media(max-width:560px){ .pp-motive{grid-template-columns:1fr;margin-top:32px} }

/* ============================================================
   INTEREST FORM
   ============================================================ */
.pp-form-card{
  max-width:680px;margin:44px auto 0;
  background:#fff;border:1px solid var(--border);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);
  padding:38px 36px;
}
.pp-form{display:flex;flex-direction:column;gap:20px}
/* The UA's [hidden]{display:none} loses to the class above, so `form.hidden =
   true` on success left the form rendered underneath the success panel.
   Any display-setting rule on a toggleable element needs this. */
.pp-form[hidden]{display:none}

.pp-field{display:flex;flex-direction:column}
.pp-label{
  font-size:.86rem;font-weight:700;color:var(--foreground);
  margin-bottom:8px;
}
.pp-label span[aria-hidden]{color:var(--accent-dark)}
.pp-optional{font-weight:500;color:var(--muted-light)}

.pp-input{
  width:100%;font:inherit;font-size:.95rem;color:var(--foreground);
  background:var(--surface);
  border:1px solid var(--border-strong);border-radius:var(--radius-sm);
  padding:13px 15px;
  transition:border-color .2s,box-shadow .2s,background .2s;
  -webkit-appearance:none;appearance:none;
}
.pp-input::placeholder{color:var(--muted-light)}
.pp-input:hover{border-color:var(--muted-light)}
.pp-input:focus{
  outline:none;background:#fff;
  border-color:var(--primary);
  box-shadow:0 0 0 3px var(--primary-10);
}
/* Keyboard users get the same ring even where :focus is suppressed. */
.pp-input:focus-visible{outline:none}
.pp-textarea{resize:vertical;min-height:132px;line-height:1.6}

/* Native select needs its own chevron once appearance is stripped. */
.pp-select{
  padding-right:40px;cursor:pointer;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;
}

.pp-phone-row{display:grid;grid-template-columns:minmax(0,200px) minmax(0,1fr);gap:14px}
@media(max-width:520px){ .pp-phone-row{grid-template-columns:1fr} }

.pp-hint{font-size:.8rem;color:var(--muted);margin-top:7px}
.pp-count{color:var(--muted-light)}

/* Error text is empty (and therefore invisible) until JS fills it. */
.pp-error{
  display:none;font-size:.8rem;font-weight:600;color:var(--bad);margin-top:7px;
}
.pp-error.show{display:block}
.pp-input[aria-invalid="true"]{
  border-color:var(--bad);background:var(--bad-bg);
}
.pp-input[aria-invalid="true"]:focus{box-shadow:0 0 0 3px rgba(220,38,38,.12)}

.pp-formnote{
  margin:0;padding:12px 15px;border-radius:var(--radius-sm);
  font-size:.87rem;font-weight:600;
  background:var(--bad-bg);color:var(--bad);border:1px solid rgba(220,38,38,.18);
}

.pp-submit{position:relative;justify-content:center}
.pp-submit[disabled]{opacity:.72;cursor:progress;transform:none;box-shadow:var(--shadow-cta)}
.pp-spinner{
  width:17px;height:17px;flex:none;border-radius:50%;
  border:2.2px solid rgba(255,255,255,.35);border-top-color:#fff;
  animation:pp-spin .7s linear infinite;
}
@keyframes pp-spin{to{transform:rotate(360deg)}}

.pp-legal{
  margin:0;font-size:.78rem;color:var(--muted);line-height:1.55;text-align:center;
}
.pp-legal a{color:var(--primary);font-weight:600;text-decoration:underline;text-underline-offset:2px}

/* Success panel — replaces the form in place, same card. */
.pp-success{text-align:center;padding:14px 0 6px}
.pp-success-ico{
  display:inline-flex;align-items:center;justify-content:center;
  width:62px;height:62px;border-radius:50%;
  background:var(--ok-bg);color:var(--ok);margin-bottom:20px;
}
.pp-success h3{
  font-size:clamp(1.4rem,3vw,1.8rem);font-weight:900;
  letter-spacing:-.02em;margin:0;outline:none;
}
.pp-success p{
  font-size:.95rem;color:var(--muted);line-height:1.65;
  margin:12px auto 26px;max-width:420px;
}

@media(max-width:640px){
  .pp-form-card{padding:26px 20px;margin-top:32px;border-radius:var(--radius)}
  .pp-form{gap:17px}
}

/* ============================================================
   FINAL CTA on .bg-forest — .btn-primary is forest and would
   disappear, so the button inverts to solid white with an amber
   lift on hover.
   ============================================================ */
.pp-cta-invert{
  border-color:transparent;
  box-shadow:0 14px 34px rgba(0,0,0,.28);
  min-width:230px;justify-content:center;
}
.pp-cta-invert:hover{background:var(--accent);color:var(--primary-dark)}

/* ============================================================
   MOBILE STICKY CTA — phones only. Hidden by partner-program.js
   while #apply is on screen.
   ============================================================ */
.pp-sticky{
  display:none;
  position:fixed;inset:auto 0 0 0;z-index:55;
  padding:12px 16px calc(12px + env(safe-area-inset-bottom));
  background:rgba(255,249,243,.94);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-top:1px solid var(--border);
  transform:translateY(0);
  transition:transform .3s var(--ease),opacity .3s var(--ease);
}
.pp-sticky[data-hidden="true"]{transform:translateY(115%);opacity:0;pointer-events:none}
@media(max-width:768px){
  .pp-sticky{display:block}
  /* Room for the bar so it never covers the footer's last line. */
  .footer{padding-bottom:84px}
}

/* ============================================================
   REDUCED MOTION — v3.css already neutralises .reveal; this kills
   the extras added above.
   ============================================================ */
@media(prefers-reduced-motion:reduce){
  .pp-benefit,.pp-benefit::after,.pp-ico,.pp-mcard,.pp-sticky{transition:none}
  .pp-benefit:hover,.pp-mcard:hover{transform:none}
  .pp-spinner{animation-duration:1.6s}
}
