/* ==========================================================================
   AFFILIATE PROGRAM LANDING PAGE — LANDIFY-STYLE (Avedson Brand)
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
    --aff-primary: #0046be;
    --aff-primary-dark: #013196;
    --aff-accent: #ffce00;
    --aff-accent-dark: #fab528;
    --aff-dark: #001e73;
    --aff-text: #333;
    --aff-text-light: #6b7280;
    --aff-bg-light: #f0f4ff;
    --aff-bg-section: #f8fafc;
    --aff-success: #10b981;
    --aff-gradient: linear-gradient(135deg, #0046be 0%, #001e73 100%);
    --aff-gradient-accent: linear-gradient(135deg, #ffce00 0%, #fab528 100%);
    --aff-radius: 1rem;
    --aff-radius-sm: 0.75rem;
    --aff-shadow: 0 4px 24px rgba(0, 70, 190, 0.08);
    --aff-shadow-lg: 0 12px 40px rgba(0, 70, 190, 0.12);
}

/* ---------- HERO SECTION (navy banner + Landify split) ---------- */
.aff-hero {
    background: var(--aff-gradient);
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: left;
}

.aff-hero::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -30%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 206, 0, 0.08);
    pointer-events: none;
}

.aff-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.aff-hero .container {
    position: relative;
    z-index: 1;
}

.aff-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 206, 0, 0.15);
    border: 1px solid rgba(255, 206, 0, 0.3);
    color: var(--aff-accent);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.4rem 1rem;
    border-radius: 50px;
}

.aff-hero h1 {
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.aff-hero h1 .aff-highlight {
    color: var(--aff-accent);
}

.aff-hero-sub {
    max-width: 34rem;
    font-size: 1.1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9) !important;
    opacity: 1;
}

.aff-hero-cta .aff-btn-primary,
.aff-hero-cta .aff-btn-outline {
    width: auto;
}

/* Compact hero CTAs on mobile */
@media (max-width: 575.98px) {
    .aff-hero-cta {
        gap: 0.5rem !important;
    }

    .aff-hero-cta .aff-btn-primary,
    .aff-hero-cta .aff-btn-outline {
        font-size: 0.75rem;
        padding: 0.5rem 0.85rem;
        gap: 0.35rem;
        width: 100%;
        justify-content: center;
    }

    .aff-hero-cta .aff-btn-primary i,
    .aff-hero-cta .aff-btn-outline i {
        font-size: 0.8em;
    }
}

.aff-hero .aff-btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.aff-hero .aff-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

.aff-hero-visual {
    max-width: 520px;
    margin-inline: auto;
}

.aff-hero-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* ---------- BUTTONS ---------- */
.aff-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--aff-gradient-accent);
    color: var(--aff-dark);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    border: none;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 16px rgba(255, 206, 0, 0.35);
}

.aff-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 206, 0, 0.5);
    color: var(--aff-dark);
    text-decoration: none;
}

.aff-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--aff-primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 2px solid rgba(0, 70, 190, 0.25);
    text-decoration: none;
    transition: all 0.25s ease;
}

.aff-btn-outline:hover {
    background: var(--aff-bg-light);
    border-color: var(--aff-primary);
    color: var(--aff-primary);
    text-decoration: none;
}

/* Outline on dark CTA band */
.aff-cta-final .aff-btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.aff-cta-final .aff-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

/* ---------- SECTION COMMON ---------- */
.aff-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.aff-section-header {
    margin-bottom: 2.5rem;
}

.aff-section-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--aff-primary);
    background: var(--aff-bg-light);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 0.85rem;
}

.aff-section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--aff-dark);
    margin-bottom: 0.65rem;
    letter-spacing: -0.02em;
}

.aff-section-desc {
    color: var(--aff-text-light);
    font-size: 1rem;
    max-width: 540px;
    line-height: 1.65;
}

/* ---------- TRUST FEATURE GRID (mobile-first) ---------- */
.aff-trust-grid {
    background: #fff;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    margin-top: 0;
}

.aff-trust-card {
    border: 1px solid rgba(0, 70, 190, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.aff-trust-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--aff-shadow) !important;
}

.aff-trust-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: var(--aff-bg-light);
    color: var(--aff-primary);
}

.aff-trust-card .h6 {
    color: var(--aff-dark);
    font-size: 0.875rem;
    line-height: 1.3;
}

@media (min-width: 576px) {
    .aff-trust-grid {
        padding-top: 0;
        margin-top: -0.5rem;
    }

    .aff-trust-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--aff-shadow-lg) !important;
    }

    .aff-trust-card-icon {
        width: 56px;
        height: 56px;
        font-size: 1.35rem;
    }

    .aff-trust-card .h6 {
        font-size: 0.9rem;
    }
}

/* ---------- HOW IT WORKS (2×2 process cards, mobile-first) ---------- */
.aff-how {
    background: #fff;
}

.aff-how-content {
    max-width: 980px;
}

.aff-title-underline {
    width: 48px;
    height: 3px;
    background: var(--aff-primary);
    border-radius: 2px;
    margin-top: 0.75rem;
}

.aff-steps.row {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
}

.aff-step {
    position: relative;
    width: 100%;
    background: #fff;
    border: 1px solid rgba(0, 70, 190, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aff-step:hover {
    transform: translateY(-3px);
    box-shadow: var(--aff-shadow-lg) !important;
}

.aff-step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.aff-step-icon.icon-apply { background: rgba(0, 70, 190, 0.1); color: var(--aff-primary); }
.aff-step-icon.icon-approve { background: rgba(16, 185, 129, 0.12); color: var(--aff-success); }
.aff-step-icon.icon-share { background: rgba(0, 70, 190, 0.1); color: var(--aff-primary); }
.aff-step-icon.icon-earn  { background: rgba(250, 181, 40, 0.15); color: var(--aff-accent-dark); }

.aff-step-badge {
    display: inline-block;
    background: var(--aff-primary);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
}

.aff-step h3 {
    color: var(--aff-dark);
    font-size: 0.95rem;
}

.aff-step p {
    font-size: 0.78rem;
    line-height: 1.5;
}

.aff-how-video {
    text-align: center;
}

.aff-how-video-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--aff-text-light);
    margin-bottom: 0.85rem;
}

.aff-how-video-embed {
    position: relative;
    width: min(100%, 280px);
    max-width: 100%;
    margin: 0 auto;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #000;
}

.aff-how-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Keep Apply + Eligible Products on one row on mobile */
.aff-how-cta .aff-btn-primary,
.aff-how-cta .aff-btn-outline {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    max-width: none;
    font-size: 0.72rem;
    padding: 0.55rem 0.65rem;
    gap: 0.3rem;
    white-space: nowrap;
}

.aff-how-cta .aff-btn-primary i,
.aff-how-cta .aff-btn-outline i {
    font-size: 0.85em;
}

@media (min-width: 576px) {
    .aff-how-cta .aff-btn-primary,
    .aff-how-cta .aff-btn-outline {
        flex: 0 1 auto;
        font-size: 0.95rem;
        padding: 0.75rem 1.5rem;
        gap: 0.5rem;
    }
}

@media (min-width: 768px) {
    .aff-steps.row {
        --bs-gutter-x: 1.25rem;
        --bs-gutter-y: 1.25rem;
    }

    .aff-step-icon {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }

    .aff-step-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.75rem;
    }

    .aff-step h3 {
        font-size: 1.05rem;
    }

    .aff-step p {
        font-size: 0.85rem;
        line-height: 1.55;
    }
}

@media (min-width: 992px) {
    .aff-how-content {
        max-width: 1040px;
    }

    .aff-step-icon {
        width: 64px;
        height: 64px;
        font-size: 1.35rem;
    }

    .aff-how-video-embed {
        width: 260px;
    }
}

/* ---------- BENEFITS ---------- */
.aff-benefits {
    background: #fff;
}

.aff-benefit {
    border: 1px solid rgba(0, 70, 190, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aff-benefit:hover {
    transform: translateY(-4px);
    box-shadow: var(--aff-shadow-lg) !important;
}

.aff-benefit-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aff-benefit h4 {
    color: var(--aff-dark);
    margin-bottom: 0.5rem;
}

.aff-benefit p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---------- TRACKING ---------- */
.aff-tracking {
    background: var(--aff-bg-section);
}

.aff-tracking-card {
    background: #fff;
    border: 1px solid rgba(0, 70, 190, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aff-tracking-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--aff-shadow-lg) !important;
}

.aff-tracking-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
}

.aff-tracking-card h4 {
    color: var(--aff-dark);
    margin-bottom: 0.5rem;
}

.aff-tracking-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 0.5rem;
}

.aff-tracking-note {
    display: block;
    font-size: 0.85rem;
    color: var(--aff-primary);
    font-weight: 600;
}

/* ---------- COMMISSIONS ---------- */
.aff-commissions {
    background: #fff;
}

.aff-commission-item {
    border: 1px solid rgba(0, 70, 190, 0.06);
    border-left: 4px solid var(--aff-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.row > .col:nth-child(2) .aff-commission-item { border-left-color: var(--aff-accent-dark); }
.row > .col:nth-child(3) .aff-commission-item { border-left-color: var(--aff-success); }
.row > .col:nth-child(4) .aff-commission-item { border-left-color: var(--aff-primary); }

.aff-commission-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--aff-shadow-lg) !important;
}

.aff-commission-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--aff-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.aff-commission-item h4 {
    color: var(--aff-dark);
    margin-bottom: 0.4rem;
}

.aff-commission-item p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---------- ELIGIBLE PRODUCTS ---------- */
.aff-tiers {
    background: var(--aff-bg-section);
}

.aff-tiers .aff-btn-primary {
    margin-inline: auto;
}

/* ---------- FAQ ---------- */
.aff-faq {
    background: #fff;
}

.aff-faq-card {
    border: 1px solid rgba(0, 70, 190, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aff-faq-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--aff-shadow-lg) !important;
}

.aff-faq-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #fff;
    background: var(--aff-primary);
    box-shadow: 0 3px 12px rgba(0, 70, 190, 0.2);
}

.aff-faq-card:nth-child(1) .aff-faq-num,
.col:nth-child(1) .aff-faq-num { background: var(--aff-primary); }
.aff-faq-card:nth-child(2) .aff-faq-num,
.col:nth-child(2) .aff-faq-num { background: var(--aff-success); }
.aff-faq-card:nth-child(3) .aff-faq-num,
.col:nth-child(3) .aff-faq-num { background: var(--aff-primary-dark); }
.aff-faq-card:nth-child(4) .aff-faq-num,
.col:nth-child(4) .aff-faq-num { background: var(--aff-accent-dark); }
.aff-faq-card:nth-child(5) .aff-faq-num,
.col:nth-child(5) .aff-faq-num { background: var(--aff-primary); }
.aff-faq-card:nth-child(6) .aff-faq-num,
.col:nth-child(6) .aff-faq-num { background: #0e7490; }
.aff-faq-card:nth-child(7) .aff-faq-num,
.col:nth-child(7) .aff-faq-num { background: #c2410c; }
.aff-faq-card:nth-child(8) .aff-faq-num,
.col:nth-child(8) .aff-faq-num { background: var(--aff-success); }
.aff-faq-card:nth-child(9) .aff-faq-num,
.col:nth-child(9) .aff-faq-num { background: var(--aff-dark); }

.aff-faq-card-q {
    font-size: 1rem;
    font-weight: 700;
    color: var(--aff-dark);
    margin-bottom: 0.5rem;
}

.aff-faq-card-a {
    font-size: 0.9rem;
    color: var(--aff-text-light);
    line-height: 1.65;
    margin: 0;
}

.aff-faq-chip {
    display: inline-block;
    background: var(--aff-bg-light);
    color: var(--aff-primary);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    margin: 0 0.1rem;
}

/* ---------- FINAL CTA ---------- */
.aff-cta-final {
    background: var(--aff-gradient);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.aff-cta-final::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -25%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 206, 0, 0.06);
    pointer-events: none;
}

.aff-cta-final::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -15%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.aff-cta-final .container {
    position: relative;
    z-index: 1;
}

.aff-cta-final h2 {
    font-size: 1.75rem;
    letter-spacing: -0.02em;
}

.aff-cta-final p {
    opacity: 0.9;
    font-size: 1.05rem;
    max-width: 520px;
    line-height: 1.65;
}

/* ==========================================================================
   DESKTOP (≥992px)
   ========================================================================== */
@media (min-width: 992px) {
    .aff-hero {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .aff-hero h1 {
        font-size: 3.25rem;
    }

    .aff-hero-visual {
        margin-inline: 0 0;
        margin-left: auto;
    }

    .aff-section {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .aff-trust-grid {
        padding-top: 0;
        padding-bottom: 2rem;
    }

    .aff-section-title {
        font-size: 2.25rem;
    }

    .aff-section-header {
        margin-bottom: 3rem;
    }

    .aff-cta-final h2 {
        font-size: 2.25rem;
    }
}

/* ==========================================================================
   LARGE DESKTOP (≥1200px)
   ========================================================================== */
@media (min-width: 1200px) {
    .aff-hero h1 {
        font-size: 3.5rem;
    }
}

/* ---------- Animations ---------- */
@media (prefers-reduced-motion: no-preference) {
    .aff-trust-card,
    .aff-step,
    .aff-benefit,
    .aff-tracking-card,
    .aff-commission-item,
    .aff-faq-card {
        opacity: 0;
        transform: translateY(24px);
        animation: affFadeUp 0.55s ease forwards;
    }

    .aff-trust-card:nth-child(1),
    .col:nth-child(1) .aff-trust-card { animation-delay: 0.05s; }
    .col:nth-child(2) .aff-trust-card { animation-delay: 0.1s; }
    .col:nth-child(3) .aff-trust-card { animation-delay: 0.15s; }
    .col:nth-child(4) .aff-trust-card { animation-delay: 0.2s; }
    .col:nth-child(5) .aff-trust-card { animation-delay: 0.25s; }

    .aff-steps .col:nth-child(1) .aff-step { animation-delay: 0.1s; }
    .aff-steps .col:nth-child(2) .aff-step { animation-delay: 0.2s; }
    .aff-steps .col:nth-child(3) .aff-step { animation-delay: 0.3s; }
    .aff-steps .col:nth-child(4) .aff-step { animation-delay: 0.4s; }

    .col:nth-child(1) .aff-benefit { animation-delay: 0.05s; }
    .col:nth-child(2) .aff-benefit { animation-delay: 0.1s; }
    .col:nth-child(3) .aff-benefit { animation-delay: 0.15s; }
    .col:nth-child(4) .aff-benefit { animation-delay: 0.2s; }
    .col:nth-child(5) .aff-benefit { animation-delay: 0.25s; }
    .col:nth-child(6) .aff-benefit { animation-delay: 0.3s; }

    .col:nth-child(1) .aff-tracking-card { animation-delay: 0.1s; }
    .col:nth-child(2) .aff-tracking-card { animation-delay: 0.2s; }

    .col:nth-child(1) .aff-commission-item { animation-delay: 0.1s; }
    .col:nth-child(2) .aff-commission-item { animation-delay: 0.15s; }
    .col:nth-child(3) .aff-commission-item { animation-delay: 0.2s; }
    .col:nth-child(4) .aff-commission-item { animation-delay: 0.25s; }

    .col:nth-child(1) .aff-faq-card { animation-delay: 0.05s; }
    .col:nth-child(2) .aff-faq-card { animation-delay: 0.1s; }
    .col:nth-child(3) .aff-faq-card { animation-delay: 0.15s; }
    .col:nth-child(4) .aff-faq-card { animation-delay: 0.2s; }
    .col:nth-child(5) .aff-faq-card { animation-delay: 0.25s; }
    .col:nth-child(6) .aff-faq-card { animation-delay: 0.3s; }
    .col:nth-child(7) .aff-faq-card { animation-delay: 0.35s; }
    .col:nth-child(8) .aff-faq-card { animation-delay: 0.4s; }
    .col:nth-child(9) .aff-faq-card { animation-delay: 0.45s; }

    @keyframes affFadeUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Mobile: container-xxl. Large screens: fluid with side padding. */
@media (min-width: 992px) {
    .hp-container-fluid-lg {
        max-width: 100%;
        width: 100%;
        padding-left: 150px;
        padding-right: 150px;
    }
}
