@charset "utf-8";

/* ============================================
   텔레그램 미디어 설명 자동 전환(Media Auto Caption) 가이드
   접두사: tg-mac- (기존 사이트 오염 방지)
   컬러 톤: 웜 앰버(Warm Amber) + 오션 블루(Ocean Blue)
============================================ */

:root {
    --mac-amber: #d97706;
    --mac-amber-dark: #b45309;
    --mac-amber-deep: #78350f;
    --mac-amber-light: #fffbeb;
    --mac-amber-border: #fcd34d;
    --mac-blue: #2563eb;
    --mac-blue-dark: #1d4ed8;
    --mac-blue-deep: #1e3a5f;
    --mac-blue-light: #eff6ff;
    --mac-blue-border: #93c5fd;
    --mac-green: #059669;
    --mac-green-light: #d1fae5;
    --mac-slate-900: #0f172a;
    --mac-slate-700: #334155;
    --mac-slate-500: #64748b;
    --mac-slate-300: #cbd5e1;
    --mac-slate-200: #e2e8f0;
    --mac-slate-100: #f1f5f9;
    --mac-bg: #fffbf0;
    --mac-white: #ffffff;
    --mac-radius: 14px;
}

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

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

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

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

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

.tg-mac-hero::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    border: 65px solid rgba(37, 99, 235, 0.05);
    border-radius: 50%;
    top: -110px;
    right: -110px;
}

.tg-mac-hero::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    border: 45px solid rgba(147, 197, 253, 0.04);
    border-radius: 50%;
    bottom: -70px;
    left: -55px;
}

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

/* 히어로 아이콘 그룹 (텍스트 → 미디어) */
.tg-mac-hero__icon-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.tg-mac-hero__icon-text,
.tg-mac-hero__icon-media {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.tg-mac-hero__icon-text {
    background: rgba(255, 255, 255, 0.1);
    color: var(--mac-amber-border);
    border: 1px solid rgba(252, 211, 77, 0.2);
}

.tg-mac-hero__icon-media {
    background: rgba(255, 255, 255, 0.1);
    color: var(--mac-blue-border);
    border: 1px solid rgba(147, 197, 253, 0.2);
}

.tg-mac-hero__icon-arrow {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
    animation: tg-mac-arrow-pulse 1.5s ease-in-out infinite;
}

.tg-mac-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.2) 0%, rgba(252, 211, 77, 0.1) 100%);
    color: var(--mac-amber-border);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 22px;
    border: 1px solid rgba(252, 211, 77, 0.2);
    backdrop-filter: blur(4px);
}

.tg-mac-hero__badge i {
    font-size: 14px;
    color: var(--mac-amber-border);
}

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

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

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

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

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

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

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

.tg-mac-section--dark {
    background: linear-gradient(135deg, #0c1222 0%, var(--mac-blue-deep) 50%, #1e40af 100%);
    border-color: var(--mac-blue);
    color: var(--mac-slate-300);
}

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

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

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

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

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

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

.tg-mac-section__desc--light {
    color: var(--mac-blue-border);
}

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

/* ─── 전환 프로세스 비주얼 ─── */
.tg-mac-process-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 24px 16px;
    background: linear-gradient(135deg, var(--mac-amber-light) 0%, #fef3c7 100%);
    border: 1px solid var(--mac-amber-border);
    border-radius: 12px;
}

.tg-mac-process-visual__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--mac-slate-500);
}

.tg-mac-process-visual__icon {
    width: 48px;
    height: 48px;
    background-color: var(--mac-white);
    border: 1px solid var(--mac-slate-200);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--mac-slate-500);
}

.tg-mac-process-visual__step--media .tg-mac-process-visual__icon {
    background: linear-gradient(135deg, var(--mac-blue) 0%, var(--mac-blue-dark) 100%);
    color: var(--mac-white);
    border-color: var(--mac-blue);
}

.tg-mac-process-visual__step--media {
    color: var(--mac-blue-dark);
}

.tg-mac-process-visual__step--result .tg-mac-process-visual__icon {
    background: linear-gradient(135deg, var(--mac-green) 0%, #10b981 100%);
    color: var(--mac-white);
    border-color: var(--mac-green);
}

.tg-mac-process-visual__step--result {
    color: var(--mac-green);
}

.tg-mac-process-visual__arrow {
    color: var(--mac-amber-border);
    font-size: 16px;
    font-weight: 800;
}

/* ─── 이점 카드 ─── */
.tg-mac-benefit-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.tg-mac-benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background-color: var(--mac-slate-100);
    border-radius: 10px;
    border: 1px solid var(--mac-slate-200);
}

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

.tg-mac-benefit-card__icon--blue {
    background: linear-gradient(135deg, var(--mac-blue) 0%, var(--mac-blue-dark) 100%);
}

.tg-mac-benefit-card__body strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.tg-mac-benefit-card__body span {
    font-size: 13px;
}

.tg-mac-benefit-card__flow {
    font-size: 10px;
    color: var(--mac-amber);
    margin: 0 3px;
}

/* ─── 타임라인 (다크 섹션 내) ─── */
.tg-mac-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tg-mac-timeline__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 18px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(147, 197, 253, 0.1);
    border-radius: 12px;
    position: relative;
}

.tg-mac-timeline__item--final {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-color: rgba(110, 231, 183, 0.15);
}

.tg-mac-timeline__number {
    position: absolute;
    top: -10px;
    left: 16px;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--mac-amber) 0%, #f59e0b 100%);
    color: var(--mac-white);
    font-weight: 900;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.tg-mac-timeline__item--final .tg-mac-timeline__number {
    background: linear-gradient(135deg, var(--mac-green) 0%, #10b981 100%);
}

.tg-mac-timeline__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(147, 197, 253, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--mac-blue-border);
}

.tg-mac-timeline__icon--cloud {
    color: var(--mac-amber-border);
}

.tg-mac-timeline__icon--mobile {
    color: var(--mac-blue-border);
}

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

.tg-mac-timeline__body {
    flex: 1;
    padding-top: 4px;
}

.tg-mac-timeline__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--mac-white);
    margin-bottom: 4px;
}

.tg-mac-timeline__text {
    font-size: 14px;
    color: var(--mac-blue-border);
}

.tg-mac-timeline__text strong {
    color: var(--mac-white);
}

.tg-mac-timeline__connector {
    width: 2px;
    height: 20px;
    background: linear-gradient(180deg, rgba(147, 197, 253, 0.2) 0%, rgba(147, 197, 253, 0.05) 100%);
    margin-left: 36px;
}

/* ─── 직장인 활용 팁 박스 ─── */
.tg-mac-work-tip {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 24px;
    padding: 20px 22px;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1) 0%, rgba(252, 211, 77, 0.05) 100%);
    border: 1px solid rgba(252, 211, 77, 0.2);
    border-radius: 12px;
}

.tg-mac-work-tip__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--mac-amber) 0%, #f59e0b 100%);
    color: var(--mac-white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.tg-mac-work-tip__body {
    flex: 1;
}

.tg-mac-work-tip__badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    color: var(--mac-amber-deep);
    background-color: var(--mac-amber-border);
    padding: 2px 12px;
    border-radius: 100px;
    margin-bottom: 8px;
}

.tg-mac-work-tip__body p {
    font-size: 14px;
    color: var(--mac-blue-border);
}

.tg-mac-work-tip__body strong {
    color: var(--mac-white);
}

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

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

.tg-mac-step:hover {
    border-left-color: var(--mac-amber);
}

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

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

.tg-mac-step__marker--highlight {
    background: linear-gradient(135deg, var(--mac-green) 0%, #10b981 100%);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

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

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

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

/* ─── 입력창 비주얼 ─── */
.tg-mac-input-visual {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 14px;
    background-color: var(--mac-white);
    border: 1px solid var(--mac-slate-200);
    border-radius: 24px;
    max-width: 380px;
}

.tg-mac-input-visual__field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2px;
}

.tg-mac-input-visual__cursor {
    width: 2px;
    height: 16px;
    background-color: var(--mac-blue);
    border-radius: 2px;
    animation: tg-mac-blink 1s step-end infinite;
    flex-shrink: 0;
}

.tg-mac-input-visual__text {
    font-size: 13px;
    color: var(--mac-slate-700);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tg-mac-input-visual__send {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--mac-blue) 0%, var(--mac-blue-dark) 100%);
    color: var(--mac-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

/* ─── 첨부 버튼 비주얼 ─── */
.tg-mac-attach-visual {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.tg-mac-attach-visual__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--mac-blue) 0%, var(--mac-blue-dark) 100%);
    color: var(--mac-white);
    border-radius: 50%;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.tg-mac-attach-visual__label {
    font-size: 12px;
    font-weight: 700;
    color: var(--mac-blue-dark);
}

/* ─── 캡션 전환 결과 비주얼 ─── */
.tg-mac-caption-result {
    margin-top: 14px;
    background-color: var(--mac-white);
    border: 1px solid var(--mac-slate-200);
    border-radius: 12px;
    overflow: hidden;
    max-width: 320px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.tg-mac-caption-result__image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 100px;
    background: linear-gradient(135deg, var(--mac-blue-light) 0%, #dbeafe 100%);
    font-size: 28px;
    color: var(--mac-blue-border);
}

.tg-mac-caption-result__image span {
    font-size: 11px;
    font-weight: 600;
    color: var(--mac-slate-500);
}

.tg-mac-caption-result__field {
    padding: 12px 14px;
    font-size: 13px;
    color: var(--mac-slate-700);
    border-top: 1px solid var(--mac-slate-200);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tg-mac-caption-result__magic {
    color: var(--mac-amber);
    font-size: 14px;
    animation: tg-mac-sparkle 1.5s ease-in-out infinite;
}

.tg-mac-caption-result__badge {
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--mac-green-light) 0%, #a7f3d0 100%);
    font-size: 12px;
    font-weight: 800;
    color: var(--mac-green);
    text-align: center;
}

/* ─── 결론 및 요약 ─── */
.tg-mac-summary {
    background: linear-gradient(135deg, #0c1222 0%, var(--mac-blue-deep) 50%, #1e40af 100%);
    color: var(--mac-white);
    padding: 44px 28px;
    border-radius: var(--mac-radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(30, 58, 95, 0.4);
}

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

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

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

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

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

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

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

.tg-mac-summary__icon-circle--sync {
    background: linear-gradient(135deg, var(--mac-amber) 0%, #f59e0b 100%);
    color: var(--mac-white);
    border-color: var(--mac-amber);
}

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

.tg-mac-summary__icon-arrow {
    color: rgba(147, 197, 253, 0.3);
    font-size: 14px;
}

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

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

.tg-mac-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(--mac-amber-border);
}

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

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

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

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

/* 히어로 화살표 펄스 */
@keyframes tg-mac-arrow-pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: translateX(0);
    }

    50% {
        opacity: 0.8;
        transform: translateX(4px);
    }
}

/* 커서 깜빡임 */
@keyframes tg-mac-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* 매직 아이콘 반짝임 */
@keyframes tg-mac-sparkle {

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

    50% {
        transform: scale(1.2) rotate(15deg);
        opacity: 0.7;
    }
}

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

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

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

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

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

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

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

    /* 이점 카드 2열 */
    .tg-mac-benefit-cards {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

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