:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-soft: #f1eeea;
  --border: #ddd4cb;
  --text: #171717;
  --text-muted: #5e5e5e;
  --text-soft: #838383;
  --primary: #28536b;
  --primary-soft: #e8f0f5;
  --accent: #4da8a0;
  --accent-soft: #e7f7f4;
  --warning: #fff4da;
  --warning-text: #6f5310;
  --success: #e8f6ef;
  --success-text: #1f6a43;
  --shadow: 0 10px 35px rgba(16, 24, 40, 0.08);
  --radius: 20px;
  --radius-sm: 14px;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fcfbf8 0%, #f6f4ef 100%);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; display: block; }

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.7);
}

.notice-banner {
  margin-top: 18px;
  border: 1px solid #ead8b5;
  background: var(--warning);
  color: var(--warning-text);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
}

.page-shell {
  padding: 28px 0 56px;
}

.hero {
  padding: 42px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: stretch;
}

.card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(221, 212, 203, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 36px;
}

.hero-copy h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 18px 0 16px;
}

.hero-copy p {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
}

.hero-list {
  margin: 24px 0 28px;
  display: grid;
  gap: 12px;
}

.hero-list li {
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.hero-list li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 14px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 18px rgba(40, 83, 107, 0.2);
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 18px rgba(77, 168, 160, 0.2);
}

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

.hero-side {
  padding: 28px;
  display: grid;
  gap: 16px;
}

.metric-grid,
.summary-grid,
.scenario-grid,
.vertical-grid,
.panel-grid,
.stats-grid,
.filters-grid,
.two-col {
  display: grid;
  gap: 16px;
}

.metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vertical-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel-grid { grid-template-columns: 1.2fr 0.8fr; }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.filters-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.metric-card,
.summary-card,
.surface,
.stat-card,
.filter-card,
.empty-card,
.option-card,
.timeline-card,
.question-card,
.result-card,
.table-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(221, 212, 203, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.metric-card,
.summary-card,
.stat-card,
.filter-card,
.option-card,
.timeline-card,
.result-card,
.table-card,
.surface,
.empty-card {
  padding: 22px;
}

.metric-card h3,
.summary-card h3,
.surface h3,
.option-card h3,
.timeline-card h3,
.result-card h3,
.table-card h3,
.filter-card h3,
.stat-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.muted,
.surface p,
.option-card p,
.timeline-card p,
.result-card p,
.table-card p,
.filter-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

.section {
  padding: 18px 0 28px;
}

.section-heading {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section-sub {
  margin: 0 0 22px;
  color: var(--text-muted);
  line-height: 1.7;
}

.kicker {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  font-weight: 800;
}

.list,
.check-list,
.detail-list,
.timeline,
.summary-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.list li,
.check-list li,
.detail-list li,
.timeline li,
.summary-list li {
  list-style: none;
  line-height: 1.6;
}

.check-list li,
.timeline li,
.summary-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.check-list li::before,
.timeline li::before,
.summary-list li::before {
  content: "•";
  color: var(--accent);
  font-size: 18px;
  line-height: 1.1;
}

.vertical-card {
  display: grid;
  gap: 16px;
  padding: 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(221, 212, 203, 0.9);
  box-shadow: var(--shadow);
}

.vertical-card[data-vertical="clinic"] .pill { color: var(--primary); background: var(--primary-soft); border-color: transparent; }
.vertical-card[data-vertical="beauty"] .pill { color: var(--accent); background: var(--accent-soft); border-color: transparent; }

.highlight-box {
  border-radius: 18px;
  padding: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.progress-wrap {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #ebe5de;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
  transition: width 0.25s ease;
}

.progress-label {
  font-size: 13px;
  color: var(--text-soft);
}

.intake-shell {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.question-card {
  padding: 26px;
}

.question-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.question-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.question-help {
  margin: 0 0 18px;
  color: var(--text-muted);
  line-height: 1.6;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.option-button {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.option-button:hover,
.option-button.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-1px);
}

.option-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.option-description {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.nav-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.mini-link {
  font-size: 13px;
  color: var(--text-soft);
}

.summary-pair {
  display: grid;
  gap: 12px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #eee6dd;
}

.summary-row:last-child { border-bottom: none; }
.summary-label { color: var(--text-muted); }
.summary-value { font-weight: 700; text-align: right; max-width: 62%; }

.tab-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tab-button {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
}

.tab-button.active {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: transparent;
}

.inline-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  background: #111;
  color: #fff;
  padding: 2px 6px;
  border-radius: 8px;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eee6dd;
  text-align: left;
  font-size: 14px;
  vertical-align: top;
}

.data-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.status-completed { background: var(--success); color: var(--success-text); }
.status-started { background: #edf2ff; color: #3250b0; }
.status-abandoned { background: #f8ecec; color: #8f2d2d; }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

footer {
  padding: 36px 0 56px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .hero-grid,
  .panel-grid,
  .summary-grid,
  .scenario-grid,
  .vertical-grid,
  .filters-grid,
  .two-col,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .options-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell { padding-top: 18px; }
  .hero-copy,
  .hero-side,
  .question-card,
  .metric-card,
  .summary-card,
  .surface,
  .stat-card,
  .filter-card,
  .option-card,
  .timeline-card,
  .result-card,
  .table-card,
  .vertical-card {
    padding: 18px;
  }

  .hero-copy h1,
  .question-title,
  .section-heading {
    font-size: 28px;
  }

  .button-row,
  .nav-actions,
  .tab-row {
    flex-direction: column;
  }

  .btn { width: 100%; }
}
