/*
 * tips301/style.css  v1.0.0
 * 텔레그램 비즈니스 가이드 전용 스타일
 * 그누보드5 완전 격리 | BEM 네이밍 | 모바일 퍼스트
 * 테마: 에메랄드·그린+다크 (비즈니스·프로페셔널·생산성)
 */

/* ── 리셋 ── */
#tg-301-wrapper,#tg-301-wrapper *,#tg-301-wrapper *::before,#tg-301-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-301-wrapper h1,#tg-301-wrapper h2,#tg-301-wrapper h3,#tg-301-wrapper h4{font-size:inherit;font-weight:inherit;color:inherit;line-height:1.3}
#tg-301-wrapper p{margin-bottom:14px!important;line-height:1.75!important}
#tg-301-wrapper p:last-child{margin-bottom:0!important}

/* ── 변수 ── */
#tg-301-wrapper{
    --emerald-400:#34d399;--emerald-500:#10b981;--emerald-600:#059669;--emerald-700:#047857;--emerald-800:#065f46;
    --green-400:#4ade80;--green-500:#22c55e;
    --amber-500:#f59e0b;--amber-600:#d97706;
    --slate-50:#f8fafc;--slate-100:#f1f5f9;--slate-200:#e2e8f0;--slate-300:#cbd5e1;--slate-400:#94a3b8;--slate-500:#64748b;--slate-700:#334155;--slate-800:#1e293b;--slate-900:#0f172a;
    --text-main:#1e293b;--text-sub:#475569;--border-r:14px;
    --shadow-emerald:0 8px 28px rgba(16,185,129,0.12);
}

#tg-301-wrapper.tg-301-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(16,185,129,0.08)}

/* ══════ 히어로 ══════ */
#tg-301-wrapper .tg-301-hero{position:relative;background:linear-gradient(135deg,#065f46 0%,#064e3b 60%,#0f172a 100%);padding:52px 24px 52px;text-align:center;overflow:hidden}
#tg-301-wrapper .tg-301-hero::before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 70% 25%,rgba(52,211,153,0.2) 0%,transparent 55%),radial-gradient(circle at 25% 75%,rgba(74,222,128,0.1) 0%,transparent 50%);pointer-events:none}
#tg-301-wrapper .tg-301-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-301-wrapper .tg-301-hero__inner{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:18px}
#tg-301-wrapper .tg-301-hero__badge{display:inline-flex;align-items:center;gap:6px;background:rgba(52,211,153,0.2)!important;color:#a7f3d0!important;font-size:0.82rem;font-weight:700;padding:6px 16px;border-radius:20px;border:1px solid rgba(52,211,153,0.3)}
#tg-301-wrapper .tg-301-hero__icon-flow{display:flex;align-items:center;gap:14px}
#tg-301-wrapper .tg-301-hero__icon-box{display:flex;align-items:center;justify-content:center;width:60px;height:60px;background:rgba(255,255,255,0.08)!important;border:2px solid rgba(255,255,255,0.2);border-radius:14px;font-size:1.8rem;color:#fff!important}
#tg-301-wrapper .tg-301-hero__icon-box--mid{background:rgba(52,211,153,0.18)!important;border-color:rgba(52,211,153,0.35)}
#tg-301-wrapper .tg-301-hero__icon-box--glow{background:rgba(74,222,128,0.18)!important;border-color:rgba(74,222,128,0.35);animation:tg301-pulse 2.5s ease-in-out infinite}
@keyframes tg301-pulse{0%,100%{box-shadow:0 0 0 0 rgba(52,211,153,0.3)}50%{box-shadow:0 0 0 14px rgba(52,211,153,0)}}
#tg-301-wrapper .tg-301-hero__flow-arrow{color:rgba(255,255,255,0.35)!important;font-size:1.1rem}
#tg-301-wrapper .tg-301-hero__title{font-size:1.6rem;font-weight:900;color:#fff!important;line-height:1.35;word-break:keep-all}
#tg-301-wrapper .tg-301-hero__subtitle{font-size:0.97rem;color:rgba(255,255,255,0.82)!important;word-break:keep-all;max-width:700px;margin-bottom:0!important}
#tg-301-wrapper .tg-301-hero__tags{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
#tg-301-wrapper .tg-301-hero__tag{background:rgba(255,255,255,0.08)!important;color:rgba(255,255,255,0.85)!important;font-size:0.82rem;font-weight:600;padding:4px 13px;border-radius:20px;border:1px solid rgba(255,255,255,0.15)}

/* ══════ 메인 ══════ */
#tg-301-wrapper .tg-301-main{background:#fff;padding:48px 20px 40px;display:flex;flex-direction:column;gap:44px}

/* ══════ 도입부 ══════ */
#tg-301-wrapper .tg-301-intro{background:var(--slate-50)!important;border:1px solid var(--slate-200);border-radius:var(--border-r);padding:28px 24px;text-align:left}
#tg-301-wrapper .tg-301-intro__icon{margin-bottom:12px;font-size:2rem;color:var(--emerald-500);text-align:center}
#tg-301-wrapper .tg-301-intro__heading{font-size:1.15rem;font-weight:800;color:var(--emerald-700)!important;margin-bottom:14px;text-align:center}
#tg-301-wrapper .tg-301-intro p{font-size:0.97rem;color:var(--text-sub)!important;word-break:keep-all}
#tg-301-wrapper .tg-301-intro p strong{color:var(--emerald-600)!important}

/* ══════ 섹션 공통 ══════ */
#tg-301-wrapper .tg-301-section__label{display:inline-flex;align-items:center;gap:7px;background:var(--emerald-600)!important;color:#fff!important;font-size:0.78rem;font-weight:700;padding:4px 14px;border-radius:20px;margin-bottom:12px}
#tg-301-wrapper .tg-301-section__label--demo{background:#0284c7!important}
#tg-301-wrapper .tg-301-section__label--tips{background:var(--amber-600)!important}
#tg-301-wrapper .tg-301-section__title{font-size:1.25rem;font-weight:900;color:var(--slate-800)!important;border-left:4px solid var(--emerald-500);padding-left:14px;margin-bottom:18px;line-height:1.4;word-break:keep-all}
#tg-301-wrapper .tg-301-section p{font-size:0.97rem;color:var(--text-sub)!important;word-break:keep-all;text-align:left}
#tg-301-wrapper .tg-301-section p strong{color:var(--emerald-700)!important;font-weight:700}

/* ══════ 7대 기능 카드 ══════ */
#tg-301-wrapper .tg-301-feature-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:22px}
#tg-301-wrapper .tg-301-feature-card{position:relative;background:var(--slate-50)!important;border:1px solid var(--slate-200);border-radius:10px;padding:14px 12px;display:flex;flex-direction:column;gap:4px;text-align:left;transition:transform 0.25s,box-shadow 0.25s}
#tg-301-wrapper .tg-301-feature-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-emerald)}
#tg-301-wrapper .tg-301-feature-card__icon{font-size:1.3rem;color:var(--emerald-500);margin-bottom:2px}
#tg-301-wrapper .tg-301-feature-card strong{font-size:0.82rem;font-weight:800;color:var(--slate-800)!important}
#tg-301-wrapper .tg-301-feature-card p{font-size:0.72rem;color:var(--text-sub)!important;margin-bottom:0!important}

/* ══════ 비즈니스 시뮬 ══════ */
#tg-301-wrapper .tg-301-biz-sim{margin-top:20px;display:flex;flex-direction:column;gap:16px}

/* 설정 패널 */
#tg-301-wrapper .tg-301-biz-sim__settings{background:var(--slate-50)!important;border:1px solid var(--slate-200);border-radius:14px;padding:14px}
#tg-301-wrapper .tg-301-biz-sim__settings-header{display:flex;align-items:center;gap:6px;font-size:0.72rem;font-weight:700;color:var(--text-sub)!important;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid var(--slate-200)}
#tg-301-wrapper .tg-301-biz-sim__settings-header i{color:var(--emerald-500)}

/* 토글 행 */
#tg-301-wrapper .tg-301-biz-sim__toggle-row{display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--slate-100)}
#tg-301-wrapper .tg-301-biz-sim__toggle-row:last-of-type{border-bottom:none}
#tg-301-wrapper .tg-301-biz-sim__toggle-info{display:flex;align-items:center;gap:6px;font-size:0.72rem;font-weight:600;color:var(--text-main)!important}
#tg-301-wrapper .tg-301-biz-sim__toggle-info i{color:var(--emerald-600);font-size:0.75rem;width:16px;text-align:center}

/* 토글 스위치 */
#tg-301-wrapper .tg-301-biz-sim__toggle{position:relative;width:38px;height:20px;background:var(--slate-300)!important;border-radius:10px;cursor:pointer;transition:background 0.3s;flex-shrink:0;font-family:inherit}
#tg-301-wrapper .tg-301-biz-sim__toggle.is-on{background:var(--emerald-500)!important}
#tg-301-wrapper .tg-301-biz-sim__toggle-knob{position:absolute;top:2px;left:2px;width:16px;height:16px;background:#fff!important;border-radius:50%;transition:left 0.3s;box-shadow:0 1px 3px rgba(0,0,0,0.15)}
#tg-301-wrapper .tg-301-biz-sim__toggle.is-on .tg-301-biz-sim__toggle-knob{left:20px}

/* 활성 카운트 */
#tg-301-wrapper .tg-301-biz-sim__active-count{margin-top:10px;text-align:center;font-size:0.6rem;font-weight:600;color:var(--text-sub)!important}
#tg-301-wrapper .tg-301-biz-sim__active-count strong{color:var(--emerald-600)!important;font-size:0.75rem}

/* 채팅 래퍼 */
#tg-301-wrapper .tg-301-biz-sim__chat-wrap{background:var(--slate-900)!important;border-radius:14px;overflow:hidden;box-shadow:0 8px 32px rgba(0,0,0,0.2)}
#tg-301-wrapper .tg-301-biz-sim__chat-header{display:flex;align-items:center;gap:8px;padding:10px 14px;background:var(--slate-800)!important;border-bottom:1px solid rgba(255,255,255,0.06);color:#fff!important}
#tg-301-wrapper .tg-301-biz-sim__chat-header i{color:var(--emerald-400);font-size:1rem}
#tg-301-wrapper .tg-301-biz-sim__chat-header strong{font-size:0.7rem;font-weight:800;display:block}
#tg-301-wrapper .tg-301-biz-sim__chat-hours{display:inline-flex;align-items:center;gap:2px;font-size:0.42rem;font-weight:600;color:var(--emerald-400)!important;margin-top:1px}

/* 채팅 */
#tg-301-wrapper .tg-301-biz-sim__chat{padding:8px 10px;min-height:140px;max-height:240px;overflow-y:auto;display:flex;flex-direction:column;gap:4px}
#tg-301-wrapper .tg-301-biz-sim__chat-msg{max-width:90%;padding:5px 8px;border-radius:8px;font-size:0.52rem;line-height:1.4;animation:tg301-msgIn 0.35s ease}
@keyframes tg301-msgIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
#tg-301-wrapper .tg-301-biz-sim__chat-msg--system{align-self:center;background:rgba(16,185,129,0.1)!important;color:var(--emerald-400)!important;font-size:0.45rem;font-weight:600;text-align:center;border-radius:12px;padding:4px 10px;max-width:100%}
#tg-301-wrapper .tg-301-biz-sim__chat-msg--bot{align-self:flex-start;background:rgba(255,255,255,0.08)!important;color:rgba(255,255,255,0.85)!important;border-left:2px solid var(--emerald-500)}
#tg-301-wrapper .tg-301-biz-sim__chat-msg--user{align-self:flex-end;background:rgba(16,185,129,0.2)!important;color:#fff!important}
#tg-301-wrapper .tg-301-biz-sim__chat-msg p{margin-bottom:0!important;line-height:1.4!important}
#tg-301-wrapper .tg-301-biz-sim__chat-msg__label{display:block;font-size:0.38rem;font-weight:700;color:var(--emerald-400)!important;margin-bottom:1px}
#tg-301-wrapper .tg-301-biz-sim__chat-msg--off{animation:tg301-msgOut 0.3s ease forwards}
@keyframes tg301-msgOut{to{opacity:0;transform:translateY(-4px);height:0;padding:0;margin:0}}

/* ══════ 탭 전환 ══════ */
#tg-301-wrapper .tg-301-tab-group{display:flex;gap:0;margin-top:22px;border-radius:12px 12px 0 0;overflow:hidden;border:1px solid var(--slate-200);border-bottom:none}
#tg-301-wrapper .tg-301-tab-btn{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;padding:14px 12px;background:var(--slate-100)!important;color:var(--text-sub)!important;font-family:inherit;font-size:0.88rem;font-weight:700;cursor:pointer;transition:background 0.25s;border-right:1px solid var(--slate-200)}
#tg-301-wrapper .tg-301-tab-btn:last-child{border-right:none}
#tg-301-wrapper .tg-301-tab-btn:hover{background:var(--slate-200)!important}
#tg-301-wrapper .tg-301-tab-btn--active{background:var(--emerald-600)!important;color:#fff!important}
#tg-301-wrapper .tg-301-tab-btn i{font-size:1.1rem}
#tg-301-wrapper .tg-301-tab-panel{display:none;background:var(--slate-50)!important;border:1px solid var(--slate-200);border-top:3px solid var(--emerald-500);border-radius:0 0 var(--border-r) var(--border-r);padding:22px 20px;text-align:left;animation:tg301-fadeIn 0.35s ease}
@keyframes tg301-fadeIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
#tg-301-wrapper .tg-301-tab-panel--active{display:block}
#tg-301-wrapper .tg-301-tab-panel__header{display:flex;align-items:flex-start;gap:14px;margin-bottom:18px}
#tg-301-wrapper .tg-301-tab-panel__icon-wrap{display:flex;align-items:center;justify-content:center;width:50px;height:50px;border-radius:12px;flex-shrink:0;font-size:1.6rem;color:#fff!important}
#tg-301-wrapper .tg-301-tab-panel__icon-wrap--pc{background:linear-gradient(135deg,#2283dd,#005bb5)!important}
#tg-301-wrapper .tg-301-tab-panel__icon-wrap--android{background:linear-gradient(135deg,#22c55e,#15803d)!important}
#tg-301-wrapper .tg-301-tab-panel__icon-wrap--ios{background:linear-gradient(135deg,#64748b,#334155)!important}
#tg-301-wrapper .tg-301-tab-panel__title{font-size:1.05rem;font-weight:800;color:var(--slate-800)!important;margin-bottom:4px}
#tg-301-wrapper .tg-301-tab-panel__desc{font-size:0.88rem;color:var(--text-sub)!important;margin-bottom:0!important}

/* ══════ 단계 ══════ */
#tg-301-wrapper .tg-301-steps{counter-reset:step301;display:flex;flex-direction:column;gap:9px;margin-bottom:14px;text-align:left}
#tg-301-wrapper .tg-301-steps__item{counter-increment:step301;position:relative;padding-left:32px;font-size:0.9rem;color:var(--text-sub)!important;line-height:1.55}
#tg-301-wrapper .tg-301-steps__item::before{content:counter(step301);position:absolute;left:0;top:2px;width:22px;height:22px;background:var(--emerald-600)!important;color:#fff!important;font-size:0.7rem;font-weight:900;border-radius:50%;display:inline-flex;align-items:center;justify-content:center}
#tg-301-wrapper .tg-301-steps__item strong{color:var(--emerald-700)!important;font-weight:700}
#tg-301-wrapper .tg-301-key-action{background:linear-gradient(135deg,#ecfdf5,#d1fae5)!important;border:1px solid #6ee7b7;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-301-wrapper .tg-301-key-action>i{color:var(--emerald-600)!important;flex-shrink:0}
#tg-301-wrapper .tg-301-key-action strong{color:var(--emerald-800)!important;font-weight:800;margin-right:4px}

/* ══════ 아코디언 ══════ */
#tg-301-wrapper .tg-301-accordion{display:flex;flex-direction:column;gap:12px;margin-top:20px}
#tg-301-wrapper .tg-301-accordion__item{background:var(--slate-50)!important;border:1px solid var(--slate-200);border-radius:var(--border-r);overflow:hidden;transition:border-color 0.3s,box-shadow 0.3s}
#tg-301-wrapper .tg-301-accordion__item.is-open{border-color:var(--emerald-400);box-shadow:var(--shadow-emerald)}
#tg-301-wrapper .tg-301-accordion__header{display:flex;align-items:center;gap:10px;padding:16px 18px;width:100%;background:none!important;cursor:pointer;font-family:inherit;text-align:left}
#tg-301-wrapper .tg-301-accordion__icon{display:flex;align-items:center;justify-content:center;width:38px;height:38px;background:linear-gradient(135deg,#ecfdf5,#d1fae5)!important;border-radius:10px;font-size:1.1rem;color:var(--emerald-600)!important;flex-shrink:0}
#tg-301-wrapper .tg-301-accordion__title{flex:1;font-size:0.95rem;font-weight:800;color:var(--slate-800)!important}
#tg-301-wrapper .tg-301-accordion__arrow{color:var(--slate-400)!important;font-size:0.8rem;transition:transform 0.3s;flex-shrink:0}
#tg-301-wrapper .tg-301-accordion__item.is-open .tg-301-accordion__arrow{transform:rotate(180deg)}
#tg-301-wrapper .tg-301-accordion__body{max-height:0;overflow:hidden;transition:max-height 0.45s,padding 0.45s;padding:0 18px;text-align:left}
#tg-301-wrapper .tg-301-accordion__item.is-open .tg-301-accordion__body{max-height:600px;padding:0 18px 20px}
#tg-301-wrapper .tg-301-accordion__body p{font-size:0.9rem;color:var(--text-sub)!important}
#tg-301-wrapper .tg-301-accordion__body p strong{color:var(--emerald-600)!important}

/* ══════ 결론 ══════ */
#tg-301-wrapper .tg-301-summary{background:linear-gradient(150deg,#0f172a 0%,#065f46 100%)!important;border-radius:var(--border-r);padding:44px 24px;text-align:center}
#tg-301-wrapper .tg-301-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}
#tg-301-wrapper .tg-301-summary__flow{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;margin-bottom:36px}
#tg-301-wrapper .tg-301-summary__flow-item{display:flex;flex-direction:column;align-items:center;gap:8px}
#tg-301-wrapper .tg-301-summary__flow-icon{display:flex;align-items:center;justify-content:center;width:52px;height:52px;background:rgba(255,255,255,0.08)!important;border:2px solid rgba(255,255,255,0.15);border-radius:12px;font-size:1.3rem;color:#fff!important}
#tg-301-wrapper .tg-301-summary__flow-item span{font-size:0.72rem;font-weight:600;color:var(--slate-300)!important;max-width:90px;text-align:center;line-height:1.3}
#tg-301-wrapper .tg-301-summary__flow-arrow{color:rgba(255,255,255,0.25)!important;font-size:0.9rem}
#tg-301-wrapper .tg-301-summary__checklist{text-align:left;max-width:640px;margin:0 auto 28px;display:flex;flex-direction:column;gap:10px}
#tg-301-wrapper .tg-301-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-301-wrapper .tg-301-summary__checklist li i{color:var(--emerald-400)!important;flex-shrink:0;margin-top:4px}
#tg-301-wrapper .tg-301-summary__checklist li strong{color:#fff!important;font-weight:700}
#tg-301-wrapper .tg-301-summary__desc{font-size:0.92rem;color:var(--slate-300)!important;word-break:keep-all;max-width:700px;margin:0 auto!important}
#tg-301-wrapper .tg-301-summary__desc strong{color:#fff!important}
#tg-301-wrapper .tg-301-footer{margin-top:28px}
#tg-301-wrapper .tg-301-footer__btn{display:inline-flex;align-items:center;gap:8px;background:#fff!important;color:var(--emerald-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,box-shadow 0.22s}
#tg-301-wrapper .tg-301-footer__btn:hover{transform:scale(1.05);box-shadow:0 6px 22px rgba(0,0,0,0.25)}

/* ══════ 스크롤 등장 ══════ */
#tg-301-wrapper .tg-301-motion{opacity:0;transform:translateY(26px);transition:opacity 0.65s ease-out,transform 0.65s ease-out}
#tg-301-wrapper .tg-301-motion.is-visible{opacity:1;transform:translateY(0)}

/* ══════ 반응형 ══════ */
@media(min-width:640px){
    #tg-301-wrapper .tg-301-hero{padding:64px 40px 60px}
    #tg-301-wrapper .tg-301-hero__title{font-size:2rem}
    #tg-301-wrapper .tg-301-main{padding:56px 40px 48px;gap:52px}
    #tg-301-wrapper .tg-301-feature-grid{grid-template-columns:repeat(4,1fr)}
    #tg-301-wrapper .tg-301-biz-sim{flex-direction:row;align-items:flex-start;gap:20px}
    #tg-301-wrapper .tg-301-biz-sim__settings{flex:1;min-width:220px}
    #tg-301-wrapper .tg-301-biz-sim__chat-wrap{flex:1.2;min-width:260px}
    #tg-301-wrapper .tg-301-summary{padding:56px 40px}
    #tg-301-wrapper .tg-301-tab-panel__header{align-items:center}
}
@media(min-width:900px){
    #tg-301-wrapper .tg-301-hero__title{font-size:2.3rem}
    #tg-301-wrapper .tg-301-section__title{font-size:1.4rem}
    #tg-301-wrapper .tg-301-feature-grid{grid-template-columns:repeat(4,1fr)}
}
