@charset "utf-8";

/* ============================================
   텔레그램 iOS 글로벌 테마(iOS Global Theme) 가이드
   접두사: tg-igt- (기존 사이트 오염 방지)
   컬러 톤: 로즈 핑크(Rose Pink) + 바이올렛 퍼플(Violet Purple)
============================================ */

:root {
    --igt-rose: #e11d48;
    --igt-rose-dark: #be123c;
    --igt-rose-deep: #881337;
    --igt-rose-light: #fff1f2;
    --igt-rose-border: #fda4af;
    --igt-violet: #8b5cf6;
    --igt-violet-dark: #7c3aed;
    --igt-violet-deep: #4c1d95;
    --igt-violet-light: #f5f3ff;
    --igt-violet-border: #c4b5fd;
    --igt-sky: #0ea5e9;
    --igt-green: #059669;
    --igt-green-light: #d1fae5;
    --igt-amber: #d97706;
    --igt-slate-900: #0f172a;
    --igt-slate-700: #334155;
    --igt-slate-500: #64748b;
    --igt-slate-300: #cbd5e1;
    --igt-slate-200: #e2e8f0;
    --igt-slate-100: #f1f5f9;
    --igt-bg: #fdf2f8;
    --igt-white: #ffffff;
    --igt-radius: 14px;
}

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

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

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

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

/* ─── 히어로 헤더 ─── */
.tg-igt-hero {
    background: linear-gradient(145deg, #1a0529 0%, #4c1d95 25%, #8b5cf6 55%, #e11d48 85%, #fda4af 100%);
    color: var(--igt-white);
    padding: 60px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tg-igt-hero::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border: 70px solid rgba(139, 92, 246, 0.05);
    border-radius: 50%;
    top: -130px;
    right: -130px;
}

.tg-igt-hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border: 50px solid rgba(225, 29, 72, 0.04);
    border-radius: 50%;
    bottom: -80px;
    left: -60px;
}

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

/* 히어로 팔레트 점들 */
.tg-igt-hero__palette {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
}

.tg-igt-hero__dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: tg-igt-dot-pulse 3s ease-in-out infinite;
}

.tg-igt-hero__dot--1 {
    background: #60a5fa;
    animation-delay: 0s;
}

.tg-igt-hero__dot--2 {
    background: #a78bfa;
    animation-delay: 0.3s;
}

.tg-igt-hero__dot--3 {
    background: #fb7185;
    animation-delay: 0.6s;
}

.tg-igt-hero__dot--4 {
    background: #34d399;
    animation-delay: 0.9s;
}

.tg-igt-hero__dot--5 {
    background: #fbbf24;
    animation-delay: 1.2s;
}

.tg-igt-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    color: var(--igt-white);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
}

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

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

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

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

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

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

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

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

.tg-igt-section--dark {
    background: linear-gradient(135deg, #1a0529 0%, var(--igt-violet-deep) 50%, #6d28d9 100%);
    border-color: var(--igt-violet);
    color: var(--igt-slate-300);
}

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

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

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

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

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

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

.tg-igt-section__desc--light {
    color: var(--igt-violet-border);
}

.tg-igt-section__desc--light strong {
    color: var(--igt-white);
}

/* ─── 테마 특징 카드 ─── */
.tg-igt-feature-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.tg-igt-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background-color: var(--igt-violet-light);
    border-radius: 10px;
    border: 1px solid #ddd6fe;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tg-igt-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
}

.tg-igt-feature-card__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--igt-violet) 0%, var(--igt-violet-dark) 100%);
    color: var(--igt-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.tg-igt-feature-card__icon--gradient {
    background: linear-gradient(135deg, var(--igt-rose) 0%, var(--igt-violet) 100%);
}

.tg-igt-feature-card__icon--dark {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

.tg-igt-feature-card__body strong {
    display: block;
    font-size: 15px;
    margin-bottom: 3px;
}

.tg-igt-feature-card__body span {
    font-size: 13px;
}

/* ─── 테마 미리보기 그리드 (9색 팔레트) ─── */
.tg-igt-theme-grid {
    padding: 20px;
    background: linear-gradient(135deg, var(--igt-rose-light) 0%, #fce7f3 100%);
    border: 1px solid var(--igt-rose-border);
    border-radius: 12px;
}

.tg-igt-theme-grid__label {
    font-size: 13px;
    font-weight: 700;
    color: var(--igt-rose-deep);
    margin-bottom: 14px;
    text-align: center;
}

.tg-igt-theme-grid__swatches {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.tg-igt-swatch {
    height: 52px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--igt-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tg-igt-swatch:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.tg-igt-swatch--1 {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.tg-igt-swatch--2 {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.tg-igt-swatch--3 {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: var(--igt-slate-700);
    text-shadow: none;
}

.tg-igt-swatch--4 {
    background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
}

.tg-igt-swatch--5 {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.tg-igt-swatch--6 {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.tg-igt-swatch--7 {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.tg-igt-swatch--8 {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.tg-igt-swatch--9 {
    background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
}

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

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

.tg-igt-step:hover {
    border-left-color: var(--igt-violet);
}

.tg-igt-step--highlight {
    background: linear-gradient(135deg, var(--igt-rose-light) 0%, #fce7f3 100%);
    border-left-color: var(--igt-rose);
}

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

.tg-igt-step__marker--highlight {
    background: linear-gradient(135deg, var(--igt-rose) 0%, #f43f5e 100%);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
}

.tg-igt-step__content {
    flex: 1;
}

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

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

/* 메뉴 비주얼 */
.tg-igt-menu-visual {
    margin-top: 8px;
}

.tg-igt-menu-visual__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--igt-white);
    border: 1px solid var(--igt-violet-border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--igt-violet-dark);
}

/* 수정 버튼 비주얼 */
.tg-igt-edit-btn-visual {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.tg-igt-edit-btn-visual__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--igt-violet) 0%, var(--igt-violet-dark) 100%);
    color: var(--igt-white);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.tg-igt-edit-btn-visual__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--igt-violet-dark);
}

/* 공유 비주얼 */
.tg-igt-share-visual {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.tg-igt-share-visual__btn {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--igt-rose) 0%, #f43f5e 100%);
    color: var(--igt-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.3);
}

.tg-igt-share-visual__label {
    font-size: 12px;
    font-weight: 700;
    color: var(--igt-rose-dark);
}

/* 미니 테마 선택 비주얼 */
.tg-igt-theme-select-visual {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 10px;
    background-color: var(--igt-white);
    border: 1px solid var(--igt-slate-200);
    border-radius: 10px;
    max-width: 300px;
}

.tg-igt-theme-select-visual__item {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
}

.tg-igt-theme-select-visual__item:hover {
    transform: scale(1.1);
}

.tg-igt-theme-select-visual__item--1 {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.tg-igt-theme-select-visual__item--2 {
    background: linear-gradient(135deg, #1e293b, #334155);
}

.tg-igt-theme-select-visual__item--3 {
    background: linear-gradient(135deg, #fb7185, #e11d48);
}

.tg-igt-theme-select-visual__item--4 {
    background: linear-gradient(135deg, #059669, #047857);
}

.tg-igt-theme-select-visual__item--5 {
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
}

.tg-igt-theme-select-visual__item--active {
    border-color: var(--igt-rose);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.2);
    transform: scale(1.1);
}

/* ─── 경로 요약 인라인 ─── */
.tg-igt-path-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--igt-violet-light) 0%, #ede9fe 100%);
    border: 1px solid var(--igt-violet-border);
    border-radius: 10px;
}

.tg-igt-path-summary__item {
    font-size: 13px;
    font-weight: 600;
    color: var(--igt-slate-700);
    padding: 4px 12px;
    background-color: var(--igt-white);
    border-radius: 6px;
    border: 1px solid var(--igt-slate-200);
}

.tg-igt-path-summary__item--active {
    background: linear-gradient(135deg, var(--igt-rose) 0%, #f43f5e 100%);
    color: var(--igt-white);
    border-color: var(--igt-rose);
    font-weight: 800;
}

.tg-igt-path-summary__arrow {
    font-size: 10px;
    color: var(--igt-violet-border);
}

/* ─── 꿀팁 카드 (다크 섹션 내) ─── */
.tg-igt-tips {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.tg-igt-tip {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(196, 181, 253, 0.15);
    padding: 24px 22px;
    border-radius: 12px;
    position: relative;
}

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

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

.tg-igt-tip__title i {
    color: var(--igt-violet-border);
    margin-right: 4px;
}

.tg-igt-tip__text {
    font-size: 14px;
    color: var(--igt-violet-border);
}

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

/* 낮/밤 토글 비주얼 */
.tg-igt-daynight-visual {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(196, 181, 253, 0.15);
    border-radius: 10px;
}

.tg-igt-daynight-visual__mode {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
}

.tg-igt-daynight-visual__mode--day {
    color: var(--igt-amber);
}

.tg-igt-daynight-visual__mode--day i {
    font-size: 20px;
}

.tg-igt-daynight-visual__mode--night {
    color: var(--igt-violet-border);
}

.tg-igt-daynight-visual__mode--night i {
    font-size: 20px;
}

.tg-igt-daynight-visual__switch {
    color: rgba(196, 181, 253, 0.3);
    font-size: 14px;
    animation: tg-igt-switch-pulse 2s ease-in-out infinite;
}

/* ─── 결론 및 요약 ─── */
.tg-igt-summary {
    background: linear-gradient(135deg, #1a0529 0%, var(--igt-violet-deep) 40%, var(--igt-rose-deep) 100%);
    color: var(--igt-white);
    padding: 44px 28px;
    border-radius: var(--igt-radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(76, 29, 149, 0.4);
}

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

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

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

/* 요약 프로세스 아이콘 */
.tg-igt-summary__icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 28px 0;
}

.tg-igt-summary__icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--igt-violet-border);
}

.tg-igt-summary__icon-circle {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(196, 181, 253, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--igt-violet-border);
    transition: transform 0.2s ease;
}

.tg-igt-summary__icon-circle:hover {
    transform: scale(1.08);
}

.tg-igt-summary__icon-circle--gradient {
    background: linear-gradient(135deg, var(--igt-rose) 0%, var(--igt-violet) 100%);
    color: var(--igt-white);
    border-color: var(--igt-rose);
}

.tg-igt-summary__icon-circle--done {
    background: linear-gradient(135deg, var(--igt-green) 0%, #10b981 100%);
    color: var(--igt-white);
    border-color: var(--igt-green);
}

.tg-igt-summary__icon-arrow {
    color: rgba(196, 181, 253, 0.3);
    font-size: 14px;
}

/* 체크리스트 */
.tg-igt-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-igt-summary__checklist li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 15px;
    color: #ede9fe;
}

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

.tg-igt-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(--igt-rose-border);
}

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

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

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

/* ============================================
   애니메이션 키프레임
============================================ */

/* 팔레트 점 펄스 */
@keyframes tg-igt-dot-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

/* 낮/밤 전환 펄스 */
@keyframes tg-igt-switch-pulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

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

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

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

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

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

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

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

    /* 특징 카드 3열 */
    .tg-igt-feature-cards {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

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

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