@charset "utf-8";

/* ============================================
   텔레그램 미니 썸네일 & 미리보기 가이드
   접두사: tg-thm- (기존 사이트 오염 방지)
   컬러 톤: 사파이어(Sapphire) + 쿨 그레이(Cool Gray)
============================================ */

:root {
    --tgth-sapphire: #2563eb;
    --tgth-sapphire-dark: #1d4ed8;
    --tgth-sapphire-deep: #172554;
    --tgth-sapphire-light: #eff6ff;
    --tgth-sapphire-border: #93c5fd;
    --tgth-slate: #475569;
    --tgth-slate-light: #f8fafc;
    --tgth-slate-border: #94a3b8;
    --tgth-amber: #d97706;
    --tgth-amber-light: #fffbeb;
    --tgth-amber-border: #fde68a;
    --tgth-red: #ef4444;
    --tgth-red-light: #fef2f2;
    --tgth-red-border: #fca5a5;
    --tgth-slate-900: #0f172a;
    --tgth-slate-700: #334155;
    --tgth-slate-500: #64748b;
    --tgth-slate-300: #cbd5e1;
    --tgth-slate-200: #e2e8f0;
    --tgth-slate-100: #f1f5f9;
    --tgth-bg: #f0f4ff;
    --tgth-white: #ffffff;
    --tgth-radius: 14px;
}

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

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

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

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

/* ─── 히어로 헤더 ─── */
.tg-thm-hero {
    background: linear-gradient(145deg, #020617 0%, #172554 30%, #2563eb 65%, #60a5fa 100%);
    color: var(--tgth-white);
    padding: 60px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tg-thm-hero::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border: 60px solid rgba(37, 99, 235, 0.06);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.tg-thm-hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border: 40px solid rgba(147, 197, 253, 0.04);
    border-radius: 50%;
    bottom: -60px;
    left: -50px;
}

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

.tg-thm-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(37, 99, 235, 0.15);
    color: var(--tgth-sapphire-border);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 22px;
    border: 1px solid rgba(147, 197, 253, 0.15);
    backdrop-filter: blur(4px);
}

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

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

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

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

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

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

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

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

.tg-thm-section--accent {
    background: linear-gradient(135deg, var(--tgth-sapphire-light) 0%, #dbeafe40 100%);
    border-color: var(--tgth-sapphire-border);
}

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

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

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

.tg-thm-section__num--accent {
    color: var(--tgth-sapphire);
    opacity: 0.25;
}

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

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

.tg-thm-section__title--light {
    color: var(--tgth-white);
}

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

/* ─── 대화목록 데모 ─── */
.tg-thm-chat-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--tgth-slate-200);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 18px;
}

.tg-thm-chat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: var(--tgth-white);
    border-bottom: 1px solid var(--tgth-slate-200);
}

.tg-thm-chat-item:last-child {
    border-bottom: none;
}

.tg-thm-chat-item__avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--tgth-sapphire) 0%, var(--tgth-sapphire-dark) 100%);
    color: var(--tgth-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.tg-thm-chat-item__body {
    flex: 1;
    min-width: 0;
}

.tg-thm-chat-item__body strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.tg-thm-chat-item__preview {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tg-thm-chat-item__thumb {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--tgth-sapphire-light) 0%, #dbeafe 100%);
    border: 1px solid var(--tgth-sapphire-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--tgth-sapphire);
}

.tg-thm-chat-item__thumb--gif {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
    color: #16a34a;
}

.tg-thm-chat-item__preview span {
    font-size: 13px;
    color: var(--tgth-slate-500);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tg-thm-chat-item__time {
    flex-shrink: 0;
    font-size: 11px;
    color: var(--tgth-slate-300);
    font-weight: 600;
}

/* 장점 인라인 */
.tg-thm-benefits-inline {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tg-thm-benefit-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--tgth-sapphire-dark);
}

.tg-thm-benefit-inline i {
    color: var(--tgth-sapphire);
    font-size: 14px;
    flex-shrink: 0;
}

/* ─── 꾹 누르기 3열 ─── */
.tg-thm-peek-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.tg-thm-peek-step {
    background-color: var(--tgth-white);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--tgth-sapphire-border);
    text-align: center;
}

.tg-thm-peek-step__icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--tgth-sapphire) 0%, var(--tgth-sapphire-dark) 100%);
    color: var(--tgth-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 10px;
}

.tg-thm-peek-step__title {
    font-size: 16px;
    font-weight: 800;
    color: var(--tgth-slate-900);
    margin-bottom: 6px;
}

.tg-thm-peek-step__text {
    font-size: 14px;
}

/* 꾹 누르기 비주얼 */
.tg-thm-peek-visual {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background-color: var(--tgth-white);
    border: 2px solid var(--tgth-sapphire-border);
    border-radius: 12px;
    margin-bottom: 14px;
}

.tg-thm-peek-visual__finger {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--tgth-sapphire) 0%, var(--tgth-sapphire-dark) 100%);
    color: var(--tgth-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    animation: tg-thm-pulse 1.5s ease-in-out infinite;
}

@keyframes tg-thm-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 6px rgba(37, 99, 235, 0);
    }
}

.tg-thm-peek-visual__popup {
    flex: 1;
    background-color: var(--tgth-sapphire-light);
    border: 1px solid var(--tgth-sapphire-border);
    border-radius: 10px;
    overflow: hidden;
}

.tg-thm-peek-visual__header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: linear-gradient(135deg, var(--tgth-sapphire) 0%, var(--tgth-sapphire-dark) 100%);
    color: var(--tgth-white);
    font-size: 13px;
}

.tg-thm-peek-visual__header i {
    font-size: 14px;
}

.tg-thm-peek-visual__header strong {
    color: var(--tgth-white);
    font-size: 13px;
}

.tg-thm-peek-visual__msg {
    padding: 6px 12px;
    font-size: 12px;
    color: var(--tgth-slate-700);
    border-bottom: 1px solid rgba(147, 197, 253, 0.3);
}

.tg-thm-peek-visual__msg--me {
    background-color: rgba(37, 99, 235, 0.05);
    border-bottom: none;
    color: var(--tgth-sapphire-dark);
}

/* 경고 */
.tg-thm-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background-color: var(--tgth-red-light);
    border: 1px solid var(--tgth-red-border);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    color: #991b1b;
}

.tg-thm-warning i {
    color: var(--tgth-red);
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

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

.tg-thm-tip {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(147, 197, 253, 0.12);
    padding: 22px;
    border-radius: 10px;
    position: relative;
}

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

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

.tg-thm-tip__title i {
    color: var(--tgth-sapphire-border);
    margin-right: 4px;
}

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

.tg-thm-tip__text strong {
    color: var(--tgth-white);
}

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

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

.tg-thm-summary__body p {
    font-size: 16px;
    margin-bottom: 14px;
    color: var(--tgth-sapphire-border);
}

.tg-thm-summary strong {
    color: var(--tgth-white);
}

/* 하이라이트 3열 */
.tg-thm-summary__highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 24px 0;
}

.tg-thm-summary__highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(147, 197, 253, 0.12);
    border-radius: 10px;
}

.tg-thm-summary__highlight-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--tgth-sapphire) 0%, #60a5fa 100%);
    color: var(--tgth-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.tg-thm-summary__highlight strong {
    font-size: 13px;
    color: var(--tgth-white);
}

.tg-thm-summary__highlight span {
    font-size: 11px;
    color: var(--tgth-sapphire-border);
    text-align: center;
}

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

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

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

.tg-thm-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(--tgth-sapphire-border);
}

.tg-thm-summary__checklist strong {
    color: var(--tgth-white);
}

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

.tg-thm-summary__footer strong {
    color: var(--tgth-white);
}

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

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

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

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

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

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

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

    /* 꾹 누르기 3열 */
    .tg-thm-peek-steps {
        grid-template-columns: repeat(3, 1fr);
    }

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

    /* 하이라이트 3열 */
    .tg-thm-summary__highlights {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

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