/* =====================================================
   상상이상3D프린팅 공통 스타일시트
   Design: Refined Minimal / Technical Precision
   Accent: Turquoise (#2CBFB1)
   v1.1 — 햄버거 메뉴 + 문의 CTA 강화
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --c-teal:       #2CBFB1;
  --c-teal-dark:  #1F9B8F;
  --c-teal-light: #E6F7F6;
  --c-navy:       #152535;
  --c-body:       #2C3E4B;
  --c-muted:      #6B8090;
  --c-border:     #DCE9E8;
  --c-bg:         #FFFFFF;
  --c-bg-soft:    #F5FAFA;
  --c-bg-dark:    #0F1E2A;
  --font-main: 'Noto Sans KR', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius:    6px;
  --shadow:    0 2px 16px rgba(15,30,42,0.08);
  --shadow-md: 0 4px 32px rgba(15,30,42,0.12);
  --max-w: 1080px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-body);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ── 레이아웃 ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}
.section       { padding: clamp(56px, 8vw, 96px) 0; }
.section--soft { background: var(--c-bg-soft); }

/* ── 타이포그래피 ── */
h1,h2,h3,h4 { font-weight:700; line-height:1.35; color:var(--c-navy); letter-spacing:-0.02em; }
h1 { font-size: clamp(28px, 4.5vw, 48px); }
h2 { font-size: clamp(22px, 3vw, 34px); }
h3 { font-size: clamp(18px, 2vw, 22px); }
h4 { font-size: 16px; font-weight: 600; }
p  { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.lead  { font-size: clamp(16px, 2vw, 19px); line-height: 1.8; }
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-teal); background: var(--c-teal-light);
  padding: 4px 10px; border-radius: var(--radius); margin-bottom: 16px;
}

/* ── 네비게이션 ── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 64px; gap: 16px;
}
.nav-logo { font-size:17px; font-weight:700; color:var(--c-navy); white-space:nowrap; flex-shrink:0; }
.nav-logo span { color: var(--c-teal); }

.nav-links { display:flex; align-items:center; gap:4px; list-style:none; }
.nav-links a {
  font-size:14px; font-weight:500; color:var(--c-muted);
  padding:6px 12px; border-radius:var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color:var(--c-teal-dark); background:var(--c-teal-light); }

.nav-cta {
  font-size:13px !important; font-weight:600 !important;
  color:#fff !important; background:var(--c-teal) !important;
  padding:8px 18px !important; border-radius:var(--radius) !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background:var(--c-teal-dark) !important; }

/* ── 햄버거 버튼 ── */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  cursor: pointer; padding: 0; flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 18px; height: 2px;
  background: var(--c-navy); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 모바일 메뉴 ── */
.mobile-menu {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow-md); z-index: 99;
  padding: 16px 0 20px;
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul {
  list-style: none;
  padding: 0 clamp(20px, 5vw, 48px);
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-menu ul li a {
  display: block; padding: 12px 16px;
  font-size: 15px; font-weight: 500; color: var(--c-body);
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}
.mobile-menu ul li a:hover,
.mobile-menu ul li a.active { background: var(--c-teal-light); color: var(--c-teal-dark); }
.mobile-menu ul li a.mobile-cta {
  background: var(--c-teal); color: #fff !important;
  margin-top: 8px; text-align: center;
}
.mobile-menu ul li a.mobile-cta:hover { background: var(--c-teal-dark); }

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-main); font-size: 15px; font-weight: 600;
  padding: 12px 28px; border-radius: var(--radius);
  border: none; cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.btn-primary { background: var(--c-teal); color: #fff; }
.btn-primary:hover { background: var(--c-teal-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--c-navy); border: 1.5px solid var(--c-border); }
.btn-outline:hover { border-color: var(--c-teal); color: var(--c-teal); }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ── 히어로 ── */
.hero { padding: clamp(64px,10vw,112px) 0 clamp(48px,8vw,80px); border-bottom: 1px solid var(--c-border); }
.hero-label {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-teal); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.hero-label::before { content:''; display:inline-block; width:24px; height:2px; background:var(--c-teal); }
.hero h1 { margin-bottom: 24px; max-width: 720px; }
.hero .lead { max-width: 600px; margin-bottom: 0; }
.hero-sub { margin-top: 20px; font-size: 15px; color: var(--c-muted); max-width: 560px; line-height: 1.75; }

/* ── 섹션 헤더 ── */
.section-header { margin-bottom: clamp(32px, 5vw, 52px); }
.section-header h2 { margin-bottom: 12px; }
.section-header p { font-size: 16px; color: var(--c-muted); max-width: 560px; }

/* ── 카드 그리드 ── */
.grid-2 { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:clamp(16px,2.5vw,28px); }
.grid-3 { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:clamp(16px,2vw,24px); }

.card {
  background: var(--c-bg); border: 1px solid var(--c-border);
  border-radius: calc(var(--radius)*2); padding: clamp(20px,3vw,32px);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: var(--c-teal); box-shadow: var(--shadow); }
.card-icon { width:44px; height:44px; background:var(--c-teal-light); border-radius:var(--radius); display:flex; align-items:center; justify-content:center; margin-bottom:16px; font-size:20px; }
.card h3 { font-size: 17px; margin-bottom: 10px; }
.card p  { font-size: 14px; color: var(--c-muted); line-height: 1.7; }

/* ── 강조 블록 ── */
.highlight-block { background:var(--c-teal-light); border-left:3px solid var(--c-teal); border-radius:0 var(--radius) var(--radius) 0; padding:20px 24px; margin:24px 0; }
.highlight-block p { font-size:15px; color:var(--c-navy); font-weight:500; margin:0; }

/* ── 리스트 ── */
.check-list { list-style:none; display:flex; flex-direction:column; gap:10px; }
.check-list li { display:flex; align-items:flex-start; gap:12px; font-size:15px; }
.check-list li::before {
  content:'✓'; flex-shrink:0; width:22px; height:22px;
  background:var(--c-teal); color:#fff; border-radius:50%;
  font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center; margin-top:2px;
}

.warn-list { list-style:none; display:flex; flex-direction:column; gap:10px; }
.warn-list li { display:flex; align-items:flex-start; gap:12px; font-size:15px; color:var(--c-muted); }
.warn-list li::before {
  content:'–'; flex-shrink:0; width:22px; height:22px;
  background:#f0f0f0; color:var(--c-muted); border-radius:50%;
  font-size:14px; font-weight:700; display:flex; align-items:center; justify-content:center; margin-top:2px;
}

/* ── 번호 항목 ── */
.numbered-list { list-style:none; display:flex; flex-direction:column; gap:20px; }
.numbered-list li { display:grid; grid-template-columns:40px 1fr; gap:16px; align-items:start; }
.num-badge { flex-shrink:0; width:40px; height:40px; background:var(--c-navy); color:#fff; border-radius:50%; font-family:var(--font-mono); font-size:14px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.num-content h4 { margin-bottom: 4px; }
.num-content p  { font-size: 14px; color: var(--c-muted); margin: 0; }

/* ── 매뉴얼 카드 ── */
.manual-card { background:var(--c-bg); border:1px solid var(--c-border); border-radius:calc(var(--radius)*2); padding:24px 28px; transition:all 0.2s; }
.manual-card:hover { border-color:var(--c-teal); box-shadow:var(--shadow); transform:translateY(-2px); }
.manual-card h3 { font-size:17px; margin-bottom:14px; display:flex; align-items:center; gap:10px; }
.manual-card ul { list-style:none; display:flex; flex-direction:column; gap:6px; }
.manual-card ul li { font-size:14px; color:var(--c-muted); padding-left:14px; position:relative; }
.manual-card ul li::before { content:'›'; position:absolute; left:0; color:var(--c-teal); font-weight:700; }

/* ── FAQ ── */
.faq-section { padding:clamp(48px,7vw,80px) 0; background:var(--c-bg-soft); border-top:1px solid var(--c-border); }
.faq-list { display:flex; flex-direction:column; gap:8px; max-width:760px; }
details.faq-item { background:var(--c-bg); border:1px solid var(--c-border); border-radius:var(--radius); overflow:hidden; transition:border-color 0.2s; }
details.faq-item[open] { border-color:var(--c-teal); }
details.faq-item summary {
  cursor:pointer; list-style:none; padding:18px 20px; font-size:15px; font-weight:600; color:var(--c-navy);
  display:flex; align-items:center; justify-content:space-between; gap:12px; user-select:none;
}
details.faq-item summary::-webkit-details-marker { display:none; }
details.faq-item summary::after {
  content:'+'; flex-shrink:0; width:24px; height:24px;
  background:var(--c-teal-light); color:var(--c-teal); border-radius:50%;
  font-size:18px; font-weight:400; display:flex; align-items:center; justify-content:center; transition:transform 0.2s;
}
details.faq-item[open] summary::after { content:'–'; transform:rotate(180deg); }
.faq-answer { padding:16px 20px 18px; font-size:14px; color:var(--c-muted); line-height:1.75; border-top:1px solid var(--c-border); }

/* ── 안내 배너 ── */
.notice-bar { background:var(--c-teal-light); border:1px solid var(--c-teal); border-radius:var(--radius); padding:14px 20px; font-size:14px; font-weight:500; color:var(--c-teal-dark); margin-bottom:32px; }

/* ── 페이지 히어로 ── */
.page-hero { padding:clamp(48px,8vw,88px) 0 clamp(36px,5vw,56px); border-bottom:1px solid var(--c-border); }
.page-hero .tag  { margin-bottom: 20px; }
.page-hero h1    { margin-bottom: 16px; max-width: 760px; }
.page-hero .sub  { font-size:18px; color:var(--c-teal-dark); font-weight:600; margin-bottom:16px; }
.page-hero .lead { max-width: 640px; }

/* ── 인용 박스 ── */
.quote-box { background:var(--c-navy); color:#fff; border-radius:calc(var(--radius)*2); padding:clamp(28px,4vw,48px); margin:40px 0; }
.quote-box h2 { color:#fff; font-size:clamp(20px,3vw,30px); margin-bottom:24px; }
.quote-box ul { list-style:none; display:flex; flex-direction:column; gap:12px; }
.quote-box ul li { font-size:15px; color:rgba(255,255,255,0.8); padding-left:20px; position:relative; }
.quote-box ul li::before { content:'—'; position:absolute; left:0; color:var(--c-teal); }

/* ── 문의 섹션 ── */
.contact-box {
  background: var(--c-bg);
  border: 1.5px solid var(--c-teal);
  border-radius: calc(var(--radius)*2);
  padding: clamp(24px, 4vw, 40px);
  max-width: 600px;
  box-shadow: 0 4px 24px rgba(44,191,177,0.10);
}
.contact-box h3 { font-size: 19px; margin-bottom: 6px; }
.contact-box .sub-desc { font-size: 14px; color: var(--c-muted); margin-bottom: 24px; line-height: 1.65; }

.contact-items { display:flex; flex-direction:column; gap:14px; margin-bottom:24px; }
.contact-item  { display:flex; align-items:center; gap:14px; }
.contact-item-icon { width:38px; height:38px; background:var(--c-teal-light); border-radius:var(--radius); display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; }
.contact-item-text strong { display:block; font-size:11px; font-weight:500; color:var(--c-muted); letter-spacing:0.06em; margin-bottom:2px; text-transform:uppercase; font-family:var(--font-mono); }
.contact-item-text a,
.contact-item-text span { font-size:15px; font-weight:600; color:var(--c-navy); transition:color 0.2s; }
.contact-item-text a:hover { color:var(--c-teal); text-decoration:underline; }

.contact-note { font-size:13px; color:var(--c-muted); line-height:1.65; margin-top:16px; padding-top:16px; border-top:1px solid var(--c-border); }

/* ── 푸터 ── */
.site-footer { background:var(--c-bg-dark); color:rgba(255,255,255,0.65); padding:clamp(40px,6vw,64px) 0 32px; }
.footer-inner { display:grid; grid-template-columns:1fr auto; gap:40px; margin-bottom:40px; }
.footer-brand { max-width:380px; }
.footer-brand .logo { font-size:18px; font-weight:700; color:#fff; margin-bottom:12px; }
.footer-brand .logo span { color:var(--c-teal); }
.footer-brand p { font-size:13px; line-height:1.7; margin-bottom:0; }
.footer-nav { display:flex; flex-direction:column; gap:8px; }
.footer-nav a { font-size:13px; color:rgba(255,255,255,0.55); transition:color 0.2s; }
.footer-nav a:hover { color:var(--c-teal); }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.1); padding-top:24px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; }
.footer-bottom p { font-size:12px; margin:0; font-family:var(--font-mono); }

/* ── 반응형 ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-box { max-width: 100%; }
}

@media (max-width: 480px) {
  .btn-group { flex-direction: column; }
  .btn { justify-content: center; }
}


/* ── FAQ 봇 ── */
.bot-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--c-teal);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(0,0,0,0.18);
}
.bot-float:hover {
  background: var(--c-teal-dark);
  color: #fff;
  text-decoration: none;
}
.bot-float .bot-float-icon {
  font-size: 18px;
  line-height: 1;
}
.bot-entry-box {
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: var(--c-bg-soft);
}
.bot-entry-box h4 {
  font-size: 16px;
  margin-bottom: 8px;
}
.bot-entry-box p {
  font-size: 14px;
  color: var(--c-muted);
  margin-bottom: 14px;
}
.bot-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: start;
}
.bot-layout--chat {
  align-items: stretch;
}
.bot-panel,
.bot-sidecard {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.bot-panel {
  padding: 28px;
}
.bot-panel--chat {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.bot-sidecard {
  padding: 24px;
}
.bot-sidecard h3 {
  margin-bottom: 12px;
}
.bot-sidecard ul {
  padding-left: 18px;
  color: var(--c-body);
}
.bot-sidecard li + li {
  margin-top: 10px;
}
.bot-side-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--c-border);
}
.bot-chat-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.bot-toolbar-kicker {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-teal-dark);
}
.bot-chat-toolbar h2 {
  font-size: 28px;
  margin-bottom: 6px;
}
.bot-toolbar-desc {
  color: var(--c-muted);
  margin-bottom: 0;
}
.bot-reset {
  flex-shrink: 0;
  padding: 10px 14px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: #fff;
  color: var(--c-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.bot-reset:hover {
  border-color: var(--c-teal);
  color: var(--c-teal-dark);
}
.bot-chat-shell {
  background: linear-gradient(180deg, #f9fcfc 0%, #ffffff 100%);
  border: 1px solid var(--c-border);
  border-radius: 24px;
  overflow: hidden;
}
.bot-chat-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--c-bg-soft);
  border-bottom: 1px solid var(--c-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-muted);
}
.bot-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-teal);
  box-shadow: 0 0 0 6px rgba(44,191,177,0.15);
}
.bot-chat-log {
  height: 520px;
  overflow-y: auto;
  padding: 22px 18px;
  background: linear-gradient(180deg, rgba(245,250,250,0.65) 0%, rgba(255,255,255,0.95) 100%);
}
.bot-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.bot-msg + .bot-msg {
  margin-top: 16px;
}
.bot-msg.user {
  flex-direction: row-reverse;
}
.bot-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  color: var(--c-navy);
  background: var(--c-teal-light);
  border: 1px solid rgba(44,191,177,0.22);
}
.bot-msg.user .bot-avatar {
  background: #eef4fb;
  border-color: #d8e4f2;
}
.bot-msg-body {
  max-width: min(86%, 680px);
}
.bot-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.bot-msg.user .bot-meta {
  justify-content: flex-end;
}
.bot-name {
  font-size: 13px;
  color: var(--c-navy);
}
.bot-time {
  font-size: 12px;
  color: var(--c-muted);
}
.bot-bubble {
  border-radius: 20px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--c-border);
  box-shadow: 0 8px 24px rgba(15,30,42,0.05);
}
.bot-msg.user .bot-bubble {
  background: linear-gradient(180deg, var(--c-teal) 0%, var(--c-teal-dark) 100%);
  border-color: transparent;
  color: #fff;
  border-bottom-right-radius: 8px;
}
.bot-msg.assistant .bot-bubble {
  border-bottom-left-radius: 8px;
}
.bot-text {
  white-space: pre-line;
  line-height: 1.8;
  font-size: 15px;
}
.bot-source {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--c-bg-soft);
  color: var(--c-muted);
  font-size: 12px;
  font-weight: 700;
}
.bot-msg.user .bot-source {
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.94);
}
.bot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.bot-suggestion {
  border: 1px solid var(--c-border);
  background: #fff;
  color: var(--c-body);
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.bot-suggestion:hover {
  border-color: var(--c-teal);
  color: var(--c-teal-dark);
}
.bot-contact-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.btn-sm {
  padding: 9px 12px;
  font-size: 13px;
}
.bot-bubble--typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 84px;
}
.bot-bubble--typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9eb3c0;
  animation: botTyping 1.1s infinite ease-in-out;
}
.bot-bubble--typing span:nth-child(2) { animation-delay: 0.14s; }
.bot-bubble--typing span:nth-child(3) { animation-delay: 0.28s; }
@keyframes botTyping {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-4px); opacity: 1; }
}
.bot-quick {
  padding: 0 18px 18px;
}
.bot-quick--inside {
  border-top: 1px solid var(--c-border);
  background: #fff;
  padding-top: 18px;
}
.bot-quick-title {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--c-muted);
  margin-bottom: 10px;
}
.bot-quick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bot-chip {
  border: 1px solid var(--c-border);
  background: var(--c-bg-soft);
  color: var(--c-body);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.bot-chip:hover {
  border-color: var(--c-teal);
  color: var(--c-teal-dark);
  background: #fff;
}
.bot-form {
  border-top: 1px solid var(--c-border);
  background: #fff;
}
.bot-form--chat {
  padding: 18px;
}
.bot-form textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 1px solid var(--c-border);
  border-radius: 20px;
  padding: 16px 18px;
  font: inherit;
  color: var(--c-body);
  background: #fff;
}
.bot-form textarea:focus {
  outline: none;
  border-color: var(--c-teal);
  box-shadow: 0 0 0 4px rgba(13,148,136,0.08);
}
.bot-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.bot-form-actions--chat {
  align-items: center;
}
.bot-help {
  font-size: 13px;
  color: var(--c-muted);
}
.bot-side-contact {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--c-border);
}
.bot-side-contact .btn-group {
  margin-top: 14px;
}
@media (max-width: 960px) {
  .bot-layout {
    grid-template-columns: 1fr;
  }
  .bot-chat-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (max-width: 768px) {
  .bot-float {
    right: 14px;
    bottom: 14px;
    min-height: 50px;
    padding: 0 16px;
  }
  .bot-panel,
  .bot-sidecard {
    border-radius: 20px;
  }
  .bot-chat-log {
    height: 440px;
    padding: 18px 14px;
  }
  .bot-msg-body {
    max-width: calc(100% - 54px);
  }
  .bot-form-actions,
  .bot-contact-cta {
    flex-direction: column;
    align-items: stretch;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 960px) {
  .bot-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .bot-float {
    right: 14px;
    bottom: 14px;
    min-height: 50px;
    padding: 0 16px;
  }
  .bot-chat-log {
    height: 360px;
  }
}


/* ── 플로팅 상담 위젯 ── */
.ssi-chat-widget {
  position: fixed;
  right: clamp(14px, 2vw, 24px);
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 120;
}

.ssi-chat-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--c-teal);
  color: #fff;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.22);
  cursor: pointer;
}

.ssi-chat-launcher:hover { background: var(--c-teal-dark); }
.ssi-chat-launcher__icon { font-size: 18px; line-height: 1; }
.ssi-chat-launcher__label { white-space: nowrap; }

.ssi-chat-panel {
  width: min(448px, calc(100vw - 28px));
  height: min(720px, calc(100dvh - 112px));
  max-height: calc(100dvh - 112px);
  min-width: 320px;
  min-height: 500px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
  position: relative;
}

.ssi-chat-widget:not(.is-open) .ssi-chat-panel { display: none; }
.ssi-chat-widget.is-open .ssi-chat-launcher { box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16); }

.ssi-chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  background: linear-gradient(180deg, #f7fffc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--c-border);
}

.ssi-chat-header__text h2 {
  font-size: 20px;
  margin-bottom: 6px;
}

.ssi-chat-header__text p {
  font-size: 13px;
  color: var(--c-muted);
  margin: 0;
}

.ssi-chat-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-teal);
  margin-bottom: 6px;
}

.ssi-chat-header__actions {
  display: inline-flex;
  gap: 6px;
}

.ssi-chat-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--c-border);
  background: #fff;
  color: var(--c-muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.ssi-chat-icon-btn:hover {
  color: var(--c-navy);
  border-color: var(--c-teal);
}

.ssi-chat-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 12px;
  color: var(--c-muted);
  border-bottom: 1px solid var(--c-border);
  background: #fcfffe;
}

.ssi-chat-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-teal);
  flex-shrink: 0;
}

.ssi-chat-log {
  padding: 16px 14px 8px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 220px;
  background: #f8fbfb;
}

.ssi-chat-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ssi-chat-msg.user {
  flex-direction: row-reverse;
}

.ssi-chat-msg__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-teal-light);
  color: var(--c-teal-dark);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ssi-chat-msg.user .ssi-chat-msg__avatar {
  background: #e8eef6;
  color: var(--c-navy);
}

.ssi-chat-msg__body {
  max-width: calc(100% - 48px);
}

.ssi-chat-msg__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--c-muted);
  margin-bottom: 6px;
}

.ssi-chat-msg__bubble {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.ssi-chat-msg.user .ssi-chat-msg__bubble {
  background: var(--c-navy);
  color: #fff;
  border-color: var(--c-navy);
}

.ssi-chat-msg__text {
  white-space: pre-line;
  font-size: 14px;
  line-height: 1.7;
}

.ssi-chat-msg__source,
.ssi-chat-msg__needmore {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--c-border);
  font-size: 12px;
  color: var(--c-muted);
}

.ssi-chat-msg.user .ssi-chat-msg__source,
.ssi-chat-msg.user .ssi-chat-msg__needmore {
  border-top-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
}

.ssi-chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ssi-chat-suggestion,
.ssi-chat-chip {
  border: 1px solid var(--c-border);
  background: #fff;
  color: var(--c-body);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  cursor: pointer;
}

.ssi-chat-suggestion:hover,
.ssi-chat-chip:hover {
  border-color: var(--c-teal);
  color: var(--c-teal-dark);
}

.ssi-chat-msg__contact {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.ssi-chat-msg__contact a,
.ssi-chat-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--c-border);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-navy);
  background: #fff;
}

.ssi-chat-msg__contact a:hover,
.ssi-chat-footer a:hover {
  border-color: var(--c-teal);
  color: var(--c-teal-dark);
}

.ssi-chat-msg__bubble--typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ssi-chat-msg__bubble--typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-teal);
  opacity: 0.45;
  animation: ssiTyping 0.9s infinite ease-in-out;
}

.ssi-chat-msg__bubble--typing span:nth-child(2) { animation-delay: 0.12s; }
.ssi-chat-msg__bubble--typing span:nth-child(3) { animation-delay: 0.24s; }

@keyframes ssiTyping {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-3px); opacity: 1; }
}

.ssi-chat-quick {
  padding: 10px 14px 6px;
  background: #fff;
  border-top: 1px solid var(--c-border);
  flex: 0 0 auto;
}

.ssi-chat-quick__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.ssi-chat-quick__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-muted);
  margin-bottom: 0;
}

.ssi-chat-quick__toggle {
  border: 0;
  background: transparent;
  color: var(--c-teal-dark);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ssi-chat-quick__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 112px;
  overflow: auto;
  padding-right: 2px;
}

.ssi-chat-quick.is-collapsed .ssi-chat-quick__list {
  max-height: 44px;
  overflow: hidden;
}

.ssi-chat-form {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--c-border);
  background: #fff;
  flex-shrink: 0;
}

.ssi-chat-form textarea {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 12px 14px;
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--c-body);
  background: #fff;
}

.ssi-chat-form textarea:focus {
  outline: none;
  border-color: var(--c-teal);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.ssi-chat-form__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.ssi-chat-form__bottom p {
  font-size: 12px;
  color: var(--c-muted);
  margin: 0;
}
.ssi-chat-form__notice {
  margin: 8px 2px 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--c-muted);
}
.ssi-chat-footer {
  display: flex;
  gap: 8px;
  padding: 0 14px calc(16px + env(safe-area-inset-bottom));
  background: #fff;
  flex-shrink: 0;
  flex-wrap: wrap;
}


.ssi-chat-resize {
  position: absolute;
  right: 10px;
  bottom: 128px;
  width: 18px;
  height: 18px;
  border: 0;
  background: repeating-linear-gradient(135deg, rgba(15,23,42,0.24) 0 2px, transparent 2px 4px);
  border-radius: 4px;
  cursor: nwse-resize;
  opacity: 0.6;
}

.ssi-chat-resize:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .ssi-chat-widget {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .ssi-chat-panel {
    width: min(100vw - 16px, 396px);
    height: min(700px, calc(100dvh - 96px));
    max-height: calc(100dvh - 96px);
    margin-bottom: 10px;
    border-radius: 20px;
  }

  .ssi-chat-launcher {
    padding: 12px 16px;
  }

  .ssi-chat-log {
    min-height: 180px;
  }

  .ssi-chat-resize {
    display: none;
  }
}
