@keyframes aff-rise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes aff-counter-spin {
    from { opacity: 0; transform: rotateX(40deg) scale(.9); }
    to   { opacity: 1; transform: rotateX(0deg) scale(1); }
}

@keyframes aff-pulse-ring {
    0%   { transform: scale(1);   opacity: .7; }
    100% { transform: scale(1.6); opacity: 0; }
}

@keyframes aff-shimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}

@keyframes aff-bob {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-5px); }
}

.frag-aff .aff-ri  { animation: aff-rise .7s cubic-bezier(.22,1,.36,1) both; }
.frag-aff .aff-d1  { animation-delay: .05s; }
.frag-aff .aff-d2  { animation-delay: .12s; }
.frag-aff .aff-d3  { animation-delay: .20s; }

.frag-aff { --sans: 'Plus Jakarta Sans', system-ui, sans-serif; }

.frag-aff a { text-decoration: none; color: inherit; }

.aff-hero {
    position: relative;
    padding: 80px 24px 72px;
    text-align: center;
    background: var(--ink);
    overflow: hidden;
}

.aff-hero::before {
    content: '';
    position: absolute;
    top: -80px; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 320px;
    background: radial-gradient(ellipse, rgba(217,119,6,.18) 0%, transparent 65%);
    pointer-events: none;
}

.aff-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.aff-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
}

.aff-hero h1 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    color: var(--white);
    margin: 0 0 16px;
}

.aff-hero h1 em {
    font-style: normal;
    background: linear-gradient(90deg, var(--amber) 0%, var(--amber-xl) 30%, var(--amber) 50%, var(--amber-xl) 70%, var(--amber) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: aff-shimmer 3s linear infinite;
}

.aff-hero-sub {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255,255,255,.5);
    line-height: 1.7;
    margin: 0 0 28px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.aff-hero-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.aff-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,.65);
}

.aff-hero-meta i { color: var(--amber); font-size: 11px; }

.aff-nav-strip-in {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 10px 0;
}

.aff-nav-strip-in::-webkit-scrollbar { display: none; }

.aff-nav-pill:hover,
.aff-nav-pill.active { background: var(--gold-l); color: var(--gold); }

.aff-nav-pill i { font-size: 11px; }

.aff-layout {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 24px;
}

.aff-content { min-width: 0; }

.aff-section {
    margin-bottom: 52px;
    scroll-margin-top: 72px;
}

.aff-sec-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--mist);
}

.aff-sec-num {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--ink);
    color: var(--amber);
    font-size: 13px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.aff-sec-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -.4px;
    margin: 0;
}

.aff-body {
    font-size: 16px;
    font-weight: 400;
    color: var(--slate);
    line-height: 1.8;
    margin-bottom: 20px;
}

.aff-stat-item {
    background: var(--white);
    padding: 24px 20px;
    text-align: center;
}

.aff-stat-val {
    font-size: 36px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -1.5px;
    line-height: 1;
    animation: aff-counter-spin .7s cubic-bezier(.22,1,.36,1) both;
}

.aff-stat-val.aff-stat-gold  { color: var(--gold); }
.aff-stat-val.aff-stat-green { color: var(--green); }

.aff-stat-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--silver);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-top: 6px;
}

.aff-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.aff-why-card {
    padding: 24px 20px;
    background: var(--snow);
    border: 2px solid var(--mist);
    border-radius: var(--r-xl);
    transition: .24s cubic-bezier(.22,1,.36,1);
}

.aff-why-card:hover {
    transform: translateY(-4px);
    border-color: var(--amber-xl);
    box-shadow: 0 12px 32px rgba(217,119,6,.1);
}

.aff-why-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    margin-bottom: 14px;
    transition: .22s;
}

.aff-why-icon--gold  { background: var(--gold-l);  color: var(--gold); }
.aff-why-icon--green { background: var(--green-l); color: var(--green); }
.aff-why-icon--blue  { background: var(--blue-l);  color: var(--blue); }

.aff-why-card:hover .aff-why-icon { transform: scale(1.1) rotate(-4deg); }

.aff-why-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 8px;
}

.aff-why-card p {
    font-size: 16px;
    font-weight: 400;
    color: var(--slate);
    line-height: 1.65;
    margin: 0;
}

.aff-commission-box {
    display: grid;
    grid-template-columns: 220px 1fr;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: var(--snow);
    border: 2px solid var(--mist);
    margin-bottom: 20px;
}

.aff-comm-left {
    background: var(--ink);
    padding: 36px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.aff-comm-left::before {
    content: '';
    position: absolute;
    bottom: -30px; left: 50%;
    transform: translateX(-50%);
    width: 160px; height: 100px;
    background: radial-gradient(ellipse, rgba(217,119,6,.3) 0%, transparent 70%);
}

.aff-comm-eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.aff-comm-pct {
    font-size: 72px;
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 1;
    background: linear-gradient(160deg, var(--amber-xl) 20%, var(--amber) 60%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    animation: aff-counter-spin .8s cubic-bezier(.22,1,.36,1) .3s both;
}

.aff-comm-sub {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,.4);
    margin-top: 8px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.aff-comm-right {
    background: var(--snow);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.aff-scenario-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--gold);
}

.aff-scenario-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--slate);
    line-height: 1.6;
    margin: 0;
}

.aff-scenario-result {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--snow);
    border: 2px solid var(--mist);
    border-radius: var(--r-xl);
    padding: 14px 18px;
}

.aff-scenario-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--green);
    letter-spacing: -1px;
    flex-shrink: 0;
}

.aff-scenario-result-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--slate);
}

.aff-scenario-note {
    font-size: 15px;
    font-weight: 600;
    color: var(--silver);
    margin: 0;
    line-height: 1.55;
}

.aff-scenario-note strong { color: var(--ink); }

.aff-table-wrap {
    border-radius: var(--r-xl);
    overflow: hidden;
    background: var(--snow);
    border: 2px solid var(--mist);
}

.aff-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.aff-table thead th {
    background: var(--ink);
    color: rgba(255,255,255,.55);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 14px 18px;
    text-align: start;
}

.aff-table thead th:first-child { color: var(--amber); }

.aff-table tbody tr { border-bottom: 1px solid var(--mist); }
.aff-table tbody tr:last-child { border-bottom: none; }
.aff-table tbody tr:hover { background: var(--gold-l); }

.aff-table td {
    padding: 14px 18px;
    color: var(--ink2);
    font-weight: 400;
    line-height: 1.5;
    vertical-align: middle;
}

.aff-who-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.aff-who-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: var(--snow);
    border: 2px solid var(--mist);
    border-radius: var(--r-xl);
    transition: .2s;
}

.aff-who-item:hover {
    border-color: var(--amber-xl);
    background: var(--gold-l);
    transform: translateX(4px);
}

.aff-who-num {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--amber);
    font-size: 12px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.aff-who-item p {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink2);
    line-height: 1.65;
    margin: 0;
}

.aff-steps {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
}

.aff-steps::before {
    content: '';
    position: absolute;
    left: 19px; top: 28px;
    width: 2px;
    bottom: 28px;
    background: linear-gradient(180deg, var(--amber), transparent);
}

.aff-step {
    display: flex;
    gap: 16px;
    padding: 0 0 24px;
    position: relative;
}

.aff-step:last-child { padding-bottom: 0; }

.aff-step-dot {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--ink);
    border: 2px solid var(--amber);
    color: var(--amber);
    font-size: 14px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.aff-step-body { padding-top: 8px; }

.aff-step-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 4px;
}

.aff-step-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--slate);
    line-height: 1.65;
    margin: 0;
}

.aff-callout--gold  { background: var(--gold-l);  border-color: var(--amber-xl); }

.aff-callout--blue  { background: var(--blue-l);  border-color: var(--blue-xl); }

.aff-callout-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}

.aff-callout--gold  .aff-callout-icon { background: var(--amber-l); color: var(--gold); }

.aff-callout--blue  .aff-callout-icon { background: var(--blue-xl); color: var(--blue); }

.aff-callout-title { font-size: 14px; font-weight: 800; margin: 0 0 4px; }

.aff-callout--gold  .aff-callout-title { color: var(--gold-h); }

.aff-callout--blue  .aff-callout-title { color: var(--blue-d); }

.aff-callout-text {
    font-size: 13px; font-weight: 400;
    color: var(--slate); margin: 0; line-height: 1.65;
}

.aff-faq-list { display: flex; flex-direction: column; gap: 10px; }

.aff-faq-item {
    border: 2px solid var(--mist);
    border-radius: var(--r-xl);
    overflow: hidden;
    background: var(--snow);
    cursor: pointer;
    transition: .2s;
}

.aff-faq-item:hover { border-color: var(--amber-xl); background: var(--white); }
.aff-faq-item.open  { border-color: var(--gold); background: var(--white); }

.aff-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    font-size: 15px; font-weight: 700;
    color: var(--ink); gap: 16px;
    user-select: none;
}

.aff-faq-q i { color: var(--silver); font-size: 13px; transition: .3s; flex-shrink: 0; }
.aff-faq-item.open .aff-faq-q i { transform: rotate(180deg); color: var(--gold); }

.aff-faq-a { max-height: 0; overflow: hidden; transition: max-height .35s cubic-bezier(.22,1,.36,1); }
.aff-faq-item.open .aff-faq-a { max-height: 220px; }

.aff-faq-a-inner {
    padding: 0 22px 18px;
    font-size: 14px; color: var(--slate);
    line-height: 1.75; font-weight: 400;
}

@media (max-width: 900px) {
    .aff-layout   { padding: 32px 16px; }
    .aff-why-grid { grid-template-columns: 1fr; }
    .aff-stats    { grid-template-columns: repeat(3, 1fr); }
    .aff-commission-box { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .aff-hero     { padding: 56px 20px 52px; }
    .aff-comm-pct { font-size: 56px; }
    .aff-stats    { grid-template-columns: 1fr; }
}