/* SpaceBridge V56 — existing white/sky brand, clearer decision flow and real inquiry handoff. */
:root {
  --sb56-ink: #16233a;
  --sb56-copy: #526a7c;
  --sb56-blue: #075f9c;
  --sb56-blue-dark: #075f96;
  --sb56-sky: #eaf7fc;
  --sb56-line: #cfdee7;
  --sb56-soft: #f5fafc;
  --sb56-shadow: 0 22px 56px rgba(8, 46, 72, .14);
}

html body.sb-v56 {
  color: var(--sb56-ink);
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", sans-serif;
}

html body.sb-v56.sb56-modal-open { overflow: hidden; }

/* 히어로의 작은 내부 카드를 전역 중앙 모달로 바꾼다. */
html body.sb-v56 .sb46-sheet {
  position: fixed !important;
  z-index: 3002 !important;
  inset: 50% auto auto 50% !important;
  width: min(560px, calc(100vw - 40px)) !important;
  max-width: 560px !important;
  padding: 34px 36px 30px !important;
  border: 1px solid rgba(188, 214, 228, .96) !important;
  border-radius: 24px !important;
  background: #fff !important;
  box-shadow: 0 34px 90px rgba(4, 35, 57, .3) !important;
  transform: translate(-50%, -50%) !important;
  transform-origin: center !important;
}

html body.sb-v56 .sb46-sheet.is-closed { display: none !important; }
html body.sb-v56 .sb46-sheet-head { margin: 0 54px 20px 0 !important; }
html body.sb-v56 .sb46-sheet-head img { width: 118px !important; height: auto; }
html body.sb-v56 .sb46-sheet-head span { padding: 6px 9px !important; font-size: 11px !important; }
html body.sb-v56 .sb46-sheet h2 {
  width: auto !important;
  margin: 0 0 18px !important;
  color: var(--sb56-ink);
  font-size: clamp(24px, 4vw, 32px) !important;
  line-height: 1.3;
}
html body.sb-v56 .sb46-sheet dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
html body.sb-v56 .sb46-sheet dl > div {
  display: block !important;
  padding: 15px 16px !important;
  border: 1px solid #dbe8ef;
  border-radius: 16px;
  background: var(--sb56-soft);
}
html body.sb-v56 .sb46-sheet dt { margin-bottom: 5px; color: var(--sb56-blue); font-size: 12px !important; }
html body.sb-v56 .sb46-sheet dd { color: var(--sb56-ink); font-size: 14px !important; font-weight: 700; }
html body.sb-v56 .sb46-sheet-foot { margin-top: 18px !important; color: var(--sb56-copy); font-size: 13px !important; }

.sb56-modal-backdrop {
  position: fixed;
  z-index: 3001;
  inset: 0;
  background: rgba(8, 32, 49, .58);
  backdrop-filter: blur(6px);
}
.sb56-modal-backdrop[hidden] { display: none; }
html body.sb-v56 .sb46-sheet-close { top: 16px; right: 16px; }
html body.sb-v56 .sb46-sheet-open {
  position: static !important;
  z-index: 2;
  grid-column: 1;
  justify-self: start;
  min-height: 46px;
  margin-top: -24px;
  padding: 0 18px;
  border: 1px solid #cbdce7;
  border-radius: 12px;
  background: #fff;
  color: var(--sb56-blue-dark);
  box-shadow: 0 10px 24px rgba(8, 60, 92, .11);
  font-size: 13px;
  font-weight: 750;
}

/* 조건표는 시작 위치와 세 단계의 진행을 먼저 읽게 한다. */
html body.sb-v56 .condition-builder {
  overflow: hidden;
  border: 1px solid #bfd7e5;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--sb56-shadow);
}

.sb56-condition-guide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--sb56-line);
  background: #f4fafc;
  list-style: none;
}
html body.sb-v56 .condition-controls { grid-column: 1; }
html body.sb-v56 .condition-sheet { grid-column: 2; }
.sb56-condition-guide li {
  position: relative;
  min-height: 84px;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-content: center;
  gap: 2px 12px;
  padding: 16px 24px;
}
.sb56-condition-guide li + li { border-left: 1px solid var(--sb56-line); }
.sb56-condition-guide li:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 1;
  right: -14px;
  top: 29px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #cfe1ea;
  border-radius: 50%;
  background: #fff;
  color: #6a8798;
}
.sb56-condition-guide span {
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #dfeff7;
  color: #37647e;
  font-size: 12px;
  font-weight: 800;
}
.sb56-condition-guide b { font-size: 14px; }
.sb56-condition-guide small { color: #526a7c; font-size: 11px; }
.sb56-condition-guide li.is-current { background: #eaf7fc; }
.sb56-condition-guide li.is-current span,
.sb56-condition-guide li.is-complete span { background: var(--sb56-blue); color: #fff; }

html body.sb-v56 .condition-controls { padding: 28px; }
html body.sb-v56 .condition-step {
  position: relative;
  padding: 24px;
  border: 1px solid #d8e5ec;
  border-radius: 16px;
  background: #f5fafc;
}
html body.sb-v56 .condition-step + .condition-step { margin-top: 14px; }
html body.sb-v56 .condition-step-head span { background: var(--sb56-blue); color: #fff; }
html body.sb-v56 .condition-option { min-height: 46px; }
html body.sb-v56 .condition-option[aria-pressed="true"] {
  border-color: var(--sb56-blue);
  background: #eaf7fc;
  color: #075f96;
  box-shadow: inset 0 0 0 1px var(--sb56-blue);
}
html body.sb-v56 .condition-sheet { padding: 32px; background: #102d43; color: #fff; }
html body.sb-v56 .condition-sheet :is(h3, b, p, span, summary, li) { color: inherit; }
html body.sb-v56 .condition-sheet-kicker { color: #9bddf5 !important; }
html body.sb-v56 .condition-sheet-state { color: #075f96 !important; }
html body.sb-v56 .condition-row { border-color: rgba(255, 255, 255, .16); }
html body.sb-v56 .condition-row > span { color: #075f96 !important; }
html body.sb-v56 .condition-sheet .condition-questions {
  border: 1px solid #cbdde7;
  background: #f7fbfd;
  color: #17354a;
}
html body.sb-v56 .condition-sheet .condition-questions summary { color: #17354a; }
html body.sb-v56 .condition-sheet .condition-questions li { color: #486276; }
html body.sb-v56 .condition-sheet .condition-questions li::before { color: var(--sb56-blue); }
html body.sb-v56 .condition-actions .button,
html body.sb-v56 .condition-copy { min-height: 48px; border-radius: 12px; }
html body.sb-v56 .condition-copy {
  border: 1px solid rgba(155, 221, 245, .38);
  background: rgba(255, 255, 255, .06);
  color: #b6e8fa;
}

/* 세 단계는 항상 아래로 흐르고 단계 사이에 방향을 표시한다. */
html body.sb-v56 .process-grid { overflow: visible !important; }
html body.sb-v56 .process .shell::before {
  background-image: linear-gradient(180deg, transparent 58%, rgba(4, 33, 52, .42)),
    url('/assets/v56/process-consultation-v56.webp') !important;
  background-position: center !important;
}
html body.sb-v56 .process-grid li { position: relative; }
html body.sb-v56 .process-grid li:not(:last-child)::after {
  content: "↓";
  position: absolute;
  z-index: 3;
  left: 35px;
  bottom: -24px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #c7dfe9;
  border-radius: 50%;
  background: #fff;
  color: var(--sb56-blue);
  box-shadow: var(--shadow-m);
  animation: sb56-arrow 1.8s ease-in-out infinite;
}
html body.sb-v56 .process-symbol { display: none; }

/* 비용은 열 제목과 항목 라벨을 구분해 표처럼 훑을 수 있게 한다. */
html body.sb-v56 .cost-board { border-color: #aacddd; }
html body.sb-v56 .cost-title {
  min-height: 112px;
  grid-template-columns: 1fr;
  gap: 8px;
  background: #f5fafc;
}
html body.sb-v56 .cost-title span {
  width: max-content;
  padding: 5px 9px;
  border-radius: 50px;
  background: #dfeff7;
  color: #075f96;
  font-size: 11px;
  font-weight: 800;
}
html body.sb-v56 .cost-title b { color: var(--sb56-ink); font-size: 22px; }
html body.sb-v56 .cost-case.accent .cost-title { background: #eaf7fc; }
html body.sb-v56 .cost-case li { min-height: 64px; }
html body.sb-v56 .cost-case li span {
  color: #456a7e;
  font-size: 12px;
  font-weight: 800;
}
html body.sb-v56 .cost-case li b { color: #213b50; font-size: 14px; }
html body.sb-v56 .cost-case li:hover { background: #eef8fc; }

/* 도구와 준비자료는 사진·설명·행동을 같은 비율의 카드로 묶는다. */
html body.sb-v56 :is(.tool-grid, .insight-grid) {
  align-items: stretch;
  overflow: visible;
}
html body.sb-v56 :is(.tool-card, .insight-card) {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 0 24px;
  border: 1px solid #d7e3ea;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(10, 55, 82, .08);
}
.sb56-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 20px;
  overflow: hidden;
  background: #dfeef5;
}
.sb56-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
html body.sb-v56 :is(.tool-card, .insight-card):hover .sb56-card-media img { transform: scale(1.035); }
html body.sb-v56 :is(.tool-card, .insight-card) > :not(.sb56-card-media) { margin-inline: 24px; }
html body.sb-v56 :is(.tool-card, .insight-card) > b,
html body.sb-v56 .insight-card h3 { color: var(--sb56-ink); }
html body.sb-v56 .tool-card > span { color: #075f96 !important; }
html body.sb-v56 :is(.tool-card, .insight-card) > p { flex: 1; color: var(--sb56-copy); }
html body.sb-v56 .tool-card em,
html body.sb-v56 .insight-card > b {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  border-radius: 12px;
  background: #eaf7fc;
  color: var(--sb56-blue-dark);
  font-style: normal;
  font-weight: 800;
}

/* FAQ는 한 줄 질문과 한 답변만 여는 단순 아코디언으로 정리한다. */
html body.sb-v56 .faq-grid { grid-template-columns: minmax(250px, .65fr) minmax(0, 1.35fr); gap: 64px; }
html body.sb-v56 .faq-list { display: block; }
html body.sb-v56 .faq-list details {
  margin: 0;
  border: 0;
  border-bottom: 1px solid #d6e4eb;
  border-radius: 0;
  background: transparent;
}
html body.sb-v56 .faq-list summary {
  min-height: 66px;
  padding: 18px 4px;
  color: var(--sb56-ink);
  font-size: 15px;
  font-weight: 750;
}
html body.sb-v56 .faq-list details[open] summary { color: var(--sb56-blue-dark); }
html body.sb-v56 .faq-list details p { padding: 0 42px 24px 4px; color: var(--sb56-copy); }

/* 파트너 제휴와 고객 상담요청을 한 섹션 안에서도 분리한다. */
html body.sb-v56 .partnership { background: #f5fafc; }
html body.sb-v56 .partner-shell { border-radius: 28px; background: #fff; box-shadow: var(--sb56-shadow); }
.sb56-partner-consult {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--sb56-blue);
  color: #fff !important;
  font-weight: 800;
}
html body.sb-v56 .partner-card { border: 1px solid #175c86; box-shadow: 0 18px 38px rgba(9, 54, 82, .18); }
html body.sb-v56 .partner-card .button { min-height: 50px; }

/* 데스크톱 우측, 모바일 하단에서 같은 실제 상담요청서로 이어지는 패널. */
html body.sb-v50.sb-v56.sb-v53-quick-dock { padding-bottom: 0 !important; }
@media (max-width: 1540px) and (min-width: 621px) {
  html body.sb-v50.sb-v56.sb-v53-quick-dock {
    box-sizing: border-box;
    padding-right: 108px !important;
  }
}
html body.sb-v50.sb-v56.sb-v53-quick-dock .sb-contact-dock,
html body.sb-v50.sb-v56.sb-v53-quick-dock.sb-v53-dock-suppressed .sb-contact-dock {
  position: fixed !important;
  z-index: 2400 !important;
  left: auto !important;
  right: 20px !important;
  bottom: 20px !important;
  width: 72px !important;
  margin: 0 !important;
  padding: 7px !important;
  border: 1px solid rgba(176, 207, 223, .95) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, .97) !important;
  box-shadow: 0 20px 52px rgba(5, 42, 66, .22) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
  transition: width .22s ease !important;
}
html body.sb-v50.sb-v56.sb-v53-quick-dock.sb56-quick-open .sb-contact-dock { width: 330px !important; }
.sb56-quick-toggle {
  width: 100%;
  min-height: 158px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--sb56-ink);
  text-align: center;
  cursor: pointer;
}
.sb56-quick-toggle > span:nth-child(2) { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.sb56-quick-toggle b { writing-mode: vertical-rl; font-size: 13px; letter-spacing: .08em; }
.sb56-quick-toggle small { display: none; color: #526a79; font-size: 11px; }
.sb56-quick-toggle em {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 12px;
  background: var(--sb56-blue);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.sb56-quick-toggle em { display: none; }
html body.sb-v56.sb56-quick-open .sb56-quick-toggle {
  min-height: 60px;
  grid-template-columns: 42px 1fr auto;
  text-align: left;
}
html body.sb-v56.sb56-quick-open .sb56-quick-toggle > span:nth-child(2) { align-items: flex-start; }
html body.sb-v56.sb56-quick-open .sb56-quick-toggle b { writing-mode: horizontal-tb; letter-spacing: normal; }
html body.sb-v56.sb56-quick-open .sb56-quick-toggle small,
html body.sb-v56.sb56-quick-open .sb56-quick-toggle em { display: inline-flex; }
.sb56-quick-panel { padding: 8px 12px 12px; border-top: 1px solid #d8e5ec; }
.sb56-quick-panel[hidden] { display: none; }
.sb56-quick-head { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; }
.sb56-quick-head > div { display: flex; flex-direction: column; gap: 4px; }
.sb56-quick-head small { color: #496779; font-size: 11px; }
.sb56-quick-head b { color: var(--sb56-ink); font-size: 16px; }
.sb56-quick-close {
  width: 42px;
  height: 42px;
  border: 1px solid #d6e4eb;
  border-radius: 50%;
  background: #f7fbfd;
  color: #36566c;
  font-size: 22px;
}
.sb56-quick-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sb56-quick-form label:not(.sb56-quick-agree) { display: grid; gap: 6px; color: #375469; font-size: 11px; font-weight: 750; }
.sb56-quick-form :is(input, select) {
  width: 100%;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid #c8dae4;
  border-radius: 12px;
  background: #fff;
  color: var(--sb56-ink);
  font: inherit;
}
.sb56-quick-form .wide { grid-column: 1 / -1; }
.sb56-quick-agree { display: flex; align-items: flex-start; gap: 8px; color: #405d70; font-size: 11px; line-height: 1.5; }
.sb56-quick-agree input { flex: 0 0 20px; width: 20px; min-height: 20px; margin-top: 1px; }
.sb56-quick-status { min-height: 18px; margin: 0; color: #b7442e; font-size: 11px; }
.sb56-quick-status.is-success { color: #087859; font-weight: 750; }
.sb56-quick-continue {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--sb56-blue);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

/* 모션은 내용 이해와 다음 행동을 안내하는 요소에만 짧게 사용한다. */
.sb56-reveal { opacity: 0; transform: translateY(14px); }
.sb56-reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .45s ease calc(var(--sb56-order, 0) * 45ms), transform .45s ease calc(var(--sb56-order, 0) * 45ms);
}
html body.sb-v56 :is(.button, .sb56-partner-consult, .sb56-quick-continue) { position: relative; overflow: hidden; }
html body.sb-v56 :is(.button, .sb56-partner-consult, .sb56-quick-continue)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, .24) 48%, transparent 70%);
  transform: translateX(-130%);
}
html body.sb-v56 :is(.button, .sb56-partner-consult, .sb56-quick-continue):hover::after { animation: sb56-shimmer .7s ease; }

@keyframes sb56-arrow { 50% { transform: translateY(3px); } }
@keyframes sb56-shimmer { to { transform: translateX(130%); } }

@media (max-width: 900px) {
  html body.sb-v56 .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  html body.sb-v56 .partner-shell { border-radius: 24px; }
}

@media (max-width: 620px) {
  .sb56-condition-guide,
  html body.sb-v56 .condition-controls,
  html body.sb-v56 .condition-sheet { grid-column: 1; }
  html body.sb-v50.sb-v56.sb-v53-quick-dock {
    box-sizing: border-box;
    padding-right: 68px !important;
    padding-bottom: 0 !important;
  }
  html body.sb-v56 .sb46-sheet { width: calc(100vw - 28px) !important; padding: 26px 22px 22px !important; }
  html body.sb-v56 .sb46-sheet dl { grid-template-columns: 1fr; }
  html body.sb-v56 .sb46-sheet-open { grid-column: 1 / -1; margin: 12px 0 0; }
  .sb56-condition-guide { grid-template-columns: 1fr; }
  .sb56-condition-guide li { min-height: 68px; padding: 12px 18px; }
  .sb56-condition-guide li + li { border-left: 0; border-top: 1px solid var(--sb56-line); }
  .sb56-condition-guide li:not(:last-child)::after { content: "↓"; right: 18px; top: auto; bottom: -14px; }
  html body.sb-v56 .condition-controls { padding: 16px; }
  html body.sb-v56 .condition-step { padding: 18px 16px; }
  html body.sb-v56 .condition-sheet { padding: 24px 18px; }
  html body.sb-v56 .process-grid li:not(:last-child)::after { left: 25px; }
  html body.sb-v56 :is(.tool-grid, .insight-grid) {
    grid-auto-flow: row !important;
    grid-template-columns: 1fr !important;
    grid-auto-columns: auto !important;
    overflow: visible !important;
    padding: 0 !important;
  }
  html body.sb-v56 :is(.tool-card, .insight-card) { min-width: 0; }
  html body.sb-v56 .cost-board { display: grid !important; grid-auto-flow: row !important; grid-auto-columns: auto !important; overflow: hidden !important; padding: 0 !important; }
  html body.sb-v50.sb-v56.sb-v53-quick-dock .sb-contact-dock,
  html body.sb-v50.sb-v56.sb-v53-quick-dock.sb-v53-dock-suppressed .sb-contact-dock {
    left: auto !important;
    right: 8px !important;
    bottom: calc(16px + env(safe-area-inset-bottom)) !important;
    width: 52px !important;
    max-height: calc(100dvh - 28px);
    overflow-y: auto;
  }
  html body.sb-v50.sb-v56.sb-v53-quick-dock.sb56-quick-open .sb-contact-dock {
    right: 10px !important;
    width: min(330px, calc(100vw - 20px)) !important;
  }
  .sb56-quick-toggle { min-height: 142px; grid-template-columns: 1fr; padding: 6px; text-align: center; }
  .sb56-quick-toggle > span:nth-child(2) { align-items: center; }
  .sb56-quick-toggle b { writing-mode: vertical-rl; letter-spacing: .08em; font-size: 12px; }
  .sb56-quick-toggle small,
  .sb56-quick-toggle em { display: none; }
  html body.sb-v56.sb56-quick-open .sb56-quick-toggle { min-height: 60px; grid-template-columns: 42px 1fr auto; text-align: left; }
  html body.sb-v56.sb56-quick-open .sb56-quick-toggle > span:nth-child(2) { align-items: flex-start; }
  html body.sb-v56.sb56-quick-open .sb56-quick-toggle b { writing-mode: horizontal-tb; letter-spacing: normal; }
  html body.sb-v56.sb56-quick-open .sb56-quick-toggle small,
  html body.sb-v56.sb56-quick-open .sb56-quick-toggle em { display: inline-flex; }
  .sb56-quick-panel { max-height: 72dvh; overflow-y: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html body.sb-v50.sb-v56.sb-v53-quick-dock .sb-contact-dock { transition: none !important; }
  html body.sb-v56 *,
  html body.sb-v56 *::before,
  html body.sb-v56 *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
  .sb56-reveal { opacity: 1; transform: none; }
}

/* v62: 히어로에 직접 붙는 여는 버튼은 grid 전제의 음수 마진을 쓰지 않는다 */
html body.sb-v56 .hero .sb46-sheet-open,
html body.sb-v56 .hero-actions + .sb46-sheet-open{margin:14px 0 0!important;grid-column:auto!important;justify-self:start!important;align-self:start;width:max-content!important;max-width:100%;display:inline-flex;align-items:center;font-size:13px;font-weight:750}
