/* ============================================================
   affiliate-program.css
   Styles for /affiliate-program marketing page
   ============================================================ */

.af-page {
    font-family: var(--font-primary);
    color: var(--text-primary);
}

/* ── Shared Utilities ──────────────────────────────────────── */

.af-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg, 2rem);
}

.af-section {
    padding: 5rem 0;
}

.af-section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.af-section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.5rem 0 1rem;
    line-height: 1.25;
}

.af-section-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
}

.af-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    padding: 0.3rem 0.9rem;
    margin-bottom: 1rem;
}

.af-highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Hero Section ──────────────────────────────────────────── */

.af-hero {
    background: linear-gradient(160deg, rgba(99, 102, 241, 0.06) 0%, rgba(139, 92, 246, 0.06) 60%, #fff 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 7rem 2rem 5rem;
    text-align: center;
}

.af-hero__inner {
    max-width: 820px;
    margin: 0 auto;
}

.af-hero__title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
    margin: 0.75rem 0 1.5rem;
    letter-spacing: -0.02em;
}

.af-hero__subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 680px;
    margin: 0 auto 2.5rem;
}

/* ── Stats Row ─────────────────────────────────────────────── */

.af-stats-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.af-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 14px;
    padding: 1.25rem 1.75rem;
    min-width: 130px;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.06);
}

.af-stat__value {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.af-stat__label {
    font-size: 0.78rem;
    color: var(--text-light);
    text-align: center;
    line-height: 1.4;
    font-weight: 500;
}

/* ── Hero CTA ──────────────────────────────────────────────── */

.af-hero__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.af-btn-primary {
    display: inline-block;
    background: var(--primary-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.9rem 2.2rem;
    border-radius: 10px;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.15s ease;
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.3);
}

.af-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.af-hero__note {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* ── How It Works / Steps ──────────────────────────────────── */

.af-steps-section {
    background: #fff;
}

.af-steps {
    display: flex;
    align-items: stretch;
    gap: 0;
    position: relative;
}

.af-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
}

.af-step__number {
    width: 44px;
    height: 44px;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.af-step__content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.af-step__content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.af-step__content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.af-step-connector {
    width: 2rem;
    flex-shrink: 0;
    margin-top: 1.5rem;
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}

.af-step-connector::before {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.4), rgba(99, 102, 241, 0.2));
    position: absolute;
}

/* ── Commission Section ────────────────────────────────────── */

.af-commission-section {
    background: var(--secondary-bg);
}

.af-commission-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.af-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.af-checklist li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    font-size: 0.97rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.af-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    margin-top: 0.1rem;
}

/* ── Example Card ──────────────────────────────────────────── */

.af-example-card {
    background: #fff;
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.08);
}

.af-example-card__header {
    background: var(--primary-gradient);
    padding: 1rem 1.5rem;
}

.af-example-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.af-example-rows {
    padding: 0 1.5rem;
}

.af-example-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
}

.af-example-row:last-child {
    border-bottom: none;
}

.af-example-row__desc {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.af-example-plan {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.af-example-price {
    font-size: 0.82rem;
    color: var(--text-light);
}

.af-example-row__earn {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.af-example-earn-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
}

.af-example-earn-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--success-color);
}

.af-example-currency-note {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.5rem;
    background: rgba(99, 102, 241, 0.05);
    border-top: 1px solid rgba(99, 102, 241, 0.12);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.af-example-currency-note i {
    font-size: 1.1rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.af-example-note {
    background: rgba(16, 185, 129, 0.06);
    border-top: 1px solid rgba(16, 185, 129, 0.15);
    padding: 1rem 1.5rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Tracking Cards ────────────────────────────────────────── */

.af-tracking-section {
    background: #fff;
}

.af-tracking-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.af-tracking-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.af-tracking-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.1);
}

.af-tracking-card__icon-wrap {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.af-tracking-card__icon-wrap i {
    font-size: 1.4rem;
}

.af-tc-purple {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.af-tc-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.af-tc-green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.af-tc-orange {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.af-tracking-card__body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.af-tracking-card__body p {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.af-code {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 4px;
    padding: 0.05rem 0.4rem;
    font-family: monospace;
    font-size: 0.82em;
    color: var(--primary-color);
    word-break: break-all;
}

/* ── Payout Section ────────────────────────────────────────── */

.af-payout-section {
    background: var(--secondary-bg);
}

.af-payout-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.af-payout-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.af-payout-card__icon {
    font-size: 1.8rem;
    margin-bottom: 0.85rem;
    line-height: 1;
}

.af-payout-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.af-payout-card p {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.af-threshold-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.af-threshold-examples span {
    background: rgba(99, 102, 241, 0.07);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 100px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ── Hold Period ───────────────────────────────────────────── */

.af-hold-section {
    background: #fff;
}

.af-hold-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    margin-bottom: 1.5rem;
}

.af-hold-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 0.5rem;
}

.af-hold-step__track {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 1rem;
}

.af-hold-step__dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.af-hold-dot--pending {
    background: rgba(245, 158, 11, 0.2);
    border: 2px solid var(--warning-color);
}

.af-hold-dot--approved {
    background: rgba(16, 185, 129, 0.2);
    border: 2px solid var(--success-color);
}

.af-hold-step__line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--warning-color), rgba(245, 158, 11, 0.3));
}

.af-hold-step--last .af-hold-step__track {
    justify-content: flex-start;
    width: auto;
}

.af-hold-step__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.75rem;
}

.af-hold-step__card--approved {
    padding: 0 0.75rem;
}

.af-hold-step__day {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.af-hold-badge {
    display: inline-block;
    padding: 0.15rem 0.65rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.af-hold-badge--pending {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning-color);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.af-hold-badge--approved {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.af-hold-step__card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.af-hold-note {
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-light);
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.85rem 1.5rem;
    margin-top: 0.5rem;
}

/* ── Rules / Disqualifiers ─────────────────────────────────── */

.af-rules-section {
    background: var(--secondary-bg);
}

.af-rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.af-rule-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.75rem;
    border: 1px solid var(--border-color);
}

.af-rule-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.af-rule-card__header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.af-rule-card--no {
    border-left: 4px solid #EF4444;
}

.af-rule-card--yes {
    border-left: 4px solid var(--success-color);
}

.af-rule-card__icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    line-height: 1;
}

.af-rule-card p {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── Eligibility / Final CTA ───────────────────────────────── */

.af-eligibility-section {
    background: #fff;
}

.af-eligibility-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.af-eligibility-text h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.5rem 0 1rem;
    line-height: 1.25;
}

.af-eligibility-text p {
    font-size: 0.97rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.af-eligibility-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.af-eligibility-list li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.af-cta-box {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.06), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.af-cta-box__eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.af-cta-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.af-cta-box p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.af-cta-box .af-btn-primary {
    align-self: stretch;
    text-align: center;
    font-size: 0.97rem;
}

.af-cta-box__sub {
    font-size: 0.82rem !important;
    color: var(--text-light) !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0 !important;
}

.af-cta-box__sub a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 900px) {
    .af-steps {
        flex-direction: column;
    }

    .af-step-connector {
        width: auto;
        height: 1.5rem;
        align-self: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 0;
    }

    .af-step-connector::before {
        width: 2px;
        height: 100%;
        background: linear-gradient(180deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.4), rgba(99, 102, 241, 0.2));
    }

    .af-commission-layout,
    .af-eligibility-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .af-hold-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .af-tracking-cards,
    .af-payout-grid,
    .af-rules-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .af-hold-steps {
        grid-template-columns: 1fr;
    }

    .af-hold-step__line {
        display: none;
    }

    .af-hero {
        padding: 6rem 1.25rem 3.5rem;
    }

    .af-section {
        padding: 3.5rem 0;
    }

    .af-stats-row {
        gap: 0.85rem;
    }

    .af-stat {
        min-width: 110px;
        padding: 1rem 1.25rem;
    }

    .af-stat__value {
        font-size: 1.5rem;
    }

    .af-container {
        padding: 0 1.25rem;
    }

    .af-cta-box {
        padding: 1.75rem;
    }
}