/* ── Trellis /affiliate ───────────────────────────────────────────────────────
   Page-scoped stylesheet, own `?v=` key. Every selector is `af-*` and/or nested
   under body.affiliate-page, so nothing here reaches the other landing-skin pages
   and landing.css stays untouched (its `?v=` is shared by 10 files).

   Type scale + colours taken from Figma frame 2779:1301, not eyeballed: the hero
   is Poppins Bold 60/66 on #101828 with "Earn" in #11b6e2, section eyebrows are
   SemiBold 16 uppercase 0.7px-tracked cyan, H2s are Bold 36/40, body is 18/29.25
   in #6a7282.
   ────────────────────────────────────────────────────────────────────────────── */

body.affiliate-page {
    --af-ink: #101828;
    --af-body: #6a7282;
    --af-strong: #364153;
    --af-list: #4a5565;
    --af-muted: #99a1af;
    --af-hair: #f3f4f6;
    --af-wash: #f9fafb;
    --af-cyan-wash: #e6f9ff;
    --af-cyan-ink: #0b7a99;
    --af-ease: cubic-bezier(.2, .7, .2, 1);
}

/* Mark the current page in the shared nav (landing.css has no `.active` rule). */
body.affiliate-page .lp-header__nav a.active,
body.affiliate-page #mobileNav a.active {
    color: var(--primary);
    font-weight: 700;
}

/* ── Shared furniture ─────────────────────────────────────────────────────── */
body.affiliate-page .af-section__head {
    max-width: 720px;
    margin: 0 auto 64px;
    text-align: center;
    padding: 0 24px;
}

body.affiliate-page .af-eyebrow {
    font-family: var(--font-poppins);
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: var(--primary);
}

body.affiliate-page .af-h2 {
    margin-top: 12px;
    font-family: var(--font-poppins);
    font-weight: 700;
    font-size: 36px;
    line-height: 40px;
    letter-spacing: -0.4px;
    color: var(--af-ink);
}

body.affiliate-page .af-section__lead {
    margin: 14px auto 0;
    max-width: 576px;
    font-family: var(--font-poppins);
    font-size: 16px;
    line-height: 26px;
    color: var(--af-body);
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
body.affiliate-page .af-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-poppins);
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    padding: 14px 24px;
    border-radius: 12px;
    transition: background-color .18s ease, transform .18s var(--af-ease), box-shadow .18s ease;
}

body.affiliate-page .af-btn--accent {
    background: var(--accent);
    color: #000;
    box-shadow: 0 8px 12px rgba(17, 182, 226, .3);
}

body.affiliate-page .af-btn--accent:hover {
    background: var(--accent-alt);
    transform: translateY(-2px);
    box-shadow: 0 14px 22px -8px rgba(17, 182, 226, .5);
}

body.affiliate-page .af-btn--lg {
    font-size: 18px;
    line-height: 28px;
    padding: 16px 32px;
}

body.affiliate-page .af-btn:active {
    transform: translateY(0);
}

body.affiliate-page .af-btn__arrow {
    width: 18px;
    height: 15px;
    flex: 0 0 18px;
    transition: transform .22s var(--af-ease);
}

body.affiliate-page .af-btn:hover .af-btn__arrow {
    transform: translateX(4px);
}

body.affiliate-page .af-btn:focus-visible,
body.affiliate-page .af-hero__link:focus-visible,
body.affiliate-page .af-faq__q:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
body.affiliate-page .af-hero {
    background: #fff;
    padding: 72px 24px 80px;
    overflow: hidden;
}

body.affiliate-page .af-hero__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
}

body.affiliate-page .af-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #000;
    font-family: var(--font-poppins);
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    padding: 6px 12px;
    border-radius: 999px;
}

body.affiliate-page .af-badge__ico {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
}

body.affiliate-page .af-hero__title {
    margin-top: 20px;
    font-family: var(--font-poppins);
    font-weight: 700;
    font-size: 60px;
    line-height: 66px;
    letter-spacing: -1.2px;
    color: var(--af-ink);
}

body.affiliate-page .af-hero__accent {
    color: var(--primary);
}

body.affiliate-page .af-hero__lead {
    margin-top: 24px;
    max-width: 505px;
    font-family: var(--font-poppins);
    font-size: 18px;
    line-height: 29.25px;
    color: var(--af-body);
}

body.affiliate-page .af-hero__lead strong {
    font-weight: 700;
    color: var(--af-strong);
}

body.affiliate-page .af-hero__cta {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

body.affiliate-page .af-hero__link {
    font-family: var(--font-poppins);
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: var(--af-body);
    transition: color .18s ease, transform .18s var(--af-ease);
}

body.affiliate-page .af-hero__link:hover {
    color: var(--primary);
    transform: translateX(2px);
}

body.affiliate-page .af-stats {
    margin: 40px 0 0;
    padding-top: 33.5px;
    border-top: 1.5px solid var(--af-hair);
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

body.affiliate-page .af-stat__value {
    font-family: var(--font-poppins);
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    color: var(--af-ink);
    font-variant-numeric: tabular-nums;
}

body.affiliate-page .af-stat__label {
    margin: 1.5px 0 0;
    font-family: var(--font-poppins);
    font-size: 12px;
    line-height: 16px;
    color: var(--af-muted);
}

/* Hero cascade: one orchestrated reveal, then nothing moves again. */
@keyframes af-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

body.affiliate-page .af-badge,
body.affiliate-page .af-hero__title,
body.affiliate-page .af-hero__lead,
body.affiliate-page .af-hero__cta,
body.affiliate-page .af-stats,
body.affiliate-page .af-hero__mock {
    animation: af-rise .6s var(--af-ease) both;
}

body.affiliate-page .af-hero__title {
    animation-delay: .06s;
}

body.affiliate-page .af-hero__lead {
    animation-delay: .12s;
}

body.affiliate-page .af-hero__cta {
    animation-delay: .18s;
}

body.affiliate-page .af-stats {
    animation-delay: .24s;
}

body.affiliate-page .af-hero__mock {
    animation-delay: .16s;
}

/* ── Hero dashboard PREVIEW (illustrative, never real data) ───────────────── */
body.affiliate-page .af-hero__mock {
    position: relative;
}

body.affiliate-page .af-mock {
    position: relative;
    background: #fff;
    border: 1.5px solid var(--af-hair);
    border-radius: 16px;
    padding: 25.5px;
    box-shadow: 0 25px 25px rgba(0, 0, 0, .12), 0 8px 10px -6px rgba(0, 0, 0, .1);
    transition: transform .3s var(--af-ease), box-shadow .3s ease;
}

body.affiliate-page .af-mock:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 40px -12px rgba(0, 0, 0, .18);
}

/* An unmissable, non-decorative label: this is a sample, not our numbers. */
body.affiliate-page .af-mock__flag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--af-wash);
    border: 1px solid #e5e7eb;
    color: var(--af-muted);
    font-family: var(--font-poppins);
    font-weight: 600;
    font-size: 10px;
    letter-spacing: .6px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
}

body.affiliate-page .af-mock__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-right: 64px;
}

body.affiliate-page .af-mock__eyebrow {
    font-family: var(--font-poppins);
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: var(--af-muted);
}

body.affiliate-page .af-mock__title {
    margin-top: 1.5px;
    font-family: var(--font-poppins);
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #1e2939;
}

body.affiliate-page .af-mock__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--af-cyan-wash);
    color: var(--af-cyan-ink);
    font-family: var(--font-poppins);
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    padding: 4px 10px;
    border-radius: 999px;
}

body.affiliate-page .af-mock__dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--primary);
    animation: af-pulse 2.4s ease-in-out infinite;
}

@keyframes af-pulse {

    0%,
    100% {
        opacity: .45;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.25);
    }
}

body.affiliate-page .af-mock__stats {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

body.affiliate-page .af-mock__stat {
    background: var(--af-wash);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

body.affiliate-page .af-mock__stat--rate {
    background: var(--af-cyan-wash);
}

body.affiliate-page .af-mock__stat-value {
    font-family: var(--font-poppins);
    font-weight: 700;
    font-size: 18px;
    line-height: 18px;
    color: var(--af-ink);
    letter-spacing: 1px;
}

body.affiliate-page .af-mock__stat--rate .af-mock__stat-value {
    color: var(--af-cyan-ink);
    letter-spacing: 0;
}

body.affiliate-page .af-mock__stat-label {
    margin-top: 4px;
    font-family: var(--font-poppins);
    font-size: 10px;
    line-height: 15px;
    color: var(--af-muted);
}

body.affiliate-page .af-mock__link {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--af-cyan-wash);
    border: 1.5px solid rgba(17, 182, 226, .15);
    border-radius: 12px;
    padding: 13.5px;
}

body.affiliate-page .af-mock__link-label {
    font-family: var(--font-poppins);
    font-weight: 500;
    font-size: 10px;
    line-height: 15px;
    letter-spacing: .25px;
    text-transform: uppercase;
    color: rgba(11, 122, 153, .6);
}

body.affiliate-page .af-mock__link-value {
    margin-top: 1.5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    line-height: 16px;
    color: var(--af-cyan-ink);
}

body.affiliate-page .af-mock__copy {
    background: var(--primary);
    color: #fff;
    font-family: var(--font-poppins);
    font-weight: 600;
    font-size: 10px;
    line-height: 15px;
    padding: 6px 10px;
    border-radius: 8px;
}

body.affiliate-page .af-mock__section {
    margin-top: 20px;
    font-family: var(--font-poppins);
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: var(--af-body);
}

body.affiliate-page .af-mock__rows {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

body.affiliate-page .af-mock__row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0 9.5px;
    border-bottom: 1.5px solid var(--af-wash);
}

body.affiliate-page .af-mock__row:last-child {
    border-bottom: 0;
}

body.affiliate-page .af-mock__avatar {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #e5e7eb, #d1d5dc);
    color: #4a5565;
    font-family: var(--font-poppins);
    font-weight: 700;
    font-size: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.affiliate-page .af-mock__name {
    flex: 1;
    font-family: var(--font-poppins);
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: var(--af-strong);
}

body.affiliate-page .af-mock__status {
    font-family: var(--font-poppins);
    font-weight: 600;
    font-size: 10px;
    line-height: 15px;
    padding: 1.5px 8px;
    border-radius: 999px;
}

body.affiliate-page .af-mock__status--active {
    background: var(--af-cyan-wash);
    color: var(--af-cyan-ink);
}

body.affiliate-page .af-mock__status--trial {
    background: #fffbe9;
    color: #a16207;
}

body.affiliate-page .af-mock__status--signed {
    background: #f8ffd6;
    color: #5a7a00;
}

body.affiliate-page .af-mock__note {
    margin-top: 14px;
    font-family: var(--font-poppins);
    font-size: 11px;
    line-height: 16px;
    color: var(--af-muted);
    font-style: italic;
}

body.affiliate-page .af-mock__coin {
    position: absolute;
    top: -18px;
    left: 50%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 20px 12.5px rgba(0, 0, 0, .1), 0 8px 5px rgba(0, 0, 0, .1);
    /* NO idle animation on the coin: TessCoin.vue records that a moving coin shipped
       twice and read as "a nervous left-right slide" both times (owner, 2026-07-30).
       Its premium comes from the ring + inset depth, not motion. */
}

/* ── TCoin brand mark ─────────────────────────────────────────────────────────
   Ported from frontend/src/components/common/TessCoin.vue so the coin cannot drift
   between the app and the marketing site. The face crop is GEOMETRIC, not
   object-fit: Tess's head spans ~58% of tess-mascot.png's width centred at
   (50%, 30%), so width 172% / left -36% / top -4% centres it at any diameter. The
   embossed disc (inner ring + inset shadows) is what sells the minted metal. */
body.affiliate-page .af-coin {
    position: relative;
    display: inline-block;
    flex: none;
    overflow: hidden;
    border-radius: 999px;
    background: radial-gradient(120% 120% at 30% 20%, #ffffff 0%, #d9f4fc 55%, #a9e6f7 100%);
    box-shadow:
        inset 0 0 0 1.5px rgba(17, 182, 226, .35),
        inset 0 -2px 3px rgba(17, 182, 226, .25),
        inset 0 2px 2px rgba(255, 255, 255, .9);
}

body.affiliate-page .af-coin img {
    position: absolute;
    width: 172%;
    left: -36%;
    top: -4%;
    max-width: none;
    user-select: none;
}

body.affiliate-page .af-coin--36 {
    width: 36px;
    height: 36px;
}

body.affiliate-page .af-coin--48 {
    width: 48px;
    height: 48px;
}

body.affiliate-page .af-mock__coin strong {
    display: block;
    font-family: var(--font-poppins);
    font-weight: 700;
    font-size: 14px;
    line-height: 14px;
    color: var(--af-ink);
}

body.affiliate-page .af-mock__coin em {
    display: block;
    margin-top: 1.5px;
    font-family: var(--font-poppins);
    font-style: normal;
    font-size: 10px;
    line-height: 15px;
    color: #000;
}

/* ── How it works ─────────────────────────────────────────────────────────── */
body.affiliate-page .af-how {
    background: var(--af-wash);
    padding: 96px 24px;
}

body.affiliate-page .af-rail {
    position: relative;
    max-width: 1051px;
    margin: 0 auto 20px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    height: 64px;
}

body.affiliate-page .af-rail__line {
    position: absolute;
    left: 12.5%;
    right: 12.5%;
    top: 50%;
    height: 1px;
    background: #e5e7eb;
    transform: translateY(-50%);
}

body.affiliate-page .af-rail__tile {
    position: relative;
    justify-self: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--accent);
    color: #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 8px var(--af-wash);
    transition: transform .24s var(--af-ease), box-shadow .24s ease;
}

body.affiliate-page .af-rail__tile svg {
    width: 24px;
    height: 24px;
}

body.affiliate-page .af-steps {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 1051px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
}

body.affiliate-page .af-step {
    text-align: center;
    padding: 0 8px;
}

body.affiliate-page .af-step__title {
    font-family: var(--font-poppins);
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: var(--af-ink);
}

body.affiliate-page .af-step__body {
    margin-top: 8px;
    font-family: var(--font-poppins);
    font-size: 14px;
    line-height: 22.75px;
    color: var(--af-body);
}

/* Hovering a step lifts its rail tile — the two rows read as one unit. */
body.affiliate-page .af-steps:hover~.af-rail .af-rail__tile,
body.affiliate-page .af-rail:hover .af-rail__tile {
    box-shadow: 0 0 0 8px var(--af-wash), 0 10px 18px -10px rgba(0, 0, 0, .35);
}

body.affiliate-page .af-rail__tile:hover {
    transform: translateY(-4px) rotate(-4deg);
}

/* ── Rewards ──────────────────────────────────────────────────────────────── */
body.affiliate-page .af-rewards {
    background: #fff;
    padding: 96px 24px;
}

body.affiliate-page .af-rewards__grid {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: stretch;
}

body.affiliate-page .af-card {
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    padding: 40px;
    transition: transform .26s var(--af-ease), box-shadow .26s ease;
}

body.affiliate-page .af-card:hover {
    transform: translateY(-5px);
}

body.affiliate-page .af-card--affiliate {
    background: linear-gradient(215deg, #11b6e2 0%, #48d9ff 100%);
    color: #fff;
    box-shadow: 0 24px 40px -20px rgba(17, 182, 226, .55);
}

body.affiliate-page .af-card--affiliate:hover {
    box-shadow: 0 34px 52px -20px rgba(17, 182, 226, .65);
}

body.affiliate-page .af-card--company {
    background: var(--af-wash);
    border: 1.5px solid var(--af-hair);
}

body.affiliate-page .af-card--company:hover {
    box-shadow: 0 24px 40px -22px rgba(16, 24, 40, .28);
}

body.affiliate-page .af-card__eyebrow {
    font-family: var(--font-poppins);
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: .7px;
    text-transform: uppercase;
    opacity: .8;
}

body.affiliate-page .af-card__eyebrow--cyan {
    color: var(--primary);
    opacity: 1;
}

body.affiliate-page .af-card__title {
    margin-top: 8px;
    font-family: var(--font-poppins);
    font-weight: 700;
    font-size: 30px;
    line-height: 37.5px;
    letter-spacing: -0.3px;
}

body.affiliate-page .af-card__title--dark {
    color: var(--af-ink);
}

body.affiliate-page .af-card__list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

body.affiliate-page .af-card__list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: var(--font-poppins);
    font-size: 14px;
    line-height: 20px;
    opacity: .92;
}

body.affiliate-page .af-card__list--dark li {
    color: var(--af-list);
    opacity: 1;
}

body.affiliate-page .af-card__tick {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    margin-top: 2px;
    color: #fff;
}

body.affiliate-page .af-card__tick--cyan {
    color: var(--primary);
}

body.affiliate-page .af-card__strip {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 22px;
    background: rgba(255, 255, 255, .12);
    border-radius: 16px;
    padding: 16px 16px 16px 30px;
}

body.affiliate-page .af-card__strip>div {
    flex: 1;
    text-align: center;
}

body.affiliate-page .af-card__strip-rule {
    width: 1px;
    height: 48px;
    background: rgba(255, 255, 255, .2);
    flex: 0 0 1px;
}

body.affiliate-page .af-card__strip-value {
    font-family: var(--font-poppins);
    font-weight: 700;
    font-size: 30px;
    line-height: 36px;
    color: #fff;
}

body.affiliate-page .af-card__strip-label {
    margin-top: 1.5px;
    font-family: var(--font-poppins);
    font-size: 11px;
    line-height: 16.5px;
    color: #fff;
    opacity: .7;
}

body.affiliate-page .af-card__callout {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--accent);
    border-radius: 16px;
    padding: 16px;
}

/* (the credits callout's coin uses the shared .af-coin mark above) */

body.affiliate-page .af-card__callout strong {
    display: block;
    font-family: var(--font-poppins);
    font-weight: 700;
    font-size: 18px;
    line-height: 18px;
    color: var(--af-ink);
}

body.affiliate-page .af-card__callout em {
    display: block;
    margin-top: 4px;
    font-family: var(--font-poppins);
    font-style: normal;
    font-size: 12px;
    line-height: 16px;
    color: var(--af-body);
}

/* ── Closing CTA ──────────────────────────────────────────────────────────── */
body.affiliate-page .af-cta {
    position: relative;
    overflow: hidden;
    background: var(--primary);
    padding: 60px 24px;
    text-align: center;
}

body.affiliate-page .af-cta::before {
    content: "";
    position: absolute;
    inset: -40% -10% auto -10%;
    height: 180%;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .16), transparent 62%);
    pointer-events: none;
}

body.affiliate-page .af-cta__title,
body.affiliate-page .af-cta__lead,
body.affiliate-page .af-cta .af-btn,
body.affiliate-page .af-cta__note {
    position: relative;
}

body.affiliate-page .af-cta__title {
    font-family: var(--font-poppins);
    font-weight: 700;
    font-size: 48px;
    line-height: 60px;
    letter-spacing: -0.8px;
    color: #fff;
}

body.affiliate-page .af-cta__lead {
    margin: 20px auto 40px;
    max-width: 720px;
    font-family: var(--font-poppins);
    font-size: 18px;
    line-height: 28px;
    color: #fff;
}

body.affiliate-page .af-cta__note {
    margin-top: 16px;
    font-family: var(--font-poppins);
    font-size: 14px;
    line-height: 20px;
    color: rgba(255, 255, 255, .92);
}

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
body.affiliate-page .af-faq {
    background: #fff;
    padding: 96px 24px;
    content-visibility: auto;
    contain-intrinsic-size: 700px;
}

body.affiliate-page .af-faq .af-section__head {
    margin-bottom: 48px;
}

body.affiliate-page .af-faq__list {
    max-width: 1319px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

body.affiliate-page .af-faq__item {
    background: #fff;
    border-radius: 20px;
    box-shadow: -1px 1px 5px 2px rgba(0, 0, 0, .12);
    transition: box-shadow .2s ease;
}

body.affiliate-page .af-faq__item[open],
body.affiliate-page .af-faq__item:hover {
    box-shadow: -1px 1px 14px 2px rgba(17, 182, 226, .2);
}

body.affiliate-page .af-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    padding: 28px 34px;
    font-family: var(--font-poppins);
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    color: #000;
    list-style: none;
}

body.affiliate-page .af-faq__q::-webkit-details-marker {
    display: none;
}

body.affiliate-page .af-faq__chevron {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    color: var(--primary);
    transition: transform .28s var(--af-ease);
}

body.affiliate-page .af-faq__item[open] .af-faq__chevron {
    transform: rotate(180deg);
}

@keyframes af-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body.affiliate-page .af-faq__a {
    padding: 0 34px 28px;
    font-family: var(--font-poppins);
    font-size: 16px;
    line-height: 26px;
    color: var(--af-body);
    animation: af-fade .25s var(--af-ease) both;
}

body.affiliate-page .af-faq__more {
    max-width: 1319px;
    margin: 32px auto 0;
    text-align: center;
    font-family: var(--font-poppins);
    font-size: 14px;
    color: var(--af-body);
}

body.affiliate-page .af-faq__more a {
    color: var(--primary);
    font-weight: 600;
}

body.affiliate-page .af-faq__more a:hover {
    text-decoration: underline;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    body.affiliate-page .af-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }

    body.affiliate-page .af-hero__title {
        font-size: 44px;
        line-height: 50px;
    }

    body.affiliate-page .af-steps,
    body.affiliate-page .af-rewards__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* The rail only reads as a connected row of four. */
    body.affiliate-page .af-rail {
        display: none;
    }

    body.affiliate-page .af-cta__title {
        font-size: 36px;
        line-height: 44px;
    }
}

@media (max-width: 768px) {
    body.affiliate-page .af-hero {
        padding: 48px 20px 64px;
    }

    body.affiliate-page .af-hero__title {
        font-size: 32px;
        line-height: 40px;
        letter-spacing: -0.6px;
    }

    body.affiliate-page .af-hero__lead {
        font-size: 16px;
        line-height: 26px;
    }

    body.affiliate-page .af-h2 {
        font-size: 26px;
        line-height: 32px;
    }

    body.affiliate-page .af-steps,
    body.affiliate-page .af-rewards__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body.affiliate-page .af-card {
        padding: 28px 24px;
    }

    body.affiliate-page .af-card__title {
        font-size: 24px;
        line-height: 31px;
    }

    body.affiliate-page .af-card__strip {
        padding: 16px;
        gap: 12px;
    }

    body.affiliate-page .af-card__strip-value {
        font-size: 22px;
        line-height: 28px;
    }

    body.affiliate-page .af-mock__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Keep the floating coin from colliding with the card on narrow screens. */
    body.affiliate-page .af-mock__coin {
        position: static;
        margin: 0 auto 16px;
        width: max-content;
    }

    body.affiliate-page .af-cta__title {
        font-size: 28px;
        line-height: 36px;
    }

    body.affiliate-page .af-faq__q {
        padding: 20px 22px;
        font-size: 16px;
        line-height: 24px;
    }

    body.affiliate-page .af-faq__a {
        padding: 0 22px 22px;
        font-size: 15px;
    }
}

/* ── Reduced motion ───────────────────────────────────────────────────────────
   landing.css ships no prefers-reduced-motion rules, so .lp-fade-in animates for
   everyone; scope the guard to this page. Kills the pulsing dot and floating coin
   too — decorative loops are the worst offenders for motion sensitivity. */
@media (prefers-reduced-motion: reduce) {

    body.affiliate-page .lp-fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    body.affiliate-page *,
    body.affiliate-page *::before,
    body.affiliate-page *::after {
        animation: none !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ════════════════════════════════════════════════════════════════════════════
   REFINEMENT PASS — interaction + typography
   Guiding rule: a few high-impact, user-INITIATED moments beat scattered ambient
   motion. Nothing here loops at rest; every animation is either a one-shot reveal
   or hover-triggered. (The one idle loop on this page, the "Active" dot, is a
   status indicator, not decoration.)
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Typography ───────────────────────────────────────────────────────────────
   `text-wrap: balance` evens the rag on display headings so a 60px H1 never drops
   one orphan word onto its own line — the single biggest readability win on a
   marketing page, and it degrades silently on older engines. */
body.affiliate-page .af-hero__title,
body.affiliate-page .af-h2,
body.affiliate-page .af-card__title,
body.affiliate-page .af-cta__title {
    text-wrap: balance;
}

body.affiliate-page .af-hero__lead,
body.affiliate-page .af-section__lead,
body.affiliate-page .af-cta__lead,
body.affiliate-page .af-step__body,
body.affiliate-page .af-faq__a p {
    text-wrap: pretty;
    /* Nothing on this page is justified: ragged-right with a balanced last line
       reads better at these measures than forced word-spacing. */
}

/* Figures are compared vertically in the stats row and the reward strip — lock the
   glyph widths so digits don't shimmy between values. */
body.affiliate-page .af-stat__value,
body.affiliate-page .af-card__strip-value,
body.affiliate-page .af-mock__stat-value {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    letter-spacing: -0.4px;
}

/* Optical correction: uppercase micro-labels need MORE tracking, display sizes need
   less. Poppins is geometric, so tight display tracking is what stops 60px looking
   loose and amateurish. */
body.affiliate-page .af-eyebrow,
body.affiliate-page .af-card__eyebrow,
body.affiliate-page .af-mock__flag {
    font-feature-settings: "kern" 1;
}

/* A hairline under each section eyebrow — a small piece of structure that makes the
   three section heads read as a deliberate system rather than centred text. */
body.affiliate-page .af-section__head .af-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

body.affiliate-page .af-section__head .af-eyebrow::before,
body.affiliate-page .af-section__head .af-eyebrow::after {
    content: "";
    width: 24px;
    height: 1.5px;
    background: currentColor;
    opacity: .45;
}

/* ── The coin waves on hover ──────────────────────────────────────────────────
   Requested interaction. Note the deliberate contrast with TessCoin.vue: an IDLE
   animation on this coin was rejected twice by the owner as "a nervous left-right
   slide". Hover is user-initiated and finite, so it reads as a response rather than
   ambient fidgeting — it runs once per hover and settles. Triggered from the whole
   badge/callout so the hit area is the card, not a 36px disc. */
@keyframes af-coin-wave {
    0% { transform: rotate(0) scale(1); }
    20% { transform: rotate(-13deg) scale(1.06); }
    42% { transform: rotate(10deg) scale(1.06); }
    62% { transform: rotate(-7deg) scale(1.04); }
    80% { transform: rotate(4deg) scale(1.02); }
    100% { transform: rotate(0) scale(1); }
}

body.affiliate-page .af-coin {
    transform-origin: 50% 85%;
    /* pivot near the base, like a hand waving from the wrist */
    transition: box-shadow .22s ease;
}

body.affiliate-page .af-mock__coin:hover .af-coin,
body.affiliate-page .af-card__callout:hover .af-coin,
body.affiliate-page .af-coin:hover {
    animation: af-coin-wave .82s var(--af-ease);
    box-shadow:
        inset 0 0 0 1.5px rgba(17, 182, 226, .5),
        inset 0 -2px 3px rgba(17, 182, 226, .3),
        inset 0 2px 2px rgba(255, 255, 255, .95),
        0 6px 14px -6px rgba(17, 182, 226, .55);
}

/* The two coin hosts get a matching lift so the whole chip feels alive, not just the disc. */
body.affiliate-page .af-mock__coin,
body.affiliate-page .af-card__callout {
    transition: transform .24s var(--af-ease), box-shadow .24s ease;
}

body.affiliate-page .af-card__callout:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -14px rgba(0, 0, 0, .35);
}

/* ── Staggered reveals ────────────────────────────────────────────────────────
   The section already fades in as one block via .lp-fade-in; these give its children
   their own cascade once the parent turns `.visible`, so a four-step process reads
   left-to-right instead of appearing all at once. Transform+opacity only. */
body.affiliate-page .af-step,
body.affiliate-page .af-rail__tile,
body.affiliate-page .af-rewards__grid > .af-card,
body.affiliate-page .af-card__list li {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .5s var(--af-ease), transform .5s var(--af-ease);
}

body.affiliate-page .af-how.visible .af-step,
body.affiliate-page .af-how.visible .af-rail__tile,
body.affiliate-page .af-rewards.visible > * > .af-card,
body.affiliate-page .af-rewards.visible .af-card__list li {
    opacity: 1;
    transform: none;
}

body.affiliate-page .af-how.visible .af-rail__tile:nth-child(2),
body.affiliate-page .af-how.visible .af-step:nth-child(1) { transition-delay: .05s; }
body.affiliate-page .af-how.visible .af-rail__tile:nth-child(3),
body.affiliate-page .af-how.visible .af-step:nth-child(2) { transition-delay: .13s; }
body.affiliate-page .af-how.visible .af-rail__tile:nth-child(4),
body.affiliate-page .af-how.visible .af-step:nth-child(3) { transition-delay: .21s; }
body.affiliate-page .af-how.visible .af-rail__tile:nth-child(5),
body.affiliate-page .af-how.visible .af-step:nth-child(4) { transition-delay: .29s; }

body.affiliate-page .af-rewards.visible > * > .af-card:nth-child(2) { transition-delay: .1s; }
body.affiliate-page .af-rewards.visible .af-card__list li:nth-child(1) { transition-delay: .18s; }
body.affiliate-page .af-rewards.visible .af-card__list li:nth-child(2) { transition-delay: .24s; }
body.affiliate-page .af-rewards.visible .af-card__list li:nth-child(3) { transition-delay: .30s; }
body.affiliate-page .af-rewards.visible .af-card__list li:nth-child(4) { transition-delay: .36s; }
body.affiliate-page .af-rewards.visible .af-card__list li:nth-child(5) { transition-delay: .42s; }

/* The connector line draws itself left-to-right as the steps land — it explains the
   sequence rather than decorating it. */
body.affiliate-page .af-rail__line {
    transform: translateY(-50%) scaleX(0);
    transform-origin: left center;
    transition: transform .8s var(--af-ease) .1s;
}

body.affiliate-page .af-how.visible .af-rail__line {
    transform: translateY(-50%) scaleX(1);
}

/* ── Link + tick micro-interactions ──────────────────────────────────────────── */
body.affiliate-page .af-hero__link {
    position: relative;
}

body.affiliate-page .af-hero__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 1.5px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .24s var(--af-ease);
}

body.affiliate-page .af-hero__link:hover::after {
    transform: scaleX(1);
}

/* Ticks nudge in when their row is hovered — cheap, and it makes a static list feel
   responsive without moving the text. */
body.affiliate-page .af-card__tick {
    transition: transform .2s var(--af-ease);
}

body.affiliate-page .af-card__list li:hover .af-card__tick {
    transform: translateX(2px) scale(1.12);
}

/* The FAQ row shifts a hair on hover so the whole card reads as the hit target. */
body.affiliate-page .af-faq__item {
    transition: box-shadow .2s ease, transform .2s var(--af-ease);
}

body.affiliate-page .af-faq__item:hover {
    transform: translateY(-1px);
}

/* ── Reduced motion: the reveals must not leave content invisible ─────────────
   The blanket `animation: none` earlier kills keyframes, but these staggers are
   TRANSITIONS starting from opacity 0 — without this they would never arrive. */
@media (prefers-reduced-motion: reduce) {

    body.affiliate-page .af-step,
    body.affiliate-page .af-rail__tile,
    body.affiliate-page .af-rewards__grid > .af-card,
    body.affiliate-page .af-card__list li {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    body.affiliate-page .af-rail__line {
        transform: translateY(-50%) scaleX(1) !important;
        transition: none !important;
    }
}
