
/* ==========================================
   MOSTPLAY — AFFILIATE BENEFITS
   ========================================== */

.mp-benefits {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse at 50% 45%,
            #0754b2 0%,
            #064493 48%,
            #033574 100%
        );
    color: #ffffff;
    padding: 68px 0 75px;
}

.mp-benefits *,
.mp-benefits *::before,
.mp-benefits *::after {
    box-sizing: border-box;
}

.mp-benefits__container {
    width: min(100% - 80px, 1540px);
    margin-inline: auto;
}

/* Main heading */

.mp-benefits__header {
    text-align: center;
    margin-bottom: 58px;
}

.mp-benefits__heading {
    margin: 0;
    color: #ffffff;
    font-size: clamp(42px, 5vw, 86px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.mp-benefits__heading-accent {
    color: #ffca05;
}

/* Horizontal tabs */

.mp-benefits__tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 45px;
}

.mp-benefits__tab {
    appearance: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 17px;
    min-width: 0;
    min-height: 136px;
    padding: 0 4px 22px;
    position: relative;

    background: transparent;
    border: 0;
    border-bottom: 3px solid rgba(106, 177, 255, 0.65);
    border-radius: 0;

    color: #c4dcff;
    text-align: center;
    cursor: pointer;

    font: inherit;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.mp-benefits__tab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 6px;
    background: #ffca05;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mp-benefits__tab.is-active::after {
    opacity: 1;
}

.mp-benefits__tab.is-active {
    color: #ffffff;
}

.mp-benefits__tab-icon {
    display: block;
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.mp-benefits__tab-title {
    display: block;
    font-size: clamp(14px, 1.35vw, 23px);
    line-height: 1.25;
    font-weight: 400;
    white-space: normal;
}

.mp-benefits__tab.is-active .mp-benefits__tab-title {
    font-weight: 600;
}

.mp-benefits__tab:hover {
    color: #ffffff;
}

.mp-benefits__tab:focus-visible {
    outline: 3px solid #ffca05;
    outline-offset: 5px;
}

/* Active content */

.mp-benefits__panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    min-height: 430px;
}

.mp-benefits__panel[hidden] {
    display: none !important;
}

.mp-benefits__content {
    padding: 15px 0 20px 28px;
    min-width: 0;
}

.mp-benefits__content-title {
    margin: 0 0 25px;
    color: #ffffff;
    font-size: clamp(40px, 4.8vw, 84px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.mp-benefits__description {
    max-width: 740px;
    color: #c2dcff;
    font-size: clamp(19px, 2.35vw, 39px);
    line-height: 1.38;
    font-weight: 400;
}

.mp-benefits__description p {
    margin: 0 0 28px;
}

.mp-benefits__description p:last-child {
    margin-bottom: 0;
}

.mp-benefits__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.mp-benefits__visual img {
    display: block;
    width: 100%;
    max-width: 760px;
    max-height: 470px;
    height: auto;
    object-fit: contain;
}

/* Tablets */

@media (max-width: 1100px) {
    .mp-benefits__container {
        width: min(100% - 48px, 1540px);
    }

    .mp-benefits__tabs {
        gap: 12px;
    }

    .mp-benefits__tab-icon {
        width: 48px;
        height: 48px;
    }

    .mp-benefits__content {
        padding-left: 0;
    }

    .mp-benefits__panel {
        min-height: 360px;
    }
}

/* Mobile */

@media (max-width: 767px) {
    .mp-benefits {
        padding: 52px 0 55px;
    }

    .mp-benefits__container {
        width: calc(100% - 32px);
    }

    .mp-benefits__header {
        margin-bottom: 32px;
    }

    .mp-benefits__heading {
        font-size: clamp(36px, 8vw, 54px);
    }

    .mp-benefits__tabs {
        display: flex;
        overflow-x: auto;
        gap: 14px;
        margin-bottom: 30px;
        padding-bottom: 7px;
        scrollbar-width: thin;
        scrollbar-color: #ffca05 transparent;
        scroll-snap-type: x proximity;
    }

    .mp-benefits__tab {
        flex: 0 0 135px;
        min-height: 115px;
        gap: 12px;
        padding-bottom: 15px;
        scroll-snap-align: start;
    }

    .mp-benefits__tab-icon {
        width: 46px;
        height: 46px;
    }

    .mp-benefits__tab-title {
        font-size: 14px;
    }

    .mp-benefits__panel {
        grid-template-columns: 1fr;
        gap: 18px;
        min-height: 0;
    }

    .mp-benefits__content {
        padding: 10px 0 0;
    }

    .mp-benefits__content-title {
        font-size: clamp(35px, 8vw, 52px);
        margin-bottom: 18px;
    }

    .mp-benefits__description {
        font-size: 19px;
        line-height: 1.5;
    }

    .mp-benefits__description p {
        margin-bottom: 18px;
    }

    .mp-benefits__visual img {
        max-height: 350px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mp-benefits__tab,
    .mp-benefits__tab::after {
        transition: none;
    }
}



/* ==========================================
   AFFILIATE BENEFITS — COMPACT DESKTOP FIX
   ========================================== */

@media (min-width: 1101px) {

    /* Reduce overall section height */
    .mp-benefits {
        padding: 48px 0 55px;
    }

    .mp-benefits__container {
        width: min(100% - 100px, 1400px);
    }

    /* Main section heading */
    .mp-benefits__header {
        margin-bottom: 32px;
    }

    .mp-benefits__heading {
        font-size: clamp(38px, 3.5vw, 58px);
        line-height: 1.15;
    }

    /* Tabs */
    .mp-benefits__tabs {
        gap: 18px;
        margin-bottom: 32px;
    }

    .mp-benefits__tab {
        min-height: 105px;
        gap: 10px;
        padding-bottom: 14px;
    }

    .mp-benefits__tab-icon {
        width: 43px;
        height: 43px;
    }

    .mp-benefits__tab-title {
        font-size: clamp(13px, 1.1vw, 17px);
        line-height: 1.3;
    }

    /* Content layout */
    .mp-benefits__panel {
        grid-template-columns: 52% 48%;
        gap: 0;
        min-height: 320px;
    }

    .mp-benefits__content {
        padding: 0 20px 0 10px;
    }

    /* Benefit heading */
    .mp-benefits__content-title {
        font-size: clamp(34px, 3.2vw, 54px);
        line-height: 1.12;
        margin-bottom: 20px;
        letter-spacing: -0.035em;
    }

    /* Description */
    .mp-benefits__description {
        max-width: 600px;
        font-size: clamp(17px, 1.55vw, 24px);
        line-height: 1.5;
    }

    .mp-benefits__description p {
        margin-bottom: 18px;
    }

    /* Illustration */
    .mp-benefits__visual img {
        width: 100%;
        max-width: 550px;
        max-height: 330px;
        object-fit: contain;
    }
}



/* ==========================================
   AFFILIATE BENEFITS — MOBILE SIZE ADJUSTMENT
   ========================================== */

@media (max-width: 767px) {

    /* Reduce spacing between text and illustration */
    .mp-benefits__panel {
        gap: 8px;
    }

    /* Slightly smaller description */
    .mp-benefits__description {
        font-size: 17px;
        line-height: 1.45;
    }

    .mp-benefits__description p {
        margin-bottom: 14px;
    }

    /* Reduce illustration size */
    .mp-benefits__visual {
        width: 100%;
        padding: 0 12px;
    }

    .mp-benefits__visual img {
        width: 82%;
        max-width: 300px;
        max-height: 270px;
        height: auto;
        object-fit: contain;
        margin: 0 auto;
    }

    /* Reduce bottom spacing */
    .mp-benefits {
        padding-bottom: 40px;
    }
}

/* Extra-small mobile screens */
@media (max-width: 380px) {

    .mp-benefits__visual img {
        width: 78%;
        max-width: 260px;
        max-height: 235px;
    }

    .mp-benefits__description {
        font-size: 16px;
    }
}



/* Affiliate Benefits — smaller desktop description */

@media (min-width: 1101px) {

    .mp-benefits__description {
        font-size: 18px;
        line-height: 1.6;
        max-width: 570px;
    }

    .mp-benefits__description p {
        margin-bottom: 14px;
    }

    .mp-benefits__description p:last-child {
        margin-bottom: 0;
    }
}

/* ==========================================
   AFFILIATE BENEFITS — SCROLL & TAB REVEAL
   Matches benefits-animation.js: is-revealed
   ========================================== */

/* Only hide content after JavaScript has initialized. */
.mp-benefits.mp-benefits--motion-ready
.mp-benefits__panel.is-active:not(.is-revealed) .mp-benefits__content {
    opacity: 0;
    transform: translate3d(-45px, 0, 0);
}

.mp-benefits.mp-benefits--motion-ready
.mp-benefits__panel.is-active:not(.is-revealed) .mp-benefits__visual {
    opacity: 0;
    transform: translate3d(45px, 0, 0);
}

@keyframes mpBenefitsTextEnter {
    from { opacity: 0; transform: translate3d(-45px, 0, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes mpBenefitsImageEnter {
    from { opacity: 0; transform: translate3d(45px, 0, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

.mp-benefits__panel.is-revealed .mp-benefits__content {
    animation: mpBenefitsTextEnter 850ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mp-benefits__panel.is-revealed .mp-benefits__visual {
    animation: mpBenefitsImageEnter 950ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
}

.mp-benefits__panel[hidden] {
    display: none !important;
}

@media (max-width: 767px) {
    .mp-benefits.mp-benefits--motion-ready
    .mp-benefits__panel.is-active:not(.is-revealed) .mp-benefits__content {
        transform: translate3d(-20px, 0, 0);
    }
    .mp-benefits.mp-benefits--motion-ready
    .mp-benefits__panel.is-active:not(.is-revealed) .mp-benefits__visual {
        transform: translate3d(20px, 0, 0);
    }
    @keyframes mpBenefitsTextEnter {
        from { opacity: 0; transform: translate3d(-20px, 0, 0); }
        to   { opacity: 1; transform: translate3d(0, 0, 0); }
    }
    @keyframes mpBenefitsImageEnter {
        from { opacity: 0; transform: translate3d(20px, 0, 0); }
        to   { opacity: 1; transform: translate3d(0, 0, 0); }
    }
}

@media (prefers-reduced-motion: reduce) {
    .mp-benefits__content,
    .mp-benefits__visual {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}



/* ==========================================
   AFFILIATE BENEFITS - SMOOTH SCROLL
========================================== */

/* Smooth movement when clicking an anchor link */
html {
    scroll-behavior: smooth;
}

/* Leave space for the sticky header */
#affiliate-benefits {
    scroll-margin-top: 100px;
}

/* Optional subtle highlight on arrival */
#affiliate-benefits:target {
    animation: benefits-arrival 900ms ease-out;
}

@keyframes benefits-arrival {
    0% {
        filter: brightness(1.08);
    }

    100% {
        filter: brightness(1);
    }
}

/* Mobile header spacing */
@media (max-width: 767px) {
    #affiliate-benefits {
        scroll-margin-top: 75px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    #affiliate-benefits:target {
        animation: none;
    }
}





/* ==========================================
   AFFILIATE BENEFITS — SINGLE-LINE TAB TITLES
   Mobile only
========================================== */
/*
@media screen and (max-width: 767px) {

    #affiliate-benefits .mp-benefits__tab {
        flex: 0 0 170px !important;
        min-width: 170px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    #affiliate-benefits .mp-benefits__tab-title {
        font-size: 13px !important;
        line-height: 1.4 !important;
        white-space: nowrap !important;
        word-break: normal !important;
        letter-spacing: 0 !important;
    }

    #affiliate-benefits .mp-benefits__tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

}




*/