.iris-affiliate-page, .iris-affiliate-page *, .iris-affiliate-page *::before, .iris-affiliate-page *::after { box-sizing: border-box; margin: 0; padding: 0; }
.iris-affiliate-page { font-size: 16px; }
.iris-affiliate-page {
    font-family: var(--ig-font-stack);
    background: #121214;
    color: #f5f5f5;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
.iris-affiliate-page a { text-decoration: none; color: inherit; }
.iris-affiliate-page img { max-width: 100%; display: block; }

.af-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.af-container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.iris-affiliate-page {
    --af-section-gap: 48px;
}

.af-hero {
    min-height: 520px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(247, 251, 252, 0.98) 0%, rgba(247, 251, 252, 0.88) 38%, rgba(247, 251, 252, 0.18) 70%),
        url("../images/pages/affiliate/hero.png?v=20260702-1") center / cover no-repeat;
}

.af-hero-wrap {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.af-hero-copy {
    max-width: 620px;
    padding: 72px 0;
}

.af-hero-label {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 700;
    color: #00c85f;
    text-transform: uppercase;
}

.af-hero-heading {
    margin: 0;
    font-size: clamp(44px, 6vw, 76px);
    font-weight: 700;
    line-height: 0.98;
    color: #111;
}

.af-hero-desc {
    margin: 24px 0 0;
    color: #334656;
    font-size: clamp(18px, 2.4vw, 24px);
    line-height: 1.45;
}

.af-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.af-section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2rem);
    color: #f3f3f3;
    margin-bottom: 30px;
    font-weight: 700;
}

.af-section-dark { padding: clamp(54px, 7vw, 96px) 0; background: #111314; }
.af-section-light { padding: clamp(54px, 7vw, 96px) 0; color: #101214; background: #F3F5F2; }

.af-section-head {
    margin: 0 auto 34px;
    max-width: 860px;
    text-align: center;
}

.af-section-head h2 {
    font-size: clamp(32px, 3.5vw, 54px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.055em;
    color: #F4F8F4;
}

.af-section-head p {
    margin-top: 18px;
    color: rgba(244, 248, 244, .72);
}

.af-section-light .af-section-head h2 { color: #101214; }
.af-section-light .af-section-head p { color: #4B5A56; }

.af-kicker {
    color: #21F223;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.af-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(16, 18, 20, .12);
    background: #fff;
    color: #101214;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .34s cubic-bezier(.16, 1, .3, 1), box-shadow .34s cubic-bezier(.16, 1, .3, 1);
}

.af-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(33, 242, 35, .18); }
.af-btn.green { background: linear-gradient(180deg, rgba(33, 242, 35, 1), rgba(33, 242, 35, .82)); color: #061008; }
.af-btn.dark { border-color: rgba(255, 255, 255, .22); color: #fff; background: rgba(255, 255, 255, .04); }

.af-intro-card {
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    overflow: hidden;
    border-radius: 16px;
    background: #F3F5F2;
    color: #101214;
    box-shadow: 0 40px 120px rgba(0, 0, 0, .26);
}

.af-intro-copy { padding: clamp(30px, 4vw, 58px); }

.af-intro-copy h3 {
    max-width: 560px;
    font-size: clamp(32px, 3.5vw, 54px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.055em;
}

.af-intro-copy p {
    margin-top: 20px;
    color: #34403D;
}

.af-intro-copy .af-btn { margin-top: 30px; }

.af-intro-media {
    min-height: 430px;
    overflow: hidden;
}

.af-intro-media img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    display: block;
}

.af-value-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: 22px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .1);
}

.af-value-item {
    min-height: 138px;
    padding: 20px;
    background: rgba(255, 255, 255, .045);
}

.af-value-item b {
    color: #21F223;
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.af-value-item h3 {
    margin-top: 20px;
    color: #fff;
    font-size: 21px;
    line-height: 1.04;
    letter-spacing: -.04em;
}

.af-value-item p {
    margin-top: 10px;
    color: rgba(244, 248, 244, .66);
    font-size: 13px;
}

.af-creator-section { padding: var(--af-section-gap) 0; }

.af-subtitle {
    text-align: center;
    max-width: 860px;
    margin: -8px auto 30px;
    color: #d3d3d8;
    line-height: 1.65;
    font-size: 1.05rem;
}

.af-creator-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.af-creator-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2d3f57;
    min-height: 210px;
    background:
        linear-gradient(180deg, rgba(12,16,28,0.20), rgba(9,11,18,0.72)),
        url('../images/pages/affiliate/rect13.png') center/cover no-repeat;
}

.af-creator-card:nth-child(2) {
    background:
        linear-gradient(180deg, rgba(12,16,28,0.20), rgba(9,11,18,0.72)),
        url('../images/pages/affiliate/img08_1.png') center 35%/cover no-repeat;
}

.af-creator-card:nth-child(3) {
    background:
        linear-gradient(180deg, rgba(12,16,28,0.20), rgba(9,11,18,0.72)),
        url('../images/pages/affiliate/img06.png') center/cover no-repeat;
}

.af-creator-card:nth-child(4) {
    background:
        linear-gradient(180deg, rgba(12,16,28,0.20), rgba(9,11,18,0.72)),
        url('../images/pages/affiliate/123.png') center 35%/cover no-repeat;
}

.af-creator-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.52));
}

.af-creator-content {
    position: absolute;
    inset: auto 16px 14px;
    z-index: 2;
}

.af-creator-content h3 {
    font-size: 1.55rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.1;
}

.af-creator-content p {
    font-size: 0.95rem;
    color: #4dff4f;
    line-height: 1.5;
}

.af-steps-layout {
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    gap: 22px;
    align-items: stretch;
}

.af-poster {
    min-height: 560px;
    overflow: hidden;
    border-radius: 12px;
    background: #0B0F12;
    box-shadow: 0 36px 110px rgba(0, 0, 0, .28);
}

.af-poster img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    display: block;
}

.af-steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.af-step {
    min-height: 273px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(26px, 3vw, 44px);
    border-radius: 10px;
    background: #F5F6F4;
    border: 1px solid rgba(16, 18, 20, .08);
}

.af-step b {
    color: #0B0D0E;
    font-size: clamp(34px, 3vw, 50px);
    line-height: .9;
    letter-spacing: -.05em;
}

.af-step b span {
    color: #10BF31;
    font-size: clamp(18px, 1.4vw, 25px);
    letter-spacing: -.03em;
}

.af-step p {
    margin-top: 18px;
    color: #33413D;
    font-size: 15px;
    line-height: 1.58;
}

.af-cta {
    padding: var(--af-section-gap) 0 70px;
    text-align: center;
}

.af-cta-link {
    display: inline-block;
    color: #f0f0f0;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.af-brand-box {
    margin: 0 auto;
    width: min(420px, 94%);
    background: #e7e7e7;
    border-radius: 14px;
    min-height: 144px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #c9c9c9;
    color: #1d2d44;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: transform .34s cubic-bezier(.16, 1, .3, 1), box-shadow .34s cubic-bezier(.16, 1, .3, 1);
}

.af-brand-box:hover,
.af-brand-box:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(33, 242, 35, .18);
}

.af-brand-box img {
    width: min(300px, 80%);
    height: auto;
    object-fit: contain;
}

@media (max-width: 1000px) {
    .af-intro-card,
    .af-steps-layout { grid-template-columns: 1fr; }
    .af-value-strip,
    .af-creator-grid,
    .af-steps-grid { grid-template-columns: 1fr; }
    .af-intro-media { min-height: 320px; }
    .af-poster { min-height: 420px; }
    .af-hero { min-height: 620px; background-position: 58% center; }
    .af-hero-heading { font-size: clamp(36px, 5vw, 52px); }
    .af-hero-desc { font-size: clamp(16px, 2vw, 20px); }
}

@media (max-width: 720px) {
    .af-container { padding: 0 14px; }
    .af-creator-grid { grid-template-columns: 1fr; }
    .af-creator-card { min-height: 190px; }
    .af-hero {
        min-height: 540px;
        background:
            linear-gradient(180deg, rgba(247, 251, 252, 0.98) 0%, rgba(247, 251, 252, 0.92) 45%, rgba(247, 251, 252, 0.70) 100%),
            url("../images/pages/affiliate/hero.png?v=20260702-1") center center / cover no-repeat;
    }
    .af-hero-copy { max-width: 100%; padding: 48px 0; }
    .af-hero-heading { font-size: 36px; }
    .af-hero-desc { font-size: 16px; }
    .af-step { min-height: 220px; }
    .af-cta-link { font-size: 1.5rem; }
}

/* The WordPress page template sits directly inside Astra's content container. */
body.page-affiliate #content > .ast-container { max-width: none; padding: 0; }
body.page-affiliate #content { padding: 0; }
