:root {
  --bg: #f6f1e7;
  --bg-accent: #efe7d8;
  --card: #fffdf9;
  --card-soft: #faf6ee;
  --ink: #1d1b18;
  --ink-muted: #5c564c;
  --ink-soft: #857d70;
  --border: #e5dccb;
  --border-strong: #d3c5ad;
  --vermilion: #b83b2a;
  --vermilion-dark: #972e20;
  --gold: #9a742c;
  --indigo: #233a59;
  --shadow-sm: 0 2px 10px rgba(29, 27, 24, 0.05);
  --shadow-md: 0 10px 30px rgba(29, 27, 24, 0.08);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --el-wood: #2d7a4f;
  --el-fire: #c84332;
  --el-earth: #b58428;
  --el-metal: #5f6775;
  --el-water: #27598e;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 12% 8%, #fbf7ee 0%, var(--bg) 52%, #efe8da 100%);
  color: var(--ink);
  font-family: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 18px 72px;
}

/* Header */
.hero {
  text-align: center;
  padding: 18px 8px 28px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(184, 59, 42, 0.09);
  border: 1px solid rgba(184, 59, 42, 0.22);
  color: var(--vermilion);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-seal {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--vermilion);
  color: #fffdf9;
  font-size: 11px;
  font-weight: 700;
}

.hero h1 {
  margin: 14px 0 8px;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.hero p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--ink-muted);
  font-size: 15px;
}

/* Card */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 20px;
}

.card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title-hanja {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}

.card-sub {
  font-size: 13px;
  color: var(--ink-soft);
}

/* Form */
.saju-form {
  display: grid;
  gap: 18px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label,
.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}

.input,
.select {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus,
.select:focus {
  outline: none;
  border-color: var(--vermilion);
  box-shadow: 0 0 0 3px rgba(184, 59, 42, 0.12);
}

.input:disabled,
.select:disabled {
  background: #f3efe7;
  color: var(--ink-soft);
  cursor: not-allowed;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--bg-accent);
  padding: 4px;
  border-radius: var(--radius-sm);
  gap: 4px;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.segmented input:checked + label {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(29, 27, 24, 0.12);
}

.date-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 10px;
}

.time-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 10px;
}

.check-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 2px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}

.checkbox-label input {
  width: 17px;
  height: 17px;
  accent-color: var(--vermilion);
  cursor: pointer;
}

.hint-text {
  font-size: 12.5px;
  color: var(--ink-soft);
}

.hint-text.is-highlight {
  color: var(--vermilion);
  font-weight: 600;
}

.form-error {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #fdf0ee;
  border: 1px solid #ecc0b9;
  color: #9e2a1b;
  font-size: 14px;
  font-weight: 500;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
  background: var(--vermilion);
  color: #fffdf9;
  box-shadow: 0 6px 16px rgba(184, 59, 42, 0.22);
}

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

.btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

.btn-secondary {
  background: var(--card-soft);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-accent);
}

.btn-sm {
  height: 38px;
  padding: 0 14px;
  font-size: 13.5px;
}

/* Result Summary Banner */
.summary-banner {
  background: linear-gradient(135deg, #21252f 0%, #2d2521 100%);
  color: #f9f5ec;
  border: none;
  position: relative;
  overflow: hidden;
}

.summary-banner::after {
  content: '命';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 120px;
  font-weight: 700;
  color: rgba(255, 253, 249, 0.045);
  pointer-events: none;
  line-height: 1;
}

.summary-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.summary-kicker {
  font-size: 12.5px;
  color: #d7c7a7;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.summary-heading {
  margin: 6px 0 8px;
  font-size: clamp(22px, 3.6vw, 28px);
  line-height: 1.25;
}

.summary-desc {
  margin: 0;
  max-width: 680px;
  color: #e4ddd0;
  font-size: 14.5px;
}

.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12.5px;
  color: #f4eee2;
}

/* Share Bar */
.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: var(--card-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.share-bar-text {
  font-size: 14px;
  color: var(--ink-muted);
}

.share-bar-text strong {
  color: var(--ink);
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Four Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pillar-col {
  background: var(--card-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pillar-col.is-day {
  border-color: rgba(184, 59, 42, 0.45);
  background: #fff9f5;
  box-shadow: 0 4px 14px rgba(184, 59, 42, 0.07);
}

.pillar-col.is-unknown {
  background: #f5f2ec;
  border-style: dashed;
  justify-content: center;
}

.pillar-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-muted);
}

.pillar-tengod {
  font-size: 12px;
  font-weight: 600;
  color: var(--vermilion);
  min-height: 18px;
}

.pillar-glyph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  border-radius: 12px;
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.14);
}

.pillar-hanja {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.pillar-ko {
  font-size: 12px;
  opacity: 0.92;
  margin-top: 3px;
}

.pillar-foot {
  font-size: 11.5px;
  color: var(--ink-soft);
  border-top: 1px dashed var(--border-strong);
  padding-top: 7px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.unknown-box {
  padding: 26px 8px;
  color: var(--ink-soft);
  font-size: 13px;
}

.unknown-box strong {
  display: block;
  font-size: 18px;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

/* Elements & Strength */
.elements-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
  align-items: start;
}

.el-bars {
  display: grid;
  gap: 11px;
}

.el-row {
  display: grid;
  grid-template-columns: 62px 1fr 56px;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}

.el-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 12.5px;
}

.el-track {
  height: 11px;
  border-radius: 999px;
  background: var(--bg-accent);
  overflow: hidden;
}

.el-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.el-val {
  text-align: right;
  font-weight: 600;
  color: var(--ink-muted);
  font-size: 13px;
}

.strength-box {
  background: var(--card-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: grid;
  gap: 12px;
}

.strength-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--indigo);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  width: fit-content;
}

.strength-box p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.yongshin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
}

.yongshin-item span {
  display: block;
  color: var(--ink-soft);
  font-size: 11.5px;
}

.yongshin-item strong {
  color: var(--ink);
}

/* Today's Fortune */
.today-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.score-ring {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--vermilion) calc(var(--score, 80) * 1%), var(--bg-accent) 0);
  padding: 8px;
}

.score-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--vermilion);
  line-height: 1;
}

.score-unit {
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.today-keyword {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
}

.today-overall {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
}

.today-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.today-cat {
  background: var(--card-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.today-cat h4 {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--ink);
}

.today-cat p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.lucky-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.lucky-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: #f5eee0;
  border: 1px solid var(--border-strong);
  font-size: 12.5px;
  color: var(--ink);
}

/* Shinsal */
.shinsal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.shinsal-card {
  background: var(--card-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
}

.shinsal-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 5px;
}

.shinsal-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.shinsal-hanja {
  font-size: 12px;
  color: var(--ink-soft);
}

.shinsal-card p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Daeun Timeline */
.daeun-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.daeun-item {
  background: var(--card-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.daeun-item.is-current {
  border-color: var(--vermilion);
  background: #fff6f3;
  box-shadow: 0 4px 12px rgba(184, 59, 42, 0.12);
}

.daeun-age {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
}

.daeun-item.is-current .daeun-age {
  color: var(--vermilion);
}

.daeun-chars {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

.daeun-ko {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.daeun-tengod {
  font-size: 11px;
  color: var(--ink-soft);
}

/* Readings */
.reading-list {
  display: grid;
  gap: 12px;
}

.reading-item {
  background: var(--card-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.reading-item h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
  color: var(--ink);
}

.reading-item p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* Empty / Guide State */
.intro-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.intro-box {
  background: var(--card-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.intro-box h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.intro-box p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 32px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.footer a {
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(16px);
  background: #1d1b18;
  color: #fffdf9;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

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

.hidden {
  display: none !important;
}

@media (max-width: 760px) {
  .form-grid,
  .elements-layout,
  .today-cats,
  .intro-highlights {
    grid-template-columns: 1fr;
  }

  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daeun-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .time-row {
    grid-template-columns: 1fr 1fr;
  }

  .time-row > :last-child {
    grid-column: 1 / -1;
  }

  .card {
    padding: 18px 16px;
  }
}

@media (max-width: 440px) {
  .today-top {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

/* Entry screen: a quieter, more readable service interface. */
:root {
  --bg: #f5f7fa; --bg-accent: #edf1f6; --card: #fff;
  --card-soft: #f7f9fc; --ink: #172334; --ink-muted: #526176;
  --ink-soft: #78879a; --border: #e3e9f0; --border-strong: #d5dfe9;
  --vermilion: #315b89; --vermilion-dark: #23486f;
  --shadow-sm: 0 12px 36px rgba(28, 48, 73, .055);
}
html, body { background: var(--bg); }
.page-shell { max-width: 1040px; padding: 0 24px 72px; }
.site-nav { height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e2e8ef; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #1b2e45; text-decoration: none; font-size: 15px; font-weight: 750; line-height: 1.1; letter-spacing: -.03em; }
.brand small { display: block; margin-top: 4px; color: #8492a3; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #fff; background: #315b89; font-family: serif; font-size: 18px; }
.nav-label { color: #8996a6; font-size: 12px; font-weight: 600; }
.hero { text-align: left; padding: 58px 4px 42px; }
.hero-badge { padding: 0; border: 0; background: transparent; color: #426c99; font-size: 13px; letter-spacing: 0; }
.hero-dot { width: 7px; height: 7px; border-radius: 50%; background: #628db7; }
.hero h1 { margin: 17px 0 17px; color: #17283c; font-size: clamp(34px, 4.3vw, 48px); line-height: 1.27; letter-spacing: -.055em; }
.hero h1 em { color: #315b89; font-style: normal; }
.hero p { margin: 0; max-width: 620px; color: #718095; line-height: 1.8; font-size: 15px; word-break: keep-all; }
.hero-features { display: flex; flex-wrap: wrap; gap: 10px 0; margin-top: 25px; color: #65778c; font-size: 12px; font-weight: 600; }
.hero-features span + span { margin-left: 13px; padding-left: 13px; border-left: 1px solid #d9e1ea; }
.card { border-radius: 16px; }
.input-card { padding: 32px 36px; margin-bottom: 24px; }
.input-card .card-header { margin-bottom: 26px; padding-bottom: 20px; align-items: center; }
.input-card .card-title { font-size: 19px; color: #21344a; }
.input-card .card-title-hanja { color: #a3afbc; }
.input-card .card-sub { font-size: 12px; }
.saju-form { gap: 24px; }
.input-card .form-grid { gap: 24px 20px; }
.input-card .calendar-row { grid-template-columns: minmax(150px, 200px) 1fr; gap: 10px; }
.field { gap: 9px; }
.field label, .field-label { color: #46586c; font-size: 13px; }
.input, .select { height: 48px; border-radius: 8px; }
.input:focus, .select:focus { border-color: #4e78a4; box-shadow: 0 0 0 3px rgba(49, 91, 137, .12); }
.segmented { background: #f0f3f7; border-radius: 8px; }
.segmented label { height: 40px; }
.segmented input:checked + label { color: #315b89; box-shadow: 0 1px 5px rgba(30, 49, 69, .12); }
.segmented input:focus-visible + label { outline: 2px solid #315b89; outline-offset: 2px; }
.form-actions { padding-top: 20px; border-top: 1px solid var(--border); }
.input-card .btn-primary { min-width: 160px; min-height: 48px; background: #315b89; border-color: #315b89; box-shadow: none; }
.input-card .btn-primary:hover { background: #23486f; border-color: #23486f; }
#intro-guide { padding: 28px 36px 32px; }
#intro-guide .card-header { border: 0; margin-bottom: 18px; padding-bottom: 0; }
#intro-guide .intro-box { background: #f7f9fc; border-color: #eaf0f5; }
.footer { color: #8996a6; }
@media (max-width: 640px) {
  .page-shell { padding: 0 16px 48px; }
  .site-nav { height: 64px; }
  .nav-label { display: none; }
  .hero { padding: 42px 2px 30px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 14px; }
  .desktop-break { display: none; }
  .hero-features { font-size: 11px; }
  .input-card, #intro-guide { padding: 24px 20px; }
  .input-card .card-header { display: block; }
  .input-card .card-sub { display: block; margin-top: 8px; }
  .input-card .calendar-row { grid-template-columns: 1fr; }
  .input-card .form-grid { gap: 20px; }
  .input-card .calendar-row { gap: 10px; }
  .form-actions { align-items: stretch; }
  .input-card .btn-primary { width: 100%; }
}


/* Guided entry */
.wizard-intro { padding: 38px 4px 26px; }
.wizard-intro h1 { font-size: clamp(30px, 4vw, 40px); margin: 12px 0; }
.input-card { max-width: 680px; margin: 0 auto 24px; padding: 36px 44px 28px; }
.wizard-intro { max-width: 680px; margin: 0 auto; }
.wizard-progress { display: none; }
.wizard-step { margin-bottom: 28px; }
.wizard-step h2 { margin: 0 0 8px; color: #182b40; font-size: 25px; line-height: 1.35; letter-spacing: -.04em; }
.step-description { margin: 0 0 28px; color: #79899b; font-size: 14px; }
.wizard-step .field + .field { margin-top: 24px; }
.wizard-step .segmented { max-width: 280px; }
.wizard-step .date-row { grid-template-columns: 1.25fr 1fr 1fr; }
.choice-group { display: grid; gap: 10px; }
.choice-group input { position: absolute; opacity: 0; }
.choice-group label { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 20px; border: 1px solid #e2e8ef; border-radius: 12px; background: #fff; color: #263a50; font-size: 16px; font-weight: 650; cursor: pointer; }
.choice-group label span { color: #aab7c4; font-size: 24px; font-weight: 400; }
.choice-group input:checked + label { color: #24598e; border-color: #4b7ba9; background: #f2f7fc; }
.choice-group input:focus-visible + label { outline: 3px solid #a2c1df; outline-offset: 2px; }
.time-fields { margin-top: 22px; }
.time-fields .time-row { grid-template-columns: 1fr 1fr; }
.time-extra { margin: 4px 0; color: #647990; font-size: 13px; }
.time-extra summary { cursor: pointer; }
.time-extra select { margin-top: 10px; }
.review-list { margin-top: 24px; padding: 8px 18px; background: #f5f8fb; border-radius: 12px; }
.review-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; font-size: 14px; }
.review-list span { color: #75869a; }.review-list strong { text-align: right; color: #263b53; }
.wizard-actions { display: flex; gap: 10px; }
.wizard-actions .btn-primary { flex: 1; min-height: 54px; font-size: 16px; }
.wizard-back { border: 0; background: #edf2f7; color: #52677f; border-radius: 9px; font: inherit; font-weight: 700; padding: 0 22px; cursor: pointer; }
.privacy-note { margin: 18px 0 0; text-align: center; color: #8d9bab; font-size: 12px; }
#intro-guide[hidden] { display: none; }
.wizard-active .wizard-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; color: #71849a; font-size: 12px; font-weight: 700; }
.progress-track { flex: 1; height: 4px; background: #eaf0f5; border-radius: 4px; overflow: hidden; }
#progress-bar { height: 100%; width: 25%; background: #527eaa; transition: width .2s; }
.wizard-active .wizard-step[hidden], .wizard-active [hidden] { display: none !important; }
.wizard-active .fallback-unknown { display: none; }
html:not(.wizard-active) .wizard-progress, html:not(.wizard-active) .time-choice, html:not(.wizard-active) #wizard-back, html:not(.wizard-active) #wizard-next, html:not(.wizard-active) .review-list { display: none; }
@media (max-width: 640px) {
  .wizard-intro { padding: 30px 3px 24px; }
  .wizard-intro h1 { font-size: 30px; }
  .input-card { padding: 26px 22px 24px; }
  .wizard-step h2 { font-size: 23px; }
  .wizard-step .date-row { grid-template-columns: 1.2fr 1fr 1fr; gap: 7px; }
  .wizard-step .input, .wizard-step .select { padding: 0 9px; }
  .wizard-actions .btn-primary { width: auto; }
}

/* Typography for clear questions and comfortable reading on every screen. */
html, body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-feature-settings: "kern";
  letter-spacing: -.015em;
  word-break: keep-all;
}
.wizard-intro h1 { font-weight: 750; letter-spacing: -.045em; line-height: 1.24; }
.wizard-step h2 { font-weight: 720; letter-spacing: -.035em; line-height: 1.38; }
.wizard-intro p, .step-description { color: #596c82; font-size: 15px; line-height: 1.65; }
.field label, .field-label { color: #40546a; font-size: 14px; font-weight: 650; }
.input, .select { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.input::placeholder { color: #8997a6; }
.hint-text, .privacy-note { color: #62758a; font-size: 13px; line-height: 1.55; }
.choice-group label, .wizard-actions button { letter-spacing: -.02em; }
.review-list div { font-size: 15px; line-height: 1.5; }
.review-list span { color: #60748a; }
.footer { color: #64778b; line-height: 1.6; }
@media (max-width: 640px) {
  .wizard-intro p, .step-description { font-size: 15px; }
  .wizard-step h2 { font-size: 23px; }
  .privacy-note { font-size: 12px; }
}

