.welcome-popup {
    position: fixed;
    inset: 0;
    z-index: 15000;
    display: grid;
    place-items: center;
    padding: 22px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    font-family: Inter, Arial, sans-serif;
}

.welcome-popup.is-open {
    opacity: 1;
    visibility: visible;
}

.welcome-popup__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background:
        radial-gradient(circle at 78% 16%, rgba(18, 128, 255, .2), transparent 34%),
        rgba(0, 8, 17, .84);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.welcome-popup__card {
    position: relative;
    width: min(980px, 100%);
    max-height: calc(100vh - 36px);
    display: grid;
    grid-template-columns: minmax(320px, .84fr) minmax(0, 1.16fr);
    overflow: auto;
    border: 1px solid rgba(102, 180, 255, .48);
    border-radius: 30px;
    background: #fff;
    box-shadow:
        0 40px 120px rgba(0, 0, 0, .46),
        0 0 0 1px rgba(255, 255, 255, .08);
    transform: translateY(20px) scale(.975);
    transition: transform .32s cubic-bezier(.2, .75, .2, 1);
}

.welcome-popup.is-open .welcome-popup__card {
    transform: none;
}

.welcome-popup__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid #d7e3ed;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #354c60;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(22, 51, 77, .1);
    transition: .2s ease;
}

.welcome-popup__close:hover {
    transform: rotate(90deg);
    border-color: #178aff;
    color: #087cff;
}

.welcome-popup__art {
    position: relative;
    min-height: 570px;
    display: flex;
    flex-direction: column;
    padding: 38px;
    overflow: hidden;
    color: #fff;
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 33%, rgba(20, 157, 255, .44), transparent 27%),
        radial-gradient(circle at 8% 88%, rgba(0, 118, 255, .32), transparent 28%),
        linear-gradient(150deg, #010b16 0%, #031d36 54%, #07447c 100%);
}

.welcome-popup__art::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .22;
    background-image:
        linear-gradient(rgba(92, 174, 255, .22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(92, 174, 255, .22) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

.welcome-popup__art::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 38%;
    z-index: -1;
    width: 310px;
    height: 310px;
    border: 1px solid rgba(75, 179, 255, .3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow:
        0 0 0 28px rgba(33, 151, 255, .05),
        0 0 0 58px rgba(33, 151, 255, .035),
        0 0 95px rgba(0, 137, 255, .42);
}

.welcome-popup__brand-lockup {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px auto auto;
    text-align: center;
}

.welcome-popup__logo-shell {
    position: relative;
    width: 190px;
    height: 190px;
    display: grid;
    place-items: center;
    padding: 10px;
    border: 1px solid rgba(156, 220, 255, .7);
    border-radius: 50%;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .04));
    box-shadow:
        inset 0 0 0 7px rgba(255, 255, 255, .05),
        0 24px 65px rgba(0, 122, 255, .34),
        0 0 50px rgba(17, 166, 255, .24);
    backdrop-filter: blur(12px);
}

.welcome-popup__logo-shell::after {
    content: "";
    position: absolute;
    inset: -8px;
    border: 1px dashed rgba(142, 211, 255, .38);
    border-radius: inherit;
    animation: welcomeLogoOrbit 18s linear infinite;
}

.welcome-popup__logo-shell img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    background: #222;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
}

.welcome-popup__logo-shell > b {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #087cff, #18b9ff);
    color: #fff;
    font-size: 42px;
    font-weight: 950;
}

.welcome-popup__brand-lockup > strong {
    margin-top: 18px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.02em;
}

.welcome-popup__brand-lockup > small {
    max-width: 260px;
    margin-top: 7px;
    color: #b9d9f1;
    font-size: 10px;
    line-height: 1.5;
}

.welcome-popup__art-copy {
    position: relative;
    width: 100%;
    padding-top: 28px;
    border-top: 1px solid rgba(165, 219, 255, .16);
}

.welcome-popup__art-copy > em {
    display: inline-flex;
    margin-bottom: 9px;
    padding: 6px 10px;
    border: 1px solid rgba(113, 197, 255, .35);
    border-radius: 30px;
    background: rgba(0, 119, 255, .14);
    color: #8fd6ff;
    font-size: 8px;
    font-style: normal;
    font-weight: 850;
    letter-spacing: .14em;
}

.welcome-popup__art-copy > b {
    display: block;
    font-size: 30px;
    line-height: 1.1;
}

.welcome-popup__art-copy > small {
    display: block;
    margin-top: 10px;
    color: #b9d8ee;
    font-size: 11px;
    line-height: 1.6;
}

.welcome-popup__content {
    padding: 54px 52px 42px;
    background:
        radial-gradient(circle at 100% 0, rgba(33, 145, 255, .07), transparent 35%),
        #fff;
}

.welcome-popup__content > small {
    color: #087cff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .17em;
}

.welcome-popup__content h2 {
    margin: 12px 0 0;
    color: #0d2032;
    font-size: clamp(30px, 3.3vw, 43px);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.welcome-popup__content > p {
    margin: 17px 0 25px;
    color: #65798b;
    font-size: 13px;
    line-height: 1.75;
}

.welcome-popup form {
    display: grid;
    gap: 14px;
}

.welcome-popup label > span {
    display: block;
    margin-bottom: 7px;
    color: #294157;
    font-size: 11px;
    font-weight: 800;
}

.welcome-popup label > span small {
    color: #8797a5;
    font-weight: 550;
}

.welcome-popup input[type="text"],
.welcome-popup input[type="tel"] {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #d7e3ed;
    border-radius: 13px;
    outline: 0;
    color: #14283a;
    background: #fff;
    font: inherit;
    font-size: 13px;
    transition: .2s ease;
}

.welcome-popup input:focus {
    border-color: #087cff;
    box-shadow: 0 0 0 4px rgba(8, 124, 255, .1);
}

.welcome-phone {
    display: grid;
    grid-template-columns: 66px 1fr;
    overflow: hidden;
    border: 1px solid #d7e3ed;
    border-radius: 13px;
    transition: .2s ease;
}

.welcome-phone:focus-within {
    border-color: #087cff;
    box-shadow: 0 0 0 4px rgba(8, 124, 255, .1);
}

.welcome-phone b {
    display: grid;
    place-items: center;
    border-right: 1px solid #d7e3ed;
    background: #f4f8fb;
    color: #50677a;
    font-size: 12px;
}

.welcome-phone input {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.welcome-consent {
    display: grid !important;
    grid-template-columns: 19px 1fr;
    align-items: flex-start;
    gap: 9px;
}

.welcome-consent input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #087cff;
}

.welcome-consent span {
    margin: 0 !important;
    color: #6b7d8c !important;
    font-size: 9px !important;
    line-height: 1.55;
}

.welcome-subscribe {
    height: 53px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #087cff, #19aaff);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 13px 30px rgba(8, 124, 255, .27);
    transition: transform .2s ease, box-shadow .2s ease;
}

.welcome-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 17px 35px rgba(8, 124, 255, .34);
}

.welcome-subscribe span {
    margin-right: 7px;
}

.welcome-subscribe:disabled {
    opacity: .65;
    cursor: wait;
    transform: none;
}

.welcome-status {
    min-height: 15px;
    margin: 0;
    color: #0c8b4e;
    font-size: 10px;
    text-align: center;
}

.welcome-status.is-error {
    color: #c43b3b;
}

.welcome-group {
    min-height: 47px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    border: 1px solid #91dbae;
    border-radius: 13px;
    background: linear-gradient(135deg, #f1fff6, #e9fff1);
    color: #08783e;
    font-size: 11px;
    font-weight: 850;
    text-decoration: none;
    transition: .2s ease;
}

.welcome-group:hover {
    transform: translateY(-1px);
    background: #e5fff0;
    box-shadow: 0 10px 25px rgba(18, 142, 75, .1);
}

.welcome-group span {
    margin-right: 7px;
}

.welcome-later {
    display: block;
    margin: 12px auto 0;
    border: 0;
    background: transparent;
    color: #748492;
    font-size: 10px;
    text-decoration: underline;
    cursor: pointer;
}

.welcome-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.welcome-popup-open {
    overflow: hidden;
}

@keyframes welcomeLogoOrbit {
    to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
    .welcome-popup {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100dvh;
        padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
    }

    .welcome-popup__card {
        width: min(500px, 100%);
        max-height: calc(100dvh - 16px);
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        overflow-x: hidden;
        overflow-y: auto;
        border-radius: 22px;
    }

    .welcome-popup__art {
        min-height: 116px;
        padding: 14px 56px 14px 16px;
    }

    .welcome-popup__art::after {
        left: 54px;
        top: 50%;
        width: 94px;
        height: 94px;
    }

    .welcome-popup__brand-lockup {
        display: grid;
        grid-template-columns: 76px 1fr;
        align-items: center;
        margin: 0;
        text-align: left;
    }

    .welcome-popup__logo-shell {
        grid-row: 1 / 3;
        width: 70px;
        height: 70px;
        padding: 4px;
    }

    .welcome-popup__brand-lockup > strong {
        align-self: end;
        margin: 0 0 3px 10px;
        font-size: 17px;
    }

    .welcome-popup__brand-lockup > small {
        align-self: start;
        margin: 0 0 0 10px;
        font-size: 7.5px;
    }

    .welcome-popup__art-copy {
        display: none;
    }

    .welcome-popup__art-copy > em {
        display: none;
    }

    .welcome-popup__art-copy > b {
        font-size: 23px;
    }

    .welcome-popup__art-copy > small {
        margin-top: 5px;
        font-size: 9px;
    }

    .welcome-popup__content {
        padding: 22px 18px 18px;
    }

    .welcome-popup__content h2 {
        padding-right: 28px;
        font-size: clamp(23px, 7vw, 28px);
    }

    .welcome-popup__content > p {
        margin: 10px 0 14px;
        font-size: 10px;
        line-height: 1.55;
    }

    .welcome-popup__close {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
        font-size: 22px;
    }

    .welcome-popup form { gap: 10px; }
    .welcome-popup input[type="text"],
    .welcome-popup input[type="tel"] { height: 46px; }
    .welcome-subscribe { height: 48px; }
    .welcome-group { min-height: 46px; }
    .welcome-later { margin-top: 8px; }
}

@media (max-width: 390px) {
    .welcome-popup__art {
        min-height: 102px;
        padding: 12px 50px 12px 13px;
    }

    .welcome-popup__brand-lockup {
        grid-template-columns: 64px 1fr;
    }

    .welcome-popup__logo-shell {
        width: 58px;
        height: 58px;
    }

    .welcome-popup__brand-lockup > strong {
        margin-left: 8px;
        font-size: 15px;
    }

    .welcome-popup__content {
        padding: 18px 14px 14px;
    }

    .welcome-popup__content h2 {
        font-size: 22px;
    }

    .welcome-popup input[type="text"],
    .welcome-popup input[type="tel"] {
        height: 44px;
    }

    .welcome-popup label > span { margin-bottom: 5px; font-size: 10px; }
    .welcome-consent span { font-size: 8px !important; }
    .welcome-subscribe { height: 45px; }
}

@media (max-height: 620px) and (max-width: 760px) {
    .welcome-popup { align-items: flex-start; }
    .welcome-popup__art { min-height: 88px; }
    .welcome-popup__logo-shell { width: 52px; height: 52px; }
    .welcome-popup__brand-lockup { grid-template-columns: 58px 1fr; }
    .welcome-popup__content { padding-top: 14px; }
    .welcome-popup__content > small,
    .welcome-popup__content > p { display: none; }
    .welcome-popup__content h2 { margin: 0 36px 10px 0; font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .welcome-popup__logo-shell::after {
        animation: none;
    }
}
