/* ==========================================================================
   common.css — 모든 페이지(허브 + 테스트)가 공유하는 베이스 스타일
   스킨별 색상은 각 테스트 폴더의 style.css에서 아래 CSS 변수만 덮어쓰면 됨.
   ========================================================================== */

:root {
  /* 기본(허브) 팔레트 — 스킨에서 override 가능 */
  --bg: #faf6f1;
  --card-bg: #ffffff;
  --text: #2b2320;
  --text-sub: #8a7d74;
  --accent: #ff7a59;
  --accent-dark: #e85f3f;
  --accent-soft: #ffe3d9;
  --border: #eee2d8;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 24px rgba(60, 40, 20, 0.08);
  --max-width: 480px;

  /* 허브 디자인 토큰 (planning/design.md §01) — 스킨(테스트 페이지)은 건드리지 않는다 */
  --body: #4a3f39; /* 패널 본문 글씨 */
  --sub: #7a6d64; /* 작은 라벨용 회색 (대비 4.6:1) */
  --coral-deep: #cc4325; /* 흰 배경 위 숫자·링크 글씨 (대비 4.8:1) */
  --blue-soft: #e3f1ff; /* 보조색 바탕(로고 스카이 블루 계열) */
  --gold-soft: #fff1c7;
  --gold-mark: #ffe08a; /* 형광펜 */
  --mint-soft: #d9f4ec;
  /* 큰 제목·숫자·말풍선 질문용 표시 글꼴. 주아체는 index.html에서 웹폰트로 불러온다(굵기 400 하나뿐 → 항상 400 고정).
     다른 글꼴로 바꾸려면 이 한 줄만 고치면 된다(대안: "Do Hyeon", "Gowun Dodum"). */
  --font-display: "Jua", "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system,
    BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 공용 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.15s ease, opacity 0.15s ease;
  width: 100%;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 45%, transparent);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--accent-dark);
  border: 1.5px solid var(--accent-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--text-sub);
  font-weight: 600;
  padding: 10px 16px;
}

/* 진행 바 */
.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.35s ease;
  width: 0%;
}

/* 토스트 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(16px);
  background: rgba(30, 24, 20, 0.92);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

[hidden] {
  display: none !important;
}

/* 스크린리더 전용 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 허브(메인) 페이지 ---------- */
.hub-header {
  padding: 48px 0 28px;
  text-align: center;
}

.hub-logo {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-dark);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.hub-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 10px;
}

.hub-subtitle {
  font-size: 15px;
  color: var(--text-sub);
  margin: 0;
}

.card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
  padding-bottom: 48px;
  flex: 1;
}

/* ---- 테스트 검색 (허브 "테스트 모아보기" 탭 위) — 동작은 assets/js/hub.js ---- */
.hub-search {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 0 8px;
}

.hub-search[hidden],
.hub-search-clear[hidden],
.hub-search-empty[hidden] {
  display: none;
}

.hub-search-icon {
  position: absolute;
  left: 16px;
  color: var(--sub);
  pointer-events: none;
}

.hub-search-input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 46px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 16px; /* 16px 미만이면 iOS가 입력 시 화면을 확대한다 */
  font-weight: 600;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hub-search-input::placeholder {
  color: var(--sub);
  font-weight: 500;
}

.hub-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.hub-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  display: none;
}

.hub-search-clear {
  position: absolute;
  right: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--sub);
  cursor: pointer;
}

.hub-search-clear:hover,
.hub-search-clear:focus-visible {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.hub-search-status {
  margin: 0 4px 8px;
  font-size: 13px;
  color: var(--sub);
}

.hub-search-status:empty {
  margin: 0;
}

.hub-search-empty {
  margin: 24px 8px 48px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: var(--sub);
}

.test-card.is-filtered {
  display: none !important;
}

.test-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.15s ease;
}

.test-card.live:active {
  transform: scale(0.98);
}

.test-card.soon {
  opacity: 0.55;
}

.test-card-emoji {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.test-card-body {
  flex: 1;
  min-width: 0;
}

.test-card-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 4px;
}

.test-card-sub {
  font-size: 13px;
  color: var(--text-sub);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.test-card-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  flex-shrink: 0;
}

.test-card.soon .test-card-badge {
  background: #eee;
  color: #999;
}

/* 허브 2열 카드 — 세로형. (결과 화면 "다른 테스트도 해볼래요?" 추천 카드는
   .card-list 밖이라 위의 가로형 스타일을 그대로 쓴다) */
.card-list .test-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
}

.card-list .test-card-emoji {
  width: 48px;
  height: 48px;
  font-size: 24px;
}

.card-list .test-card-body {
  width: 100%;
}

.card-list .test-card-title,
.card-list .test-card-sub {
  word-break: keep-all; /* 한글 단어 중간(예: "일까?"의 "까?")에서 줄바꿈되지 않게 */
}

.card-list .test-card-title {
  font-size: 15px;
  line-height: 1.35;
}

.card-list .test-card-sub {
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.card-list .test-card-badge {
  margin-top: auto;
}

/* PC(태블릿 이상): 허브 폭을 넓히고 카드를 가로형 직사각형으로 — 한 줄에 2개.
   모바일은 위의 세로형 그대로. */
@media (min-width: 768px) {
  .hub-wrap {
    max-width: 760px;
  }

  /* 글 패널만 읽기 좋은 폭으로 (카드 패널은 넓게 유지) */
  .hub-wrap .tab-text {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .card-list {
    gap: 14px;
  }

  .card-list .test-card {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
  }

  .card-list .test-card-emoji {
    width: 56px;
    height: 56px;
    font-size: 28px;
    flex-shrink: 0;
  }

  .card-list .test-card-body {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .card-list .test-card-title {
    font-size: 16px;
    margin-bottom: 4px;
  }

  .card-list .test-card-sub {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .card-list .test-card-badge {
    margin-top: 0;
  }
}

.hub-footer {
  text-align: center;
  padding: 20px 0 40px;
  font-size: 12px;
  color: var(--text-sub);
}

.hub-footer a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: underline;
}

/* 광고 자리 — ad-config.js에 키를 넣기 전까지는 hidden 상태라 화면에 안 보임 */
.ad-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px auto 0;
  overflow: hidden;
}

/* ==========================================================================
   테스트(퀴즈) 공용 구조 — 모든 스킨이 공유. 스킨은 CSS 변수/폰트/장식만 덮어씀.
   ========================================================================== */

.home-link {
  display: inline-block;
  padding: 18px 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
}

.screen {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-bottom: 40px;
}

/* ---- 인트로 ---- */
#screen-intro {
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 4px;
  padding-top: 20px;
}

.intro-emoji {
  font-size: 64px;
  margin-bottom: 6px;
}

.kicker {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 16px;
}

.intro-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 14px;
  white-space: pre-line;
}

.intro-desc {
  font-size: 15px;
  color: var(--text-sub);
  white-space: pre-line;
  margin: 0 0 20px;
  line-height: 1.65;
}

.intro-meta {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 28px;
}

#screen-intro .btn {
  max-width: 320px;
}

.nickname-field {
  width: 100%;
  max-width: 320px;
  margin: 0 0 20px;
}

.nickname-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  margin: 0 0 8px;
}

.nickname-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  transition: border-color 0.15s ease;
}

.nickname-input::placeholder {
  color: var(--text-sub);
  font-weight: 500;
}

.nickname-input:focus {
  outline: none;
  border-color: var(--accent);
}

/* ---- 퀴즈 ---- */
.quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 14px;
  min-height: 32px;
}

.quiz-top #quiz-back-btn {
  padding: 6px 4px;
}

.quiz-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
  margin-left: auto;
}

.quiz-question {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.5;
  margin: 28px 0 24px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  text-align: left;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.option-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.option-btn:active {
  transform: scale(0.98);
}

.option-btn.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* ---- 결과 ---- */
#screen-result {
  align-items: center;
  text-align: center;
  padding-top: 24px;
}

.result-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 18px;
}

.result-emoji {
  font-size: 72px;
  margin-bottom: 8px;
}

.result-name {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.4;
}

.result-type {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-sub);
  margin: 0 0 14px;
}

.result-tagline {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-dark);
  margin: 0 0 16px;
}

.result-desc {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin: 0 0 20px;
}

.result-traits {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.result-traits li {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  text-align: left;
}

.result-traits li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 800;
}

.result-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--accent-soft);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 28px;
}

.result-match-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
}

.result-match-value {
  font-size: 14px;
  font-weight: 700;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* 결과 화면 하단 "다른 테스트도 해볼래요?" 추천 */
.result-recommend {
  width: 100%;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px dashed var(--border);
}

.result-recommend-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-sub);
  margin: 0 0 14px;
  text-align: left;
}

.result-recommend-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   사이트 공통 헤더/푸터, 면책 문구, 정적 설명 블록
   (tools/build-static.js가 각 페이지에 주입하는 마크업용 스타일)
   ========================================================================== */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-dark);
}

.site-brand-mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.site-header nav {
  display: flex;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
}

.disclaimer {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--text-sub);
}

.static-info {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px dashed var(--border);
  text-align: left;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.75;
}

.static-info h2 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin: 28px 0 8px;
}

.static-info h2:first-child {
  margin-top: 0;
}

.static-info h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin: 14px 0 2px;
}

.static-info p {
  margin: 0 0 8px;
}

.static-info ul,
.static-info ol {
  margin: 0;
  padding-left: 18px;
}

.static-info li {
  margin-bottom: 4px;
}

.static-info li strong {
  color: var(--text);
}

.static-info a {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* 허브 메인 탭 (무슨상연구소는 어떤 곳인가요? / 테스트 모아보기 / 이렇게 이용하세요 / 자주 묻는 질문).
   헤더 바로 아래에 있고, 처음엔 "테스트 모아보기"(카드 목록)가 열려 있다.
   JS(hub.js)가 .tabs에 js-tabs 클래스를 붙이면 탭 바가 나타나고 선택한 패널만 보인다.
   JS가 없으면 탭 바는 숨겨지고 모든 패널이 그대로 펼쳐진다. */
.hub-main {
  flex: 1;
  padding-bottom: 8px;
}

.tab-list {
  display: none;
}

.tabs.js-tabs .tab-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0 0 20px;
}

.tab-btn {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.tab-btn[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.tab-btn:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
}

/* 모바일: 4개 탭이 한 줄에 안 들어가 3+1로 남지 않도록 2×2 균등 배치 */
@media (max-width: 767px) {
  .tabs.js-tabs .tab-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tab-btn {
    text-align: center;
  }
}

/* 글 패널(소개/이용/FAQ)은 static-info 타이포그래피를 재사용하되, 페이지 하단 안내용
   구분선·여백은 빼고 탭 안에서 자연스럽게 보이게 한다. (카드 패널은 static-info가 아님) */
.hub-main .tab-panel.static-info {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.hub-main .tab-panel + .tab-panel {
  margin-top: 28px; /* JS 없이 모두 펼쳐 보일 때의 패널 간격 */
}

.hub-main .tabs.js-tabs .tab-panel + .tab-panel {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   허브 하단 탭 디자인 (planning/design.md 요청 #1)
   소개 = 일러스트 + 수치 카드 / 이용 = 단계 카드 / FAQ = 채팅 말풍선.
   기존 .static-info 규칙(h2·p·ol·li)보다 우선하도록 .hub-main 아래에 둔다.
   -------------------------------------------------------------------------- */
.hub-main .panel-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--text);
  word-break: keep-all;
  text-wrap: balance;
}

.hub-main .panel-title .hl {
  padding: 0 3px;
  margin: 0 -3px;
  background: linear-gradient(transparent 58%, var(--gold-mark) 58%, var(--gold-mark) 92%, transparent 92%);
}

.hub-main .lead {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--body);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hub-main .lead strong {
  font-weight: 800;
  color: var(--text);
  background: linear-gradient(transparent 62%, var(--accent-soft) 62%);
}

/* 소개·이용 탭의 보충 안내 (소제목 + 본문 + 목록) */
.hub-main .sub-title {
  margin: 28px 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.4;
  color: var(--text);
  word-break: keep-all;
}

.hub-main .info-text {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--body);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hub-main .info-text b,
.hub-main .info-list b {
  font-weight: 800;
  color: var(--text);
}

.hub-main .info-list {
  margin: 0 0 10px;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--body);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hub-main .info-list li {
  margin-bottom: 6px;
}

/* 탭: 소개 */
.hub-main .hero {
  display: block;
  width: 160px;
  height: 112px;
  margin: 0 auto 10px;
}

.hub-main .stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hub-main .stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 10px;
  border-radius: 18px;
}

.hub-main .stat:nth-child(1) { background: var(--blue-soft); }
.hub-main .stat:nth-child(2) { background: var(--accent-soft); }
.hub-main .stat:nth-child(3) { background: var(--gold-soft); }
.hub-main .stat:nth-child(4) { background: var(--mint-soft); }

.hub-main .stat img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 4px rgba(60, 40, 20, 0.12));
}

.hub-main .stat .num {
  display: block;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.15;
  color: var(--text);
}

.hub-main .stat .lab {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--sub);
  word-break: keep-all;
}

/* 탭: 이용 방법 */
.hub-main .steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hub-main .step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border-radius: 20px;
}

.hub-main .step:nth-child(1) { background: var(--blue-soft); }
.hub-main .step:nth-child(2) { background: var(--accent-soft); }
.hub-main .step:nth-child(3) { background: var(--gold-soft); }

/* 다음 단계로 이어지는 점선 */
.hub-main .step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 30px;
  top: 100%;
  height: 12px;
  border-left: 2.5px dotted #cbbfb3;
}

.hub-main .step .no {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  color: var(--coral-deep);
  box-shadow: 0 3px 8px rgba(60, 40, 20, 0.1);
}

.hub-main .step p {
  flex: 1;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
  word-break: keep-all;
}

.hub-main .step p b {
  font-weight: 800;
  color: var(--text);
}

.hub-main .step img {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 4px rgba(60, 40, 20, 0.12));
}

/* 탭: 자주 묻는 질문 — 질문은 오른쪽 코랄 말풍선, 답변은 왼쪽 흰 말풍선 */
.hub-main .chat {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hub-main .qa {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hub-main .q {
  align-self: flex-end;
  max-width: 88%;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px 9px 9px;
  border-radius: 22px 22px 6px 22px;
  background: var(--accent);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0;
  word-break: keep-all;
}

.hub-main .q img {
  width: 30px;
  height: 30px;
  padding: 3px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}

.hub-main .a {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.hub-main .a .av {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.hub-main .a .bubble {
  margin: 0;
  max-width: 84%;
  padding: 12px 15px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px 22px 22px 6px;
  box-shadow: 0 4px 12px rgba(60, 40, 20, 0.05);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--body);
  word-break: keep-all;
}

.hub-main .a .bubble a {
  color: var(--coral-deep);
  font-weight: 700;
  text-decoration: underline;
}

.site-footer {
  margin-top: 28px;
  padding: 18px 0 40px;
  text-align: center;
  font-size: 12px;
  color: var(--text-sub);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin-bottom: 8px;
}

.site-footer a {
  color: var(--accent-dark);
  font-weight: 600;
}

.site-footer p {
  margin: 0;
}
