:root {
  --reg-navy: #071a2b;
  --reg-navy-soft: #14345b;
  --reg-blue: #183d68;
  --reg-gold: #d8c79c;
  --reg-gold-dark: #9d8244;
  --reg-ivory: #f5f2ea;
  --reg-canvas: #f4f6f8;
  --reg-white: #ffffff;
  --reg-ink: #142231;
  --reg-muted: #687585;
  --reg-line: #dbe2e8;
  --reg-danger: #b42338;
  --reg-shadow: 0 20px 55px rgba(20, 34, 49, 0.09);
}

*, *::before, *::after { box-sizing: border-box; }

html { min-height: 100%; scroll-behavior: smooth; }

body {
  min-height: 100%;
  margin: 0;
  color: var(--reg-ink);
  background: var(--reg-canvas);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--reg-blue); }
a:hover, a:focus { color: var(--reg-navy); }

.brand {
  display: inline-flex;
  flex-direction: column;
  color: inherit;
  line-height: 1;
  text-decoration: none;
}

.brand:hover, .brand:focus { color: inherit; text-decoration: none; }

.brand--image { flex: 0 0 auto; }

.brand__logo {
  display: block;
  width: 64px;
  height: auto;
  object-fit: contain;
}

.brand__ko {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -1px;
}

.brand__en {
  margin-top: 6px;
  font-size: 9px;
  letter-spacing: 1.7px;
  opacity: 0.7;
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid #e4e8ec;
  background: rgba(255, 255, 255, 0.94);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 40px, 1100px);
  min-height: 76px;
  margin: 0 auto;
}

.site-header__contact {
  color: var(--reg-muted);
  font-size: 13px;
  text-decoration: none;
}

.app-main {
  width: min(100% - 40px, 920px);
  min-height: calc(100vh - 155px);
  margin: 0 auto;
  padding: 48px 0 72px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(100% - 40px, 1100px);
  margin: 0 auto;
  padding: 24px 0 30px;
  border-top: 1px solid #e0e5e9;
  color: #7a8693;
  font-size: 12px;
}

.site-footer a { color: inherit; }

.app-progress {
  width: min(100%, 820px);
  margin: 0 auto 20px;
}

.app-progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
  color: var(--reg-muted);
  font-size: 13px;
  font-weight: 600;
}

.app-progress__track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe4e9;
}

.app-progress__bar {
  display: block;
  width: var(--progress, 20%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--reg-blue), var(--reg-gold-dark));
}

.wizard-card,
.app-main > .container {
  float: none !important;
  width: min(100%, 820px) !important;
  max-width: 820px !important;
  margin: 0 auto !important;
  padding: 42px !important;
  border: 1px solid var(--reg-line) !important;
  border-radius: 24px;
  background: var(--reg-white);
  box-shadow: var(--reg-shadow);
}

.wizard-card__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--reg-gold-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.wizard-card h1,
.wizard-card h2,
.app-main > .container h3 {
  margin: 0 0 12px;
  color: var(--reg-ink);
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.045em;
}

.wizard-card__lead {
  margin: 0 0 28px;
  color: var(--reg-muted);
}

.notice,
.error-notice,
.success-notice {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
}

.notice { border: 1px solid #ded7c6; background: #fbf8f0; color: #665934; }
.error-notice { border: 1px solid #f0c2c9; background: #fff5f6; color: var(--reg-danger); }
.success-notice { border: 1px solid #b9d8cb; background: #f1faf6; color: #235d48; }

.form-group { margin-bottom: 22px; }

.form-group label,
.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--reg-ink);
  font-size: 14px;
  font-weight: 700;
}

.app-main .form-control,
.app-main input[type="text"],
.app-main input[type="email"],
.app-main input[type="password"],
.app-main input[type="number"],
.app-main input[type="date"],
.app-main select,
.app-main textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cfd8e1;
  border-radius: 10px;
  background: #fff;
  color: var(--reg-ink);
  box-shadow: none;
  font: inherit;
}

.app-main textarea { min-height: 110px; resize: vertical; }

.app-main .form-control:focus,
.app-main input:focus,
.app-main select:focus,
.app-main textarea:focus {
  border-color: var(--reg-blue);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(24, 61, 104, 0.12);
}

.field-help {
  display: block;
  margin-top: 7px;
  color: var(--reg-muted);
  font-size: 12px;
}

.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid #e7ebef;
}

.app-main .btn,
.entry-button {
  min-height: 46px;
  padding: 11px 18px !important;
  border-radius: 10px !important;
  border-width: 1px !important;
  font-weight: 700;
  line-height: 1.45;
  white-space: normal;
  box-shadow: none !important;
  text-decoration: none;
}

.app-main .btn-success,
.app-main .btn-primary {
  border-color: var(--reg-blue) !important;
  background: var(--reg-blue) !important;
  color: #fff !important;
}

.app-main .btn-success:hover,
.app-main .btn-primary:hover { background: var(--reg-navy) !important; }

.app-main .btn-warning,
.app-main .btn-default,
.app-main .btn-info {
  border-color: #cfd8e1 !important;
  background: #fff !important;
  color: var(--reg-ink) !important;
}

.app-main .btn-danger {
  border-color: #ecc7cd !important;
  background: #fff5f6 !important;
  color: var(--reg-danger) !important;
}

.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0; }

.option-card {
  position: relative;
  display: block;
  min-height: 78px;
  margin: 0;
  padding: 17px 18px 17px 48px;
  border: 1px solid var(--reg-line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.option-card:hover { border-color: #9cacbd; transform: translateY(-1px); }
.option-card input { position: absolute; top: 21px; left: 19px; margin: 0; accent-color: var(--reg-blue); }
.option-card strong { display: block; margin-bottom: 3px; color: var(--reg-ink); font-size: 15px; }
.option-card span { color: var(--reg-muted); font-size: 12px; }
.option-card:has(input:checked) { border: 2px solid var(--reg-blue); padding: 16px 17px 16px 47px; background: #f4f7fb; }

.logout-link { display: inline-block; margin-top: 22px; color: var(--reg-muted); font-size: 13px; }

/* Landing */
.landing-page { overflow-x: hidden; background: var(--reg-ivory); }
.landing-main { width: 100%; margin: 0; padding: 0; }

.landing-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.82fr);
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  overflow: hidden;
}

.landing-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 34px clamp(34px, 6vw, 92px);
  background: var(--reg-navy);
  color: #f7f3e9;
}

.landing-left .brand__en { color: var(--reg-gold); }
.landing-brand .brand__logo { width: 80px; }

.landing-hero { max-width: 690px; margin: 62px 0 48px; }

.landing-eyebrow {
  display: block;
  margin-bottom: 16px;
  color: var(--reg-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.landing-hero h1 {
  max-width: 650px;
  margin: 0 0 24px;
  color: #f7f3e9;
  font-family: "Noto Serif KR", Georgia, serif;
  font-size: clamp(44px, 5.2vw, 70px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.landing-hero > p {
  max-width: 650px;
  margin: 0;
  color: #c2ccd5;
  font-size: 17px;
  line-height: 1.8;
}

.service-process { margin-top: 42px; }
.service-process__title { margin: 0 0 16px; color: #e6dcc2; font-size: 13px; font-weight: 700; }
.service-process__list { display: grid; grid-template-columns: repeat(5, minmax(70px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.service-process__list li { position: relative; padding-top: 14px; border-top: 1px solid rgba(216, 199, 156, 0.45); color: #b9c5d0; font-size: 11px; line-height: 1.45; }
.service-process__list b { display: block; margin-bottom: 5px; color: #fff; font-size: 12px; }

.landing-left__footer { color: #8fa1b2; font-size: 12px; }
.landing-left__footer a { color: #aebdcb; }

.landing-right {
  display: flex;
  align-items: center;
  padding: 48px clamp(28px, 5vw, 76px);
  background: var(--reg-ivory);
}

.entry-card {
  width: min(100%, 540px);
  margin: auto;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid #e0dbcf;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 22px 65px rgba(20, 34, 49, 0.12);
}

.entry-card h2 { margin: 5px 0 10px; color: var(--reg-ink); font-size: clamp(28px, 3vw, 36px); letter-spacing: -0.04em; }
.entry-card__lead { margin: 0; color: var(--reg-muted); }
.entry-card__form { display: grid; gap: 12px; margin-top: 28px; }

.entry-button {
  display: block;
  width: 100%;
  min-height: 76px;
  padding: 16px 18px !important;
  border: 1px solid var(--reg-line);
  border-radius: 14px !important;
  background: #fff;
  color: var(--reg-ink);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.entry-button:hover, .entry-button:focus { border-color: #9cacbd; outline: 0; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(20, 34, 49, 0.07); }
.entry-button strong { display: block; margin-bottom: 3px; font-size: 16px; }
.entry-button span { color: var(--reg-muted); font-size: 12px; font-weight: 400; }
.entry-button--primary { border-color: var(--reg-navy); background: var(--reg-navy); color: #fff; }
.entry-button--primary span { color: #c5d0d9; }
.entry-button--primary:hover, .entry-button--primary:focus { border-color: var(--reg-blue); background: var(--reg-blue); }

.entry-card__note { margin: 22px 0 0; color: #74808c; font-size: 12px; line-height: 1.65; }
.entry-card__retention { margin: 22px 0 0; padding: 13px 14px; border: 1px solid #ded7c6; border-radius: 11px; background: #fbf8f0; color: #665934; font-size: 12px; line-height: 1.65; }
.entry-card__retention strong { display: block; margin-bottom: 2px; color: #4e4328; font-size: 12px; }
.entry-card__status { margin: 0 0 22px; }

.landing-faq { padding: 76px 24px; background: #fff; }
.landing-faq__inner { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 70px; width: min(100%, 1100px); margin: 0 auto; }
.landing-faq h2 { margin: 0 0 12px; font-size: 30px; letter-spacing: -0.04em; }
.landing-faq__intro p { margin: 0; color: var(--reg-muted); }
.landing-faq details { padding: 18px 0; border-top: 1px solid var(--reg-line); }
.landing-faq details:last-child { border-bottom: 1px solid var(--reg-line); }
.landing-faq summary { color: var(--reg-ink); font-weight: 700; cursor: pointer; }
.landing-faq details p { margin: 12px 0 0; color: var(--reg-muted); font-size: 14px; }

@media (max-width: 980px) {
  .landing-shell { grid-template-columns: minmax(0, 1fr) minmax(390px, 0.9fr); }
  .landing-left { padding-left: 38px; padding-right: 38px; }
  .landing-right { padding-left: 28px; padding-right: 28px; }
  .service-process__list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 780px) {
  .site-header__inner { min-height: 66px; }
  .site-header__contact { display: none; }
  .app-main { width: min(100% - 28px, 920px); padding-top: 30px; }
  .wizard-card, .app-main > .container { padding: 28px 22px !important; border-radius: 18px; }
  .option-grid { grid-template-columns: 1fr; }
  .landing-shell { display: flex; flex-direction: column; }
  .landing-left { display: contents; }
  .landing-brand { order: 1; width: 100%; max-width: 100vw; padding: 24px 22px 0; background: var(--reg-navy); color: #fff; }
  .landing-brand .brand__logo { width: 72px; }
  .landing-hero { order: 2; width: 100%; min-width: 0; max-width: none; margin: 0; padding: 52px 22px 42px; overflow: hidden; background: var(--reg-navy); }
  .landing-hero h1 { max-width: 100%; font-size: clamp(38px, 11vw, 50px); }
  .landing-title-word { display: block; }
  .landing-hero > p { max-width: 100%; font-size: 15px; overflow-wrap: anywhere; }
  .landing-right { order: 3; width: 100%; min-width: 0; padding: 28px 18px; }
  .service-process { order: 4; width: 100%; max-width: 100vw; margin: 0; padding: 42px 22px; background: var(--reg-navy); }
  .service-process__list { grid-template-columns: 1fr 1fr; }
  .service-process__list li:last-child { grid-column: 1 / -1; }
  .landing-left__footer { order: 5; width: 100%; max-width: 100vw; padding: 0 22px 28px; background: var(--reg-navy); }
  .entry-card { min-width: 0; padding: 26px 20px; border-radius: 20px; }
  .entry-button { min-width: 0; }
  .landing-faq { padding: 58px 22px; }
  .landing-faq__inner { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 520px) {
  .wizard-actions { align-items: stretch; flex-direction: column-reverse; }
  .wizard-actions .btn { width: 100%; }
  .site-footer { flex-direction: column; gap: 4px; }
}
