/*
 * tips256/style.css  v1.0.0
 * 텔레그램 자동 초대 링크 전송 가이드 전용 스타일
 * 그누보드5 완전 격리 | BEM 네이밍 | 모바일 퍼스트
 * 테마: 틸·시안 (초대·연결)
 */

/* ==============================================
   그누보드5 CSS 충돌 완전 방지 리셋
   ============================================== */
#tg-256-wrapper,
#tg-256-wrapper *,
#tg-256-wrapper *::before,
#tg-256-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;
}

#tg-256-wrapper h1,
#tg-256-wrapper h2,
#tg-256-wrapper h3,
#tg-256-wrapper h4,
#tg-256-wrapper h5,
#tg-256-wrapper h6 {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: 1.3;
}

#tg-256-wrapper p {
    margin-bottom: 14px !important;
    line-height: 1.75 !important;
}
#tg-256-wrapper p:last-child {
    margin-bottom: 0 !important;
}

/* ==============================================
   CSS 변수 (Design Tokens)
   ============================================== */
#tg-256-wrapper {
    --teal-400:   #2dd4bf;
    --teal-500:   #14b8a6;
    --teal-600:   #0d9488;
    --teal-700:   #0f766e;
    --teal-800:   #115e59;
    --cyan-500:   #06b6d4;
    --cyan-600:   #0891b2;
    --blue-600:   #2283dd;
    --green-500:  #22c55e;
    --green-700:  #15803d;
    --red-500:    #ef4444;
    --amber-500:  #f59e0b;
    --amber-600:  #d97706;
    --slate-50:   #f8fafc;
    --slate-100:  #f1f5f9;
    --slate-200:  #e2e8f0;
    --slate-300:  #cbd5e1;
    --slate-700:  #334155;
    --slate-800:  #1e293b;
    --slate-900:  #0f172a;
    --text-main:  #1e293b;
    --text-sub:   #475569;
    --border-r:   14px;
    --shadow-md:  0 4px 20px rgba(0,0,0,0.07);
}

/* ==============================================
   최상위 래퍼 (와이드 1100px)
   ============================================== */
#tg-256-wrapper.tg-256-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    color: var(--text-main);
    line-height: 1.75;
    background-color: var(--slate-50);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(13,148,136,0.1);
}

/* ==============================================
   히어로 헤더 (틸·시안 그라데이션)
   ============================================== */
#tg-256-wrapper .tg-256-hero {
    position: relative;
    background: linear-gradient(135deg, #0f766e 0%, #134e4a 60%, #042f2e 100%);
    padding: 52px 24px 52px;
    text-align: center;
    overflow: hidden;
}

/* 히어로 배경 장식 (그라데이션 서클) */
#tg-256-wrapper .tg-256-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(45,212,191,0.15) 0%, transparent 55%),
                radial-gradient(circle at 15% 75%, rgba(6,182,212,0.12) 0%, transparent 50%);
    pointer-events: none;
}

/* 히어로 하단 곡선 처리 */
#tg-256-wrapper .tg-256-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--slate-50);
    clip-path: ellipse(55% 100% at 50% 100%);
}

#tg-256-wrapper .tg-256-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

/* 히어로 상단 뱃지 */
#tg-256-wrapper .tg-256-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.18) !important;
    color: #fff !important;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.25);
}

/* 히어로 아이콘 플로우 (3단계 시각화) */
#tg-256-wrapper .tg-256-hero__icon-flow {
    display: flex;
    align-items: center;
    gap: 14px;
}

#tg-256-wrapper .tg-256-hero__icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.12) !important;
    border: 2px solid rgba(255,255,255,0.28);
    border-radius: 14px;
    font-size: 1.8rem;
    color: #fff !important;
}

/* 중앙 아이콘 강조 */
#tg-256-wrapper .tg-256-hero__icon-box--mid {
    background: rgba(255,255,255,0.24) !important;
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 22px rgba(255,255,255,0.15);
}

/* 플로우 화살표 */
#tg-256-wrapper .tg-256-hero__flow-arrow {
    color: rgba(255,255,255,0.45) !important;
    font-size: 1.1rem;
}

/* 히어로 타이틀 */
#tg-256-wrapper .tg-256-hero__title {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff !important;
    line-height: 1.35;
    word-break: keep-all;
}

/* 히어로 서브타이틀 */
#tg-256-wrapper .tg-256-hero__subtitle {
    font-size: 0.97rem;
    color: rgba(255,255,255,0.88) !important;
    word-break: keep-all;
    max-width: 700px;
    margin-bottom: 0 !important;
}

/* 히어로 태그 */
#tg-256-wrapper .tg-256-hero__tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

#tg-256-wrapper .tg-256-hero__tag {
    background: rgba(255,255,255,0.12) !important;
    color: rgba(255,255,255,0.92) !important;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 4px 13px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* ==============================================
   메인 콘텐츠
   ============================================== */
#tg-256-wrapper .tg-256-main {
    background: #fff;
    padding: 48px 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 44px;
}

/* ==============================================
   도입부
   ============================================== */
#tg-256-wrapper .tg-256-intro {
    background: var(--slate-50) !important;
    border: 1px solid var(--slate-200);
    border-radius: var(--border-r);
    padding: 28px 24px;
    text-align: left;
}

#tg-256-wrapper .tg-256-intro__icon {
    margin-bottom: 12px;
    font-size: 2rem;
    color: var(--amber-500);
    text-align: center;
}

#tg-256-wrapper .tg-256-intro__heading {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--teal-600) !important;
    margin-bottom: 14px;
    text-align: center;
}

#tg-256-wrapper .tg-256-intro p {
    font-size: 0.97rem;
    color: var(--text-sub) !important;
    word-break: keep-all;
    text-align: left;
}

#tg-256-wrapper .tg-256-intro p strong {
    color: var(--teal-700) !important;
}

/* ==============================================
   섹션 공통
   ============================================== */
#tg-256-wrapper .tg-256-section__label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--teal-600) !important;
    color: #fff !important;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

/* 보너스 팁 레이블은 앰버 컬러 */
#tg-256-wrapper .tg-256-section__label--bonus {
    background: var(--amber-600) !important;
}

#tg-256-wrapper .tg-256-section__title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--slate-800) !important;
    border-left: 4px solid var(--teal-500);
    padding-left: 14px;
    margin-bottom: 18px;
    line-height: 1.4;
    word-break: keep-all;
}

#tg-256-wrapper .tg-256-section p {
    font-size: 0.97rem;
    color: var(--text-sub) !important;
    word-break: keep-all;
    text-align: left;
}

#tg-256-wrapper .tg-256-section p strong {
    color: var(--teal-700) !important;
    font-weight: 700;
}

/* ==============================================
   기능 특징 카드 (3열 그리드)
   ============================================== */
#tg-256-wrapper .tg-256-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 22px;
}

#tg-256-wrapper .tg-256-feature-card {
    position: relative;
    background: var(--slate-50) !important;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 20px 16px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#tg-256-wrapper .tg-256-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* 카드 번호 뱃지 */
#tg-256-wrapper .tg-256-feature-card__num {
    position: absolute;
    top: -8px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--teal-600) !important;
    color: #fff !important;
    font-size: 0.75rem;
    font-weight: 900;
    border-radius: 50%;
}

#tg-256-wrapper .tg-256-feature-card__icon {
    margin-bottom: 4px;
    font-size: 1.5rem;
    color: var(--teal-600);
}

#tg-256-wrapper .tg-256-feature-card strong {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--slate-800) !important;
}

#tg-256-wrapper .tg-256-feature-card p {
    font-size: 0.88rem;
    color: var(--text-sub) !important;
    margin-bottom: 0 !important;
}

#tg-256-wrapper .tg-256-feature-card p strong {
    color: var(--teal-600) !important;
}

/* ==============================================
   기기별 카드
   ============================================== */
#tg-256-wrapper .tg-256-device-card {
    background: var(--slate-50) !important;
    border: 1px solid var(--slate-200);
    border-radius: var(--border-r);
    padding: 22px 20px;
    margin-bottom: 18px;
    text-align: left;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

#tg-256-wrapper .tg-256-device-card:last-of-type {
    margin-bottom: 0;
}

#tg-256-wrapper .tg-256-device-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(13,148,136,0.1);
    border-color: var(--teal-500);
}

/* 디바이스 카드 헤더 (아이콘 + 텍스트) */
#tg-256-wrapper .tg-256-device-card__header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

/* 디바이스 아이콘 래퍼 */
#tg-256-wrapper .tg-256-device-card__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    flex-shrink: 0;
    font-size: 1.8rem;
    color: #fff !important;
}

/* PC 아이콘 배경 (블루 계열) */
#tg-256-wrapper .tg-256-device-card__icon-wrap--pc {
    background: linear-gradient(135deg, #2283dd, #005bb5) !important;
}

/* iOS 아이콘 배경 (슬레이트 계열) */
#tg-256-wrapper .tg-256-device-card__icon-wrap--ios {
    background: linear-gradient(135deg, #64748b, #334155) !important;
}

/* Android 아이콘 배경 (그린 계열) */
#tg-256-wrapper .tg-256-device-card__icon-wrap--android {
    background: linear-gradient(135deg, #22c55e, #15803d) !important;
}

#tg-256-wrapper .tg-256-device-card__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--slate-800) !important;
    margin-bottom: 4px;
}

#tg-256-wrapper .tg-256-device-card__desc {
    font-size: 0.88rem;
    color: var(--text-sub) !important;
    word-break: keep-all;
    line-height: 1.55;
    margin-bottom: 0 !important;
}

/* ==============================================
   단계 목록 (번호 자동 매기기)
   ============================================== */
#tg-256-wrapper .tg-256-steps {
    counter-reset: step256;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 14px;
    text-align: left;
}

#tg-256-wrapper .tg-256-steps__item {
    counter-increment: step256;
    position: relative;
    padding-left: 32px;
    font-size: 0.9rem;
    color: var(--text-sub) !important;
    line-height: 1.55;
}

/* 단계 번호 원형 뱃지 */
#tg-256-wrapper .tg-256-steps__item::before {
    content: counter(step256);
    position: absolute;
    left: 0;
    top: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--teal-600) !important;
    color: #fff !important;
    font-size: 0.7rem;
    font-weight: 900;
    border-radius: 50%;
}

#tg-256-wrapper .tg-256-steps__item strong {
    color: var(--teal-700) !important;
    font-weight: 700;
}

/* ==============================================
   핵심 조작 배너
   ============================================== */
#tg-256-wrapper .tg-256-key-action {
    background: linear-gradient(135deg, #f0fdfa, #ccfbf1) !important;
    border: 1px solid #99f6e4;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.88rem;
    color: var(--text-main) !important;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}

#tg-256-wrapper .tg-256-key-action > i {
    color: var(--teal-600) !important;
    flex-shrink: 0;
}

#tg-256-wrapper .tg-256-key-action strong {
    color: var(--teal-800) !important;
    font-weight: 800;
    margin-right: 4px;
}

/* ==============================================
   보너스 팁 카드 (2열 그리드)
   ============================================== */
#tg-256-wrapper .tg-256-bonus-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
}

#tg-256-wrapper .tg-256-bonus-card {
    background: var(--slate-50) !important;
    border: 1px solid var(--slate-200);
    border-radius: var(--border-r);
    padding: 22px 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#tg-256-wrapper .tg-256-bonus-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

#tg-256-wrapper .tg-256-bonus-card__icon {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: var(--amber-600);
}

#tg-256-wrapper .tg-256-bonus-card__title {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--slate-800) !important;
    margin-bottom: 10px;
}

#tg-256-wrapper .tg-256-bonus-card p {
    font-size: 0.9rem;
    color: var(--text-sub) !important;
    word-break: keep-all;
    margin-bottom: 0 !important;
}

#tg-256-wrapper .tg-256-bonus-card p strong {
    color: var(--teal-600) !important;
}

/* 보너스 안내 참고 배너 */
#tg-256-wrapper .tg-256-bonus-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: linear-gradient(135deg, #fffbeb, #fef3c7) !important;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 14px 18px;
    margin-top: 16px;
    font-size: 0.88rem;
    color: var(--text-main) !important;
    line-height: 1.6;
}

#tg-256-wrapper .tg-256-bonus-note > i {
    color: var(--amber-500) !important;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

#tg-256-wrapper .tg-256-bonus-note strong {
    color: var(--teal-700) !important;
    font-weight: 700;
}

/* ==============================================
   결론 요약 (다크 틸 그라데이션 섹션)
   ============================================== */
#tg-256-wrapper .tg-256-summary {
    background: linear-gradient(150deg, var(--slate-900) 0%, #042f2e 100%) !important;
    border-radius: var(--border-r);
    padding: 44px 24px;
    text-align: center;
}

#tg-256-wrapper .tg-256-summary__title {
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff !important;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* 프로세스 플로우 (4단계) */
#tg-256-wrapper .tg-256-summary__flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
}

#tg-256-wrapper .tg-256-summary__flow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

#tg-256-wrapper .tg-256-summary__flow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.1) !important;
    border: 2px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    font-size: 1.3rem;
    color: #fff !important;
}

#tg-256-wrapper .tg-256-summary__flow-item span {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--slate-300) !important;
    max-width: 80px;
    text-align: center;
    line-height: 1.3;
}

#tg-256-wrapper .tg-256-summary__flow-arrow {
    color: rgba(255,255,255,0.3) !important;
    font-size: 0.9rem;
}

/* 체크리스트 */
#tg-256-wrapper .tg-256-summary__checklist {
    text-align: left;
    max-width: 640px;
    margin: 0 auto 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#tg-256-wrapper .tg-256-summary__checklist li {
    font-size: 0.93rem;
    color: var(--slate-300) !important;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.6;
}

#tg-256-wrapper .tg-256-summary__checklist li i {
    color: var(--teal-400) !important;
    flex-shrink: 0;
    margin-top: 4px;
}

#tg-256-wrapper .tg-256-summary__checklist li strong {
    color: #fff !important;
    font-weight: 700;
}

/* 요약 설명 텍스트 */
#tg-256-wrapper .tg-256-summary__desc {
    font-size: 0.92rem;
    color: var(--slate-300) !important;
    word-break: keep-all;
    max-width: 700px;
    margin: 0 auto !important;
}

#tg-256-wrapper .tg-256-summary__desc strong {
    color: #fff !important;
}

/* ==============================================
   푸터 링크 버튼
   ============================================== */
#tg-256-wrapper .tg-256-footer {
    margin-top: 28px;
}

#tg-256-wrapper .tg-256-footer__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff !important;
    color: var(--teal-700) !important;
    font-size: 0.92rem;
    font-weight: 800;
    padding: 13px 30px;
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

#tg-256-wrapper .tg-256-footer__btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 22px rgba(0,0,0,0.25);
}

/* ==============================================
   스크롤 등장 애니메이션
   ============================================== */
#tg-256-wrapper .tg-256-motion {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

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

/* ==============================================
   반응형 - 태블릿 (640px+)
   ============================================== */
@media (min-width: 640px) {
    #tg-256-wrapper .tg-256-hero {
        padding: 64px 40px 60px;
    }
    #tg-256-wrapper .tg-256-hero__title {
        font-size: 2rem;
    }
    #tg-256-wrapper .tg-256-main {
        padding: 56px 40px 48px;
        gap: 52px;
    }
    #tg-256-wrapper .tg-256-feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    #tg-256-wrapper .tg-256-bonus-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    #tg-256-wrapper .tg-256-summary {
        padding: 56px 40px;
    }
    #tg-256-wrapper .tg-256-device-card__header {
        align-items: center;
    }
}

/* ==============================================
   반응형 - 데스크톱 (900px+)
   ============================================== */
@media (min-width: 900px) {
    #tg-256-wrapper .tg-256-hero__title {
        font-size: 2.3rem;
    }
    #tg-256-wrapper .tg-256-section__title {
        font-size: 1.4rem;
    }
}
