html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    margin: 0;
    min-height: 100vh;
}

body::-webkit-scrollbar {
    display: none;
}

#subscribe-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 56px 24px 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    box-sizing: border-box;
    z-index: 1;
}

/* ---- 언어 토글 ---- */
.lang-toggle {
    position: fixed;
    top: 24px;
    right: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 20;
    font-family: 'Pretendard', sans-serif;
    font-size: 13px;
    letter-spacing: 0.6px;
    color: rgba(255, 255, 255, 0.85);
}

.lang-toggle button {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    padding: 4px 6px;
    font-weight: 500;
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.lang-toggle button.active {
    opacity: 1;
    font-weight: 700;
}

.lang-toggle span {
    opacity: 0.45;
}

/* ---- 헤더 ---- */
.sub-header {
    text-align: center;
    max-width: 640px;
    color: #fff;
    margin-top: 24px;
}

.sub-header h1 {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.5px;
    margin: 0 0 14px;
    color: #fff;
    text-shadow: 0 4px 24px rgba(60, 70, 130, 0.25);
}

.sub-header p {
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* ---- 결제 주기 토글 ---- */
.cycle-toggle {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 999px;
    padding: 5px;
    gap: 4px;
}

.cycle-toggle button {
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Pretendard', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    padding: 10px 22px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.cycle-toggle button em {
    font-style: normal;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.cycle-toggle button.active,
.cycle-toggle button.active span {
    background: rgba(255, 255, 255, 0.95);
    color: #2b3a8a;
    box-shadow: 0 4px 18px rgba(60, 70, 130, 0.18);
}

.cycle-toggle button.active span {
    background: transparent;
    box-shadow: none;
}

.cycle-toggle button.active em {
    background: linear-gradient(45deg, rgba(159, 142, 219, 1), rgba(96, 198, 211, 1));
    color: #fff;
}

/* ---- 플랜 그리드 ---- */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 320px));
    gap: 24px;
    width: 100%;
    max-width: 1080px;
    margin: 0;
    padding: 0;
}

.plan-card {
    position: relative;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    border-radius: 24px;
    padding: 32px 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    box-shadow:
        0 18px 50px rgba(60, 70, 130, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 26px 60px rgba(60, 70, 130, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.plan-recommended {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow:
        0 22px 60px rgba(98, 77, 255, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, rgba(159, 142, 219, 1), rgba(96, 198, 211, 1));
    color: #fff;
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(60, 70, 130, 0.25);
    white-space: nowrap;
}

.plan-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-head h2 {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 1.6px;
    margin: 0;
    color: #fff;
}

.plan-price {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: #fff;
    font-family: 'Pretendard', sans-serif;
}

.plan-price .amount {
    font-weight: 800;
    font-size: 28px;
    letter-spacing: -0.4px;
    color: #fff;
}

.plan-price .per {
    font-weight: 500;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.plan-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.plan-features li {
    position: relative;
    padding-left: 24px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
}

.plan-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%23624dff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M4 8.5l2.5 2.5L12 5.5'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}

/* Client 카드는 체크 대신 단락 형태 */
.plan-description {
    gap: 14px;
}

.plan-description li {
    padding-left: 0;
}

.plan-description li::before {
    content: none;
}

.plan-cta {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.95);
    color: #2b3a8a;
    border: 0;
    border-radius: 14px;
    padding: 14px 18px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.4px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.plan-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(60, 70, 130, 0.22);
}

/* ---- 반응형 ---- */
@media (max-width: 980px) {
    .plan-grid {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
        max-width: 720px;
    }
    .plan-client {
        grid-column: 1 / -1;
        max-width: 360px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 640px) {
    #subscribe-page {
        padding: 76px 18px 64px;
        gap: 28px;
    }
    .plan-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
    }
    .plan-client {
        max-width: none;
    }
    .cycle-toggle button {
        padding: 9px 16px;
        font-size: 13px;
    }
    .sub-header p {
        font-size: 14px;
    }
}
