@charset "utf-8";

/* ============================================
   텔레그램 수집 가능한 사용자명 가이드
   접두사: tg-cun- (기존 사이트 오염 방지)
   컬러 톤: 틸(Teal) + 에메랄드(Emerald)
============================================ */

:root {
    --tgcu-teal: #0d9488;
    --tgcu-teal-dark: #0f766e;
    --tgcu-teal-deep: #134e4a;
    --tgcu-teal-light: #f0fdfa;
    --tgcu-teal-border: #5eead4;
    --tgcu-emerald: #059669;
    --tgcu-emerald-light: #ecfdf5;
    --tgcu-amber: #d97706;
    --tgcu-amber-light: #fffbeb;
    --tgcu-amber-border: #fde68a;
    --tgcu-blue: #2563eb;
    --tgcu-rose: #e11d48;
    --tgcu-slate-900: #0f172a;
    --tgcu-slate-700: #334155;
    --tgcu-slate-500: #64748b;
    --tgcu-slate-300: #cbd5e1;
    --tgcu-slate-200: #e2e8f0;
    --tgcu-slate-100: #f1f5f9;
    --tgcu-bg: #f0fdf9;
    --tgcu-white: #ffffff;
    --tgcu-radius: 14px;
}

/* ─── 래퍼 ─── */
.tg-cun-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    color: var(--tgcu-slate-500);
    background-color: var(--tgcu-bg);
    box-sizing: border-box;
    line-height: 1.7;
    overflow: hidden;
    padding-bottom: 60px;
}

.tg-cun-wrapper *,
.tg-cun-wrapper *::before,
.tg-cun-wrapper *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

.tg-cun-wrapper strong {
    font-weight: 700;
    color: var(--tgcu-slate-900);
}

.tg-cun-wrapper mark {
    background: linear-gradient(120deg, var(--tgcu-teal-light) 0%, #ccfbf1 100%);
    color: var(--tgcu-teal-deep);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

/* ─── 히어로 헤더 ─── */
.tg-cun-hero {
    background: linear-gradient(145deg, #020617 0%, #134e4a 30%, #0d9488 70%, #2dd4bf 100%);
    color: var(--tgcu-white);
    padding: 60px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tg-cun-hero::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border: 60px solid rgba(13, 148, 136, 0.06);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.tg-cun-hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border: 40px solid rgba(94, 234, 212, 0.04);
    border-radius: 50%;
    bottom: -60px;
    left: -50px;
}

.tg-cun-hero__inner {
    position: relative;
    z-index: 1;
}

.tg-cun-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(13, 148, 136, 0.15);
    color: var(--tgcu-teal-border);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 22px;
    border: 1px solid rgba(94, 234, 212, 0.15);
    backdrop-filter: blur(4px);
}

.tg-cun-hero__badge i {
    font-size: 16px;
}

.tg-cun-hero__title {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 18px;
    color: var(--tgcu-white);
}

.tg-cun-hero__desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 620px;
    margin: 0 auto;
}

/* ─── 메인 ─── */
.tg-cun-main {
    padding: 30px 20px 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ─── 도입부 ─── */
.tg-cun-intro {
    background-color: var(--tgcu-white);
    padding: 28px 24px;
    border-radius: var(--tgcu-radius);
    border-left: 4px solid var(--tgcu-teal);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.tg-cun-intro p {
    font-size: 16px;
    margin-bottom: 14px;
}

.tg-cun-intro p:last-child {
    margin-bottom: 0;
}

/* ─── 섹션 공통 ─── */
.tg-cun-section {
    background-color: var(--tgcu-white);
    padding: 34px 24px;
    border-radius: var(--tgcu-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--tgcu-slate-200);
}

.tg-cun-section--accent {
    background: linear-gradient(135deg, var(--tgcu-amber-light) 0%, #fef3c7 100%);
    border-color: var(--tgcu-amber-border);
}

.tg-cun-section__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.tg-cun-section__num {
    font-size: 38px;
    font-weight: 900;
    color: var(--tgcu-teal);
    opacity: 0.2;
    line-height: 1;
    flex-shrink: 0;
}

.tg-cun-section__tip-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--tgcu-amber) 0%, #fbbf24 100%);
    color: var(--tgcu-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.tg-cun-section__title {
    font-size: 20px;
    font-weight: 800;
    color: var(--tgcu-slate-900);
    line-height: 1.35;
    padding-top: 6px;
}

.tg-cun-section__desc {
    font-size: 16px;
    margin-bottom: 24px;
}

/* ─── 하이라이트 박스 ─── */
.tg-cun-highlight-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--tgcu-teal-light) 0%, #ccfbf1 100%);
    border: 1px solid var(--tgcu-teal-border);
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.tg-cun-highlight-box__icon {
    font-size: 22px;
    color: var(--tgcu-teal);
    flex-shrink: 0;
}

.tg-cun-highlight-box p {
    font-size: 15px;
    color: var(--tgcu-teal-deep);
}

/* ─── 기능 리스트 ─── */
.tg-cun-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.tg-cun-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background-color: var(--tgcu-slate-100);
    border-radius: 10px;
    border: 1px solid var(--tgcu-slate-200);
}

.tg-cun-feature__icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--tgcu-teal) 0%, var(--tgcu-emerald) 100%);
    color: var(--tgcu-white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.tg-cun-feature__body strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.tg-cun-feature__body span {
    font-size: 13px;
}

/* ─── 꿀팁 ─── */
.tg-cun-tips {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.tg-cun-tip {
    background-color: var(--tgcu-white);
    padding: 22px;
    border-radius: 10px;
    border: 1px solid var(--tgcu-amber-border);
    position: relative;
}

.tg-cun-tip__number {
    position: absolute;
    top: -10px;
    left: 18px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--tgcu-amber) 0%, #fbbf24 100%);
    color: var(--tgcu-white);
    font-weight: 900;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.tg-cun-tip__title {
    font-size: 16px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 8px;
    padding-top: 6px;
}

.tg-cun-tip__title i {
    color: var(--tgcu-amber);
    margin-right: 4px;
}

.tg-cun-tip__text {
    font-size: 14px;
    color: #a16207;
    margin-bottom: 12px;
}

/* ID 비주얼 뱃지 */
.tg-cun-id-visual {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tg-cun-id-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
}

.tg-cun-id-badge i {
    font-size: 16px;
}

.tg-cun-id-badge span {
    font-family: 'Consolas', 'Courier New', monospace;
    font-weight: 800;
}

.tg-cun-id-badge em {
    font-style: normal;
    font-size: 11px;
    font-weight: 600;
    opacity: 0.7;
}

.tg-cun-id-badge--work {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #93c5fd;
}

.tg-cun-id-badge--work i {
    color: var(--tgcu-blue);
}

.tg-cun-id-badge--personal {
    background-color: #fff1f2;
    color: #e11d48;
    border: 1px solid #fda4af;
}

.tg-cun-id-badge--personal i {
    color: var(--tgcu-rose);
}

/* ─── 스텝 리스트 ─── */
.tg-cun-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tg-cun-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background-color: var(--tgcu-slate-100);
    padding: 16px 18px;
    border-radius: 10px;
    border-left: 3px solid var(--tgcu-teal-border);
    transition: border-left-color 0.2s ease;
}

.tg-cun-step:hover {
    border-left-color: var(--tgcu-teal);
}

.tg-cun-step--highlight {
    background: linear-gradient(135deg, var(--tgcu-teal-light) 0%, #ccfbf140 100%);
    border-left-color: var(--tgcu-teal);
}

.tg-cun-step__marker {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--tgcu-teal) 0%, var(--tgcu-teal-dark) 100%);
    color: var(--tgcu-white);
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-top: 1px;
}

.tg-cun-step__marker--highlight {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.tg-cun-step__text {
    font-size: 15px;
    padding-top: 3px;
}

.tg-cun-step__text p {
    margin-bottom: 10px;
}

.tg-cun-step__sub {
    font-size: 13px;
    color: var(--tgcu-slate-500);
    margin-top: 6px;
}

/* 드래그 비주얼 */
.tg-cun-drag-visual {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.tg-cun-drag-visual__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: var(--tgcu-white);
    border: 1px solid var(--tgcu-slate-200);
    border-radius: 6px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--tgcu-slate-700);
}

.tg-cun-drag-visual__item i:first-child {
    color: var(--tgcu-slate-300);
    font-size: 12px;
}

.tg-cun-drag-visual__item--dragging {
    background-color: var(--tgcu-teal-light);
    border-color: var(--tgcu-teal-border);
    color: var(--tgcu-teal-deep);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.15);
}

.tg-cun-drag-visual__arrow {
    margin-left: auto;
    color: var(--tgcu-teal);
    font-size: 14px;
    animation: tg-cun-bounce 1s ease-in-out infinite;
}

@keyframes tg-cun-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* 상태 뱃지 */
.tg-cun-status-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0;
}

.tg-cun-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 100px;
}

.tg-cun-status-badge--active {
    color: var(--tgcu-emerald);
    background-color: var(--tgcu-emerald-light);
    border: 1px solid #86efac;
}

.tg-cun-status-badge--inactive {
    color: var(--tgcu-slate-500);
    background-color: var(--tgcu-slate-100);
    border: 1px solid var(--tgcu-slate-300);
}

/* 노트 인라인 */
.tg-cun-note-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--tgcu-teal-deep);
    background-color: var(--tgcu-teal-light);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #99f6e4;
    margin-top: 16px;
}

.tg-cun-note-inline i {
    color: var(--tgcu-teal);
    font-size: 18px;
    flex-shrink: 0;
}

/* ─── 결론 및 요약 ─── */
.tg-cun-summary {
    background: linear-gradient(135deg, #020617 0%, var(--tgcu-teal-deep) 50%, var(--tgcu-teal-dark) 100%);
    color: var(--tgcu-white);
    padding: 44px 28px;
    border-radius: var(--tgcu-radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(19, 78, 74, 0.4);
}

.tg-cun-summary__title {
    font-size: 24px;
    font-weight: 800;
    color: var(--tgcu-white);
    margin-bottom: 20px;
}

.tg-cun-summary__body p {
    font-size: 16px;
    margin-bottom: 14px;
    color: var(--tgcu-teal-border);
}

.tg-cun-summary__body p:last-child {
    margin-bottom: 0;
}

.tg-cun-summary strong {
    color: var(--tgcu-white);
}

/* 체크리스트 */
.tg-cun-summary__checklist {
    list-style: none;
    display: inline-block;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.06);
    padding: 24px 32px;
    border-radius: 12px;
    margin: 24px 0;
}

.tg-cun-summary__checklist li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 15px;
    color: #ccfbf1;
}

.tg-cun-summary__checklist li:last-child {
    margin-bottom: 0;
}

.tg-cun-summary__checklist li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 13px;
    color: var(--tgcu-teal-border);
}

.tg-cun-summary__checklist strong {
    color: var(--tgcu-white);
}

.tg-cun-summary__footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
    color: var(--tgcu-teal-border);
    line-height: 1.8;
}

.tg-cun-summary__footer strong {
    color: var(--tgcu-white);
}

/* ============================================
   반응형 미디어 쿼리 (모바일 퍼스트)
============================================ */
@media (min-width: 768px) {
    .tg-cun-hero {
        padding: 80px 40px;
    }

    .tg-cun-hero__title {
        font-size: 38px;
    }

    .tg-cun-main {
        padding: 40px 36px 0;
        gap: 40px;
    }

    .tg-cun-intro {
        padding: 36px 32px;
    }

    .tg-cun-section {
        padding: 40px 36px;
    }

    .tg-cun-section__title {
        font-size: 24px;
    }

    .tg-cun-section__num {
        font-size: 44px;
    }

    /* 기능 2열 */
    .tg-cun-features {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 꿀팁 2열 */
    .tg-cun-tips {
        grid-template-columns: repeat(2, 1fr);
    }

    .tg-cun-summary {
        padding: 56px 44px;
    }
}

@media (min-width: 1024px) {
    .tg-cun-hero__title {
        font-size: 44px;
    }

    .tg-cun-main {
        gap: 46px;
    }
}

/* ============================================
   스크롤 등장 애니메이션 (JS 연동)
============================================ */
.tg-cun-motion {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.tg-cun-motion.is-visible {
    opacity: 1;
    transform: translateY(0);
}