:root {
    --color-primary-100: rgba(255, 255, 255, 1);
    --color-primary-100-30: rgba(255, 255, 255, 0.3);
    --color-primary-100-10: rgba(255, 255, 255, 0.1);
    --color-primary-900: rgba(7, 11, 51, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--color-primary-100);
}

html, body,
.banner__wrapper {
    width: 100%;
    height: 100%;
}

html, body {
    margin: 0;
    padding: 0;
}

.banner {
    position: relative;
    overflow: hidden;
    max-width: 440px;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(
            196.56deg,
            rgba(0, 0, 0, 9.5e-05) 10.43%,
            rgba(21, 5, 52, 0.641925) 30.66%,
            rgba(0, 0, 0, 0.855327) 37.66%,
            rgba(9, 1, 25, 0.95) 45.57%,
            rgba(0, 0, 0, 0.95) 77.38%,
            rgba(5, 1, 14, 0.95) 94.32%
    ),
    url('./assets/banner-img.png'),
    linear-gradient(136.59deg, #DA28FF 3.34%, #7FCCFF 92.15%);
    background-size: contain;
    background-position: 50% -25%;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
}

.banner::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    width: 403px;
    height: 113px;
    background: rgba(214, 19, 252, 0.62);
    border-radius: 50%;
    transform: translateX(-50%);
    filter: blur(101px);
    -webkit-backdrop-filter: blur(101px);
    pointer-events: none;
}

.banner__close {
    position: absolute;
    top: 4rem;
    left: 1rem;
}

.banner__content {
    position: relative;
    z-index: 1;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.banner__content__title {
    margin-top: auto;
    text-align: center;
    font-size: 2.625rem;
    line-height: 2.875rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.banner__slogans {
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 1.625rem;
}

.banner__slogans-item {
    position: relative;
    width: 106px;
    height: 139px;
    border-radius: 12px;
    overflow: hidden;
}

.banner__slogans-img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.banner__slogans-item:nth-child(1)::before {
    content: '';
    position: absolute;
    width: 139px;
    height: 73px;
    top: -10%;
    left: 40%;
    background: #00BFFF;
    filter: blur(62px);
    -webkit-backdrop-filter: blur(62px);
    border-radius: 100%;
    transform: translateX(-50%);
    mix-blend-mode: overlay;
}

.banner__slogans-item::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            180deg, rgba(0, 0, 0, 0) 0%, rgba(4, 6, 26, 0) 62.04%, rgba(6, 9, 37, 0.56) 76.68%, #15072f 100%
    );
}

.banner__slogans-item:not(:first-child)::after {
    background-color: rgba(255, 130, 228, 0.24);
}

.banner__slogans-text {
    position: absolute;
    z-index: 1;
    bottom: 12px;
    left: 9px;
    font-size: 0.75rem;
}

.banner__toolbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    margin-top: 1.75rem;
    margin-bottom: calc(0.5rem + env(safe-area-inset-bottom));
}

.banner__toolbar-link {
    text-decoration: underline;
    font-weight: 200;
    font-size: 0.813rem;
    line-height: 1.125rem;
    opacity: 0.3;
}

.banner__subscriptions {
    width: 100%;
    padding: 0 1.5rem;
}

.banner__subscriptions-plan {
    position: relative;
    border: 1px solid transparent;
    border-radius: 100px;
    height: 3.5rem;
    padding: 0 2.5rem 0 1.5rem;
    display: grid;
    align-items: center;
    grid-template-columns: 3fr 1fr;
    backdrop-filter: blur(11px);
    -webkit-backdrop-filter: blur(11px);
    background: var(--color-primary-100-10);
    user-select: none;
    -webkit-user-select: none;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.banner__subscriptions-plan:first-child:has(input[type="radio"]:not(:checked))::after {
    position: absolute;
    content: url("./assets/path-right.svg");
    right: -1px;
    top: -2px;
}

.banner__subscriptions-plan label,
.banner__subscriptions-plan input[type="radio"] {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
}

.banner__subscriptions-plan:has(input[type="radio"]:checked) {
    background: var(--color-primary-100-30);
    border-color: var(--color-primary-100);
}

.banner__subscriptions-price {
    opacity: 0.7;
}

.banner__subscriptions-title:not(:lang(en)) {
    font-size: 0.938rem;
}

.banner__subscriptions-price:not(:lang(en)) {
    font-size: 0.813rem;
}

.banner__subscriptions-price:lang(es),
.banner__subscriptions-price:lang(fr),
.banner__subscriptions-price:lang(pt) {
    font-size: 0.688rem;
}

.banner__subscriptions-title {
    font-weight: 600;
}

.banner__subscriptions-plan:first-child {
    position: relative;
}

.banner__subscriptions-plan:has(input[type="radio"]:checked) .subscriptions-offer__wrapper {
    background: var(--color-primary-100);
}

.subscriptions-offer__wrapper {
    position: absolute;
    top: -2px;
    right: 1.5rem;
    height: 20px;
    min-width: 119px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, #BC1FEF 0%, #0035FF 100%) border-box;
    border-radius: 100px;
    box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.5);
}

.subscriptions-offer {
    width: 100%;
    height: 100%;
    padding: 0 1.375rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    font-size: 0.813rem;
    font-weight: 700;
    color: var(--color-primary-100);
}

.banner__subscriptions-plan:first-child:has(input[type="radio"]:not(:checked)) .subscriptions-offer::after {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    content: url("./assets/path-left.svg");
}

.banner__subscriptions-plan:has(input[type="radio"]:checked) .subscriptions-offer {
    color: var(--color-primary-900);
}

.banner__subscriptions-plan:has(input[type="radio"]:checked) .subscriptions-offer::before {
    background: var(--color-primary-100);
}

.subscriptions-offer::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    outline: 1px solid transparent;
    background: linear-gradient(270deg, #00B5FF 0%, #632AF7 53.01%, #FF96F4 100%) border-box;
    mask: linear-gradient(black, black) border-box,
    linear-gradient(black, black) padding-box;
    mask-composite: subtract;
}

.banner__subscriptions-btn {
    all: unset;
    width: 100%;
    border-radius: 100px;
    padding: 1rem 0;
    color: var(--color-primary-900);
    background: var(--color-primary-100);
    text-align: center;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.5rem;
}

@media only screen
and (min-device-width: 390px)
and (-webkit-device-pixel-ratio: 3) {
    .banner {
        background-position: center top;
    }

    .banner::before {
        top: 0;
    }

    .banner__content__title {
        margin-bottom: 1.5rem;
    }

    .banner__slogans {
        margin-bottom: 2.125rem;
    }

    .banner__slogans-item {
        width: 110px;
        height: 146px;
        border-radius: 16px;
        background-color: rgba(255, 255, 255, 0.2);
    }

    .banner__slogans-item::after {
        background-color: rgba(255, 130, 228, 0.24);
    }

    .banner__slogans-text {
        left: 8px;
    }

    .banner__subscriptions-btn {
        margin-top: 0.5rem;
    }

    .banner__toolbar {
        margin-bottom: 0.25rem;
    }
}
