/* CLASS 원페이지 랜딩 — shop/main.php?cat=class (shop/class_main/) */

section.cat_main_layout.index .cl_main {
    --cl-accent: #2a8fd4;
    --cl-accent-dark: #1e6fa8;
    --cl-orange: #f58220;
    --cl-bg: #f4f8fb;
    --cl-bg-soft: #eef4f9;
    --cl-border: #dce6ef;
    --cl-text: #1a2b3c;
    --cl-muted: #6b7c8f;
    --cl-radius: 16px;
    --cl-radius-sm: 10px;
    --cl-inner-pad: clamp(16px, 4vw, 50px);
    font-family: 'font-R', sans-serif;
    color: var(--cl-text);
    width: 100%;
    padding-bottom: 24px;
}

.cl_inner {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--cl-inner-pad);
    box-sizing: border-box;
}

.cl_sec {
    padding: 36px 0;
}

.cl_sec_title {
    font-size: clamp(22px, 2.4vw, 30px);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
    text-align: center;
}

.cl_sec_sub {
    margin: 0 0 24px;
    color: var(--cl-muted);
    font-size: 15px;
    text-align: center;
}

.cl_tab_list {
    justify-content: center;
}

.cl_subtab_list {
    justify-content: center;
}

/* ── Hero ───────────────────────────────────── */
.cl_hero {
    padding-top: 20px;
    padding-bottom: 32px;
    background: linear-gradient(180deg, #fff 0%, var(--cl-bg) 100%);
}

.cl_hero_grid {
    display: grid;
    grid-template-columns: 320px minmax(280px, 520px);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding-left: clamp(0px, 4vw, 48px);
    box-sizing: border-box;
}

.cl_hero_body {
    text-align: left;
    min-width: 0;
    padding-right: 0;
}

.cl_hero_cover {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cl_hero_cover_img {
    display: block;
    width: 320px;
    max-width: 100%;
    height: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.cl_badge {
    display: inline-block;
    margin: 0 0 16px;
    padding: 10px 22px;
    border-radius: 999px;
    background: var(--cl-bg-soft);
    color: var(--cl-accent-dark);
    font-size: clamp(15px, 1.4vw, 18px);
}

.cl_hero_title {
    margin: 0 0 14px;
    font-size: clamp(26px, 2.8vw, 40px);
    line-height: 1.28;
    letter-spacing: -0.03em;
    word-break: keep-all;
}

.cl_hero_title_line {
    display: inline-block;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .cl_hero_title_line {
        white-space: normal;
    }
}

.cl_hero_tag {
    margin: 0 0 24px;
    color: var(--cl-muted);
    font-size: clamp(17px, 1.8vw, 21px);
    line-height: 1.5;
}

.cl_price_box {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: 8px 12px;
    margin-bottom: 24px;
}

.cl_price_now {
    font-size: clamp(26px, 3vw, 34px);
    color: var(--cl-orange);
}

.cl_price_was {
    font-size: 16px;
    color: var(--cl-muted);
    text-decoration: line-through;
}

.cl_price_off {
    font-size: 14px;
    color: #fff;
    background: var(--cl-orange);
    padding: 3px 8px;
    border-radius: 6px;
}

.cl_hero_cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.cl_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: var(--cl-radius-sm);
    font-size: 15px;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    box-sizing: border-box;
}

.cl_btn--primary {
    background: var(--cl-orange);
    color: #fff;
    border-color: var(--cl-orange);
}

.cl_btn--primary:hover {
    background: #e07010;
    border-color: #e07010;
    color: #fff;
}

.cl_btn--ghost {
    background: #fff;
    color: var(--cl-accent-dark);
    border-color: var(--cl-border);
}

.cl_btn--ghost:hover {
    border-color: var(--cl-accent);
    color: var(--cl-accent);
}

.cl_btn--sm {
    min-height: 42px;
    padding: 0 18px;
    font-size: 14px;
}

/* ── Preview ────────────────────────────────── */
.cl_preview {
    background: var(--cl-bg);
}

.cl_video_wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: var(--cl-radius);
    overflow: hidden;
    background: #000;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.cl_video_wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ── Stats ──────────────────────────────────── */
.cl_stat_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cl_stat_card {
    background: #fff;
    border: 1px solid var(--cl-border);
    border-radius: var(--cl-radius);
    padding: 20px 16px;
    text-align: center;
}

.cl_stat_num {
    margin: 0 0 6px;
    color: var(--cl-accent);
}

.cl_stat_val {
    font-size: clamp(28px, 3vw, 36px);
    line-height: 1;
}

.cl_stat_unit {
    font-size: 14px;
    margin-left: 2px;
}

.cl_stat_label {
    margin: 0 0 4px;
    font-size: 14px;
}

.cl_stat_desc {
    margin: 0;
    font-size: 12px;
    color: var(--cl-muted);
    line-height: 1.4;
}

/* ── Features ───────────────────────────────── */
.cl_features {
    background: #fff;
}

.cl_feat_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 851px) {
    .cl_feat_grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cl_feat_card {
    border: 1px solid var(--cl-border);
    border-radius: var(--cl-radius);
    padding: 24px 18px;
    background: var(--cl-bg);
    text-align: center;
}

.cl_feat_ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--cl-orange);
    color: #fff;
    font-size: 14px;
    margin-bottom: 12px;
}

.cl_feat_title {
    margin: 0 0 8px;
    font-size: clamp(17px, 1.6vw, 20px);
    font-weight: 700;
    color: var(--cl-text);
    line-height: 1.35;
}

.cl_feat_desc {
    margin: 0;
    color: var(--cl-text);
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 500;
    line-height: 1.55;
    opacity: 0.85;
}

/* ── Authors ────────────────────────────────── */
.cl_authors {
    background: var(--cl-bg);
}

.cl_author_list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 851px) {
    .cl_author_list {
        grid-template-columns: repeat(3, 1fr);
        align-items: stretch;
    }
}

.cl_author_card {
    background: #fff;
    border: 1px solid var(--cl-border);
    border-radius: var(--cl-radius);
    padding: clamp(20px, 2.5vw, 28px);
    height: 100%;
    box-sizing: border-box;
}

.cl_author_name {
    margin: 0 0 14px;
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.45;
    letter-spacing: -0.02em;
}

.cl_author_field {
    display: block;
    color: var(--cl-accent-dark);
    font-size: 0.88em;
    margin-bottom: 4px;
}

.cl_author_person {
    display: block;
    color: #000;
    font-size: 1.05em;
}

.cl_author_creds {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--cl-text);
    line-height: 1.65;
}

.cl_author_creds li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 6px;
}

.cl_author_creds li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cl-accent-dark);
}

.cl_author_creds li:last-child {
    margin-bottom: 0;
}

.cl_author_bio {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--cl-muted);
    line-height: 1.65;
}

.cl_author_bio:last-child {
    margin-bottom: 0;
}

/* ── Content tabs ───────────────────────────── */
.cl_content {
    background: #fff;
}

.cl_tab_list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.cl_tab {
    appearance: none;
    border: 1px solid var(--cl-border);
    background: var(--cl-bg);
    color: var(--cl-muted);
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 14px;
}

.cl_tab.is-active {
    background: var(--cl-accent);
    border-color: var(--cl-accent);
    color: #fff;
}

.cl_panel {
    display: none;
}

.cl_panel.is-active {
    display: block;
}

.cl_panel_media {
    width: 100%;
    margin: 0;
    text-align: center;
    line-height: 0;
}

.cl_panel_img {
    display: inline-block;
    width: auto;
    max-width: 100%;
    height: auto;
    vertical-align: top;
}

.cl_acc {
    border: 1px solid var(--cl-border);
    border-radius: var(--cl-radius);
    overflow: hidden;
}

.cl_acc_item + .cl_acc_item {
    border-top: 1px solid var(--cl-border);
}

.cl_acc_btn {
    width: 100%;
    text-align: left;
    appearance: none;
    border: 0;
    background: #fff;
    padding: 16px 18px;
    cursor: pointer;
    font-size: 15px;
    position: relative;
}

.cl_acc_btn::after {
    content: '+';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cl-accent);
    font-size: 18px;
}

.cl_acc_item.is-open .cl_acc_btn::after {
    content: '−';
}

.cl_acc_body {
    display: none;
    padding: 0 18px 16px;
}

.cl_acc_item.is-open .cl_acc_body {
    display: block;
}

.cl_acc_list {
    margin: 0;
    padding-left: 18px;
    color: var(--cl-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* ── Usage guide ────────────────────────────── */
.cl_usage {
    background: #fff;
}

.cl_usage .cl_sec_title {
    color: var(--cl-orange);
}

.cl_usage_intro {
    max-width: 960px;
    margin: 0 auto 24px;
    font-size: 15px;
    color: var(--cl-muted);
    line-height: 1.75;
    text-align: center;
}

.cl_usage_acc {
    max-width: 1060px;
    margin: 0 auto;
}

.cl_usage_para {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--cl-muted);
    line-height: 1.75;
}

.cl_usage_para:last-child {
    margin-bottom: 0;
}

/* ── Purchase ───────────────────────────────── */
.cl_purchase_box {
    background: linear-gradient(135deg, var(--cl-bg-soft) 0%, #fff 100%);
    border: 1px solid var(--cl-border);
    border-radius: var(--cl-radius);
    padding: clamp(24px, 4vw, 40px);
    text-align: center;
}

.cl_purchase_notes {
    margin: 0 auto 20px;
    padding: 0;
    list-style: none;
    line-height: 1.8;
    color: var(--cl-muted);
    font-size: 15px;
    max-width: 520px;
}

.cl_purchase_my {
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
}

.cl_btn--myclass {
    background: #fff;
    color: var(--cl-accent-dark);
    border-color: var(--cl-accent);
    min-width: 200px;
    gap: 8px;
}

.cl_btn--myclass:hover {
    background: var(--cl-bg-soft);
    border-color: var(--cl-accent-dark);
    color: var(--cl-accent-dark);
}

.cl_btn_ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.cl_btn_ico svg {
    display: block;
    width: 100%;
    height: 100%;
}

.cl_btn_txt {
    line-height: 1;
}

.cl_purchase_cta {
    margin-top: 8px;
    justify-content: center;
}

/* ── Sticky CTA (mobile) ────────────────────── */
.cl_sticky {
    display: none;
}

@media (max-width: 850px) {
    .cl_hero .cl_inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cl_hero_grid {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding-left: 0;
        box-sizing: border-box;
    }

    .cl_hero_cover {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 0;
        box-sizing: border-box;
    }

    .cl_hero_cover_img {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .cl_hero_body {
        text-align: center;
        width: 100%;
        padding: 0 4px;
        box-sizing: border-box;
    }

    .cl_price_box,
    .cl_hero_cta {
        justify-content: center;
    }

    .cl_hero_cta .cl_btn {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 160px;
    }

    .cl_stat_grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cl_feat_grid {
        grid-template-columns: 1fr;
    }

    .cl_sticky {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        transform: translateY(110%);
        transition: transform 0.25s ease;
        pointer-events: none;
    }

    .cl_sticky.is-visible {
        transform: translateY(0);
        pointer-events: auto;
    }

    .cl_sticky_inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 16px;
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid var(--cl-border);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        backdrop-filter: blur(8px);
    }

    .cl_sticky_price {
        margin: 0;
        font-size: 18px;
        color: var(--cl-orange);
    }

    .cl_main {
        padding-bottom: 72px;
    }
}

@media (max-width: 520px) {
    .cl_stat_grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 851px) and (max-width: 1100px) {
    .cl_stat_grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cl_feat_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
