@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@400;500;600;700;800&display=swap');

:root {
    --page-bg:
        radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.58) 28%, rgba(255, 255, 255, 0) 56%),
        radial-gradient(circle at 84% 12%, rgba(143, 170, 255, 0.42) 0%, rgba(143, 170, 255, 0) 32%),
        radial-gradient(circle at 88% 84%, rgba(120, 148, 255, 0.5) 0%, rgba(120, 148, 255, 0) 34%),
        linear-gradient(180deg, #f7f8ff 0%, #edf1ff 48%, #e9efff 100%);
    --surface: rgba(255, 255, 255, 0.32);
    --surface-border: rgba(255, 255, 255, 0.5);
    --text-strong: #171b2f;
    --text-body: #2f3550;
    --brand-blue: #2f46de;
    --brand-blue-deep: #2036be;
    --brand-blue-soft: #5c72ff;
    --card-shadow-blue: 0 24px 40px rgba(37, 59, 180, 0.28);
    --card-shadow-white: 0 20px 40px rgba(132, 150, 215, 0.18);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    color: var(--text-strong);
}

a {
    color: inherit;
    text-decoration: none;
}

.selection-shell {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.selection-stage {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    padding: 92px 0 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    isolation: isolate;
    background: url('/assets/images/app/select/select_background.png') center / cover no-repeat;
    justify-content: space-between;
    gap: 70px;
}

.card-pattern {
    pointer-events: none;
}

.brand-header {
    display: inline-flex;
    align-items: center;
    gap: 18px;
}

.brand-emblem {
    position: relative;
    height: 81px;
}

.brand-emblem-core {
    position: absolute;
    inset: 10px 8px 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 19px;
    background: linear-gradient(135deg, #6277ff 0%, #3246df 72%);
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 14px 22px rgba(63, 87, 221, 0.28);
}

.brand-emblem-chat {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    border: 6px solid #6277ff;
    border-radius: 50%;
    transform: translateY(-50%);
}

.brand-emblem-chat::after {
    content: "";
    position: absolute;
    bottom: -8px;
    width: 10px;
    height: 10px;
    background: #6277ff;
    clip-path: polygon(0 0, 100% 0, 32% 100%);
}

.brand-emblem-chat-left {
    left: 0;
}

.brand-emblem-chat-left::after {
    left: 1px;
}

.brand-emblem-chat-right {
    right: -2px;
}

.brand-emblem-chat-right::after {
    right: 1px;
    transform: scaleX(-1);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 0.95;
}

.brand-copy strong {
    font-size: clamp(2rem, 4.8vw, 3.05rem);
    font-weight: 800;
    letter-spacing: -0.05em;
}

.brand-copy span {
    margin-top: 10px;
    font-size: clamp(1.55rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    color: #5568ff;
}

.selection-intro {
    text-align: center;
}

.selection-intro h1 {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #273250;
}

.selection-cards {
    width: 100%;
    display: flex;
    gap: 30px;
    padding: 0 48px;
    justify-content: center;
    flex: 1;
    flex-direction: column;
}

.selection-card:hover {
    transform: translateY(-4px);
}

.selection-cards > a {
    text-align: center;
}

.card-pattern {
    position: absolute;
    inset: auto -52px -62px auto;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    opacity: 0.28;
    background:
        repeating-radial-gradient(circle at center, rgba(255, 255, 255, 0.52) 0 2px, transparent 2px 8px),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.26), transparent 58%);
}

.selection-card.is-secondary .card-pattern {
    opacity: 0.18;
    background:
        repeating-radial-gradient(circle at center, rgba(68, 89, 199, 0.3) 0 2px, transparent 2px 8px),
        radial-gradient(circle at center, rgba(94, 119, 255, 0.12), transparent 58%);
}

.card-icon-wrap {
    position: relative;
    display: flex;
    justify-content: center;
}

.card-icon {
    position: relative;
    width: 100px;
    aspect-ratio: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.7rem;
    background: linear-gradient(135deg, #5f74ff 0%, #3750e0 100%);
    clip-path: polygon(24% 0, 76% 0, 100% 24%, 100% 76%, 76% 100%, 24% 100%, 0 76%, 0 24%);
    box-shadow: 0 12px 24px rgba(34, 52, 163, 0.28);
}

.selection-card.is-secondary .card-icon {
    box-shadow: 0 12px 24px rgba(88, 105, 202, 0.2);
}

.card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-content strong {
    font-size: clamp(2rem, 5vw, 3.45rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.05;
}

.card-content span {
    font-size: clamp(1.12rem, 2vw, 1.72rem);
    line-height: 1.5;
    letter-spacing: -0.03em;
    color: inherit;
}

.selection-card.is-primary .card-content span {
    color: rgba(255, 255, 255, 0.95);
}

.selection-card.is-secondary .card-content span {
    color: #30364f;
}

/* @media (max-width: 767.98px) {
    .selection-shell {
        padding: 10px 0 18px;
    }

    .selection-stage {
        min-height: 100vh;
        padding: 72px 18px 56px;
        border-radius: 0;
    }

    .selection-stage::before {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .brand-header {
        gap: 14px;
        margin-bottom: 64px;
    }

    .brand-emblem {
        width: 60px;
        height: 50px;
    }

    .brand-emblem-core {
        inset: 9px 7px 9px 11px;
        border-radius: 16px;
        font-size: 0.95rem;
    }

    .brand-emblem-chat {
        width: 14px;
        height: 14px;
        border-width: 5px;
    }

    .selection-intro {
        margin-bottom: 42px;
    }

    .selection-cards {
        gap: 24px;
        padding: 0;
    }

    .selection-card {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 18px;
        min-height: 154px;
        padding: 28px 24px;
        border-radius: 28px;
    }

    .card-icon {
        width: 78px;
        font-size: 2rem;
    }
}

@media (max-width: 479.98px) {
    .brand-copy strong {
        font-size: 1.9rem;
    }

    .brand-copy span {
        font-size: 1.55rem;
    }

    .selection-intro h1 {
        font-size: 1.55rem;
    }

    .selection-card {
        grid-template-columns: 1fr;
        justify-items: start;
        min-height: auto;
        gap: 20px;
    }

    .card-icon-wrap {
        justify-content: flex-start;
    }

    .card-content strong {
        font-size: 2rem;
    }

    .card-content span {
        font-size: 1rem;
    }
} */
