@charset "utf-8";

/* ============================================
   텔레그램 전화번호 변경 가이드
   접두사: tg-chn- (기존 사이트 오염 방지)
   컬러 톤: 사이언(Cyan) + 스틸 블루(Steel Blue)
============================================ */

:root {
    --tgch-cyan: #0891b2;
    --tgch-cyan-dark: #0e7490;
    --tgch-cyan-deep: #164e63;
    --tgch-cyan-light: #ecfeff;
    --tgch-cyan-border: #67e8f9;
    --tgch-sky: #0284c7;
    --tgch-amber: #d97706;
    --tgch-amber-light: #fffbeb;
    --tgch-amber-border: #fde68a;
    --tgch-green: #059669;
    --tgch-green-light: #ecfdf5;
    --tgch-slate-900: #0f172a;
    --tgch-slate-700: #334155;
    --tgch-slate-500: #64748b;
    --tgch-slate-300: #cbd5e1;
    --tgch-slate-200: #e2e8f0;
    --tgch-slate-100: #f1f5f9;
    --tgch-bg: #f0fafe;
    --tgch-white: #ffffff;
    --tgch-radius: 14px;
}

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

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

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

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

/* ─── 히어로 헤더 ─── */
.tg-chn-hero {
    background: linear-gradient(145deg, #020617 0%, #164e63 30%, #0891b2 70%, #22d3ee 100%);
    color: var(--tgch-white);
    padding: 60px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tg-chn-hero::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border: 60px solid rgba(8, 145, 178, 0.06);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.tg-chn-hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border: 40px solid rgba(103, 232, 249, 0.04);
    border-radius: 50%;
    bottom: -60px;
    left: -50px;
}

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

.tg-chn-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(8, 145, 178, 0.15);
    color: var(--tgch-cyan-border);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 22px;
    border: 1px solid rgba(103, 232, 249, 0.15);
    backdrop-filter: blur(4px);
}

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

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

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

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

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

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

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

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

.tg-chn-section--dark {
    background: linear-gradient(135deg, var(--tgch-slate-900) 0%, #1e293b 100%);
    border-color: var(--tgch-slate-700);
    color: var(--tgch-slate-300);
}

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

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

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

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

.tg-chn-section__title--light {
    color: var(--tgch-white);
}

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

/* ─── 체크리스트 ─── */
.tg-chn-checklist {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.tg-chn-checklist__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background-color: var(--tgch-cyan-light);
    border-radius: 10px;
    border: 1px solid #a5f3fc;
}

.tg-chn-checklist__icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--tgch-cyan) 0%, var(--tgch-cyan-dark) 100%);
    color: var(--tgch-white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

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

.tg-chn-checklist__body span {
    font-size: 13px;
}

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

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

.tg-chn-step:hover {
    border-left-color: var(--tgch-cyan);
}

.tg-chn-step--highlight {
    background: linear-gradient(135deg, var(--tgch-cyan-light) 0%, #cffafe40 100%);
    border-left-color: var(--tgch-cyan);
}

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

.tg-chn-step__marker--highlight {
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}

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

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

.tg-chn-step__sub {
    font-size: 13px;
    color: var(--tgch-slate-500);
    margin-top: 2px;
}

/* 전화번호 입력 비주얼 */
.tg-chn-phone-visual {
    display: inline-flex;
    align-items: center;
    background-color: var(--tgch-white);
    padding: 8px 14px;
    border-radius: 8px;
    border: 2px solid var(--tgch-cyan-border);
    gap: 8px;
}

.tg-chn-phone-visual__country {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 700;
    color: var(--tgch-cyan-dark);
    padding-right: 8px;
    border-right: 1px solid var(--tgch-slate-200);
}

.tg-chn-phone-visual__country i {
    font-size: 12px;
}

.tg-chn-phone-visual__number {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--tgch-slate-700);
    letter-spacing: 1px;
}

.tg-chn-phone-visual__check {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--tgch-cyan) 0%, var(--tgch-cyan-dark) 100%);
    color: var(--tgch-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

/* 인증 코드 비주얼 */
.tg-chn-code-visual {
    display: inline-flex;
    gap: 6px;
    margin-top: 6px;
}

.tg-chn-code-visual__digit {
    width: 36px;
    height: 44px;
    background-color: var(--tgch-white);
    border: 2px solid var(--tgch-cyan-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 20px;
    font-weight: 800;
    color: var(--tgch-cyan-dark);
}

/* 마이그레이션 비주얼 */
.tg-chn-migrate-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding: 22px 16px;
    background: linear-gradient(135deg, var(--tgch-cyan-light) 0%, #cffafe 100%);
    border: 1px solid var(--tgch-cyan-border);
    border-radius: 12px;
}

.tg-chn-migrate-visual__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background-color: var(--tgch-white);
    border: 1px solid var(--tgch-slate-200);
    border-radius: 10px;
    text-align: center;
}

.tg-chn-migrate-visual__item i {
    font-size: 20px;
    color: var(--tgch-slate-500);
}

.tg-chn-migrate-visual__item span {
    font-size: 11px;
    font-weight: 700;
    color: var(--tgch-slate-500);
}

.tg-chn-migrate-visual__item--new {
    border-color: var(--tgch-cyan-border);
    background: linear-gradient(135deg, var(--tgch-cyan-light) 0%, #cffafe 100%);
}

.tg-chn-migrate-visual__item--new i {
    color: var(--tgch-cyan);
}

.tg-chn-migrate-visual__item--new span {
    color: var(--tgch-cyan-dark);
}

.tg-chn-migrate-visual__data {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--tgch-green-light) 0%, #d1fae5 100%);
    border: 1px solid #86efac;
    border-radius: 10px;
}

.tg-chn-migrate-visual__data i {
    font-size: 20px;
    color: var(--tgch-green);
}

.tg-chn-migrate-visual__data span {
    font-size: 11px;
    font-weight: 700;
    color: var(--tgch-green);
    text-align: center;
    line-height: 1.4;
}

.tg-chn-migrate-visual__arrow {
    color: var(--tgch-cyan-border);
    font-size: 14px;
}

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

.tg-chn-tip {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(103, 232, 249, 0.12);
    padding: 22px;
    border-radius: 10px;
    position: relative;
}

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

.tg-chn-tip__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--tgch-white);
    margin-bottom: 8px;
    padding-top: 6px;
}

.tg-chn-tip__title i {
    color: var(--tgch-cyan-border);
    margin-right: 4px;
}

.tg-chn-tip__text {
    font-size: 14px;
    color: var(--tgch-slate-300);
}

.tg-chn-tip__text strong {
    color: var(--tgch-white);
}

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

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

.tg-chn-summary__body p {
    font-size: 16px;
    margin-bottom: 14px;
    color: var(--tgch-cyan-border);
}

.tg-chn-summary strong {
    color: var(--tgch-white);
}

/* 플로우 요약 */
.tg-chn-summary__flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 24px 0;
}

.tg-chn-summary__flow-item {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(103, 232, 249, 0.15);
    border-radius: 100px;
    color: var(--tgch-cyan-border);
}

.tg-chn-summary__flow-item--end {
    background: linear-gradient(135deg, var(--tgch-cyan) 0%, var(--tgch-cyan-dark) 100%);
    border-color: var(--tgch-cyan);
    color: var(--tgch-white);
}

.tg-chn-summary__flow-arrow {
    font-size: 10px;
    color: rgba(103, 232, 249, 0.4);
}

/* 체크리스트 */
.tg-chn-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: 0 0 24px;
}

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

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

.tg-chn-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(--tgch-cyan-border);
}

.tg-chn-summary__checklist strong {
    color: var(--tgch-white);
}

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

.tg-chn-summary__footer strong {
    color: var(--tgch-white);
}

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

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

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

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

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

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

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

    /* 체크리스트 3열 */
    .tg-chn-checklist {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

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

/* ============================================
   스크롤 등장 애니메이션 (JS 연동)
============================================ */
.tg-chn-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-chn-motion.is-visible {
    opacity: 1;
    transform: translateY(0);
}