/* ============================================================
   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 problem/pull-quote split,
   the numbered difference cards, the renewal ladder, the vertical
   step list, 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}

/* The hero is centred on this page (the product pages are left-aligned): it
   carries no breadcrumb and no mockup, so a centred column reads as a
   statement rather than as a page that lost its right-hand side. */
.pp-hero--center .page-hero-in{margin-inline:auto;text-align:center}
.pp-hero--center .page-hero-in h1{max-width:16ch;margin-inline:auto}
.pp-hero--center .lead{margin-inline:auto}
.pp-hero--center .page-actions,
.pp-hero--center .pp-triad{justify-content:center}

/* Second line of the headline. Forest on cream already reads as emphasis —
   amber here would compete with the CTA. */
.pp-accent{color:var(--primary)}

/* Free to join / no minimum followers / no exclusivity. Mirrors
   .finalcta-trust from home.css, which is the same idea on forest. */
.pp-triad{
  display:flex;flex-wrap:wrap;gap:10px 26px;margin:30px 0 0;
  font-size:.85rem;color:var(--muted);
}
.pp-triad span{display:inline-flex;align-items:center;gap:8px}
.pp-triad svg{width:15px;height:15px;flex:none;color:var(--primary-light)}

/* The v3 default .section-head is 640px, tuned for short product headings.
   This page's are full sentences ("Holiday homes aren't hotels. Neither is the
   software they run on.") and were orphan-wrapping at that width. */
.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-triad{gap:8px 18px;margin-top:24px;font-size:.8rem}
}

/* ============================================================
   WHY THIS MATTERS — .split from home.css, but top-aligned:
   the left cell is a heading and the right is four paragraphs, so
   home.css's align-items:center floats the heading into the middle
   of the prose.
   ============================================================ */
.pp-split-top{align-items:start}
.pp-split-top .split-copy .h2{margin-top:14px}

.pp-body{font-size:1rem;color:var(--muted);line-height:1.7;margin:0 0 18px}
.pp-body:last-of-type{margin-bottom:26px}
.pp-body strong{color:var(--foreground);font-weight:700}

/* The one line the whole section is arguing towards. */
.pp-pull{
  margin:0;padding-left:20px;border-left:2px solid var(--primary);
  font-size:1.14rem;font-weight:700;line-height:1.45;
  letter-spacing:-.015em;color:var(--foreground);
}

/* ============================================================
   THE DIFFERENCE — home.css .fcard in the product.css .four grid,
   with a counter instead of an icon. Four points that build on each
   other read as a sequence, and a number says that; an icon doesn't.
   ============================================================ */
.pp-num{
  display:block;margin-bottom:14px;
  font-size:.72rem;font-weight:800;letter-spacing:.12em;
  color:var(--primary-light);
}
/* .fp is .85rem for 5-up cards; at 4-up these carry more copy. */
.fcard .pp-num + .fh{font-size:1.02rem;letter-spacing:-.01em}

.pp-trustline{
  margin:30px 0 0;font-size:.88rem;color:var(--muted);
}

/* ============================================================
   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} }

/* ============================================================
   HOW IT WORKS — a vertical list, not product.css's 4-up .steps
   grid. Each step is a sentence rather than a label, and stacked
   rows keep them in reading order on every width.
   ============================================================ */
.pp-narrow{max-width:820px;margin-inline:auto}

.pp-steps{counter-reset:pp-step;margin-top:34px}
.pp-step{
  counter-increment:pp-step;
  display:grid;grid-template-columns:2rem 1fr;gap:20px;
  padding:22px 0;border-top:1px solid var(--border);
}
.pp-step:last-child{border-bottom:1px solid var(--border)}
.pp-step::before{
  content:counter(pp-step,decimal-leading-zero);
  padding-top:3px;
  font-size:.75rem;font-weight:800;letter-spacing:.06em;color:var(--primary-light);
}
.pp-step h3{font-size:1rem;font-weight:800;letter-spacing:-.01em;margin:0}
.pp-step p{font-size:.92rem;color:var(--muted);line-height:1.6;margin:5px 0 0}

/* ============================================================
   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}

/* 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;line-height:1.5}

/* 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){
  .fcard,.pp-sticky{transition:none}
  .fcard:hover{transform:none}
  .pp-spinner{animation-duration:1.6s}
}
