.wizard-hero {
  background: linear-gradient(135deg, #102042, #1d3a7b);
  color: #fff;
  padding: 60px 0;
}

.wizard-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 32px;
  align-items: stretch;
}

.wizard-hero .lead {
  margin: 16px 0;
  font-size: 1.05rem;
  line-height: 1.8;
  opacity: 0.85;
}

.wizard-checklist {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wizard-checklist li {
  display: flex;
  gap: 8px;
  align-items: center;
}

.wizard-checklist li::before {
  content: "✔";
  color: #34d399;
}

.wizard-summary {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  backdrop-filter: blur(6px);
}

.wizard-summary dl {
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.wizard-summary dt {
  font-size: 0.85rem;
  opacity: 0.8;
}

.wizard-summary dd {
  margin: 4px 0 0;
  font-size: 1.1rem;
}

.wizard-workbench {
  margin-top: -40px;
  background: #fff;
  border-radius: 26px;
  padding: 40px;
  box-shadow: 0 25px 80px rgba(15, 23, 42, 0.12);
}
.guide-hero {
  background: linear-gradient(135deg, #111b2b, #1f2f65);
  color: #fff;
  padding: 80px 0;
}

.guide-hero__content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.guide-hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  opacity: 0.8;
}

.guide-hero .lead {
  margin-top: 16px;
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.9;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-badge span {
  font-size: 0.85rem;
  opacity: 0.8;
}

.hero-badge strong {
  font-size: 1.3rem;
}

.guide-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: -60px;
}

.guide-progress-card {
  grid-column: span 2;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 28px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12);
}

.guide-progress-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.guide-progress-card p {
  margin: 0;
  color: var(--text-muted);
}

.guide-progress-card h3 {
  margin: 0;
  font-size: 1.4rem;
}

.status-chip {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-chip--idle {
  background: rgba(99, 102, 241, 0.15);
  color: #4f46e5;
}

.status-chip--active {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

.status-chip--done {
  background: rgba(37, 99, 235, 0.15);
  color: #2563eb;
}

.muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.progress-bar {
  margin: 18px 0 8px;
  height: 10px;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  border-radius: inherit;
  transition: width 0.4s ease;
}

.guide-progress-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-card,
.reminder-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 24px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.metric-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.metric-card h4 {
  margin: 8px 0 4px;
  font-size: 1.2rem;
}

.reminder-card header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.reminder-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reminder-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.95rem;
}

.reminder-list li::before {
  content: "•";
  color: var(--primary-color);
}

.guide-board {
  margin-top: 40px;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
}

.board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

#theme-toggle {
  min-width: 42px;
  height: 38px;
  border-radius: 999px;
}

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

.suggestion-btn {
  border: 1px solid rgba(37, 99, 235, 0.4);
  border-radius: 999px;
  padding: 6px 14px;
  background: transparent;
  color: var(--primary-color);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.suggestion-btn:hover {
  background: rgba(37, 99, 235, 0.08);
}

#question-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#question-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

#question-checklist input {
  accent-color: var(--primary-color);
}

.wizard-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin-top: 24px;
}

.wizard-sidebar {
  position: sticky;
  top: 100px;
}

.wizard-stepper,
.preview-box {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.wizard-step-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wizard-step-list li {
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.04);
  font-size: 0.95rem;
}

.wizard-step-list li.active {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  font-weight: 600;
}

.wizard-board-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.wizard-board-actions {
  display: flex;
  gap: 12px;
}

.wizard-progress-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  font-weight: 600;
}

.wizard-stepper__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.wizard-insight {
  margin-top: 20px;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(79, 70, 229, 0.08));
}

.wizard-insight h4 {
  margin: 0 0 6px;
}

.wizard-insight p {
  margin: 0;
  font-weight: 600;
}

.wizard-insight small {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
}

.wizard-progress-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

#wizard-progress {
  width: 100%;
  height: 8px;
}

.wizard-nav {
  display: flex;
  gap: 8px;
}

.wizard-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.wizard-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

#wizard-body .form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#wizard-body input,
#wizard-body textarea {
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 10px;
  padding: 10px 12px;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 8px;
}

.doc-preview {
  border: 1px dashed rgba(15, 23, 42, 0.2);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.8);
  padding: 20px;
  min-height: 320px;
  overflow-y: auto;
}

.doc-preview__heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.15);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.doc-preview__eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 0;
}

.doc-preview__heading h1 {
  margin: 4px 0 0 0;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
}

.doc-preview__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
}

.doc-preview__table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.doc-preview__table article {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  padding: 12px;
}

.doc-preview__table h2 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.doc-preview__table p {
  margin: 2px 0;
  font-size: 0.85rem;
  color: var(--text-gray);
}

.doc-preview__body ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-preview__body li {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-dark);
}

.doc-preview__body li strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.doc-preview__closing {
  border-top: 1px solid rgba(15, 23, 42, 0.15);
  margin-top: 18px;
  padding-top: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.doc-preview__signature {
  text-align: right;
  font-weight: 600;
  margin-top: 12px;
}

.timeline-dynamic {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.timeline-dynamic .timeline-card {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 20px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.timeline-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.timeline-card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.timeline-card__index {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  display: grid;
  place-items: center;
  font-weight: 600;
}

.timeline-card__desc {
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.5;
}

.timeline-card__tags {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.timeline-card__tags li {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--secondary-bg);
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 600;
}

.timeline-card__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.timeline-card__actions button {
  min-width: 120px;
}

.timeline-dynamic .timeline-card.done {
  opacity: 0.6;
}

.timeline-dynamic .timeline-card.active {
  border-color: rgba(37, 99, 235, 0.4);
}

.timeline-dynamic .empty-state {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.social-btn {
  width: 100%;
  margin-top: 12px;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.kakao-btn {
  background: #fee500;
  color: #2d1f00;
}

@media (max-width: 960px) {
  .wizard-layout {
    grid-template-columns: 1fr;
  }

  .wizard-sidebar {
    position: static;
  }

  .guide-hero__content {
    flex-direction: column;
  }

  .guide-dashboard {
    grid-template-columns: 1fr;
  }

  .guide-progress-card {
    grid-column: span 1;
  }

  .header-actions {
    flex-direction: column;
    gap: 6px;
  }
}
/* =========================================
   1. 기본 설정 및 변수 (Reset & Variables)
   ========================================= */
:root {
  --primary-color: #2563eb;       /* 메인 파란색 */
  --primary-dark: #1e40af;        /* 진한 파란색 (호버용) */
  --secondary-bg: #eff6ff;        /* 연한 파란 배경 */
  --text-dark: #1e293b;           /* 진한 회색 (본문) */
  --text-gray: #64748b;           /* 연한 회색 (설명) */
  --border-color: #e2e8f0;        /* 테두리 색상 */
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; }

/* 컨테이너 (중앙 정렬 및 최대 너비) */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 섹션 공통 여백 */
.section-padded {
  padding: 80px 0;
}

/* 섹션 제목 공통 스타일 */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  text-align: center;
}

.section-desc {
  text-align: center;
  color: var(--text-gray);
  margin-bottom: 60px;
  font-size: 1.1rem;
}


/* =========================================
   2. 헤더 (Header)
   ========================================= */
.site-header {
  height: 70px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

/* Logo circle in header */
.logo-circle {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}
    .msg-time {
      display: block;
      font-size: 0.66rem; /* smaller timestamp */
      /* lighter/muted gray for bot timestamps */
      color: rgba(100,116,139,0.45); /* rgba version of --text-gray with lower opacity */
      margin-top: 4px;
      text-align: left;
    }

    /* make user's timestamp faint white for contrast on blue bubble */
    .msg-user .msg-time {
      color: rgba(255,255,255,0.55);
    }
.msg-user {
  background-color: var(--primary-color);
  color: white;
  border-bottom-left-radius: 4px; /* Adjusted for left alignment */
  align-self: flex-start; /* Changed from flex-end to flex-start */
}

.brand div strong { display: block; font-size: 1.1rem; line-height: 1.2; }
.brand div p { font-size: 0.75rem; color: var(--text-gray); margin: 0; }

nav {
  display: flex;
  gap: 30px;
}

nav a {
  font-weight: 500;
  color: var(--text-gray);
  transition: color 0.2s;
}

nav a:hover, nav a.active {
  color: var(--primary-color);
  font-weight: 700;
}

.ghost-btn {
  background: none;
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}
.ghost-btn:hover { background-color: #f8fafc; }


/* =========================================
   3. 버튼 (Buttons)
   ========================================= */
.primary-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}
.primary-btn:hover { background-color: var(--primary-dark); }

.secondary-btn {
  background-color: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}
.secondary-btn:hover { background-color: var(--secondary-bg); }

/* 작은 버튼 */
.btn-primary-sm {
  background-color: var(--primary-color);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.btn-primary-sm:hover { background-color: var(--primary-dark); }


/* =========================================
   4. 메인 홈 (Hero Section - index.html)
   ========================================= */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 20px;
}

.eyebrow {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 16px;
  display: block;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--text-dark);
}

.hero .lead {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.8rem; color: var(--text-dark); }
.hero-stats span { font-size: 0.9rem; color: var(--text-gray); }

/* Hero 우측 카드 */
.hero-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.card-title {
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-gray);
  font-size: 0.9rem;
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  font-size: 1.2rem;
  font-weight: 700;
}

.status-pill {
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 20px;
}
.status-pill.in-progress {
  background-color: #fff7ed;
  color: #c2410c;
}

.status-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}
.status-steps li {
  color: var(--text-gray);
  font-size: 1rem;
}
.status-steps li.done { text-decoration: line-through; opacity: 0.6; }
.status-steps li.active { color: var(--primary-color); font-weight: 700; }

.card-note {
  font-size: 0.85rem;
  color: var(--text-gray);
  text-align: center;
  background: var(--secondary-bg);
  padding: 10px;
  border-radius: 8px;
}

/* CTA 배너 */
.cta-banner {
  background-color: var(--text-dark);
  color: white;
  border-radius: 20px;
  padding: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
}
.cta-banner h2 { font-size: 1.8rem; margin-bottom: 10px; }
.cta-banner p { color: #94a3b8; }


/* =========================================
   5. AI 상담 페이지 (chat.html)
   ========================================= */
.chat-container {
  display: flex;
  height: 600px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.chat-sidebar {
  width: 300px;
  background: #f8fafc;
  padding: 24px;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: white;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}
.info-card h4 { margin: 0 0 10px 0; font-size: 1rem; color: var(--primary-color); }
.info-card p { font-size: 0.9rem; margin: 4px 0; color: var(--text-dark); }

.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chat-window {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  background: white;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message {
  max-width: 80%;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.msg-ai {
  background-color: #f1f5f9;
  color: var(--text-dark);
  border-top-left-radius: 2px;
  align-self: flex-start;
}

.msg-user {
  background-color: var(--primary-color);
  color: white;
  border-top-right-radius: 2px;
  align-self: flex-end;
}

.chat-input-box {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
  background-color: white;
}

.chat-input-box input {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  outline: none;
}
.chat-input-box input:focus { border-color: var(--primary-color); }


/* =========================================
   6. 서류 생성 페이지 (wizard.html)
   ========================================= */
.wizard-steps {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 50px;
}

.step-item {
  position: relative;
  color: var(--text-gray);
  font-weight: 600;
  font-size: 1.1rem;
}
.step-item.active { color: var(--primary-color); font-weight: 700; }

.wizard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.form-box {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-dark); }
.form-group input, .form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}
.form-group input:focus, .form-group select:focus { border-color: var(--primary-color); }

/* Auth form specific styles */
.form-wrap { display: flex; justify-content: center; }
.auth-box { max-width: 520px; width: 100%; padding: 32px; }
.form-form { margin-top: 8px; }
.input { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 8px; }
.form-note { color: var(--text-gray); font-size: 0.9rem; margin-top: 8px; }
.auth-user { font-weight: 600; margin-right: 8px; }


.preview-box {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  font-family: 'Batang', serif; /* 명조체 느낌 */
  min-height: 500px;
}


/* =========================================
   7. 절차 가이드 페이지 (timeline.html)
   ========================================= */
.timeline-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-step {
  display: flex;
  gap: 30px;
  margin-bottom: 0; /* line 연결을 위해 */
  position: relative;
}

.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 40px;
  flex-shrink: 0;
}

.circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--border-color);
  color: var(--text-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  z-index: 2;
}

.timeline-step.active .circle {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: white;
  box-shadow: 0 0 0 4px var(--secondary-bg);
}

.line {
  flex: 1;
  width: 2px;
  background: var(--border-color);
  min-height: 80px; /* 최소 높이 */
}
.timeline-step:last-child .line { display: none; }

.step-content {
  flex: 1;
  padding-bottom: 50px;
}

.step-content h3 { margin: 0 0 10px 0; font-size: 1.2rem; color: var(--text-dark); }
.step-content p { color: var(--text-gray); margin-bottom: 15px; line-height: 1.6; }


/* =========================================
   8. 자료실 페이지 (resources.html)
   ========================================= */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.resource-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
  cursor: pointer;
}
.resource-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.resource-card summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  list-style: none;
}

.resource-card summary::-webkit-details-marker {
  display: none;
}

.resource-card[open] {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.resource-card h4 { margin: 0 0 6px 0; color: var(--text-dark); font-size: 1.1rem; }
.resource-card p { font-size: 0.95rem; color: var(--text-gray); line-height: 1.5; }

.tag {
  font-size: 0.8rem;
  background: var(--secondary-bg);
  color: var(--primary-color);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.resource-card__body {
  margin-top: 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  padding-top: 14px;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.resource-card__body ul,
.resource-card__body ol {
  margin: 0 0 12px 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.resource-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
}

.resource-link.ghost {
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--text-muted);
}


/* =========================================
   9. 푸터 (Footer)
   ========================================= */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 60px 0;
  margin-top: 60px;
  background-color: #f9fafb;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-grid strong { font-size: 1.1rem; display: block; margin-bottom: 8px; }
.footer-grid p { color: var(--text-gray); font-size: 0.9rem; }
.footer-grid ul { display: flex; gap: 20px; }
.footer-grid li { color: var(--text-gray); font-size: 0.9rem; }


/* =========================================
   10. 반응형 (Mobile)
   ========================================= */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding: 40px 20px; }
  .hero .lead { margin: 0 auto 40px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-card { display: none; } /* 모바일에서 카드 숨김 */
  
  .wizard-grid { grid-template-columns: 1fr; }
  .chat-container { flex-direction: column; height: auto; }
  .chat-sidebar { width: 100%; height: auto; }
  .chat-window { height: 400px; }
  
  .footer-grid { flex-direction: column; gap: 20px; }
  .footer-grid ul { flex-direction: column; gap: 10px; }
}