:root {
  --blue: #1d4ed8;
  --blue-2: #2563eb;
  --blue-soft: #eff6ff;
  --charcoal: #111827;
  --charcoal-2: #374151;
  --ink: #172033;
  --muted: #667085;
  --line: #d9e1ec;
  --paper: #ffffff;
  --bg: #f5f7fb;
  --danger: #dc2626;
  --shadow: 0 22px 70px rgba(17, 24, 39, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all;
}

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

button,
input {
  font: inherit;
}

.wrap {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(217, 225, 236, 0.88);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--charcoal));
  font-size: 15px;
  font-weight: 900;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.nav-cta.ghost {
  border: 1px solid rgba(29, 78, 216, 0.22);
  background: #fff;
  color: var(--blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 850;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 30px rgba(29, 78, 216, 0.22);
}

.btn-primary:hover {
  background: #1e40af;
}

.btn-ghost {
  border-color: rgba(23, 32, 51, 0.14);
  background: #fff;
  color: var(--ink);
}

.full {
  width: 100%;
}

.split-hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 46px;
  background:
    linear-gradient(90deg, rgba(239, 246, 255, 0.96) 0 50%, rgba(17, 24, 39, 0.08) 50% 100%),
    #fff;
}

.split-hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -140px -10%;
  height: 260px;
  background: linear-gradient(90deg, rgba(29, 78, 216, 0.12), rgba(17, 24, 39, 0.14));
  transform: skewY(-3deg);
}

.hero-wrap {
  position: relative;
  display: grid;
  gap: 28px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: #0f172a;
  font-size: clamp(34px, 7vw, 68px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-sub {
  max-width: 680px;
  margin-bottom: 26px;
  color: var(--charcoal-2);
  font-size: 18px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.duo-stage {
  display: grid;
  gap: 14px;
}

.duo-panel {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.duo-panel h2 {
  margin-bottom: 12px;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: 0;
}

.duo-panel p {
  color: inherit;
  line-height: 1.65;
  opacity: 0.84;
}

.duo-panel ul {
  display: grid;
  gap: 11px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.duo-panel li {
  position: relative;
  padding-left: 20px;
  line-height: 1.55;
}

.duo-panel li::before {
  content: "";
  position: absolute;
  top: 0.67em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.duo-panel.recover {
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: linear-gradient(145deg, #ffffff, #dbeafe);
  color: #12317a;
}

.duo-panel.bankruptcy {
  background: linear-gradient(145deg, #111827, #293241);
  color: #f8fafc;
}

.panel-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 13px;
  font-weight: 900;
}

.recover .panel-kicker {
  background: rgba(29, 78, 216, 0.1);
  color: var(--blue);
}

.compare-section,
.choice-section,
.case-section,
.faq-section {
  padding: 70px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 26px;
}

.section-head h2,
.choice-title h2,
.final-in h2 {
  margin-bottom: 0;
  color: #101828;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.16;
  letter-spacing: 0;
}

.compare-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}

.compare-row:first-child {
  border-top: 0;
}

.compare-row > div {
  padding: 18px 20px;
  line-height: 1.6;
}

.compare-row > div:first-child {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 900;
}

.compare-row.head {
  display: none;
}

.compare-row:not(.head) > div:nth-child(2)::before {
  content: "개인회생";
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.compare-row:not(.head) > div:nth-child(3)::before {
  content: "개인파산";
  display: block;
  margin-bottom: 6px;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 900;
}

.compare-row > div:nth-child(2) {
  background: #f7fbff;
}

.compare-row > div:nth-child(3) {
  background: #fbfbfc;
}

.compare-cta {
  display: grid;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(29, 78, 216, 0.16);
  border-radius: 20px;
  background: #fff;
}

.compare-cta p {
  margin-bottom: 0;
  color: var(--charcoal-2);
  line-height: 1.6;
}

.choice-section {
  background: #fff;
}

.choice-wrap {
  display: grid;
  gap: 26px;
}

.choice-title {
  max-width: 420px;
}

.choice-lanes {
  display: grid;
  gap: 12px;
}

.lane {
  position: relative;
  padding: 24px;
  border-left: 6px solid var(--line);
  background: #f8fafc;
}

.lane span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--charcoal);
  font-weight: 900;
}

.lane h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.lane p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.68;
}

.recover-lane {
  border-color: var(--blue);
}

.recover-lane span {
  background: var(--blue);
}

.bankruptcy-lane {
  border-color: var(--charcoal);
}

.inline-banner {
  padding: 0;
  background: linear-gradient(90deg, var(--blue), var(--charcoal));
  color: #fff;
}

.inline-in {
  display: grid;
  gap: 12px;
  align-items: center;
  padding-top: 26px;
  padding-bottom: 26px;
}

.inline-in strong {
  font-size: 22px;
  line-height: 1.35;
}

.inline-in p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.inline-in .btn-primary {
  background: #fff;
  color: var(--blue);
  box-shadow: none;
}

.case-rail {
  display: grid;
  gap: 12px;
}

.case-rail article {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.case-rail article:last-child {
  border-bottom: 1px solid var(--line);
}

.case-rail b {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 19px;
}

.case-rail p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.faq-section {
  background: #fff;
}

.faq-wrap {
  display: grid;
  gap: 22px;
}

.faq-list {
  border-top: 2px solid #101828;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  border: 0;
  background: transparent;
  color: #101828;
  cursor: pointer;
  text-align: left;
  font-size: 18px;
  font-weight: 850;
}

.faq-q span {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 24px;
}

.faq-a {
  display: none;
  padding: 0 0 22px;
  color: var(--muted);
  line-height: 1.72;
}

.faq-item.open .faq-a {
  display: block;
}

.final-band {
  padding: 58px 0;
  background: var(--charcoal);
  color: #fff;
}

.final-in {
  display: grid;
  gap: 20px;
  align-items: center;
}

.final-in h2 {
  color: #fff;
}

.final-in p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.footer {
  padding: 28px 0 96px;
  background: #0b1220;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.7;
}

.footer p {
  margin: 0 0 8px;
}

.float-cta {
  display: none;
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 40;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 18px 44px rgba(29, 78, 216, 0.34);
  font-weight: 900;
}

.mbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(217, 225, 236, 0.9);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -12px 34px rgba(17, 24, 39, 0.12);
}

.mbar span {
  color: #101828;
  font-size: 14px;
  font-weight: 850;
}

.mbar .btn {
  min-height: 42px;
  padding: 0 18px;
}

/* Diagnosis shared styles */
.diag-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, rgba(29, 78, 216, 0.14), transparent 28%),
    linear-gradient(135deg, #eff6ff 0%, #f8fafc 48%, #e5e7eb 100%);
}

.diag-wrap {
  display: flex;
  width: min(760px, calc(100% - 32px));
  min-height: calc(100vh - 68px);
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 34px 0;
}

.diag-card {
  width: 100%;
  padding: 26px;
  border: 1px solid rgba(217, 225, 236, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.hidden {
  display: none !important;
}

.steps {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.dot.on {
  background: var(--blue);
  color: #fff;
}

.diag-loading {
  padding: 40px 0;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.q-title {
  margin-bottom: 12px;
  color: #101828;
  font-size: clamp(28px, 6vw, 42px);
  line-height: 1.18;
  letter-spacing: 0;
}

.q-title.accent {
  color: var(--blue);
}

.q-sub {
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.opts {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.opt {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 17px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: #172033;
  cursor: pointer;
  text-align: left;
  font-weight: 800;
}

.opt i {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 2px solid #b8c2d2;
  border-radius: 999px;
}

.opt.sel {
  border-color: rgba(29, 78, 216, 0.5);
  background: var(--blue-soft);
  color: #12317a;
}

.opt.sel i {
  border-color: var(--blue);
}

.opt.sel i::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: var(--blue);
}

.field {
  width: 100%;
  min-height: 52px;
  margin-bottom: 10px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  background: #fff;
  color: #101828;
}

.field:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1);
}

.agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.agree input {
  margin-top: 3px;
  accent-color: var(--blue);
}

.err {
  min-height: 22px;
  margin: 6px 0 12px;
  color: var(--danger);
  font-size: 14px;
  font-weight: 800;
}

.result-box {
  margin: 18px 0;
  padding: 22px;
  border: 1px solid rgba(29, 78, 216, 0.18);
  border-radius: 18px;
  background: var(--blue-soft);
  color: #172033;
  line-height: 1.78;
}

.result-box .amount {
  display: block;
  margin: 8px 0;
  color: var(--blue);
  font-size: 34px;
  font-weight: 950;
  line-height: 1.1;
}

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

.diag-nav .btn {
  min-width: 120px;
}

.diag-nav #btn_prev {
  color: var(--charcoal-2);
}

.done-box {
  padding: 18px 0 4px;
  text-align: center;
}

.done-box .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.done-box h2 {
  margin-bottom: 10px;
  color: #101828;
}

.done-box p {
  color: var(--muted);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .split-hero {
    padding: 86px 0 72px;
  }

  .hero-wrap {
    grid-template-columns: 0.88fr 1.12fr;
    align-items: center;
  }

  .duo-stage {
    grid-template-columns: 1fr 1fr;
  }

  .duo-panel.bankruptcy {
    transform: translateY(34px);
  }

  .compare-row,
  .compare-row.head {
    display: grid;
    grid-template-columns: 0.72fr 1fr 1fr;
  }

  .compare-row.head > div {
    background: #101828;
    color: #fff;
    font-weight: 900;
  }

  .compare-row.head > .blue {
    background: var(--blue);
  }

  .compare-row.head > .dark {
    background: var(--charcoal);
  }

  .compare-row:not(.head) > div:nth-child(2)::before,
  .compare-row:not(.head) > div:nth-child(3)::before {
    display: none;
  }

  .compare-cta {
    grid-template-columns: 1fr auto;
  }

  .choice-wrap {
    grid-template-columns: 0.9fr 1.35fr;
    align-items: start;
  }

  .choice-lanes {
    gap: 0;
  }

  .lane {
    padding: 30px;
  }

  .lane + .lane {
    margin-top: -1px;
  }

  .inline-in {
    grid-template-columns: 0.9fr 1fr auto;
  }

  .case-rail article {
    display: grid;
    grid-template-columns: 0.45fr 1fr;
    gap: 30px;
  }

  .faq-wrap {
    grid-template-columns: 0.55fr 1fr;
    align-items: start;
  }

  .final-in {
    grid-template-columns: 1fr auto;
  }

  .footer {
    padding-bottom: 34px;
  }

  .float-cta {
    display: inline-flex;
  }

  .mbar {
    display: none;
  }

  .diag-card {
    padding: 38px;
  }
}

@media (max-width: 420px) {
  .wrap {
    width: min(100% - 28px, 1120px);
  }

  .brand span:last-child {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-cta {
    min-height: 38px;
    padding: 0 12px;
  }

  .duo-panel {
    min-height: 0;
    padding: 24px;
    border-radius: 22px;
  }

  .duo-panel h2 {
    font-size: 25px;
  }

  .diag-card {
    padding: 22px;
    border-radius: 22px;
  }

  .diag-nav .btn {
    min-width: 0;
    flex: 1;
  }
}
