@charset "utf-8";

/* ============================================
   텔레그램 미디어 자르기/회전 가이드
   접두사: tg-crp- (기존 사이트 오염 방지)
   컬러 톤: 틸(Teal) + 슬레이트(Slate)
============================================ */

:root {
    --tgcr-teal: #0d9488;
    --tgcr-teal-dark: #0f766e;
    --tgcr-teal-deep: #042f2e;
    --tgcr-teal-light: #f0fdfa;
    --tgcr-teal-border: #5eead4;
    --tgcr-cyan: #06b6d4;
    --tgcr-cyan-light: #ecfeff;
    --tgcr-cyan-border: #67e8f9;
    --tgcr-amber: #d97706;
    --tgcr-amber-light: #fffbeb;
    --tgcr-amber-border: #fde68a;
    --tgcr-slate-900: #0f172a;
    --tgcr-slate-700: #334155;
    --tgcr-slate-500: #64748b;
    --tgcr-slate-300: #cbd5e1;
    --tgcr-slate-200: #e2e8f0;
    --tgcr-slate-100: #f1f5f9;
    --tgcr-bg: #f0fdfb;
    --tgcr-white: #ffffff;
    --tgcr-radius: 14px;
}

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

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

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

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

/* ─── 히어로 헤더 ─── */
.tg-crp-hero {
    background: linear-gradient(145deg, #020617 0%, #042f2e 30%, #0d9488 65%, #2dd4bf 100%);
    color: var(--tgcr-white);
    padding: 60px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tg-crp-hero::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border: 60px solid rgba(13, 148, 136, 0.06);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.tg-crp-hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border: 40px solid rgba(94, 234, 212, 0.04);
    border-radius: 50%;
    bottom: -60px;
    left: -50px;
}

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

.tg-crp-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(13, 148, 136, 0.15);
    color: var(--tgcr-teal-border);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 22px;
    border: 1px solid rgba(94, 234, 212, 0.15);
    backdrop-filter: blur(4px);
}

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

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

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

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

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

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

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

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

.tg-crp-section--accent {
    background: linear-gradient(135deg, var(--tgcr-cyan-light) 0%, #cffafe40 100%);
    border-color: var(--tgcr-cyan-border);
}

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

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

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

.tg-crp-section__num--accent {
    color: var(--tgcr-cyan);
    opacity: 0.25;
}

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

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

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

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

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

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

.tg-crp-step:hover {
    border-left-color: var(--tgcr-teal);
}

.tg-crp-step--highlight {
    background: linear-gradient(135deg, var(--tgcr-teal-light) 0%, #ccfbf140 100%);
    border-left-color: var(--tgcr-teal);
}

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

.tg-crp-step__marker--highlight {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

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

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

/* 편집 아이콘 */
.tg-crp-edit-icons {
    display: inline-flex;
    gap: 6px;
}

.tg-crp-edit-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    color: var(--tgcr-slate-500);
    background-color: var(--tgcr-white);
    border: 1px solid var(--tgcr-slate-200);
}

.tg-crp-edit-icon--active {
    background: linear-gradient(135deg, var(--tgcr-teal) 0%, var(--tgcr-teal-dark) 100%);
    color: var(--tgcr-white);
    border-color: var(--tgcr-teal);
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.3);
}

/* 크롭 프레임 비주얼 */
.tg-crp-crop-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, var(--tgcr-slate-100) 100%);
    border: 1px solid var(--tgcr-slate-200);
    border-radius: 8px;
}

.tg-crp-crop-visual__frame {
    width: 120px;
    height: 80px;
    border: 2px dashed var(--tgcr-teal);
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(13, 148, 136, 0.03);
}

.tg-crp-crop-visual__corner {
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: var(--tgcr-teal);
    border-style: solid;
}

.tg-crp-crop-visual__corner--tl {
    top: -2px;
    left: -2px;
    border-width: 3px 0 0 3px;
}

.tg-crp-crop-visual__corner--tr {
    top: -2px;
    right: -2px;
    border-width: 3px 3px 0 0;
}

.tg-crp-crop-visual__corner--bl {
    bottom: -2px;
    left: -2px;
    border-width: 0 0 3px 3px;
}

.tg-crp-crop-visual__corner--br {
    bottom: -2px;
    right: -2px;
    border-width: 0 3px 3px 0;
}

.tg-crp-crop-visual__label {
    font-size: 16px;
    color: var(--tgcr-teal);
    opacity: 0.5;
}

/* ─── 도구 3열 ─── */
.tg-crp-tools {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.tg-crp-tool {
    background-color: var(--tgcr-white);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--tgcr-cyan-border);
    text-align: center;
}

.tg-crp-tool__icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--tgcr-cyan) 0%, var(--tgcr-teal) 100%);
    color: var(--tgcr-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 10px;
}

.tg-crp-tool__title {
    font-size: 16px;
    font-weight: 800;
    color: var(--tgcr-slate-900);
    margin-bottom: 6px;
}

.tg-crp-tool__text {
    font-size: 14px;
    margin-bottom: 8px;
}

.tg-crp-tool__demo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--tgcr-teal);
    padding: 4px 10px;
    background-color: var(--tgcr-teal-light);
    border: 1px solid var(--tgcr-teal-border);
    border-radius: 100px;
}

.tg-crp-tool__demo span {
    min-width: 18px;
    text-align: center;
}

.tg-crp-tool__demo i {
    font-size: 8px;
    opacity: 0.5;
}

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

.tg-crp-tip {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(94, 234, 212, 0.12);
    padding: 22px;
    border-radius: 10px;
    position: relative;
}

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

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

.tg-crp-tip__title i {
    color: var(--tgcr-teal-border);
    margin-right: 4px;
}

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

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

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

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

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

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

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

.tg-crp-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(94, 234, 212, 0.12);
    border-radius: 10px;
}

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

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

.tg-crp-summary__highlight span {
    font-size: 11px;
    color: var(--tgcr-teal-border);
    text-align: center;
}

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

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

.tg-crp-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(--tgcr-teal-border);
}

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

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

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

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

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

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

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

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

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

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

    /* 도구 3열 */
    .tg-crp-tools {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

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

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

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