/* /affiliates, on top of home.css + blog.css (Kinetic tokens: --ink, --line, --amber, --mono, --ease-out).
   Section titles are centred, as on the homepage; the bodies under them vary in shape (two columns,
   list beside a note, text beside a receipt, a timeline) so the page never repeats one template.
   Only the hero fades in; section titles rise (home.js [data-rise]); everything else is simply there.
   Amber appears on the buttons and the last timeline dot only. */

.afx {
  --afx-surface: rgba(215, 226, 234, .035);
  --afx-label: .78rem;
  max-width: 1200px; margin: 0 auto; padding: 112px var(--gutter) 24px;
}
.afx a:not(.pill):not(.ghost) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; transition: text-decoration-color .2s var(--ease-out); }
.afx a:not(.pill):not(.ghost):hover { text-decoration-color: var(--ink); }
.afx code { font-family: var(--mono); font-size: .9em; color: var(--ink); overflow-wrap: anywhere; }
.afx .pill:active, .afx .ghost:active { transform: scale(.97); }
.afx h3 { margin: 0; }

/* Shared: label + value rows separated by hairlines */
.afx-rows { margin: 0; border-top: 1px solid var(--line); }
.afx-rows > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.afx-rows dt { font-weight: 300; color: var(--ink-3); }
.afx-rows dd { margin: 0; color: var(--ink); }
.afx-rows--wide > div { grid-template-columns: 7rem minmax(0, 1fr); }
.afx-rows--wide dt { font-weight: 500; color: var(--ink); }
.afx-rows--wide dd { font-weight: 300; color: var(--ink-2); }

/* Hero */
.afx-hero { display: grid; justify-items: center; text-align: center; }
.afx-crumb { justify-self: center; margin-bottom: 32px; }
.afx-h1 { max-width: 16ch; margin: 0; font-weight: 900; text-transform: uppercase; font-size: clamp(2.6rem, 7.4vw, 104px); line-height: .92; letter-spacing: -.02em; padding-bottom: .08em; text-wrap: balance; overflow-wrap: anywhere; min-width: 0; }
.afx-lead { max-width: 38rem; margin: 26px auto 0; font-weight: 300; font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.6; color: var(--ink-2); text-wrap: balance; }
.afx-ledger { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 820px; margin: 44px 0 0; }
.afx-ledger > div { display: grid; gap: 8px; padding: 4px 20px; }
.afx-ledger > div + div { border-left: 1px solid var(--line-strong); }
.afx-ledger dt { font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.afx-ledger dd { margin: 0; font-weight: 300; font-size: .95rem; line-height: 1.4; color: var(--ink-2); }
.afx-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.afx-fine { margin: 14px 0 0; font-weight: 300; font-size: .92rem; line-height: 1.55; color: var(--ink-3); }
.afx-fine--center { max-width: 46rem; margin: 28px auto 0; text-align: center; text-wrap: balance; }

/* Sections: three spacings, so the page breathes unevenly on purpose */
.afx-sec { padding-top: clamp(80px, 9vw, 120px); }
.afx-sec--tight { padding-top: clamp(56px, 6vw, 80px); }
.afx-sec--wide { padding-top: clamp(96px, 11vw, 152px); }
.afx-head { display: grid; justify-items: center; gap: 14px; margin-bottom: 40px; text-align: center; }
.afx-head--left { justify-items: start; text-align: left; margin-bottom: 28px; }
.afx-h2 { margin: 0; font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: .95; letter-spacing: -.015em; color: var(--ink); text-wrap: balance; overflow-wrap: anywhere; min-width: 0; }
.afx-sub { max-width: 40rem; margin: 0; font-weight: 300; font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.afx-head:not(.afx-head--left) .afx-sub { text-wrap: balance; }

/* Two ways */
.afx-ways { display: grid; gap: 20px; }
@media (min-width: 860px) { .afx-ways { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.afx-way { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line-strong); border-radius: 32px; }
.afx-way-h { font-weight: 700; font-size: 1.5rem; color: var(--ink); }
.afx-way-big { margin: 10px 0 0; font-weight: 300; font-size: clamp(1.2rem, 1.8vw, 1.45rem); color: var(--ink-2); }
.afx-way-big b { font-weight: 800; font-size: 2.3em; letter-spacing: -.02em; color: var(--ink); margin-right: .12em; font-variant-numeric: tabular-nums; }
.afx-way-who { margin: 8px 0 22px; font-weight: 300; color: var(--ink-2); }
.afx-way-best { margin: 18px 0 0; font-weight: 300; font-size: .95rem; color: var(--ink-2); }
.afx-way-cta { align-self: flex-start; margin-top: auto; }
.afx-way-best + .afx-way-cta { margin-top: 26px; }

/* How it works: a numbered list beside what to share */
.afx-how { display: grid; gap: 40px; }
@media (min-width: 960px) { .afx-how { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 64px; align-items: start; } }
.afx-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.afx-steps li { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.afx-step-n { font-weight: 800; font-size: 2.4rem; line-height: .9; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.afx-steps h3 { font-weight: 600; font-size: 1.25rem; color: var(--ink); }
.afx-steps p { margin: 6px 0 0; font-weight: 300; line-height: 1.55; color: var(--ink-2); }
.afx-share { padding: 26px 26px 22px; border: 1px solid var(--line); border-radius: 24px; background: var(--afx-surface); }
@media (min-width: 960px) { .afx-share { position: sticky; top: 104px; } }
.afx-share h3 { margin-bottom: 14px; font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.afx-share .afx-rows > div { grid-template-columns: 5.5rem minmax(0, 1fr); }
.afx-share p { margin: 16px 0 0; font-weight: 300; font-size: .96rem; line-height: 1.6; color: var(--ink-2); }

/* Two-column sections */
.afx-split { display: grid; gap: 48px; }
@media (min-width: 960px) { .afx-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; } }
.afx-split .afx-sub + .afx-sub { margin-top: 4px; }

/* The friend's receipt */
.afx-receipt { margin: 0; padding: 26px clamp(22px, 3vw, 34px); border: 1px solid var(--line-strong); border-radius: 24px; }
.afx-receipt figcaption { margin-bottom: 8px; font-weight: 300; font-size: .95rem; color: var(--ink-3); }
.afx-receipt dl { margin: 0; }
.afx-receipt dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 300; color: var(--ink-2); }
.afx-receipt dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink); }
.afx-receipt .afx-receipt-total { border-bottom: 0; padding-top: 16px; font-weight: 500; font-size: 1.2rem; color: var(--ink); }
.afx-receipt .afx-receipt-total dd { font-weight: 700; font-size: 1.5rem; }
.afx-receipt p { margin: 4px 0 0; font-weight: 300; font-size: .92rem; color: var(--ink-3); }

/* Calculator (reuses .price-calc-q / .price-calc-range from home.css) */
.afx-calc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: clamp(24px, 3.4vw, 44px); border: 1px solid var(--line); border-radius: 30px; background: var(--afx-surface); }
@media (min-width: 900px) { .afx-calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; } }
.afx-calc-in, .afx-calc-out { min-width: 0; }
.afx-calc-in { display: grid; gap: 6px; }
/* home.css places .price-calc-q / -range in named grid areas on wide screens; here they simply stack. */
.afx-calc-in > * { grid-area: auto; }
.afx-calc-seg { display: none; justify-self: start; margin-bottom: 18px; }
.js .afx-calc-seg { display: inline-flex; }
.afx-calc-seg button { padding-inline: 16px; letter-spacing: .06em; white-space: nowrap; }
.afx-calc .price-calc-q + .price-calc-range { margin-bottom: 8px; }
.afx-calc-k { margin: 0; font-weight: 300; font-size: 1rem; color: var(--ink-2); }
.afx-calc-a { margin: 6px 0 0; font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 300; line-height: 1.2; color: var(--ink-2); }
.afx-calc-a strong { display: inline-block; min-width: 4ch; font-weight: 800; font-size: clamp(2.6rem, 5vw, 4rem); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.afx-calc-note { margin: 12px 0 0; font-weight: 300; font-size: .95rem; line-height: 1.55; color: var(--ink-2); }
.afx-honest { max-width: 46rem; margin: 18px auto 0; text-align: center; font-weight: 300; font-size: .92rem; line-height: 1.55; color: var(--ink-3); text-wrap: balance; }

/* Payout clock: ordered, so the only place with step labels */
.afx-time { list-style: none; margin: 0; padding: 0; display: grid; }
@media (min-width: 900px) { .afx-time { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.afx-time li { position: relative; padding: 0 0 28px 28px; border-left: 1px solid var(--line-strong); }
.afx-time li::before { content: ''; position: absolute; left: -6px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--ink-2); }
.afx-time li:last-child::before { background: var(--amber); box-shadow: none; }
@media (min-width: 900px) {
  .afx-time li { padding: 28px 22px 0 0; border-left: 0; border-top: 1px solid var(--line-strong); }
  .afx-time li::before { left: 0; top: -6px; }
}
.afx-time-d { font-family: var(--mono); font-size: var(--afx-label); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.afx-time h3 { margin: 8px 0 6px; font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.afx-time p { margin: 0; font-weight: 300; font-size: .96rem; line-height: 1.55; color: var(--ink-2); }

/* Promo kit: quotes separated by hairlines */
.afx-kit { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.afx-kit li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.afx-kit img { display: inline-block; width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; border-radius: 50%; }
.afx-kit-said { margin: 0 0 6px; font-weight: 300; font-size: .95rem; line-height: 1.55; color: var(--ink-3); }
.afx-kit-out { margin: 0; font-weight: 400; line-height: 1.5; color: var(--ink); }

/* Rules: two lists, no boxes */
.afx-rules { display: grid; gap: 32px; }
@media (min-width: 860px) { .afx-rules { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.afx-rules h3 { margin-bottom: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--line-strong); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.afx-rules ul { list-style: none; margin: 0; padding: 0; }
.afx-rules li { padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 300; line-height: 1.5; color: var(--ink-2); }

/* FAQ */
.afx-faq { max-width: 52rem; margin: 0 auto; border-top: 1px solid var(--line); }
.afx-faq-item { border-bottom: 1px solid var(--line); }
.afx-faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 56px; padding: 16px 0; cursor: pointer; list-style: none; font-weight: 500; font-size: clamp(1.02rem, 1.5vw, 1.15rem); color: var(--ink); }
.afx-faq-item summary::-webkit-details-marker { display: none; }
.afx-faq-item summary::after { content: '+'; flex: none; font-family: var(--mono); font-size: 1.2rem; color: var(--ink-3); transition: transform .2s var(--ease-out); }
.afx-faq-item[open] summary::after { transform: rotate(45deg); }
.afx-faq-item summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
.afx-faq-item p { margin: 0 0 20px; max-width: 46rem; font-weight: 300; line-height: 1.65; color: var(--ink-2); }

/* Closing: a line and two buttons, no box */
.afx-end { display: grid; justify-items: center; gap: 14px; margin-top: clamp(72px, 9vw, 112px); padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); text-align: center; }
.afx-end .afx-h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.afx-end .afx-ctas { margin-top: 10px; }

@media (max-width: 640px) {
  .afx { padding-top: 96px; }
  .afx-ledger { grid-template-columns: 1fr; gap: 0; }
  .afx-ledger > div { padding: 14px 0; }
  .afx-ledger > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .afx-rows > div, .afx-rows--wide > div, .afx-share .afx-rows > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .afx-way-cta { align-self: stretch; }
  .afx-calc-seg { justify-self: stretch; }
  .js .afx-calc-seg { display: flex; width: 100%; }
  .afx-calc-seg button { flex: 1; padding-inline: 8px; font-size: .7rem; white-space: normal; line-height: 1.25; }
  .afx-head--left { justify-items: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .afx .pill:active, .afx .ghost:active { transform: none; } }
