/* 색은 여기서만 정한다 */
:root {
  --ink: #22302c;
  --ink-soft: #4d5d58;
  --mist: #f0f4f2;
  --paper: #fbfcfb;
  --line: #cdd8d3;
  --line-strong: #7a8d85;
  --pine: #2c584b;
  --pine-deep: #1f4238;
  --on-pine: #ffffff;
  --hill-1: #d3dfd9;
  --hill-2: #b4c8bf;
  --hill-3: #8dab9f;
  --glow: #f3dcae;
  --path: #e8efe9;
  --error: #9c2f26;
  --error-bg: #fbefed;
  --veil: rgb(22 33 31 / .55);
  --todo-bg: #fff0b8;
  --todo-ink: #5c4600;
  --serif: 'Gowun Batang', 'Nanum Myeongjo', serif;
  --sans: 'Pretendard Variable', 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  --bar: 5rem;
  --wide: 66rem;
  --text: 38rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; scroll-padding-bottom: calc(var(--bar) + 2rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom));
  background: var(--paper); color: var(--ink);
  font: 400 1.125rem/1.8 var(--sans); word-break: keep-all; overflow-wrap: anywhere;
}
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.45; margin: 0; text-wrap: balance; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.1875rem; line-height: 1.5; margin: 0; font-weight: 600; }
p, ul, ol { margin: 0; }
a { color: var(--pine); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--pine); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 20; background: var(--paper); padding: .75rem 1rem; }
.todo { background: var(--todo-bg); color: var(--todo-ink); padding: 0 .25em; border-radius: 3px; }
.wrap { width: min(100% - 2.5rem, var(--wide)); margin-inline: auto; }

/* 위쪽 */
.top { background: var(--mist); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; }
.brand { font: 400 1.375rem/1 var(--serif); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.brand img { display: block; width: auto; height: 3.5rem; }
.foot .brand img { filter: brightness(0) invert(1); }
.top .top-call { display: none; }

/* 첫 화면 */
.hero { background: var(--mist); position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; padding: 2.5rem 0 13.5rem; }
.hero h1 { font-size: clamp(2rem, 9.2vw, 3.5rem); }
.hero p { margin-top: 1.5rem; max-width: 30rem; color: var(--ink-soft); }
.hero p b { color: var(--ink); font-weight: 600; }
.hero-actions { display: none; }
.scene { position: absolute; inset: auto 0 0; width: 100%; height: 15rem; display: block; }
.scene .glow-in { stop-color: var(--glow); } .scene .glow-out { stop-color: var(--glow); stop-opacity: 0; }
.scene .h1 { fill: var(--hill-1); } .scene .h2 { fill: var(--hill-2); } .scene .h3 { fill: var(--hill-3); }
.scene .way { fill: var(--path); }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3.375rem; padding: .5rem 1.5rem; border-radius: 10px; border: 1.5px solid var(--pine);
  background: var(--pine); color: var(--on-pine); font: 600 1.125rem/1.3 var(--sans);
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--pine-deep); }
.btn.quiet { background: var(--paper); color: var(--pine); }
.btn.quiet:hover { background: var(--mist); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn svg { width: 1.25em; height: 1.25em; flex: none; }

/* 본문 */
.block { padding: 4.5rem 0; }
.block.tint { background: var(--mist); }
.lead { margin-top: 1rem; color: var(--ink-soft); max-width: var(--text); }
.helps { list-style: none; padding: 0; margin-top: 2rem; border-top: 1px solid var(--line); }
.helps li { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.helps p { color: var(--ink-soft); margin-top: .25rem; }
.steps { list-style: none; padding: 0; margin-top: 2rem; }
.steps li { position: relative; padding: 0 0 2.25rem 2.25rem; }
.steps li::before { content: ''; position: absolute; left: .25rem; top: .5rem; width: .75rem; height: .75rem; border-radius: 50%; background: var(--pine); }
.steps li:not(:last-child)::after { content: ''; position: absolute; left: .5625rem; top: 1.5rem; bottom: -.25rem; width: 2px; background: var(--line); }
.steps li:last-child { padding-bottom: 0; }
.steps p { color: var(--ink-soft); margin-top: .25rem; }

/* 문의 */
.ask { display: grid; gap: 2rem; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem 1.25rem; }
.field { margin-bottom: 1.5rem; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: .375rem; }
.opt { font-weight: 400; color: var(--ink-soft); font-size: 1rem; }
.field input, .field textarea {
  width: 100%; min-height: 3.25rem; padding: .75rem .875rem; border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--paper); color: var(--ink); font: inherit; line-height: 1.5;
}
.field textarea { min-height: 7rem; resize: vertical; }
[aria-invalid='true'] { border-color: var(--error) !important; box-shadow: 0 0 0 1px var(--error); }
.err { color: var(--error); font-size: 1rem; margin-top: .375rem; }
.stage { border: 0; margin: 0 0 2rem; padding: 0; min-width: 0; }
.stage legend { padding: 0; font: 400 1.375rem/1.5 var(--serif); }
.picks { display: grid; gap: .5rem; margin-top: 1rem; }
.pick { display: flex; align-items: center; gap: .75rem; min-height: 3.25rem; padding: .5rem 1rem; border: 1px solid var(--line-strong); border-radius: 8px; line-height: 1.4; cursor: pointer; }
.pick input { width: 1.375rem; height: 1.375rem; flex: none; margin: 0; accent-color: var(--pine); }
.pick:has(input:checked) { border-color: var(--pine); box-shadow: inset 0 0 0 1px var(--pine); background: var(--mist); font-weight: 600; }
.pick:has(:focus-visible) { outline: 3px solid var(--pine); outline-offset: 2px; }
.pick input:focus-visible { outline: none; }
.need { margin-top: 1.25rem; }
.need-title { font: 400 1.375rem/1.5 var(--serif); }
.papers { list-style: none; counter-reset: paper; padding: 0; margin-top: .5rem; border-top: 2px solid var(--pine); }
.papers li { counter-increment: paper; display: grid; grid-template-columns: 2rem 1fr; padding: .875rem 0; border-bottom: 1px solid var(--line); }
.papers li::before { content: counter(paper); color: var(--pine); font-weight: 600; grid-row: span 2; }
.papers b { font-weight: 600; line-height: 1.5; }
.papers span { color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }
.tips { padding-left: 1.25rem; margin-top: .875rem; }
.tips li + li { margin-top: .375rem; }
.need-foot { margin-top: 1rem; padding-top: .875rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 1rem; line-height: 1.65; }
.need-foot p + p { margin-top: .5rem; }
.modal { width: min(100% - 2.5rem, 26rem); max-height: calc(100% - 2rem); overflow: auto; padding: 1.75rem 1.5rem 1.5rem; border: 0; border-radius: 16px; background: var(--paper); color: var(--ink); }
.modal::backdrop { background: var(--veil); }
.modal h2 { font-size: 1.625rem; }
.modal p { margin-top: 1rem; color: var(--ink-soft); }
.modal .btn { width: 100%; margin-top: 1.5rem; }
.modal .btn + .btn { margin-top: .625rem; }
.call { text-align: center; }
.modal .call-num { font-size: 2.25rem; font-weight: 600; line-height: 1.3; color: var(--pine); user-select: all; }
.modal .call-said { margin-top: .875rem; font-size: 1rem; }
.modal .call-said:empty { margin: 0; }
.consent-box { background: var(--mist); border-radius: 8px; padding: 1rem; font-size: 1rem; line-height: 1.7; }
.consent-box dl { margin: 0; } .consent-box dt { font-weight: 600; } .consent-box dd { margin: 0 0 .5rem; color: var(--ink-soft); }
.check { display: flex !important; gap: .75rem; align-items: center; min-height: 3rem; margin-top: .5rem; cursor: pointer; }
.check input { width: 1.5rem; min-height: 0; height: 1.5rem; flex: none; accent-color: var(--pine); margin: 0; }
.panel .btn { width: 100%; }
.notice { border-radius: 10px; padding: 1.125rem; margin-bottom: 1.25rem; background: var(--error-bg); border: 1px solid var(--error); }
.notice .btn { margin-top: .875rem; }
.done h3 { font: 400 1.5rem/1.5 var(--serif); } .done p { margin: .75rem 0 1.25rem; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* 하단 */
.foot { background: var(--pine-deep); color: var(--on-pine); padding: 2.5rem 0; font-size: 1rem; }
.foot a { color: inherit; display: inline-flex; align-items: center; min-height: 44px; }
.foot .brand { color: inherit; }
.foot dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; margin: .75rem 0; }
.foot dt { opacity: .85; } .foot dd { margin: 0; }
.bar {
  position: fixed; inset: auto 0 0; z-index: 10; display: grid; grid-template-columns: 1.7fr 1fr; gap: .625rem;
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line);
}
.bar .btn { padding-inline: .5rem; }

.result h1 { outline: none; }
.result section { margin-top: 2.5rem; }
.result .lead { color: var(--ink); }
.result h3 { margin-top: 1.75rem; }
.leave { width: 100%; border-collapse: collapse; margin-top: .75rem; border-top: 2px solid var(--pine); }
.leave th, .leave td { text-align: left; padding: .625rem 0; border-bottom: 1px solid var(--line); }
.leave th { font-weight: 600; } .leave td:last-child { font-weight: 600; }
.care-foot, .keep { color: var(--ink-soft); font-size: 1rem; line-height: 1.65; margin-top: 1.25rem; }
.keep { background: var(--mist); border-radius: 8px; padding: 1rem; margin-top: 2rem; color: var(--ink); }
.picked { font-weight: 600; color: var(--pine); }
.home { margin-top: 2.5rem; }
.home a { display: inline-flex; align-items: center; min-height: 44px; }
.bar.one { grid-template-columns: 1fr; }

/* 처리방침 */
.doc { max-width: 44rem; padding: 2.5rem 0 4.5rem; }
.doc h1 { font-size: 2rem; } .doc h2 { font-size: 1.3125rem; margin: 2.5rem 0 .75rem; }
.doc ul { padding-left: 1.25rem; } .doc p + p, .doc ul + p { margin-top: .75rem; }

@media (min-width: 56rem) {
  body { padding-bottom: 0; }
  html { scroll-padding: 6rem 0 2rem; }
  .bar { display: none; }
  .top { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); }
  .top .wrap { min-height: 4.75rem; }
  .top .top-call { display: inline-flex; min-height: 3rem; }
  .hero .wrap { padding: 5.5rem 0 18rem; }
  .hero-actions { display: flex; gap: .875rem; margin-top: 2.25rem; }
  .scene { height: 22rem; }
  h2 { font-size: 2.25rem; }
  .block { padding: 6.5rem 0; }
  .split { display: grid; grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
  .split .helps, .split .steps { margin-top: .375rem; }
  .ask { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
  .panel { padding: 2.25rem; }
}
