/* ── Affiliate Program page ──
   Every selector is scoped under `main.aff` and every class carries the `aff-`
   prefix: v2-core (and the globally loaded shared sheets) own generic names such
   as `.card`, so unprefixed classes would pick up their hover/shadow rules.
   Colour tokens (--cr, --ch, --t2, …) come from v2-core's :root. */

/* Sticky site nav is 64px tall — keep anchor targets clear of it. */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

.aff {
    --aff-crl: #FFC2D4;
    --aff-bl2: #F0F0F0;
    --aff-cream: #FAF7F2;
    --aff-shadow-card: 0 12px 36px rgba(0, 0, 0, 0.08);
    --aff-shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.06);
    --aff-shadow-float: 0 8px 28px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
    --aff-shadow-btn: 0 4px 14px rgba(232, 23, 93, 0.3);
    --aff-pill: 9999px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--t1);
}

.aff a { color: var(--crd); }
.aff a:hover { color: var(--cr); }
.aff img { max-width: 100%; display: block; }
.aff ul { list-style: none; }
.aff a:focus-visible, .aff button:focus-visible { outline: 3px solid var(--ye); outline-offset: 3px; }

.aff .aff-wrap { max-width: 1200px; margin: 0 auto; }
.aff .aff-sec { padding: 96px 24px; }
.aff .aff-bg-off { background: var(--of); }
.aff .aff-bg-cream { background: var(--aff-cream); }
.aff .aff-bg-tint { background: var(--crt); }

/* ── Buttons ── */
.aff .aff-btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: inherit; font-weight: 700; font-size: 15px;
    text-decoration: none; border-radius: var(--aff-pill);
    padding: 15px 30px; min-height: 44px; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.aff .aff-btn:hover { transform: translateY(-1px); }
.aff .aff-btn-primary { background: var(--cr); color: var(--wh); box-shadow: var(--aff-shadow-btn); }
.aff .aff-btn-primary:hover { background: var(--crd); color: var(--wh); }
.aff .aff-btn-outline { border: 2px solid var(--bl); color: var(--t1); padding: 13px 28px; }
.aff .aff-btn-outline:hover { border-color: var(--t1); color: var(--t1); }
.aff .aff-btn-white { background: var(--wh); color: var(--crd); font-weight: 800; font-size: 16px; padding: 16px 34px; box-shadow: 0 6px 20px rgba(0, 0, 0, .15); }
.aff .aff-btn-white:hover { color: var(--cr); }
.aff .aff-btn-ghost-white { border: 2px solid rgba(255, 255, 255, .6); color: var(--wh); font-size: 16px; padding: 14px 30px; }
.aff .aff-btn-ghost-white:hover { border-color: var(--wh); color: var(--wh); }
.aff .aff-btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Common type ── */
.aff .aff-eyebrow {
    display: inline-block; align-self: flex-start;
    background: var(--crt); color: var(--crd);
    font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
    padding: 7px 14px; border-radius: var(--aff-pill);
}
.aff .aff-eyebrow-white { background: var(--wh); }
.aff .aff-label { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--tm); }
.aff .aff-head {
    text-align: center; max-width: 760px; margin: 0 auto 48px;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.aff .aff-head .aff-eyebrow { align-self: center; }
.aff .aff-head h2 { font-size: 42px; line-height: 1.1; font-weight: 800; letter-spacing: -.5px; color: var(--ch); }
.aff .aff-head p { font-size: 18px; font-weight: 600; color: var(--t2); }
.aff .aff-muted { color: var(--t2); font-weight: 600; }

/* ── Hero ── */
.aff .aff-hero { background: linear-gradient(#FFFFFF 0%, #FFF8FA 100%); padding: 88px 24px 96px; }
.aff .aff-hero-inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.aff .aff-hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.aff .aff-hero h1 { font-size: 58px; line-height: 1.08; font-weight: 900; letter-spacing: -1.5px; color: var(--ch); }
.aff .aff-hero h1 .aff-accent { color: var(--cr); }
.aff .aff-hero-sub { font-size: 19px; line-height: 1.65; font-weight: 600; color: var(--t2); max-width: 560px; }
.aff .aff-hero-stats { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 16px; }
.aff .aff-hero-stats strong { display: block; font-size: 30px; font-weight: 900; color: var(--ch); line-height: 1.1; }

.aff .aff-hero-visual { flex: 1 1 420px; min-width: 0; position: relative; padding: 24px 0; }
.aff .aff-earn-card {
    background: var(--wh); border: 1px solid var(--aff-bl2); border-radius: 20px;
    box-shadow: var(--aff-shadow-card); padding: 28px;
    display: flex; flex-direction: column; gap: 18px;
}
.aff .aff-earn-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.aff .aff-earn-card-title { font-size: 20px; font-weight: 800; color: var(--ch); }
.aff .aff-badge-active { background: #DCFCE7; color: #166534; font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: var(--aff-pill); }
.aff .aff-earn-rows { display: flex; flex-direction: column; gap: 10px; }
.aff .aff-earn-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; border-radius: 14px; background: var(--of); font-weight: 700;
}
.aff .aff-earn-row b { font-weight: 900; font-size: 18px; color: var(--ch); }
.aff .aff-earn-row.is-first { background: var(--crt); }
.aff .aff-earn-row.is-first b { color: var(--crd); }
.aff .aff-earn-row.is-more { background: transparent; padding: 6px 16px; color: var(--tm); font-size: 14px; }
.aff .aff-earn-total {
    border-top: 1px dashed var(--bl); padding-top: 16px;
    display: flex; justify-content: space-between; align-items: baseline;
    font-weight: 800; color: var(--ch);
}
.aff .aff-earn-total b { font-weight: 900; font-size: 32px; letter-spacing: -.5px; }
.aff .aff-float-chip {
    position: absolute; border-radius: 14px; padding: 12px 18px;
    font-weight: 800; font-size: 14px; color: var(--ch);
    display: flex; align-items: center; gap: 10px;
}
.aff .aff-float-chip.is-cookie { top: 0; right: -8px; background: var(--wh); box-shadow: var(--aff-shadow-float); }
.aff .aff-float-chip.is-top { bottom: -4px; left: -12px; background: var(--ye); font-weight: 900; box-shadow: 0 8px 28px rgba(0, 0, 0, .1); }

/* ── Trust strip ── */
.aff .aff-trust { padding: 40px 24px; border-bottom: 1px solid var(--aff-bl2); }
.aff .aff-trust-inner {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 16px 48px; font-weight: 800; color: var(--ch);
}
.aff .aff-trust-inner .aff-label { letter-spacing: 1px; }

/* ── Card grids ── */
.aff .aff-grid { display: grid; gap: 20px; }
.aff .aff-grid-why { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.aff .aff-grid-plans { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: stretch; }
.aff .aff-grid-perks { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.aff .aff-grid-steps { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.aff .aff-card {
    background: var(--wh); border: 1px solid var(--bl); border-radius: 18px; padding: 28px;
    display: flex; flex-direction: column; gap: 12px;
}
.aff .aff-card h3 { font-size: 20px; font-weight: 800; color: var(--ch); }
.aff .aff-icon-box {
    width: 48px; height: 48px; border-radius: 14px; background: var(--crt);
    display: flex; align-items: center; justify-content: center;
}

/* ── Product ── */
.aff .aff-feature-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.aff .aff-chip {
    background: var(--of); border: 1px solid var(--bl); padding: 9px 16px;
    border-radius: var(--aff-pill); font-weight: 700; font-size: 14px; color: var(--t1);
}
.aff .aff-plan {
    background: var(--wh); border: 1px solid var(--bl); border-radius: 20px; padding: 28px;
    display: flex; flex-direction: column; gap: 14px;
}
.aff .aff-plan h3 { font-size: 22px; font-weight: 800; color: var(--ch); }
.aff .aff-plan-price { display: flex; align-items: baseline; gap: 6px; }
.aff .aff-plan-price strong { font-size: 40px; font-weight: 900; letter-spacing: -1px; color: var(--ch); }
.aff .aff-plan-price span { font-weight: 700; color: var(--t2); }
.aff .aff-check-list { display: flex; flex-direction: column; gap: 8px; font-weight: 600; color: var(--t2); }
.aff .aff-check-list li { display: flex; gap: 10px; align-items: flex-start; }
.aff .aff-check-list svg { flex: 0 0 18px; margin-top: 4px; }
.aff .aff-plan-earn { margin-top: auto; background: var(--crt); border-radius: 14px; padding: 14px 16px; font-weight: 800; color: var(--ch); }
.aff .aff-plan-earn .aff-label { color: var(--crd); font-weight: 800; }
.aff .aff-plan-badge { align-self: flex-start; background: var(--ye); color: var(--ch); font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: var(--aff-pill); }
.aff .aff-plan.is-dark { background: var(--ch); border-color: var(--ch); }
.aff .aff-plan.is-dark h3,
.aff .aff-plan.is-dark .aff-plan-price strong,
.aff .aff-plan.is-dark .aff-plan-earn { color: var(--wh); }
.aff .aff-plan.is-dark .aff-plan-price span,
.aff .aff-plan.is-dark .aff-check-list { color: rgba(255, 255, 255, .75); }
.aff .aff-plan.is-dark .aff-plan-earn { background: rgba(255, 255, 255, .08); }
.aff .aff-plan.is-dark .aff-plan-earn .aff-label { color: var(--ye); }
.aff .aff-note { text-align: center; font-size: 14px; margin-top: 24px; }

/* ── Commission ── */
.aff .aff-rate-cards { display: flex; flex-wrap: wrap; gap: 20px; }
.aff .aff-rate-card {
    flex: 1 1 300px; background: var(--wh); border-radius: 22px; padding: 32px;
    box-shadow: var(--aff-shadow-soft); display: flex; flex-direction: column; gap: 8px;
}
.aff .aff-rate { font-size: 64px; font-weight: 900; line-height: 1; letter-spacing: -2px; color: var(--ch); }
.aff .aff-rate.is-brand { color: var(--cr); }
.aff .aff-rate-card.is-dark { background: var(--ch); box-shadow: none; }
.aff .aff-rate-card.is-dark .aff-label { color: var(--ye); }
.aff .aff-rate-card.is-dark .aff-rate { color: var(--wh); }
.aff .aff-rate-card.is-dark p { color: rgba(255, 255, 255, .75); }

.aff .aff-timeline {
    margin-top: 20px; background: var(--wh); border-radius: 22px; padding: 28px 32px;
    display: flex; flex-direction: column; gap: 14px;
}
.aff .aff-timeline-head { display: flex; justify-content: space-between; }
.aff .aff-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 90px; }
.aff .aff-bars span { display: block; background: var(--aff-crl); height: 40%; border-radius: 8px; }
.aff .aff-bars span:first-child { background: var(--cr); height: 100%; }
.aff .aff-legend { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; font-weight: 700; color: var(--t2); }
.aff .aff-legend span { display: flex; align-items: center; gap: 8px; }
.aff .aff-legend i { width: 12px; height: 12px; border-radius: 4px; background: var(--aff-crl); }
.aff .aff-legend i.is-first { background: var(--cr); }

/* ── Perks ── */
.aff .aff-perk {
    background: var(--wh); border: 1px solid var(--aff-bl2); border-radius: 20px; padding: 28px;
    box-shadow: var(--aff-shadow-soft); display: flex; gap: 18px;
}
.aff .aff-perk-icon {
    flex: 0 0 52px; height: 52px; border-radius: var(--aff-pill); background: var(--cr);
    display: flex; align-items: center; justify-content: center;
}
.aff .aff-perk h3 { font-size: 20px; font-weight: 800; color: var(--ch); margin-bottom: 6px; }

/* ── How it works ── */
.aff .aff-step { background: var(--wh); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.aff .aff-step h3 { font-size: 22px; font-weight: 800; color: var(--ch); }
.aff .aff-step-num {
    width: 44px; height: 44px; border-radius: var(--aff-pill); background: var(--ch); color: var(--wh);
    font-weight: 900; font-size: 18px; display: flex; align-items: center; justify-content: center;
}
.aff .aff-step-num.is-brand { background: var(--cr); }
.aff .aff-fit { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 48px; }
.aff .aff-fit .aff-label { color: var(--t2); font-weight: 800; }
.aff .aff-fit-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.aff .aff-fit-chips span {
    background: var(--wh); border: 1px solid #F5C8D6; padding: 9px 18px;
    border-radius: var(--aff-pill); font-weight: 700; font-size: 14px;
}
.aff .aff-cta-bar {
    margin-top: 48px; background: var(--ch); border-radius: 22px; padding: 32px 40px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.aff .aff-cta-bar strong { display: block; font-size: 26px; font-weight: 900; letter-spacing: -.5px; color: var(--wh); }
.aff .aff-cta-bar p { font-weight: 600; color: rgba(255, 255, 255, .75); }

/* ── FAQ ── */
.aff .aff-faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.aff .aff-faq-item { border: 1px solid var(--bl); border-radius: 16px; background: var(--wh); }
.aff .aff-faq-q {
    width: 100%; background: transparent; border: 0; padding: 20px 24px; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    font-family: inherit; font-size: 18px; font-weight: 800; color: var(--ch); text-align: left;
}
.aff .aff-faq-icon {
    flex: 0 0 32px; height: 32px; border-radius: var(--aff-pill); background: var(--crt); color: var(--crd);
    display: flex; align-items: center; justify-content: center; transition: transform .2s ease;
}
.aff .aff-faq-item.is-open .aff-faq-icon { transform: rotate(45deg); }
.aff .aff-faq-a { padding: 0 24px 22px; color: var(--t2); font-weight: 600; }
.aff .aff-faq-a[hidden] { display: none; }

/* ── Final CTA ── */
.aff .aff-final-cta { padding: 24px 24px 96px; }
.aff .aff-final-cta-box {
    background: var(--cr); border-radius: 28px; padding: 72px 40px; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 20px; color: var(--wh);
}
.aff .aff-final-cta-box h2 { font-size: 46px; line-height: 1.1; font-weight: 900; letter-spacing: -1px; max-width: 760px; }
.aff .aff-final-cta-box p { font-size: 18px; font-weight: 600; max-width: 600px; }
.aff .aff-final-cta-box .aff-btn-row { justify-content: center; margin-top: 8px; }
.aff .aff-final-cta-box .aff-contact { font-size: 15px; margin-top: 8px; }
.aff .aff-final-cta-box .aff-contact a { color: var(--wh); font-weight: 800; }

/* ── Responsive ── */
@media (max-width: 720px) {
    .aff .aff-sec { padding: 64px 16px; }
    .aff .aff-hero { padding: 56px 16px 64px; }
    .aff .aff-hero h1 { font-size: 38px; letter-spacing: -1px; }
    .aff .aff-hero-sub { font-size: 17px; }
    .aff .aff-hero-stats { gap: 24px; }
    .aff .aff-head h2 { font-size: 30px; }
    .aff .aff-final-cta { padding: 24px 16px 64px; }
    .aff .aff-final-cta-box { padding: 48px 20px; }
    .aff .aff-final-cta-box h2 { font-size: 32px; }
    .aff .aff-rate { font-size: 52px; }
    .aff .aff-cta-bar { padding: 28px 24px; }
    .aff .aff-float-chip.is-cookie { right: 0; }
    .aff .aff-float-chip.is-top { left: 0; }
    .aff .aff-grid-perks, .aff .aff-grid-plans { grid-template-columns: 1fr; }
}
