/* ===========================================================================
   /partner: the affiliate program's own layer over lander.css.

   The page is the lander's grammar (two-tone headings, notched trays, ring
   buttons, the grain close) written as a letter: a salutation, a refrain, a
   sign-off and a P.S. Its one device is the pulse, recurring commission drawn
   as a heartbeat (partner.js). Everything here is .af-* or scoped under a
   section class, built from the lander's --lp-* tokens, so nothing leaks into
   the home page.
   =========================================================================== */

/* ---- shared section rhythm (as .lp-shift / .lp-faq) --------------------- */
.af-sec { position: relative; isolation: isolate; padding: 96px var(--lp-gutter); background: var(--lp-bg); }
/* A letter reads closer than a product tour: the lander's 140px a side is 112px here. */
@media (min-width: 1024px) { .af .af-sec, .af .af-earn, .af .af-why, .af .lp-faq { padding-block: 112px; } }
.af-title { max-width: 1000px; margin: 0 auto; text-align: center; }
.af .lp-frame.af-frame { max-width: 1180px; margin-top: clamp(88px, 9vw, 132px); }
.af .lp-frame.af-frame--near { margin-top: clamp(84px, 8vw, 112px); }
.af [data-aff-join][hidden], .af [data-aff-soon][hidden] { display: none; }

/* ---- hero: the salutation --------------------------------------------- */
.af-hero { --panel-bottom: 210px; --word-top: 50%; }
.af-salute { margin: 0 0 22px; color: var(--lp-soft); font-size: clamp(17px, 1.4vw, 20px); font-weight: 450; line-height: 1.4; letter-spacing: 0.01em; }
.af-hero .lp-hero__sub { max-width: 720px; }

/* ---- the pulse ---------------------------------------------------------- */
.af-pulse { position: relative; isolation: isolate; overflow: hidden; }
.af-pulse[data-af-pulse="hero"] {
  padding: clamp(18px, 2.4vw, 34px) clamp(18px, 2.8vw, 40px) clamp(14px, 1.8vw, 24px);
  border-radius: calc(var(--r-demo) - var(--p-demo));
  background: radial-gradient(70% 90% at 50% 120%, rgb(255 94 0 / 0.16), transparent 70%), #11100e;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), inset 0 2px 4px rgba(0, 0, 0, 0.55);
  text-align: left;
}
.af-pulse[data-af-pulse="hero"]::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle at 12px 12px, rgb(255 255 255 / 0.035) 1.5px, transparent 2px); background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%, #000 70%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 40%, #000 70%, transparent);
}
.af-pulse__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.af-pulse__head p { margin: 0; color: var(--lp-muted); font-size: 15px; line-height: 1.4; }
.af-pulse__amount b { margin-right: 4px; color: var(--lp-head); font-size: clamp(24px, 2.3vw, 32px); font-weight: 560; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.af-pulse__svg { display: block; width: 100%; height: clamp(130px, 15vw, 210px); margin-top: 6px; overflow: visible; }
.af-pulse__base { fill: none; stroke: rgb(255 255 255 / 0.07); stroke-width: 1; }
.af-pulse__line {
  fill: none; stroke: var(--lp-amber); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgb(255 120 30 / 0.55)) drop-shadow(0 0 18px rgb(255 94 0 / 0.25));
}
/* Drawn in once on load (partner.js sets --len, then .is-drawn). If the script never runs, the static line shows. */
.js .af-pulse.is-ready .af-pulse__line { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 2.4s cubic-bezier(0.65, 0, 0.35, 1); }
.js .af-pulse.is-ready.is-drawn .af-pulse__line { stroke-dashoffset: 0; }
.js .af-pulse[data-af-pulse="hero"]:not(.is-ready) .af-pulse__line { opacity: 0; animation: af-show 0s 3s forwards; }
@keyframes af-show { to { opacity: 1; } }
.af-pulse__spark { fill: #fff4e2; opacity: 0; transition: opacity .8s ease; filter: drop-shadow(0 0 5px #ffb300) drop-shadow(0 0 14px #ff5e00); }
.af-pulse.is-live .af-pulse__spark { opacity: 1; }
.af-pulse__months { position: relative; height: 46px; margin: 4px 0 0; padding: 0; list-style: none; }
.af-pulse__months li { position: absolute; top: 0; translate: -50% 0; display: grid; justify-items: center; gap: 2px; white-space: nowrap; }
.af-pulse__months span { color: var(--lp-dim); font-size: 13px; line-height: 18px; transition: color .6s ease; }
.af-pulse__months b { color: rgb(255 255 255 / 0.3); font-size: 14px; font-weight: 500; line-height: 20px; font-variant-numeric: tabular-nums; transition: color .6s ease, text-shadow .6s ease; }
.af-pulse__months li.is-lit span { color: var(--lp-soft); }
.af-pulse__months li.is-lit b { color: var(--lp-amber); text-shadow: 0 0 18px rgb(255 120 30 / 0.65); }

/* ---- the vow ------------------------------------------------------------ */
.af-vow { position: relative; isolation: isolate; overflow: hidden; padding: clamp(120px, 13vw, 190px) var(--lp-gutter) clamp(24px, 3vw, 40px); background: var(--lp-bg); text-align: center; }
.af-vow::before {
  content: ''; position: absolute; left: 50%; top: clamp(60px, 8vw, 120px); z-index: -1; width: min(1000px, 120vw); height: 520px; translate: -50% 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgb(255 94 0 / 0.18), rgb(206 20 0 / 0.06) 45%, transparent 70%);
}
.af-vow__rate { margin: 0; font-size: clamp(140px, 22vw, 330px); font-weight: 600; line-height: 0.86; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.af-vow__rate span { background: linear-gradient(102deg, #fdac53 0%, #ff6a1a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.05em; }
.af-vow__poem { max-width: 920px; margin: clamp(30px, 3.4vw, 48px) auto 0; color: var(--lp-head); font-size: clamp(26px, 3.3vw, 48px); font-weight: 520; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.af-vow__last { color: var(--lp-amber); }
.js .af-vow__last .sw.is-lit { color: var(--lp-amber); }
.af-vow__aside { max-width: 640px; margin: 30px auto 0; color: var(--lp-muted); font-size: 17px; line-height: 1.5; text-wrap: balance; }
.af-vow__aside [data-aff-text] { color: var(--lp-head); }

/* ---- what each introduction is worth ------------------------------------- */
.af .af-earn__frame { max-width: 1180px; }
.af .af-prices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.af-prices .lp-price-card { padding-bottom: 26px; }
.af-prices .lp-price-card__top .lp-price-card__amount { min-height: 0; }
.af-prices .lp-price-card__amount em { margin-top: 10px; }
.af-plan__who { margin: 18px 0 0; color: var(--lp-muted); font-size: 15px; line-height: 1.5; }
.af-earn__after { color: var(--lp-muted); font-size: 16px; }
.af-earn__after [data-aff-text] { color: var(--lp-head); }
@media (max-width: 960px) { .af .af-prices { grid-template-columns: minmax(0, 1fr); } }

/* ---- the calculator --------------------------------------------------------- */
.af-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--p-stage); }
.af-calc__inputs { display: grid; gap: var(--p-stage); align-content: start; }
.af-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 18px 18px 24px; border: 2px solid var(--lp-line); border-radius: var(--r-card); background: var(--lp-card); }
.af-row__plan b { display: block; color: var(--lp-head); font-size: 18px; font-weight: 520; }
.af-row__plan small { display: block; margin-top: 2px; color: var(--lp-muted); font-size: 14px; }
.af-step { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--lp-line-2); border-radius: 999px; background: var(--lp-inset); }
.af-step button { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--lp-line-2); color: var(--lp-head); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.af-step button:hover { background: #3d3a35; color: #fff; }
.af-step button:active { transform: scale(0.94); }
.af-step button .lp-ico { width: 16px; height: 16px; }
.af-step input { width: 58px; height: 38px; border: 0; background: transparent; color: var(--lp-head); font: inherit; font-size: 19px; font-weight: 520; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.af-step input::-webkit-outer-spin-button, .af-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.af-step button:focus-visible, .af-step input:focus-visible { outline: 2px solid var(--lp-amber); outline-offset: 2px; }
.af-calc__hint { margin: 6px 8px 0; color: var(--lp-muted); font-size: 14px; line-height: 1.5; }

.af-result {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; padding: clamp(24px, 2.8vw, 40px); border-radius: var(--r-card);
  background: radial-gradient(90% 60% at 50% 0%, rgba(254, 160, 2, 0.14), transparent 75%), var(--lp-inset);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--lp-amber) 22%, var(--lp-line));
  transition: box-shadow .8s var(--lp-ease), background .8s var(--lp-ease);
}
.af-result p { margin: 0; }
.af-result .af-result__month { margin-top: 14px; }
.af-result .af-result__year { margin-top: 10px; }
.af-result .af-result__note { margin-top: 14px; }
.af-result .af-result__cta { margin-top: auto; padding-top: 22px; }
.af-result__label { display: flex; align-items: center; gap: 10px; color: var(--lp-muted); font-size: 15px; }
.af-result__chip { padding: 3px 10px; border-radius: 999px; background: rgb(255 94 0 / 0.14); color: var(--lp-amber); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; transition: background-color .5s ease, color .5s ease; }
.af-result__month { color: var(--lp-head); font-size: clamp(48px, 5.2vw, 76px); font-weight: 560; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.af-result__month small { color: var(--lp-muted); font-size: 18px; font-weight: 450; letter-spacing: 0; }
.af-result__year { color: var(--lp-fg); font-size: 20px; font-variant-numeric: tabular-nums; }
.af-pulse--calc { margin: 18px -6px 0; }
.af-pulse--calc .af-pulse__svg { height: 96px; margin: 0; }
.af-result__note { color: var(--lp-muted); font-size: 14px; line-height: 1.5; }
.af-result.is-tier {
  background: radial-gradient(100% 70% at 50% 0%, rgba(255, 120, 30, 0.26), transparent 75%), var(--lp-inset);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--lp-amber) 48%, var(--lp-line)), 0 30px 80px -40px rgb(255 94 0 / 0.55);
}
.af-result.is-tier .af-result__chip { background: linear-gradient(180deg, var(--app-sunset-1), var(--app-sunset-2)); color: #1f1f1e; }
.af-result.is-tier .af-pulse__line { stroke: #ffc36b; }
.af-result::after { content: ''; position: absolute; inset: -30%; z-index: -1; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 35%, rgb(255 196 120 / 0.38), transparent 55%); }
.af-result.is-flare::after { animation: af-flare 1.1s ease-out both; }
@keyframes af-flare { 0% { opacity: 1; transform: scale(0.55); } 100% { opacity: 0; transform: scale(1.15); } }
@media (max-width: 860px) { .af-calc { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) {
  .af-row { padding: 14px 12px 14px 16px; gap: 10px; }
  .af-step button { width: 34px; height: 34px; }
  .af-step input { width: 48px; }
}

/* ---- how it works ------------------------------------------------------------ */
.af-how .lp-plan__glow { left: 50%; top: 40%; }
.af .af-handoff { max-width: 1040px; margin: clamp(56px, 6vw, 84px) auto 0; }
.af-handoff [data-aff-text] { color: var(--lp-amber); }
.af-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--p-stage); }
.af .af-steps .lp-kind { padding: clamp(24px, 2.4vw, 32px); }
.af .af-steps .lp-kind h3 { margin: 20px 0 6px; color: var(--lp-head); font-size: 19px; font-weight: 520; }
.af .af-steps .lp-kind p { margin: 0; color: var(--lp-muted); font-size: 15px; line-height: 1.55; }
.af .af-steps .lp-kind .lp-ico { width: 24px; height: 24px; color: var(--lp-amber); }
.af-after { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 44px; text-align: center; }
.af-after p { margin: 0; color: var(--lp-muted); font-size: 15px; }
@media (max-width: 860px) { .af-steps { grid-template-columns: minmax(0, 1fr); } }

/* ---- why: the old way, struck through ---------------------------------------- */
.af-why s { color: var(--lp-muted); text-decoration-color: rgb(255 255 255 / 0.3); text-decoration-thickness: 1px; }
.af-why .lp-compare__col--with [data-aff-text] { color: var(--lp-amber); }
.af-why .lp-ghl a { color: var(--lp-head); text-decoration: underline; text-decoration-color: var(--lp-amber); text-underline-offset: 3px; }

/* ---- for the ones with a crowd ----------------------------------------------- */
.af-crowd { padding-top: 40px; }
.af .af-crowd__card { max-width: 1040px; margin: 0 auto; padding: clamp(28px, 4.4vw, 60px); gap: 0; }
.af .af-crowd .af-crowd__h { max-width: 860px; margin: 0; color: var(--lp-head); font-size: clamp(26px, 2.7vw, 40px); font-weight: 520; line-height: 1.18; letter-spacing: -0.01em; }
.af-crowd__body { max-width: 640px; margin: 20px 0 0; color: var(--lp-muted); font-size: 17px; line-height: 1.5; }
.af-crowd__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 32px; }

/* ---- the sign-off --------------------------------------------------------------- */
.af-sign { display: block; width: 210px; height: 36px; margin: 30px auto 0; overflow: visible; }
.af-sign path { fill: none; stroke: var(--lp-amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgb(255 120 30 / 0.6)); }
.lp-io .af-sign path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s cubic-bezier(0.65, 0, 0.35, 1) .5s; }
.lp-io .lp-cta__h.io-in + .af-sign path { stroke-dashoffset: 0; }
.af-yours .lp-cta__final > [data-aff-text] { color: inherit; }

/* ---- phones ---------------------------------------------------------------------- */
@media (max-width: 599.98px) {
  .af-hero { --panel-bottom: 170px; }
  .af-salute { padding-inline: 16px; }
  .af-pulse__head p { font-size: 14px; }
  .af-pulse__svg { height: 120px; }
  .af-pulse__months span { font-size: 12px; }
  .af-pulse__months b { font-size: 12.5px; }
  .af-vow__aside { font-size: 16px; }
}

/* ---- reduced motion: drawn, still ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .js .af-pulse.is-ready .af-pulse__line { stroke-dasharray: none; stroke-dashoffset: 0; transition: none; }
  .af-pulse__spark { display: none; }
  .af-result, .af-result__chip { transition: none; }
  .af-result.is-flare::after { animation: none; }
  .lp-io .af-sign path { stroke-dasharray: none; transition: none; }
}
