/* ══════════════════════════════════════════════════════════════
   WLP Blocks — 위링커 상품 페이지 블록 디자인 시스템
   Usage: <div class="wlp-hook"> ... </div>
   2026-03-24
   ══════════════════════════════════════════════════════════════ */

/* ── 공통 블록 래퍼 ──────────────────────────────────────────── */
[class^="wlp-"] {
    box-sizing: border-box;
}

/* ── Hook: 상단 한 줄 훅 ─────────────────────────────────────── */
.wlp-hook {
    font-size: clamp(1.4rem, 3.5vw, 1.9rem);
    font-weight: 800;
    line-height: 1.5;
    color: var(--black, #111827);
    letter-spacing: -0.03em;
    padding: 48px 0 32px;
    text-align: center;
}

/* ── Story: 내러티브 블록 ────────────────────────────────────── */
.wlp-story {
    max-width: 680px;
    margin: 0 auto;
    padding: 24px 0 32px;
    font-size: 16px;
    line-height: 1.9;
    color: #1e293b;
}
.wlp-story p {
    margin-bottom: 1.2rem;
}

/* ── Pain: 문제/고통 블록 ────────────────────────────────────── */
.wlp-pain {
    max-width: 680px;
    margin: 0 auto;
    padding: 32px;
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    margin-bottom: 32px;
}
.wlp-pain h3 {
    color: #dc2626;
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 12px;
}
.wlp-pain ul {
    margin: 0;
    padding-left: 1.2rem;
    color: #7f1d1d;
    line-height: 1.8;
}
.wlp-pain li {
    margin-bottom: 6px;
}

/* ── Curriculum: 커리큘럼 블록 ───────────────────────────────── */
.wlp-curriculum {
    max-width: 680px;
    margin: 0 auto 32px;
    padding: 32px 0;
}
.wlp-curriculum h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--black, #111827);
    margin: 0 0 20px;
}
.wlp-curriculum ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.wlp-curriculum li {
    position: relative;
    padding: 14px 16px 14px 44px;
    margin-bottom: 8px;
    background: var(--gray, #f8f9fb);
    border: 1px solid var(--border, #eee);
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.5;
}
.wlp-curriculum li::before {
    content: attr(data-num);
    position: absolute;
    left: 14px;
    top: 14px;
    font-size: 13px;
    font-weight: 800;
    color: var(--orange, #FD7014);
}

/* ── Instructor: 강사 소개 ───────────────────────────────────── */
.wlp-instructor {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    max-width: 680px;
    margin: 0 auto 32px;
    padding: 32px;
    background: var(--gray, #f8f9fb);
    border: 1px solid var(--border, #eee);
}
.wlp-instructor img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}
.wlp-instructor-info h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--black, #111827);
    margin: 0 0 8px;
}
.wlp-instructor-info p {
    font-size: 14px;
    color: var(--muted, #475569);
    line-height: 1.7;
    margin: 0;
}

/* ── Instructor Dark: 어두운 배경 버전 ───────────────────────── */
.wlp-instructor-dark {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    max-width: 680px;
    margin: 0 auto 32px;
    padding: 32px;
    background: var(--black, #111827);
}
.wlp-instructor-dark img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}
.wlp-instructor-dark .wlp-instructor-info h4 {
    color: #fff;
}
.wlp-instructor-dark .wlp-instructor-info p {
    color: rgba(255,255,255,0.7);
}

/* ── Before/After 비교 블록 ──────────────────────────────────── */
.wlp-before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 680px;
    margin: 0 auto 32px;
}
.wlp-before {
    padding: 24px;
    background: #fef2f2;
    border-top: 3px solid #ef4444;
}
.wlp-before h4 {
    color: #dc2626;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0 0 12px;
}
.wlp-after {
    padding: 24px;
    background: #f0fdf4;
    border-top: 3px solid #22c55e;
}
.wlp-after h4 {
    color: #16a34a;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0 0 12px;
}
.wlp-before ul, .wlp-after ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
}
.wlp-before li::before { content: "\2717 "; color: #ef4444; font-weight: 700; }
.wlp-after li::before { content: "\2713 "; color: #22c55e; font-weight: 700; }

/* ── Stats: 숫자 통계 블록 ───────────────────────────────────── */
.wlp-stats {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 680px;
    margin: 0 auto 32px;
    padding: 32px 0;
}
.wlp-stat-card {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
    text-align: center;
    padding: 24px 16px;
    background: var(--gray, #f8f9fb);
    border: 1px solid var(--border, #eee);
}
.wlp-stat-num {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    color: var(--orange, #FD7014);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}
.wlp-stat-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted, #475569);
}

/* ── Preview: 미리보기 블록 ──────────────────────────────────── */
.wlp-preview {
    max-width: 680px;
    margin: 0 auto 32px;
    padding: 24px;
    border: 2px dashed var(--border, #eee);
    background: #fffbeb;
    text-align: center;
}
.wlp-preview img {
    max-width: 100%;
    height: auto;
    margin-bottom: 12px;
}
.wlp-preview p {
    font-size: 14px;
    color: var(--muted, #475569);
    margin: 0;
}

/* ── Guarantee: 보증 블록 ────────────────────────────────────── */
.wlp-guarantee {
    max-width: 680px;
    margin: 0 auto 32px;
    padding: 24px 32px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.wlp-guarantee::before {
    content: "\1F6E1";
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}
.wlp-guarantee-content h4 {
    font-size: 15px;
    font-weight: 800;
    color: #15803d;
    margin: 0 0 6px;
}
.wlp-guarantee-content p {
    font-size: 14px;
    color: #166534;
    line-height: 1.7;
    margin: 0;
}

/* ── FAQ 블록 ────────────────────────────────────────────────── */
.wlp-faq {
    max-width: 680px;
    margin: 0 auto 32px;
}
.wlp-faq h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--black, #111827);
    margin: 0 0 16px;
}
.wlp-faq-item {
    border-bottom: 1px solid var(--border, #eee);
    padding: 18px 0;
}
.wlp-faq-item:last-child {
    border-bottom: none;
}
.wlp-faq-q {
    font-size: 15px;
    font-weight: 700;
    color: var(--black, #111827);
    margin: 0 0 8px;
}
.wlp-faq-q::before {
    content: "Q. ";
    color: var(--orange, #FD7014);
    font-weight: 800;
}
.wlp-faq-a {
    font-size: 14px;
    color: var(--muted, #475569);
    line-height: 1.8;
    padding-left: 26px;
    margin: 0;
}

/* ── CTA Box: 행동 유도 블록 ─────────────────────────────────── */
.wlp-cta-box {
    max-width: 680px;
    margin: 0 auto 32px;
    padding: 40px 32px;
    background: var(--black, #111827);
    text-align: center;
}
.wlp-cta-box h3 {
    color: #fff;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 800;
    margin: 0 0 8px;
}
.wlp-cta-box p {
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    margin: 0 0 24px;
    line-height: 1.6;
}
.wlp-cta-btn {
    display: inline-block;
    background: var(--orange, #FD7014);
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 48px;
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: opacity 0.2s;
}
.wlp-cta-btn:hover {
    opacity: 0.9;
    color: #fff !important;
}

/* ── Footnote: 하단 마무리 메시지 ────────────────────────────── */
.wlp-footnote {
    max-width: 680px;
    margin: 0 auto 32px;
    padding: 24px 0;
    font-size: 14px;
    color: var(--muted, #475569);
    line-height: 1.8;
    text-align: center;
    font-style: italic;
}

/* ── Divider: 구분선 ─────────────────────────────────────────── */
hr.wlp-divider {
    border: none;
    border-top: 1px solid var(--border, #eee);
    max-width: 680px;
    margin: 32px auto;
}

/* ── Pricing: 가격 블록 ──────────────────────────────────────── */
.wlp-pricing {
    max-width: 680px;
    margin: 0 auto 32px;
    text-align: center;
}
.wlp-pricing h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--black, #111827);
    margin: 0 0 20px;
}
.wlp-price-card {
    display: inline-block;
    padding: 32px 48px;
    background: var(--gray, #f8f9fb);
    border: 2px solid var(--orange, #FD7014);
}
.wlp-price-card .wlp-price-amount {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 900;
    color: var(--orange, #FD7014);
    letter-spacing: -0.03em;
}
.wlp-price-card .wlp-price-period {
    font-size: 14px;
    color: var(--muted, #475569);
    font-weight: 600;
}
.wlp-price-card .wlp-price-note {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted, #475569);
}

/* ── Timeline: 주차별 진행 블록 ──────────────────────────────── */
.wlp-timeline {
    max-width: 680px;
    margin: 0 auto 32px;
    position: relative;
    padding-left: 32px;
}
.wlp-timeline h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--black, #111827);
    margin: 0 0 24px;
    padding-left: 0;
}
.wlp-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 56px;
    bottom: 16px;
    width: 2px;
    background: var(--border, #eee);
}
.wlp-timeline-item {
    position: relative;
    padding: 0 0 28px 24px;
}
.wlp-timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--orange, #FD7014);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--orange, #FD7014);
}
.wlp-timeline-week {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    color: var(--orange, #FD7014);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.wlp-timeline-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--black, #111827);
    margin-bottom: 6px;
}
.wlp-timeline-desc {
    font-size: 14px;
    color: var(--muted, #475569);
    line-height: 1.7;
    margin: 0;
}

/* ── Compare Table: 비교표 블록 ──────────────────────────────── */
.wlp-compare {
    max-width: 680px;
    margin: 0 auto 32px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.wlp-compare h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--black, #111827);
    margin: 0 0 16px;
}
.wlp-compare table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.wlp-compare th {
    background: var(--black, #111827);
    color: #fff;
    font-weight: 700;
    padding: 12px 16px;
    text-align: left;
    white-space: nowrap;
}
.wlp-compare td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border, #eee);
    color: #1e293b;
    line-height: 1.5;
}
.wlp-compare tr:nth-child(even) td {
    background: var(--gray, #f8f9fb);
}
.wlp-compare .wlp-recommend {
    color: var(--orange, #FD7014);
    font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════
   모바일 반응형
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .wlp-hook {
        font-size: 1.3rem;
        padding: 32px 0 24px;
    }
    .wlp-story,
    .wlp-pain,
    .wlp-curriculum,
    .wlp-instructor,
    .wlp-instructor-dark,
    .wlp-guarantee,
    .wlp-faq,
    .wlp-cta-box,
    .wlp-pricing,
    .wlp-timeline,
    .wlp-compare {
        margin-left: 0;
        margin-right: 0;
    }
    .wlp-before-after {
        grid-template-columns: 1fr;
    }
    .wlp-instructor,
    .wlp-instructor-dark {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .wlp-stats {
        gap: 12px;
    }
    .wlp-stat-card {
        min-width: 120px;
        padding: 16px 12px;
    }
    .wlp-price-card {
        padding: 24px 32px;
    }
    .wlp-cta-btn {
        display: block;
        padding: 16px 24px;
    }
    .wlp-compare table {
        font-size: 12px;
    }
    .wlp-compare th,
    .wlp-compare td {
        padding: 8px 10px;
    }
    .wlp-timeline {
        padding-left: 24px;
    }
}
