/* 견적 전에 — 종이 흰색, 남색 잉크, 사다리차 노랑, 이사 바구니 파랑. 모서리는 전부 직각(박스·라벨). */
:root {
  --paper: #fff;
  --ink: #1b2a41;
  --ink-soft: #55627a;
  --tint: #eef2f7;
  --line: #c5cedb;
  --yellow: #ffc61a;
  --blue: #1d5fd1;
  --red: #c8102e;
  --kraft: #c49a6c;
  --display: "Do Hyeon", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", Pretendard, "Malgun Gothic", "Noto Sans KR", sans-serif;
  --gutter: max(20px, calc(50% - 21rem + 20px)); /* 본문 폭 42rem을 가운데에 */
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.75 var(--body);
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, .step h3, .logo, .step-label, .guides strong {
  font-family: var(--display);
  font-weight: 400; /* 도현체는 굵기가 하나뿐이라 가짜 굵게를 막는다 */
  line-height: 1.25;
}
h1 { font-size: clamp(2.1rem, 7.5vw, 3.2rem); margin: 2.5rem 0 1rem; }
h2 { font-size: 1.65rem; margin: 3rem 0 .75rem; }
h3 { font-size: 1.1rem; margin: 1.75rem 0 .5rem; }
p, ul, ol, dl { margin: 0 0 1rem; }
a { color: var(--blue); text-underline-offset: 3px; }
a[href^="tel:"] { white-space: nowrap; } /* 전화번호가 줄 끝에서 잘리지 않게 */
a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.lead { font-size: 1.15rem; }
.source { font-size: .85rem; color: var(--ink-soft); }

/* 광고 고지: 공정위 지침상 글 첫 부분에, 본문과 구별되게 */
.disclosure {
  margin: 0;
  padding: .55rem var(--gutter);
  background: var(--tint);
  border-bottom: 1px solid var(--line);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.5;
}

.site-header, main, .site-footer { padding-inline: var(--gutter); }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .5rem;
  border-bottom: 3px solid var(--ink);
}
.logo { font-size: 1.6rem; color: var(--ink); text-decoration: none; }
.site-header nav { display: flex; gap: 1.1rem; }
.site-header nav a { padding-block: .6rem; color: var(--ink); font-weight: 600; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.site-header nav a[aria-current="page"] { background: linear-gradient(transparent 58%, var(--yellow) 58% 88%, transparent 88%); }

/* 날짜 입력 */
.date-field { display: grid; gap: .4rem; max-width: 20rem; margin: 1.5rem 0 .75rem; }
.date-field label { font-weight: 700; }
.date-field input {
  padding: .7rem .8rem;
  border: 3px solid var(--ink);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.15rem;
}
.status { min-height: 1.75em; font-weight: 600; }
.status a { white-space: nowrap; }

/* 사다리차: 왼쪽에 사다리를 그리고, 날짜를 넣으면 짐 박스가 지금 단계까지 내려온다 */
.ladder { position: relative; margin: 2rem 0 0; padding-left: 3.5rem; }
.ladder::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 .25rem;
  width: 2rem;
  border-inline: 4px solid var(--ink);
  background: repeating-linear-gradient(var(--paper) 0 1.25rem, var(--ink) 1.25rem 1.5rem);
}
.ladder ol { margin: 0; padding: 0; list-style: none; }
.step { padding-bottom: 2.5rem; scroll-margin-top: 1rem; }
.step-label { display: inline-block; padding: .1rem .7rem; background: var(--yellow); font-size: 1.35rem; }
.step.is-now .step-label { background: var(--ink); color: var(--yellow); }
.step :is(h2, h3) { margin: .5rem 0 .75rem; font-size: 1.5rem; }
.rider {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2rem;
  border: 3px solid var(--ink);
  background: var(--kraft) linear-gradient(90deg, transparent 40%, #ead9b6 40% 60%, transparent 60%); /* 박스 테이프 */
  transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}

/* 체크리스트: 눌러서 지울 수 있는 진짜 체크박스 */
.check { padding: 0; list-style: none; }
.check li { margin-bottom: .55rem; }
.check label { display: grid; grid-template-columns: 1.25rem 1fr; gap: .6rem; cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; margin: .32rem 0 0; accent-color: var(--blue); }
.check input:checked + span { color: var(--ink-soft); text-decoration: line-through; }

.warn { padding: 0 0 0 1rem; border-left: 6px solid var(--red); list-style: none; }
.warn li { margin-bottom: .6rem; }

/* 견적 신청 버튼 (제휴 링크) */
.cta { margin: 1.5rem 0 2rem; }
.btn {
  display: block;
  padding: 1rem 1.25rem;
  border: 3px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.btn:hover { background: var(--ink); color: var(--yellow); }
.cta small { display: block; margin-top: .5rem; color: var(--ink-soft); font-size: .85rem; line-height: 1.6; }

.table-scroll { margin-bottom: 1rem; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.6; }
caption { margin-bottom: .5rem; font-weight: 700; text-align: left; }
th, td { padding: .6rem .7rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--tint); }

details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { padding: .9rem 0; font-weight: 700; cursor: pointer; }

.guides { padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.guides a { display: block; padding: 1rem 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.guides strong { display: block; font-size: 1.35rem; }
.guides a:hover strong { text-decoration: underline; }

.site-footer {
  margin-top: 4rem;
  padding-block: 1.5rem 3rem;
  border-top: 3px solid var(--ink);
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.7;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rider { transition: none; }
}
