/* ============================================================
   Affiliate Terms — brand-aligned styling
   Hero re-uses .tc-* classes from privacy-policy.css.
   ============================================================ */

/* ----- Eyebrow / section labels ----- */
.aff-eyebrow {
    letter-spacing: .18em;
    color: var(--primary-purple);
}

/* ----- Intro card ----- */
.aff-intro-card {
    max-width: 920px;
    background: #fff;
    border: 1px solid var(--border-indigo) !important;
    border-radius: 16px !important;
    padding: 1.75rem 2rem;
    box-shadow: 0 8px 24px -16px rgba(78, 49, 173, .12);
}

.aff-intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    font-weight: 600;
    background: var(--light-purple-shade);
    color: var(--primary-purple);
    border: 1px solid var(--border-indigo);
    border-radius: 999px;
    padding: .35rem .9rem;
    margin-bottom: 1rem;
}

.aff-intro-badge svg {
    width: 14px;
    height: 14px;
    stroke-width: 2;
}

.aff-intro-card p {
    color: var(--text-body);
    line-height: 1.75;
    margin: 0;
}

.aff-intro-card p::first-letter {
    font-weight: 700;
    color: var(--text-main);
}

/* ----- Bonus banner — brand purple gradient ----- */
.aff-bonus-banner {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 18px 38px -22px rgba(78, 49, 173, .55);
}

.aff-bonus-icon {
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, .18);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.aff-bonus-icon svg {
    width: 26px;
    height: 26px;
    stroke-width: 2;
}

.aff-bonus-label {
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: .12em;
    opacity: .85;
}

.aff-bonus-value {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
}

/* ----- Tier cards ----- */
.aff-tier {
    background: #fff;
    border: 1px solid var(--border-indigo) !important;
    border-radius: 16px !important;
    padding: 1.5rem;
    transition: transform .25s ease, box-shadow .25s ease;
    overflow: hidden;
}

.aff-tier:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px -28px rgba(78, 49, 173, .25);
}

.aff-tier::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--tier-accent, var(--primary-purple));
    border-radius: 16px 16px 0 0;
}

.aff-tier[data-tier="1"] { --tier-accent: var(--primary-blue); }
.aff-tier[data-tier="2"] { --tier-accent: var(--primary-purple); }
.aff-tier[data-tier="3"] { --tier-accent: var(--brand-indigo); }

.aff-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    border-radius: 999px;
    padding: .35rem .85rem;
    margin-bottom: .85rem;
    background: var(--light-purple-shade);
    color: var(--primary-purple);
}

.aff-tier[data-tier="1"] .aff-tier-badge {
    background: #eff6ff;
    color: #1d4ed8;
}

.aff-tier[data-tier="3"] .aff-tier-badge {
    background: #ede9fe;
    color: var(--brand-indigo);
}

.aff-tier-num {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: currentColor;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    font-weight: 700;
}

.aff-tier-meta {
    color: var(--text-body);
    font-size: .85rem;
    margin-bottom: .35rem;
}

.aff-tier-price {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-main);
}

.aff-tier-price small {
    font-size: 1rem;
    color: var(--text-body);
    font-weight: 600;
}

.aff-tier-desc {
    color: var(--text-body);
    font-size: .87rem;
    margin: .75rem 0 0;
}

/* ----- Payout cards ----- */
.aff-method-card {
    background: #fff;
    border: 1px solid var(--border-indigo);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
}

.aff-method-head {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: .85rem;
}

.aff-method-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--light-purple-shade);
    color: var(--primary-purple);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.aff-method-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.aff-method-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.aff-method-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aff-method-list li {
    display: flex;
    gap: .85rem;
    padding: .85rem 0;
    border-top: 1px solid var(--border-indigo);
}

.aff-method-list-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: var(--light-purple-shade);
    color: var(--primary-purple);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.aff-method-list-icon svg {
    width: 14px;
    height: 14px;
    stroke-width: 2;
}

.aff-method-list-text {
    color: var(--text-body);
    font-size: .9rem;
    line-height: 1.55;
}

.aff-method-list-text strong {
    color: var(--text-main);
    font-weight: 700;
}

/* ----- Eligible / Not Eligible ----- */
.aff-elig-card {
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
}

.aff-elig-card.allow {
    background: linear-gradient(180deg, #ecfdf5 0%, #fff 100%);
    border: 1px solid #a7f3d0;
}

.aff-elig-card.deny {
    background: linear-gradient(180deg, #fef2f2 0%, #fff 100%);
    border: 1px solid #fecaca;
}

.aff-elig-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.aff-elig-title-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.aff-elig-card.allow .aff-elig-title-icon { background: #10b981; }
.aff-elig-card.deny .aff-elig-title-icon { background: #ef4444; }

.aff-elig-title-icon svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

.aff-prod {
    background: #fff;
    border-radius: 12px;
    padding: .75rem 1rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .9rem;
    font-weight: 600;
    height: 100%;
    transition: transform .2s ease;
}

.aff-prod:hover { transform: translateY(-2px); }

.aff-prod svg,
.aff-prod i {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.aff-elig-card.allow .aff-prod {
    border: 1px solid #a7f3d0;
    color: var(--text-main);
}

.aff-elig-card.allow .aff-prod svg,
.aff-elig-card.allow .aff-prod i {
    color: #059669;
}

.aff-elig-card.deny .aff-prod {
    border: 1px solid #fecaca;
    color: var(--text-body);
}

.aff-elig-card.deny .aff-prod svg,
.aff-elig-card.deny .aff-prod i {
    color: #dc2626;
}

/* ----- Compliance rules ----- */
.aff-rule {
    background: #fff;
    border: 1px solid var(--border-indigo);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    border-left: 4px solid var(--rule-c, var(--primary-purple)) !important;
    display: flex;
    gap: .85rem;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}

.aff-rule:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -22px rgba(78, 49, 173, .22);
}

.aff-rule.deny { --rule-c: #ef4444; }
.aff-rule.allow { --rule-c: #10b981; }
.aff-rule.note { --rule-c: var(--primary-purple); }

.aff-rule-num {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    flex-shrink: 0;
}

.aff-rule.deny .aff-rule-num { background: #fef2f2; color: #b91c1c; }
.aff-rule.allow .aff-rule-num { background: #ecfdf5; color: #047857; }
.aff-rule.note .aff-rule-num { background: var(--light-purple-shade); color: var(--primary-purple); }

.aff-rule-tag {
    display: inline-block;
    text-transform: uppercase;
    font-weight: 700;
    font-size: .65rem;
    letter-spacing: .12em;
    border-radius: 4px;
    padding: .25rem .55rem;
    margin-bottom: .5rem;
}

.aff-rule.deny .aff-rule-tag { background: #fef2f2; color: #b91c1c; }
.aff-rule.allow .aff-rule-tag { background: #ecfdf5; color: #047857; }
.aff-rule.note .aff-rule-tag { background: var(--light-purple-shade); color: var(--primary-purple); }

.aff-rule-text {
    font-size: .87rem;
    color: var(--text-body);
    line-height: 1.55;
    margin: 0;
}

/* ----- Charge-backs ----- */
.aff-cb-card {
    background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
    border: 1px solid #fde68a;
    border-radius: 16px;
    padding: 1.75rem;
}

.aff-cb-head {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: .85rem;
}

.aff-cb-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f59e0b;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.aff-cb-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

.aff-cb-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
}

.aff-cb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .5rem;
}

.aff-cb-list li {
    background: #fff;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: .65rem 1rem;
    display: flex;
    gap: .5rem;
    font-size: .9rem;
    color: var(--text-body);
}

.aff-cb-bullet {
    color: #d97706;
    font-weight: 700;
}

/* ----- CTA ----- */
.aff-cta {
    background: linear-gradient(135deg, var(--light-purple-shade) 0%, var(--brand-purple-light) 100%);
    border: 1px solid var(--border-indigo);
    border-radius: 16px;
    padding: 1.75rem;
    text-align: center;
    margin-top: 1.5rem;
}

.aff-cta-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: .25rem;
    color: var(--text-main);
}

.aff-cta-sub {
    color: var(--text-body);
    margin-bottom: 1rem;
}

.btn-aff {
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple));
    color: #fff;
    padding: .7rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    box-shadow: 0 12px 26px -14px rgba(78, 49, 173, .55);
    transition: transform .2s ease, box-shadow .2s ease, color .2s ease;
}

.btn-aff:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 16px 32px -14px rgba(78, 49, 173, .55);
}

.btn-aff svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

/* ----- Section headings ----- */
.aff-section-title {
    font-weight: 700;
    margin-bottom: .5rem;
    color: var(--text-main);
}

.aff-section-sub {
    color: var(--text-body);
    max-width: 720px;
    margin: 0 auto;
}

/* ----- Responsive tweaks ----- */
@media (max-width: 575.98px) {
    .aff-intro-card {
        padding: 1.25rem 1.25rem;
    }
    .aff-tier-price { font-size: 1.5rem; }
    .aff-method-card { padding: 1.25rem; }
    .aff-cb-card { padding: 1.25rem; }
    .aff-bonus-value { font-size: 1.25rem; }
}
