@charset "utf-8";

/* ============================================
   텔레그램 프리미엄 가이드 - 직장인 PC버전 편
   접두사: tg-p02- (기존 사이트 오염 방지)
   컬러 톤: 청록(Teal) + 네이비(Navy) 계열
============================================ */

/* ── CSS 변수 (디자인 토큰) ── */
:root {
    /* 주요 컬러: 청록+딥블루 */
    --p02-teal:         #0891b2;
    --p02-teal-dark:    #0e7490;
    --p02-teal-deep:    #164e63;
    --p02-teal-light:   #ecfeff;
    --p02-teal-border:  #67e8f9;
    --p02-teal-mid:     #cffafe;

    /* 액센트: 앰버(Amber) */
    --p02-amber:        #d97706;
    --p02-amber-light:  #fffbeb;
    --p02-amber-border: #fcd34d;

    /* 기기별 색상 */
    --p02-android:      #3ddc84;
    --p02-ios:          #555555;
    --p02-pc:           #0891b2;

    /* 모노 슬레이트 */
    --p02-slate-900:    #0f172a;
    --p02-slate-700:    #334155;
    --p02-slate-500:    #64748b;
    --p02-slate-300:    #cbd5e1;
    --p02-slate-200:    #e2e8f0;
    --p02-slate-100:    #f1f5f9;
    --p02-bg:           #f0f9ff;
    --p02-white:        #ffffff;

    /* 공통 */
    --p02-radius:       14px;
    --p02-shadow:       0 2px 12px rgba(8, 145, 178, 0.08);
}

/* ============================================
   그누보드5 완전 리셋 (CSS 충돌 방지 필수)
============================================ */
#tg-p02-wrapper,
#tg-p02-wrapper *,
#tg-p02-wrapper *::before,
#tg-p02-wrapper *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    text-decoration: none;
    list-style: none;
    background: none;
    font-style: normal;
}

/* h1~h6 리셋 */
#tg-p02-wrapper h1,
#tg-p02-wrapper h2,
#tg-p02-wrapper h3,
#tg-p02-wrapper h4,
#tg-p02-wrapper h5,
#tg-p02-wrapper h6 {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: inherit;
}

/* p 태그 여백 강제 보장 (그누보드5 p{margin:0} 차단) */
#tg-p02-wrapper p {
    margin-bottom: 14px !important;
    line-height: 1.7 !important;
}

#tg-p02-wrapper p:last-child {
    margin-bottom: 0 !important;
}

/* strong 태그 */
#tg-p02-wrapper strong {
    font-weight: 700;
    color: var(--p02-slate-900);
}

/* mark 태그 */
#tg-p02-wrapper mark {
    background: linear-gradient(120deg, var(--p02-teal-mid) 0%, #a5f3fc 100%);
    color: var(--p02-teal-deep);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

/* ============================================
   래퍼 (최상위 컨테이너)
============================================ */
#tg-p02-wrapper.tg-p02-wrapper {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    color: var(--p02-slate-500);
    background-color: var(--p02-bg);
    line-height: 1.7;
    overflow: hidden;
    padding-bottom: 60px;
}

/* ============================================
   히어로 헤더
============================================ */
#tg-p02-wrapper .tg-p02-hero {
    background: linear-gradient(145deg, #0c1a2e 0%, #0e3a5a 30%, #0891b2 70%, #06b6d4 100%);
    color: var(--p02-white);
    padding: 56px 24px 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 장식 원형 - 우상단 */
#tg-p02-wrapper .tg-p02-hero::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border: 70px solid rgba(6, 182, 212, 0.08);
    border-radius: 50%;
    top: -120px;
    right: -120px;
}

/* 장식 원형 - 좌하단 */
#tg-p02-wrapper .tg-p02-hero::after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    border: 50px solid rgba(217, 119, 6, 0.06);
    border-radius: 50%;
    bottom: -70px;
    left: -60px;
}

#tg-p02-wrapper .tg-p02-hero__inner {
    position: relative;
    z-index: 1;
}

#tg-p02-wrapper .tg-p02-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.25) 0%, rgba(245, 158, 11, 0.12) 100%);
    color: var(--p02-amber-border);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 100px;
    margin-bottom: 20px;
    border: 1px solid rgba(252, 211, 77, 0.25);
    backdrop-filter: blur(4px);
}

#tg-p02-wrapper .tg-p02-hero__title {
    font-size: 26px;
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 16px;
    color: var(--p02-white);
}

#tg-p02-wrapper .tg-p02-hero__title--accent {
    color: var(--p02-teal-border);
}

#tg-p02-wrapper .tg-p02-hero__desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    max-width: 560px;
    margin: 0 auto 32px;
}

/* 히어로 플로우 (아이콘 + 화살표) */
#tg-p02-wrapper .tg-p02-hero__flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

#tg-p02-wrapper .tg-p02-hero__flow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px 18px;
    min-width: 80px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

#tg-p02-wrapper .tg-p02-hero__flow-item:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-3px);
}

#tg-p02-wrapper .tg-p02-hero__flow-item i {
    font-size: 22px;
    color: var(--p02-teal-border);
}

#tg-p02-wrapper .tg-p02-hero__flow-arrow {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   메인 레이아웃
============================================ */
#tg-p02-wrapper .tg-p02-main {
    padding: 28px 20px 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ============================================
   도입부 섹션
============================================ */
#tg-p02-wrapper .tg-p02-intro {
    background-color: var(--p02-white);
    padding: 26px 22px;
    border-radius: var(--p02-radius);
    border-left: 4px solid var(--p02-teal);
    box-shadow: var(--p02-shadow);
}

#tg-p02-wrapper .tg-p02-intro p {
    font-size: 15px;
    color: var(--p02-slate-700);
}

/* ============================================
   섹션 공통
============================================ */
#tg-p02-wrapper .tg-p02-section {
    background-color: var(--p02-white);
    padding: 32px 22px;
    border-radius: var(--p02-radius);
    box-shadow: var(--p02-shadow);
    border: 1px solid var(--p02-slate-200);
}

#tg-p02-wrapper .tg-p02-section__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

#tg-p02-wrapper .tg-p02-section__num {
    font-size: 36px;
    font-weight: 900;
    color: var(--p02-teal);
    opacity: 0.18;
    line-height: 1;
    flex-shrink: 0;
}

#tg-p02-wrapper .tg-p02-section__title {
    font-size: 19px;
    font-weight: 800;
    color: var(--p02-slate-900);
    line-height: 1.35;
    padding-top: 6px;
}

#tg-p02-wrapper .tg-p02-section__desc {
    font-size: 15px;
    color: var(--p02-slate-500);
    margin-bottom: 22px !important;
}

/* ============================================
   기능 카드 (섹션 01)
============================================ */
#tg-p02-wrapper .tg-p02-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

#tg-p02-wrapper .tg-p02-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background-color: var(--p02-slate-100);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#tg-p02-wrapper .tg-p02-feature:hover {
    border-color: var(--p02-teal-border);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.1);
}

#tg-p02-wrapper .tg-p02-feature__icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--p02-teal) 0%, #06b6d4 100%);
    color: var(--p02-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

#tg-p02-wrapper .tg-p02-feature__body {
    flex: 1;
    min-width: 0;
}

#tg-p02-wrapper .tg-p02-feature__title {
    font-size: 16px;
    font-weight: 800;
    color: var(--p02-slate-900);
    margin-bottom: 6px;
}

#tg-p02-wrapper .tg-p02-feature__text {
    font-size: 14px;
    color: var(--p02-slate-500);
    margin-bottom: 10px !important;
}

#tg-p02-wrapper .tg-p02-feature__badge {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── 배지 ── */
#tg-p02-wrapper .tg-p02-badge {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
}

#tg-p02-wrapper .tg-p02-badge--free {
    background-color: var(--p02-white);
    color: var(--p02-slate-500);
    border: 1px solid var(--p02-slate-200);
}

#tg-p02-wrapper .tg-p02-badge--premium {
    background: linear-gradient(135deg, var(--p02-teal-light) 0%, var(--p02-teal-mid) 100%);
    color: var(--p02-teal-deep);
    border: 1px solid var(--p02-teal-border);
}

/* ============================================
   탭 UI (섹션 02 - 기기별 가이드)
============================================ */
#tg-p02-wrapper .tg-p02-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    background-color: var(--p02-slate-100);
    padding: 5px;
    border-radius: 12px;
    flex-wrap: wrap;
}

#tg-p02-wrapper .tg-p02-tab {
    flex: 1;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    color: var(--p02-slate-500);
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

#tg-p02-wrapper .tg-p02-tab:hover {
    color: var(--p02-teal);
    background-color: var(--p02-white);
}

#tg-p02-wrapper .tg-p02-tab--active {
    background-color: var(--p02-white) !important;
    color: var(--p02-teal) !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(8, 145, 178, 0.12);
    border-color: var(--p02-teal-mid);
}

/* 탭 패널 */
#tg-p02-wrapper .tg-p02-tab-panel {
    display: none;
    animation: p02FadeIn 0.3s ease;
}

#tg-p02-wrapper .tg-p02-tab-panel--active {
    display: block !important;
}

/* 탭 패널 헤더 */
#tg-p02-wrapper .tg-p02-tab-panel__header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding: 18px;
    background: linear-gradient(135deg, var(--p02-teal-light) 0%, #e0f7fa 100%);
    border-radius: 12px;
    border: 1px solid var(--p02-teal-mid);
}

#tg-p02-wrapper .tg-p02-tab-panel__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--p02-white);
}

#tg-p02-wrapper .tg-p02-tab-panel__icon--pc {
    background: linear-gradient(135deg, var(--p02-teal) 0%, #06b6d4 100%);
}

#tg-p02-wrapper .tg-p02-tab-panel__icon--android {
    background: linear-gradient(135deg, #22a65c 0%, var(--p02-android) 100%);
}

#tg-p02-wrapper .tg-p02-tab-panel__icon--ios {
    background: linear-gradient(135deg, #555 0%, #888 100%);
}

#tg-p02-wrapper .tg-p02-tab-panel__title {
    font-size: 17px;
    font-weight: 800;
    color: var(--p02-slate-900);
    margin-bottom: 4px;
}

#tg-p02-wrapper .tg-p02-tab-panel__sub {
    font-size: 13px;
    color: var(--p02-slate-500);
    margin-bottom: 0 !important;
}

/* ── 스텝 리스트 ── */
#tg-p02-wrapper .tg-p02-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

#tg-p02-wrapper .tg-p02-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background-color: var(--p02-slate-100);
    padding: 14px 18px;
    border-radius: 10px;
    border-left: 3px solid var(--p02-teal-border);
}

#tg-p02-wrapper .tg-p02-step__marker {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--p02-teal) 0%, #06b6d4 100%);
    color: var(--p02-white);
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-top: 1px;
}

#tg-p02-wrapper .tg-p02-step__text {
    font-size: 14px;
    color: var(--p02-slate-700);
    padding-top: 3px;
}

/* ── 꿀팁 박스 ── */
#tg-p02-wrapper .tg-p02-tip {
    background: linear-gradient(135deg, var(--p02-amber-light) 0%, #fef3c7 100%);
    border: 1px solid var(--p02-amber-border);
    border-radius: 10px;
    padding: 16px 18px;
    margin-top: 4px;
}

#tg-p02-wrapper .tg-p02-tip__label {
    font-size: 13px;
    font-weight: 800;
    color: var(--p02-amber);
    margin-bottom: 8px;
}

#tg-p02-wrapper .tg-p02-tip__text {
    font-size: 14px;
    color: var(--p02-slate-700);
    margin-bottom: 0 !important;
}

/* ============================================
   개인정보 보호 카드 (섹션 03)
============================================ */
#tg-p02-wrapper .tg-p02-privacy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

#tg-p02-wrapper .tg-p02-privacy-card {
    background-color: var(--p02-slate-100);
    border-radius: 12px;
    padding: 22px;
    border: 1px solid var(--p02-slate-200);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#tg-p02-wrapper .tg-p02-privacy-card:hover {
    border-color: var(--p02-teal-border);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.1);
}

#tg-p02-wrapper .tg-p02-privacy-card__icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--p02-teal-deep) 0%, var(--p02-teal) 100%);
    color: var(--p02-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
}

#tg-p02-wrapper .tg-p02-privacy-card__title {
    font-size: 16px;
    font-weight: 800;
    color: var(--p02-slate-900);
    margin-bottom: 8px;
}

#tg-p02-wrapper .tg-p02-privacy-card__text {
    font-size: 14px;
    color: var(--p02-slate-500);
    margin-bottom: 12px !important;
}

#tg-p02-wrapper .tg-p02-privacy-card__path {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--p02-teal-dark);
    background: linear-gradient(135deg, var(--p02-teal-light) 0%, var(--p02-teal-mid) 100%);
    padding: 5px 12px;
    border-radius: 100px;
    border: 1px solid var(--p02-teal-border);
}

/* ============================================
   결론 및 요약 (다크 섹션)
============================================ */
#tg-p02-wrapper .tg-p02-summary {
    background: linear-gradient(145deg, #0c1a2e 0%, #0e3a5a 40%, #0891b2 80%, #0e7490 100%) !important;
    color: var(--p02-white);
    padding: 44px 24px;
    border-radius: var(--p02-radius);
    text-align: center;
    box-shadow: 0 12px 36px rgba(8, 145, 178, 0.25);
    position: relative;
    overflow: hidden;
}

/* 요약 섹션 장식 원 */
#tg-p02-wrapper .tg-p02-summary::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border: 60px solid rgba(6, 182, 212, 0.06);
    border-radius: 50%;
    top: -100px;
    right: -80px;
    pointer-events: none;
}

#tg-p02-wrapper .tg-p02-summary__title {
    font-size: 22px;
    font-weight: 900;
    color: var(--p02-white) !important;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

#tg-p02-wrapper .tg-p02-summary__lead {
    font-size: 15px;
    color: var(--p02-slate-300) !important;
    max-width: 600px;
    margin: 0 auto 28px !important;
    position: relative;
    z-index: 1;
}

#tg-p02-wrapper .tg-p02-summary__lead strong {
    color: var(--p02-white) !important;
}

/* 요약 프로세스 플로우 */
#tg-p02-wrapper .tg-p02-summary__flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

#tg-p02-wrapper .tg-p02-summary__flow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 100px;
}

#tg-p02-wrapper .tg-p02-summary__flow-item strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--p02-white) !important;
}

#tg-p02-wrapper .tg-p02-summary__flow-item span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

#tg-p02-wrapper .tg-p02-summary__flow-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--p02-teal) 0%, #06b6d4 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--p02-white);
}

#tg-p02-wrapper .tg-p02-summary__flow-arrow {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.25);
}

/* 체크리스트 */
#tg-p02-wrapper .tg-p02-summary__checklist {
    list-style: none;
    display: inline-block;
    text-align: left;
    background: rgba(255, 255, 255, 0.06);
    padding: 22px 28px;
    border-radius: 12px;
    margin: 0 auto 24px !important;
    position: relative;
    z-index: 1;
}

#tg-p02-wrapper .tg-p02-summary__checklist li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--p02-slate-300);
}

#tg-p02-wrapper .tg-p02-summary__checklist li:last-child {
    margin-bottom: 0;
}

/* Font Awesome 5 체크 아이콘 (FA5 Free 호환) */
#tg-p02-wrapper .tg-p02-summary__checklist li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 13px;
    color: var(--p02-teal-border);
}

#tg-p02-wrapper .tg-p02-summary__checklist strong {
    color: var(--p02-white) !important;
}

/* 푸터 안내 */
#tg-p02-wrapper .tg-p02-summary__footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    color: #67e8f9;
    line-height: 1.9;
    position: relative;
    z-index: 1;
}

#tg-p02-wrapper .tg-p02-summary__footer strong {
    color: var(--p02-white) !important;
}

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

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

/* 탭 패널 전환 애니메이션 */
@keyframes p02FadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   반응형 미디어 쿼리 (모바일 퍼스트)
============================================ */

/* 태블릿 이상 (768px~) */
@media (min-width: 768px) {
    #tg-p02-wrapper .tg-p02-hero {
        padding: 76px 40px 80px;
    }

    #tg-p02-wrapper .tg-p02-hero__title {
        font-size: 36px;
    }

    #tg-p02-wrapper .tg-p02-hero__desc {
        font-size: 15px;
    }

    #tg-p02-wrapper .tg-p02-hero__flow-item {
        min-width: 100px;
        padding: 16px 22px;
    }

    #tg-p02-wrapper .tg-p02-main {
        padding: 36px 32px 0;
        gap: 36px;
    }

    #tg-p02-wrapper .tg-p02-section {
        padding: 38px 32px;
    }

    #tg-p02-wrapper .tg-p02-section__title {
        font-size: 22px;
    }

    /* 기능 카드 2열 */
    #tg-p02-wrapper .tg-p02-features {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 세 번째 카드가 홀수일 때 전체 너비 */
    #tg-p02-wrapper .tg-p02-feature:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    /* 개인정보 보호 카드 2열 */
    #tg-p02-wrapper .tg-p02-privacy-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #tg-p02-wrapper .tg-p02-summary {
        padding: 56px 44px;
    }

    #tg-p02-wrapper .tg-p02-summary__title {
        font-size: 26px;
    }
}

/* 데스크탑 이상 (1024px~) */
@media (min-width: 1024px) {
    #tg-p02-wrapper .tg-p02-hero__title {
        font-size: 42px;
    }

    #tg-p02-wrapper .tg-p02-main {
        gap: 44px;
    }

    /* 기능 카드 3열 */
    #tg-p02-wrapper .tg-p02-features {
        grid-template-columns: repeat(3, 1fr);
    }

    #tg-p02-wrapper .tg-p02-feature:last-child:nth-child(odd) {
        grid-column: auto;
    }
}
