/* =====================================================
   Pricing Page
   ===================================================== */

body.page_pricing .wrap {
    position: relative;
}
body.page_pricing {
    overflow-x: hidden;
}
body.page_pricing .wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 340px;
    background: linear-gradient(180deg, #CDFB5A 0%, #E8FBA0 35%, #F4FECF 65%, #ffffff 100%);
    z-index: 0;
    pointer-events: none;
}
body.page_pricing .header_wrap,
body.page_pricing .container {
    position: relative;
    z-index: 1;
}
body.page_pricing .header_wrap {
    z-index: 1102;
    background: transparent !important;
    isolation: isolate;
}
body.page_pricing .header_wrap .fnc_menu_wrap,
body.page_pricing .header_wrap .fnc_user,
body.page_pricing .header_wrap .fnc_user .fnc_button {
    z-index: 1103;
}
/* ── 공통 래퍼 ── */
.pricing_hero,
.pricing_plans,
.pricing_divider,
.pricing_compare {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* ── 히어로 ── */
.pricing_hero {
    text-align: center;
    padding: 30px 20px 40px;
}

.pricing_hero_title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.5px;
    color: #111;
    margin-bottom: 20px;
}

.pricing_hero_sub {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
}

/* ── 플랜 카드 그리드 ── */
.pricing_plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 20px 20px;
    align-items: stretch;
}

.plan_card {
    border: 1px solid #e4e4e4;
    border-radius: 16px;
    padding: 28px 15px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fff;
}

/* 배지 */
.plan_badge {
    display: flex;
    align-items: center;
    gap: 6px;
}

.plan_dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.plan_step {
    font-size: 17px;
    font-weight: 500;
    color: #666;
}

/* 플랜명 */
.plan_name {
    font-size: 24px;
    font-weight: 700;
    color: #111;
}

/* 설명 */
.plan_card .plan_desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 가격 */
.plan_price {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.plan_price_note {
    font-size: 11px;
    font-weight: 400;
    color: #999;
}

/* 기능 목록 */
.plan_features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.plan_features li {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
}

.plan_features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #313131;
    font-weight: 600;
}

.plan_promo {
    background: #f7f7f7;
    border: 1px dashed #ccc;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 12px;
    color: #444;
    line-height: 1.6;
    text-align: center;
    /* 일정한 높이와 중앙 정렬로 박스 크기 맞춤 */
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.plan_promo strong {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #111;
}

.plan_promo_note {
    font-size: 11px;
    color: #888;
}

/* 출시 예정 */
.plan_coming {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    text-align: center;
    padding: 8px 0;
}

/* 버튼 */
.plan_btn {
    width: 100%;
    margin-top: auto;
}

/* ── 구분 카피 ── */
.pricing_divider {
    text-align: center;
    padding: 20px 20px 60px;
}

.pricing_divider p {
    font-size: 18px;
    color: #111;
    line-height: 1.8;
}

/* =====================================================
   비교표
   ===================================================== */
.pricing_compare {
    padding: 0 20px 80px;
}

.compare_title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    color: #111;
    margin-bottom: 12px;
}

.compare_sub {
    font-size: 17px;
    color: #666;
    text-align: center;
    margin-bottom: 48px;
}

.compare_plan_tabs_wrap {
    display: none;
}

/* CSS Grid 기반 비교표 */
.compare_table {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
}

/* 헤더 행 */
.compare_header_row {
    display: contents;
}

.compare_header_row .compare_cell {
    padding: 12px 16px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #111;
    background: transparent;
    border-bottom: 1px solid #e0e0e0;
}

.compare_header_row .compare_cell.feature_label {
    font-size: 15px;
    color: #333;
}

.compare_header_row .compare_cell.plan_col {
    text-align: center;
    background: transparent;
}

/* 카테고리 그룹 헤더 */
.compare_group_header {
    grid-column: 1 / -1;
    font-size: 18px;
    font-weight: 700;
    color: #111;
    padding: 32px 0 12px;
}

/* 기능 행 */
.compare_row {
    display: contents;
}

.compare_row .compare_cell {
    padding: 14px 16px;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.compare_row .compare_cell.feature_name {
    background: transparent;
    color: #444;
}

.compare_row .compare_cell.plan_col {
    background: #f5f5f5;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 4px;
}

/* 체크 아이콘 */
.check_icon {
    font-size: 15px;
    font-weight: 500;
    color: #313131;
}

/* 텍스트 값 셀 */
.compare_text {
    font-size: 14px !important;
    color: #333;
    line-height: 1.5;
}

.compare_note {
    font-size: 11px;
    color: #999;
}

/* =====================================================
   반응형 (768px 이하)
   ===================================================== */
@media (max-width: 768px) {

    .pricing_hero_title {
        font-size: 18px;
    }

    .pricing_hero_sub {
        font-size: 12px;
    }

    .pricing_plans {
        grid-template-columns: 1fr;
        padding: 0 16px 32px;
    }

    .compare_title {
        font-size: 24px;
    }

    .compare_sub {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .compare_plan_tabs_wrap {
        position: sticky;
        top: 0;
        z-index: 10;
        display: block;
        margin: 0 -4px 14px;
        padding: 10px 4px 8px;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(10px);
    }

    .compare_plan_tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 6px;
        border: 1px solid #ececec;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 10px 24px rgba(17, 17, 17, 0.06);
    }

    .compare_plan_tab {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        min-height: 30px;
        padding: 0 12px;
        border: 0;
        border-radius: 12px;
        background: transparent;
        color: #767676;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
    }

    .compare_plan_tab.active {
        background: #111;
        color: #fff;
    }

    .compare_table {
        grid-template-columns: minmax(0, 0.85fr) minmax(96px, 1fr);
    }

    .compare_header_row {
        display: none;
    }

    .compare_row .compare_cell {
        padding: 10px 8px;
        font-size: 11px;
    }

    .compare_row .compare_cell.feature_name {
        padding-left: 0;
        padding-right: 12px;
    }

    .compare_group_header {
        font-size: 14px;
        padding: 24px 0 8px;
    }

    .compare_row .compare_cell.plan_col {
        display: none;
        min-height: 100%;
        padding: 10px 12px;
        background: #f5f5f5;
    }

    .compare_table[data-active-plan="free"] .compare_row .compare_cell.plan_col:nth-child(2),
    .compare_table[data-active-plan="basic"] .compare_row .compare_cell.plan_col:nth-child(3),
    .compare_table[data-active-plan="pro"] .compare_row .compare_cell.plan_col:nth-child(4) {
        display: flex;
    }

    .compare_text {
        font-size: 11px !important;
    }

    .compare_note {
        font-size: 10px;
    }

    .check_icon {
        font-size: 13px;
    }

    .pricing_compare {
        padding: 0 12px 60px;
    }
}
