@charset "utf-8";

/* ============================================================
   [그누보드5 완전 리셋 패턴] 
   rules.md 리셋 가이드 준수 (Background Tips 74)
   ============================================================ */
#tg-bg-wrapper,
#tg-bg-wrapper *,
#tg-bg-wrapper *::before,
#tg-bg-wrapper *::after {
    box-sizing: border-box !important;
    margin: 0; padding: 0; border: none;
    outline: none; text-decoration: none;
    list-style: none; background: none;
    font-style: normal;
    -webkit-font-smoothing: antialiased !important;
    word-break: keep-all;
}

/* h1~h6 리셋 */
#tg-bg-wrapper h1, 
#tg-bg-wrapper h2, 
#tg-bg-wrapper h3, 
#tg-bg-wrapper h4, 
#tg-bg-wrapper h5, 
#tg-bg-wrapper h6 { 
    font-size: inherit; 
    font-weight: inherit; 
    color: inherit; 
}

#tg-bg-wrapper p, 
#tg-bg-wrapper span, 
#tg-bg-wrapper div, 
#tg-bg-wrapper section, 
#tg-bg-wrapper article, 
#tg-bg-wrapper header, 
#tg-bg-wrapper main { 
    margin: 0; 
    padding: 0; 
}

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

/* ============================================================
   [디자인 시스템] Artistic Rose & Canvas Gray
   ============================================================ */
:root {
    --bg-primary: #f43f5e; /* Rose 500 */
    --bg-primary-dark: #be123c; /* Rose 700 */
    --bg-accent: #fb7185; /* Rose 400 */
    --bg-secondary: #fff1f2; /* Rose 50 */
    --bg-slate-900: #0f172a;
    --bg-slate-800: #1e293b;
    --bg-slate-600: #475569;
    --bg-slate-100: #f1f5f9;
    --bg-white: #ffffff;
    --bg-radius: 32px;
}

/* ============================================================
   [Layout] Wide View (1100px)
   ============================================================ */
#tg-bg-wrapper {
    max-width: 1100px !important;
    margin: 30px auto !important;
    width: 100% !important;
    font-family: 'Pretendard', sans-serif !important;
    background-color: #fcfcfc !important;
    color: var(--bg-slate-800) !important;
    overflow: hidden !important;
}

#tg-bg-wrapper strong {
    font-weight: 800 !important;
    color: var(--bg-primary-dark) !important;
}

#tg-bg-wrapper mark {
    background: linear-gradient(120deg, #ffe4e6 0%, #fecdd3 100%) !important;
    color: #9f1239 !important;
    font-weight: 800 !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
}

/* ============================================================
   [Hero Section]
   ============================================================ */
#tg-bg-wrapper .tg-bg-hero {
    background: linear-gradient(135deg, #4c0519 0%, #881337 50%, #f43f5e 100%) !important;
    padding: 120px 24px !important;
    text-align: center !important;
    position: relative !important;
}

#tg-bg-wrapper .tg-bg-hero__icon-group {
    display: flex !important; align-items: center !important; justify-content: center !important;
    gap: 15px !important; margin-bottom: 40px !important;
}

#tg-bg-wrapper .tg-bg-hero__icon-box {
    width: 70px !important; height: 70px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 22px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    font-size: 30px !important; color: #fff !important;
    backdrop-filter: blur(5px) !important;
}

#tg-bg-wrapper .tg-bg-hero__badge {
    display: inline-flex !important; align-items: center !important; gap: 8px !important;
    background: rgba(251, 113, 133, 0.2) !important;
    color: #fecdd3 !important;
    border: 1px solid rgba(251, 113, 133, 0.4) !important;
    padding: 10px 24px !important; border-radius: 100px !important;
    font-size: 14px !important; font-weight: 900 !important;
    margin-bottom: 25px !important;
}

#tg-bg-wrapper .tg-bg-hero__title {
    font-size: 44px !important; font-weight: 950 !important; line-height: 1.25 !important;
    color: var(--bg-white) !important; margin-bottom: 25px !important;
    letter-spacing: -0.02em !important;
}

#tg-bg-wrapper .tg-bg-hero__title span { color: #fecdd3 !important; }

#tg-bg-wrapper .tg-bg-hero__desc {
    font-size: 20px !important; color: rgba(255, 255, 255, 0.85) !important;
    max-width: 800px !important; margin: 0 auto !important;
}

/* ============================================================
   [Main Content]
   ============================================================ */
#tg-bg-wrapper .tg-bg-main {
    padding: 40px 20px !important;
    display: flex !important; flex-direction: column !important; gap: 50px !important;
}

#tg-bg-wrapper .tg-bg-section {
    background: var(--bg-white) !important;
    padding: 50px 40px !important;
    border-radius: var(--bg-radius) !important;
    border: 1px solid var(--bg-slate-100) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.02) !important;
}

#tg-bg-wrapper .tg-bg-section--dark {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%) !important;
    border: none !important;
}

#tg-bg-wrapper .tg-bg-section__head {
    display: flex !important; align-items: center !important; gap: 16px !important;
    margin-bottom: 35px !important;
}

#tg-bg-wrapper .tg-bg-section__icon {
    width: 60px !important; height: 60px !important;
    background: var(--bg-secondary) !important; color: var(--bg-primary) !important;
    border-radius: 18px !important; display: flex !important; align-items: center !important; justify-content: center !important;
    font-size: 26px !important;
}

#tg-bg-wrapper .tg-bg-section--dark .tg-bg-section__icon {
    background: rgba(255, 255, 255, 0.1) !important; color: #fb7185 !important;
}

#tg-bg-wrapper .tg-bg-section__title {
    font-size: 28px !important; font-weight: 900 !important; color: var(--bg-slate-900) !important;
}

#tg-bg-wrapper .tg-bg-section--dark .tg-bg-section__title {
    color: var(--bg-white) !important;
}
#tg-bg-wrapper .tg-bg-section--dark p {
    color: #cbd5e1 !important;
}

/* 다크 섹션 내 강조 텍스트 가독성 히어로 보정 */
#tg-bg-wrapper .tg-bg-section--dark strong {
    color: #fb7185 !important;
}
#tg-bg-wrapper .tg-bg-section--dark mark {
    background: rgba(244, 63, 94, 0.3) !important;
    color: #fecdd3 !important;
}

/* ─── 포인트 그리드 ─── */
#tg-bg-wrapper .tg-bg-grid {
    display: grid !important; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 25px !important;
}

#tg-bg-wrapper .tg-bg-card {
    background: #fdfdfd !important; padding: 40px 30px !important; border-radius: 28px !important;
    text-align: center !important; border: 1px solid #ffe4e6 !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

#tg-bg-wrapper .tg-bg-card:hover { transform: translateY(-12px) scale(1.02) !important; box-shadow: 0 20px 40px rgba(244, 63, 94, 0.1) !important; }

#tg-bg-wrapper .tg-bg-card h4 {
    font-size: 22px !important; font-weight: 850 !important; color: var(--bg-slate-900) !important;
    margin-bottom: 15px !important; text-align: center !important;
}

#tg-bg-wrapper .tg-bg-card i {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-size: 44px !important;
    color: var(--bg-primary) !important;
    display: block !important;
    margin: 0 auto 20px !important;
    line-height: 44px !important;
    text-align: center !important;
}

/* ─── 프로세스 스텝 (다크 전용) ─── */
#tg-bg-wrapper .tg-bg-process {
    display: flex !important; flex-direction: column !important; gap: 20px !important;
}

#tg-bg-wrapper .tg-bg-step {
    display: flex !important; align-items: flex-start !important; gap: 25px !important;
    padding: 30px !important; background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 24px !important; border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#tg-bg-wrapper .tg-bg-step__num {
    width: 44px !important; height: 44px !important; background: var(--bg-primary) !important;
    color: #fff !important; border-radius: 12px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    font-size: 20px !important; flex-shrink: 0 !important; font-weight: 900 !important;
}

#tg-bg-wrapper .tg-bg-step__content h4 {
    font-size: 20px !important; font-weight: 850 !important; color: #fff !important; margin-bottom: 8px !important;
}

#tg-bg-wrapper .tg-bg-step__content p { font-size: 16px !important; color: #cbd5e1 !important; margin: 0 !important; line-height: 1.6 !important; }

/* ─── PRO TIP 컴포넌트 ─── */
#tg-bg-wrapper .tg-bg-tip {
    display: flex !important; gap: 20px !important; padding: 30px !important;
    background: #fff1f2 !important; border: 1px solid #fecdd3 !important;
    border-radius: 24px !important; margin-top: 20px !important;
}

#tg-bg-wrapper .tg-bg-tip__icon {
    width: 56px !important; height: 56px !important; background: var(--bg-primary) !important;
    color: #fff !important; border-radius: 18px !important; display: flex !important;
    align-items: center !important; justify-content: center !important; font-size: 24px !important; flex-shrink: 0 !important;
}

#tg-bg-wrapper .tg-bg-tip__icon i {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}

#tg-bg-wrapper .tg-bg-tip__badge {
    display: inline-block !important; background: var(--bg-slate-900) !important;
    color: var(--bg-white) !important; font-size: 12px !important; font-weight: 800 !important;
    padding: 4px 14px !important; border-radius: 100px !important; margin-bottom: 10px !important;
}

#tg-bg-wrapper .tg-bg-tip__body p {
    color: var(--bg-slate-800) !important;
}

/* ============================================================
   [Summary Section]
   ============================================================ */
#tg-bg-wrapper .tg-bg-summary {
    background: linear-gradient(135deg, #4c0519 0%, #881337 50%, #f43f5e 100%) !important;
    padding: 80px 40px !important; border-radius: 40px !important;
    text-align: center !important; color: #fff !important;
}

#tg-bg-wrapper .tg-bg-summary__title {
    font-size: 36px !important; font-weight: 900 !important; margin-bottom: 60px !important;
}

/* 요약 비주얼 (공식) */
#tg-bg-wrapper .tg-bg-formula {
    display: flex !important; align-items: center !important; justify-content: center !important;
    gap: 20px !important; margin-bottom: 60px !important; flex-wrap: wrap !important;
}

#tg-bg-wrapper .tg-bg-formula__item {
    display: flex !important; flex-direction: column !important; align-items: center !important; gap: 12px !important;
}

#tg-bg-wrapper .tg-bg-formula__icon {
    width: 80px !important; height: 80px !important; background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px !important; border: 1px solid rgba(255, 255, 255, 0.2) !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    font-size: 30px !important; color: #fff !important;
}

#tg-bg-wrapper .tg-bg-formula__icon i {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}

#tg-bg-wrapper .tg-bg-formula__icon--active {
    background: var(--bg-white) !important; color: var(--bg-primary) !important;
}

#tg-bg-wrapper .tg-bg-formula__plus { font-size: 24px !important; font-weight: 900 !important; color: rgba(255,255,255,0.2) !important; }

#tg-bg-wrapper .tg-bg-formula__text { font-size: 15px !important; font-weight: 800 !important; opacity: 0.9 !important; }

/* 체크리스트 */
#tg-bg-wrapper .tg-bg-checklist {
    text-align: left !important; display: inline-block !important;
    background: #fff !important; padding: 50px !important; border-radius: 32px !important;
    width: 100% !important; max-width: 800px !important;
}

#tg-bg-wrapper .tg-bg-checklist li {
    position: relative !important; padding-left: 40px !important; margin-bottom: 25px !important;
    color: var(--bg-slate-800) !important; font-size: 18px !important;
}

#tg-bg-wrapper .tg-bg-checklist li:last-child { margin-bottom: 0 !important; }

#tg-bg-wrapper .tg-bg-checklist li::before {
    content: "\f058" !important; font-family: "Font Awesome 5 Free" !important; font-weight: 900 !important;
    position: absolute !important; left: 0 !important; top: 0 !important;
    color: var(--bg-primary) !important; font-size: 24px !important;
}

#tg-bg-wrapper .tg-bg-footer {
    margin-top: 60px !important; font-size: 16px !important; opacity: 0.8 !important; line-height: 1.6 !important;
}

#tg-bg-wrapper .tg-bg-footer strong, #tg-bg-wrapper .tg-bg-footer a { color: #fff !important; font-weight: 800 !important; }

/* 애니메이션 */
.tg-bg-motion { opacity: 0 !important; transform: translateY(30px) !important; transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important; }
.tg-bg-motion.is-visible { opacity: 1 !important; transform: translateY(0) !important; }

@media (max-width: 768px) {
    #tg-bg-wrapper .tg-bg-hero__title { font-size: 32px !important; }
    #tg-bg-wrapper .tg-bg-section { padding: 40px 25px !important; }
    #tg-bg-wrapper .tg-bg-formula { gap: 10px !important; }
    #tg-bg-wrapper .tg-bg-checklist { padding: 30px !important; }
}
