.welcome-popup[hidden] {
    display: none;
}

.welcome-popup {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: grid;
    place-items: center;
    padding: 24px;
}

.welcome-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, .72);
    backdrop-filter: blur(6px);
    animation: welcome-fade-in .22s ease both;
}

.welcome-popup__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    /* grid-template-columns: minmax(170px, .75fr) minmax(0, 1.25fr); */
    width: min(720px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(15, 15, 36, .3);
    animation: welcome-rise-in .42s cubic-bezier(.2, .8, .2, 1) both;
    background-image: url('../images/index/hero-popup.png');
    background-size: 100% 100%;
}

.welcome-popup.is-closing .welcome-popup__backdrop {
    animation: welcome-fade-out .22s ease both;
}

.welcome-popup.is-closing .welcome-popup__dialog {
    animation: welcome-fall-out .22s ease both;
}

.welcome-popup__visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 350px;
    overflow: hidden;
    color: #fff;
    /* background: linear-gradient(145deg, #ed3268 0%, #f5386d 46%, #ff8a1e 100%); */
}

.welcome-popup__visual::before,
.welcome-popup__visual::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    content: '';
}

.welcome-popup__visual::before {
    width: 260px;
    height: 260px;
    transform: rotate(-28deg) skew(12deg);
}

.welcome-popup__visual::after {
    width: 330px;
    height: 140px;
    transform: rotate(-32deg);
}

.welcome-popup__visual>i {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 28px;
    background: rgba(255, 255, 255, .18);
    box-shadow: 0 18px 40px rgba(113, 17, 46, .2);
    font-size: 38px;
    transform: rotate(-8deg);
}

.welcome-popup__orbit {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
}

.welcome-popup__orbit--one {
    top: 28px;
    left: 28px;
    width: 14px;
    height: 14px;
}

.welcome-popup__orbit--two {
    right: 32px;
    bottom: 34px;
    width: 9px;
    height: 9px;
}

.welcome-popup__content {
    position: relative;
    padding: 52px 44px 42px;
}

.welcome-popup__close {
    position: absolute;
    top: 15px;
    right: 17px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: #666a7a;
    background: #fff4f3;
    cursor: pointer;
    transition: .2s ease;
}

.welcome-popup__close:hover,
.welcome-popup__close:focus-visible {
    color: #fff;
    background: #f5386d;
    transform: rotate(8deg);
}

.welcome-popup__eyebrow {
    margin: 0 0 12px;
    color: #f5386d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.welcome-popup h2 {
    margin: 0;
    color: #1a1a2e;
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.16;
}

.welcome-popup h2 span {
    color: #f5386d;
}

.welcome-popup__content>p:not(.welcome-popup__eyebrow) {
    margin: 18px 0 24px;
    color: #666a7a;
    font-size: 14px;
    line-height: 1.8;
}

.welcome-popup__actions {
    display: flex;
    align-items: center;
    gap: 17px;
    flex-wrap: wrap;
}

.welcome-popup__primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 19px;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(90deg, #f5386d, #ff8a1e);
    box-shadow: 0 9px 20px rgba(245, 56, 109, .2);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: .2s ease;
}

.welcome-popup__primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 13px 24px rgba(245, 56, 109, .3);
}

.welcome-popup__secondary {
    padding: 10px 0;
    border: 0;
    color: #666a7a;
    background: transparent;
    font-size: 12px;
    cursor: pointer;
}

.welcome-popup__secondary:hover {
    color: #f5386d;
}

.welcome-popup__trust {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 27px;
    color: #8a8d99;
    font-size: 11px;
}

.welcome-popup__trust i {
    color: #f5386d;
}

.welcome-popup-open {
    overflow: hidden;
}

@keyframes welcome-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes welcome-fade-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes welcome-rise-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes welcome-fall-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(12px) scale(.98);
    }
}

@media (max-width: 575.98px) {
    .welcome-popup {
        padding: 16px;
    }

    .welcome-popup__dialog {
        grid-template-columns: 1fr;
        border-radius: 18px;
    }

    .welcome-popup__visual {
        min-height: 130px;
    }

    .welcome-popup__visual::before {
        width: 190px;
        height: 190px;
    }

    .welcome-popup__visual::after {
        width: 240px;
        height: 100px;
    }

    .welcome-popup__visual>i {
        width: 62px;
        height: 62px;
        border-radius: 19px;
        font-size: 26px;
    }

    .welcome-popup__content {
        padding: 30px 24px 27px;
    }

    .welcome-popup__close {
        top: 12px;
        right: 12px;
        background: rgba(255, 255, 255, .85);
    }

    .welcome-popup__actions {
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .welcome-popup__backdrop,
    .welcome-popup__dialog {
        animation: none;
    }

    .welcome-popup__close,
    .welcome-popup__primary {
        transition: none;
    }
}