:root {
  --ink: #10284a;
  --forest: #16543f;
  --forest-deep: #0d3c2e;
  --paper: #ffffff;
  --mist: #f6f7f5;
  --line: #d8ddd8;
  --muted: #526273;
  --soft-green: #eaf2ed;
  --radius: 12px;
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.site-header, .section-frame, .path-rail, .site-footer {
  width: min(1440px, calc(100% - 72px));
  margin-inline: auto;
}

.site-header {
  min-height: 84px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.wordmark { font-family: Georgia, "Nanum Myeongjo", serif; font-size: 27px; font-weight: 700; letter-spacing: -0.07em; }
.main-nav { display: flex; gap: 74px; font-size: 15px; font-weight: 700; }
.main-nav a { padding: 10px 0; }
.main-nav a:hover, .text-link:hover { color: var(--forest); }
.header-cta { justify-self: end; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border-radius: 8px; padding: 0 24px; border: 1px solid var(--forest); font-size: 16px; font-weight: 800; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--forest); color: #fff; }
.button-primary:hover { background: var(--forest-deep); }

.hero { display: grid; grid-template-columns: .83fr 1.17fr; gap: clamp(48px, 8vw, 140px); padding: 92px 18px 32px; align-items: center; }
.hero-copy h1 { margin: 0; font-family: Georgia, "Nanum Myeongjo", serif; font-size: clamp(43px, 5.1vw, 72px); line-height: 1.22; letter-spacing: -0.085em; }
.hero-copy p { max-width: 460px; margin: 32px 0 22px; color: #34465a; font-size: 17px; line-height: 1.9; letter-spacing: -0.025em; }
.text-link { font-weight: 800; color: var(--forest); }
.text-link span { margin-left: 8px; font-size: 20px; }

.how-it-works { border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 46px 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px 48px; background: #fff; }
.step-block { display: grid; grid-template-columns: 48px 1fr; gap: 18px; min-width: 0; }
.step-block + .step-block { border-left: 1px solid var(--line); padding-left: 44px; }
.step-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--forest); border-radius: 10px; color: var(--forest); font-size: 28px; font-weight: 800; }
.step-icon.compass { border-radius: 50%; font-size: 24px; }
.step-block strong { display: block; font-size: 20px; line-height: 1.4; letter-spacing: -0.055em; }
.step-block p { margin: 12px 0 0; color: var(--muted); line-height: 1.75; font-size: 15px; }
.how-it-works .button { grid-column: 1 / -1; width: min(100%, 390px); }

.path-rail { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 0; }
.path-item { min-height: 190px; padding: 32px 24px; border: 0; border-right: 1px solid var(--line); background: transparent; text-align: left; color: var(--ink); cursor: pointer; display: grid; grid-template-columns: 48px 1fr; grid-template-rows: 1fr auto; column-gap: 16px; transition: background .2s ease; }
.path-item:last-child { border-right: 0; }
.path-item:hover, .path-item:focus-visible { background: var(--soft-green); outline: none; }
.path-icon { color: var(--forest); font-family: Georgia, serif; font-size: 40px; line-height: 1; text-align: center; }
.path-item strong { display: block; margin-top: 4px; font-size: 19px; letter-spacing: -0.05em; }
.path-item small { display: block; color: var(--muted); margin-top: 12px; font-size: 14px; line-height: 1.65; }
.path-item i { grid-column: 2; justify-self: end; color: var(--forest); font-size: 28px; font-style: normal; }

.diagnostic { padding: 100px 18px; }
.section-intro { max-width: 760px; }
.section-intro h2, .evidence-flow h2, .privacy-note h2 { margin: 0; font-family: Georgia, "Nanum Myeongjo", serif; letter-spacing: -0.065em; }
.section-intro h2 { font-size: clamp(31px, 3.4vw, 46px); }
.section-intro p { margin: 18px 0 0; color: var(--muted); line-height: 1.8; font-size: 16px; }
.diagnostic-form { max-width: 900px; margin-top: 42px; border-top: 1px solid var(--ink); padding-top: 30px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend, label { font-size: 15px; font-weight: 800; }
legend { margin-bottom: 14px; }
.path-choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice-button { min-height: 96px; border: 1px solid var(--line); border-radius: 8px; padding: 18px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; transition: border .2s ease, background .2s ease; }
.choice-button:hover, .choice-button:focus-visible { border-color: var(--forest); outline: none; }
.choice-button.is-selected { border-color: var(--forest); background: var(--soft-green); box-shadow: inset 0 0 0 1px var(--forest); }
.choice-button strong { display: block; font-size: 17px; }
.choice-button span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.55; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
label { display: grid; gap: 9px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 13px 14px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 500; }
input:focus, select:focus, textarea:focus { outline: 3px solid #d6e9dd; border-color: var(--forest); }
textarea { resize: vertical; margin-top: 26px; line-height: 1.6; }
.form-footer { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.selection-summary { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.diagnostic-result { max-width: 900px; margin-top: 24px; border: 1px solid var(--forest); border-radius: var(--radius); padding: 28px; background: var(--soft-green); display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; }
.diagnostic-result h3 { margin: 4px 0 12px; font-size: 24px; letter-spacing: -0.05em; }
.diagnostic-result p { margin: 0; color: #2c4a3e; line-height: 1.7; }
.result-state { color: var(--forest) !important; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.result-list { border-left: 1px solid #b9d1c1; padding-left: 28px; }
.result-list strong { font-size: 15px; }
.result-list ul { margin: 12px 0 0; padding-left: 18px; color: #2c4a3e; line-height: 1.85; }

.evidence-band { display: grid; grid-template-columns: 1.35fr .65fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 70px; }
.evidence-flow { padding: 40px; }
.evidence-flow h2, .privacy-note h2 { font-size: 28px; }
.evidence-flow ol { margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; }
.evidence-flow li { padding: 0 22px; border-right: 1px solid var(--line); display: grid; grid-template-columns: 42px 1fr; column-gap: 12px; }
.evidence-flow li:first-child { padding-left: 0; }
.evidence-flow li:last-child { border-right: 0; }
.evidence-flow li span { grid-row: span 2; color: var(--forest); font-size: 32px; line-height: 1; }
.evidence-flow li strong { font-size: 16px; }
.evidence-flow li small { margin-top: 7px; color: var(--muted); line-height: 1.55; font-size: 13px; }
.privacy-note { border-left: 1px solid var(--line); padding: 40px; background: var(--mist); display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-content: center; }
.privacy-note > span { color: var(--forest); font-size: 42px; }
.privacy-note h2 { font-size: 23px; }
.privacy-note p { margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; }

.site-footer { min-height: 84px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 960px) {
  .site-header, .section-frame, .path-rail, .site-footer { width: min(100% - 40px, 720px); }
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 62px; gap: 44px; }
  .how-it-works { padding: 28px; }
  .path-rail { grid-template-columns: repeat(2, 1fr); }
  .path-item:nth-child(2) { border-right: 0; }
  .path-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .evidence-band { grid-template-columns: 1fr; }
  .privacy-note { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .site-header, .section-frame, .path-rail, .site-footer { width: min(100% - 32px, 560px); }
  .site-header { min-height: 68px; }
  .wordmark { font-size: 22px; }
  .header-cta { min-height: 40px; padding-inline: 16px; font-size: 14px; }
  .hero { padding: 48px 0 26px; }
  .hero-copy h1 { font-size: 43px; }
  .hero-copy p { font-size: 15px; margin-top: 24px; }
  .how-it-works { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .step-block + .step-block { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
  .how-it-works .button { width: 100%; }
  .path-rail { grid-template-columns: 1fr; }
  .path-item, .path-item:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); min-height: 130px; }
  .path-item:last-child { border-bottom: 0; }
  .diagnostic { padding: 70px 0; }
  .path-choices, .form-grid, .diagnostic-result { grid-template-columns: 1fr; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .form-footer .button { width: 100%; }
  .diagnostic-result { padding: 23px; }
  .result-list { border-left: 0; border-top: 1px solid #b9d1c1; padding: 20px 0 0; }
  .evidence-flow, .privacy-note { padding: 27px 24px; }
  .evidence-flow ol { grid-template-columns: 1fr; gap: 18px; }
  .evidence-flow li, .evidence-flow li:first-child { padding: 0 0 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .evidence-flow li:last-child { padding-bottom: 0; border-bottom: 0; }
  .site-footer { padding: 22px 0; align-items: flex-start; flex-direction: column; gap: 8px; }
}
