@charset "utf-8";
/* WECOMUS Tools — 도구 공용 스타일 (style.css 위에 얹힘) */

.tool-page { padding: 130px 0 90px; }
.tool-head { text-align: center; margin-bottom: 34px; }
.tool-head .sec-eyebrow { justify-content: center; }
.tool-head h1 { font-size: clamp(28px, 3.8vw, 42px); font-weight: 900; letter-spacing: -.03em; margin-bottom: 12px; }
.tool-head p { color: var(--sub); font-size: 16px; }

/* 모드 배지 바 */
.tool-modebar { display: flex; justify-content: center; margin-bottom: 26px; }
.tool-badge-btn {
    border: 1px solid rgba(120,140,255,.35); background: rgba(90,110,255,.08);
    color: #b9caff; font-size: 13px; font-weight: 700; padding: 9px 18px; border-radius: 999px; cursor: pointer;
}
.tool-badge-btn u { text-decoration-color: rgba(150,170,255,.6); }
.tool-badge-btn:hover { background: rgba(90,110,255,.16); }

/* 키 모달 */
.tool-modal { position: fixed; inset: 0; z-index: 300; background: rgba(4,4,10,.7); display: flex; align-items: center; justify-content: center; padding: 20px; }
.tool-modal-box { width: 100%; max-width: 460px; background: #10101e; border: 1px solid rgba(130,150,255,.35); border-radius: 18px; padding: 28px; }
.tool-modal-box h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.tm-desc { font-size: 13px; color: var(--sub); line-height: 1.7; margin-bottom: 16px; }
.tm-desc a { color: #8fa3ff; }
.tm-actions { display: flex; gap: 8px; margin-top: 14px; }
.tm-msg { margin-top: 12px; font-size: 13px; color: #9fe8b5; min-height: 18px; }

/* 도구 본문 2단 */
.tool-grid { display: grid; grid-template-columns: 420px 1fr; gap: 26px; align-items: start; }
.tool-form { background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--radius); padding: 26px; }
.tool-form .f { margin-bottom: 15px; }
.tool-form label { display: block; font-size: 13px; font-weight: 700; color: #b9c0d4; margin-bottom: 6px; }
.tool-form .req { color: #ff7b8a; }
.tool-form .inp { width: 100%; }
/* 드롭다운 팝업은 OS 기본(흰 배경)을 쓰므로 옵션 글자색을 명시해 흰 배경에 흰 글씨가 되는 것을 방지 */
.tool-form select.inp { color: #e7eaf4; background-color: #12121f; }
.tool-form select.inp option { color: #12121f; background-color: #fff; }
@media (prefers-color-scheme: dark) {
    .tool-form select.inp option { color: #e7eaf4; background-color: #1a1a2b; }
}
.tool-run { width: 100%; justify-content: center; margin-top: 4px; }
.tool-hint { font-size: 12px; color: #6d7284; margin-top: 10px; text-align: center; }

.tool-stage {
    min-height: 480px; border-radius: var(--radius); overflow: hidden; position: relative;
    background: linear-gradient(165deg, #12122a, #0a0a16); border: 1px solid var(--panel-line);
    display: flex; align-items: center; justify-content: center; padding: 22px;
}
.tool-stage img { max-width: 100%; max-height: 620px; border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.tool-placeholder { text-align: center; color: rgba(255,255,255,.4); font-size: 15px; line-height: 2; }
.tool-placeholder .big { font-size: 42px; display: block; margin-bottom: 8px; }
.tool-spinner { width: 44px; height: 44px; border: 4px solid rgba(255,255,255,.15); border-top-color: #7c8cff; border-radius: 50%; margin: 0 auto 16px; animation: tsp 1s linear infinite; }
@keyframes tsp { to { transform: rotate(360deg); } }
.tool-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }

/* 전략 카드 (썸네일 도구) */
.strat-grid { display: grid; gap: 12px; margin-top: 4px; }
.strat-card { text-align: left; background: rgba(255,255,255,.04); border: 1px solid var(--panel-line); border-radius: 12px; padding: 16px 18px; cursor: pointer; transition: all .15s; color: var(--text); }
.strat-card:hover, .strat-card.on { border-color: rgba(130,150,255,.6); background: rgba(110,130,255,.09); }
.strat-card h4 { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.strat-card p { font-size: 12.5px; color: var(--sub); line-height: 1.6; }
.strat-card .tagline { color: #9fb0ff; font-weight: 700; }

/* B2B 전환 밴드 */
.tool-cta {
    margin-top: 40px; padding: 30px 34px; border-radius: var(--radius);
    background: linear-gradient(115deg, rgba(79,124,255,.14), rgba(160,107,255,.1));
    border: 1px solid rgba(130,150,255,.3);
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.tool-cta p { font-size: 16.5px; font-weight: 700; }
.tool-cta p span { display: block; font-size: 13.5px; font-weight: 500; color: var(--sub); margin-top: 5px; }

/* 디렉토리 카드 */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tcard { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--radius); padding: 26px; transition: all .25s; position: relative; }
a.tcard:hover { transform: translateY(-6px); border-color: rgba(130,150,255,.5); }
.tcard .tico { font-size: 30px; margin-bottom: 14px; }
.tcard .tico img { width: 60px; height: 60px; object-fit: contain; display: block; border-radius: 12px; }
.tcard h3 { font-size: 18.5px; font-weight: 800; margin-bottom: 8px; }
.tcard p { font-size: 13.5px; color: var(--sub); line-height: 1.7; flex: 1; }
.tcard .ttags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.tcard .ttags em { font-size: 11px; font-weight: 700; color: #9fb0ff; background: rgba(110,130,255,.12); border: 1px solid rgba(120,140,255,.25); padding: 3px 9px; border-radius: 999px; }
.tcard.soon { opacity: .55; }
.tcard .soon-badge { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 800; color: #ffd27a; }

@media (max-width: 900px) {
    .tool-grid { grid-template-columns: 1fr; }
    .tools-grid { grid-template-columns: 1fr; }
    .tool-page { padding: 100px 0 70px; }
}
.tool-modal[hidden] { display: none; }
