/* 답장 소개 페이지 — 외부 요청 없음. 글꼴은 fonts/ 의 부분 집합(OFL)만 쓴다. */

@font-face {
  font-family: "Dapjang Sans";
  src: url("fonts/dapjang-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Dapjang Sans";
  src: url("fonts/dapjang-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Dapjang Serif";
  src: url("fonts/dapjang-serif-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --surface: #ffffff;
  --sunk: #f0f0eb;
  --ink: #17202b;
  --ink-2: #3f4753;
  --muted: #5f6672;
  --line: #e1e0da;
  --line-strong: #c9c7bf;
  --accent: #1e3a5f;
  --accent-ink: #ffffff;
  --accent-soft: #eaeef3;
  --mark-bg: #fff0b3;
  --mark-line: #c99700;
  --mark-ink: #3d2c00;
  --done: #2c6a4c;
  --next: #8a9099;

  --sans: "Dapjang Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --serif: "Dapjang Serif", "AppleMyungjo", "Noto Serif KR", "Nanum Myeongjo", serif;
  --ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", "Noto Sans JP", sans-serif;
  --zh: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;

  --gutter: 20px;
  --radius: 8px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

/* 한국어는 어절 단위 줄바꿈, 일본어·중국어는 글자 단위 줄바꿈을 유지한다. */
:lang(ko) { word-break: keep-all; }
:lang(en) { word-break: normal; }
:lang(ja) { font-family: var(--ja); word-break: normal; line-break: strict; }
:lang(zh-Hans) { font-family: var(--zh); word-break: normal; line-break: strict; }

h1, h2, h3, p, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; }
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.serif {
  font-family: var(--serif);
  font-weight: 600;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  z-index: 10;
}
.skip:focus { top: 12px; }

[id] { scroll-margin-top: 24px; }

/* 상단 */
.top {
  border-bottom: 1px solid var(--line);
}
.top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
}
.brand__ko { font-size: 1.375rem; letter-spacing: -0.01em; line-height: 1; }
.brand__en { font-size: 0.875rem; color: var(--muted); letter-spacing: 0.02em; }
.top__cta {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  white-space: nowrap;
}

/* 첫 화면 */
.hero {
  padding: 56px 0 64px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.4;
}
.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.hero__title {
  margin-top: 24px;
  font-size: clamp(1.625rem, 0.9rem + 3.6vw, 3.75rem);
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.hero__title .line { display: block; }
.hero__title .line--accent { color: var(--accent); }
.hero__lead {
  margin-top: 20px;
  max-width: 34em;
  font-size: 1.0625rem;
  color: var(--ink-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #162c49; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink-2); }

/* 공통 구역 */
.sec {
  border-top: 1px solid var(--line);
  padding: 56px 0;
}
.sec__title {
  font-size: clamp(1.4375rem, 1.15rem + 1.1vw, 2rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.sec__grid > .sec__title { margin-bottom: 24px; }

/* 2. 줄이려는 일 */
.pain li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 1.0625rem;
}
.pain li:last-child { border-bottom: 1px solid var(--line); }

/* 3. 진행 */
.steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 1.0625rem;
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps__n {
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--accent);
}
.steps strong {
  font-weight: 600;
  color: var(--accent);
}

/* 4. 예시 */
.sec--examples { background: var(--sunk); }
.ex-intro__notes { margin-top: 16px; display: grid; gap: 12px; }
.notice {
  padding: 14px 16px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--surface);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.6;
}
.legend {
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.legend .chk { margin-right: 4px; }

mark.chk {
  background: var(--mark-bg);
  color: var(--mark-ink);
  border-bottom: 2px solid var(--mark-line);
  padding: 0 0.2em;
  border-radius: 2px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9375em;
  word-break: keep-all;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.ex-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 24px;
}
.ex-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}
.ex-nav a:hover { border-color: var(--ink-2); }
.ex-nav__n {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
}

.ex {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.ex__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.ex__head h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }
.ex__tag {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 1px 8px;
  white-space: nowrap;
}
.ex__body { padding: 16px; display: grid; gap: 20px; }

.blk__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.blk__lang {
  font-weight: 400;
  padding-left: 8px;
  border-left: 1px solid var(--line-strong);
}
.blk--src blockquote {
  padding: 14px 16px;
  background: var(--sunk);
  border-left: 3px solid var(--line-strong);
  border-radius: 0 6px 6px 0;
  color: var(--ink-2);
}
.draft { color: var(--ink); }
.trans { color: var(--ink-2); }

.ex__pair { display: grid; gap: 20px; }
.ex__pair--notes {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.facts li, .memo li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9375rem;
}
.facts li + li, .memo li + li { margin-top: 6px; }
.facts li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.48em;
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--mark-line);
  border-radius: 2px;
}
.facts--none li { color: var(--muted); }
.facts--none li::before { border-color: var(--line-strong); }
.memo li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.82em;
  width: 10px;
  height: 1.5px;
  background: var(--ink-2);
}

/* 5. 지금 단계 */
.stage { display: grid; gap: 12px; }
.stage__col {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.stage__h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.stage__mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: none;
}
.stage__col--done .stage__mark { background: var(--done); }
.stage__col--doing .stage__mark { border: 2px solid var(--accent); background: linear-gradient(90deg, var(--accent) 50%, transparent 50%); }
.stage__col--next .stage__mark { border: 2px solid var(--next); }
.stage__col li {
  position: relative;
  padding-left: 14px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.stage__col li + li { margin-top: 4px; }
.stage__col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}

/* 6. 파일럿 */
.sec--pilot { background: var(--accent-soft); border-top-color: #d6dde7; }
.pilot > div {
  padding: 14px 0;
  border-top: 1px solid #cdd5e0;
}
.pilot > div:last-child { border-bottom: 1px solid #cdd5e0; }
.pilot dt {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 2px;
}
.pilot dd { font-size: 1.0625rem; }

/* 7. 문의 */
.contact {
  font-size: clamp(1.375rem, 1.1rem + 1.4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.contact a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  text-decoration-color: var(--line-strong);
}
.contact a:hover { text-decoration-color: var(--accent); }

/* 8. 하단 */
.foot {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  font-size: 0.875rem;
  color: var(--muted);
}
/* 사업자 정보는 항목 안에서 줄을 바꾸지 않는다(등록번호가 하이픈에서 끊기지 않게). */
.foot__biz .nw { white-space: nowrap; }
.foot__en {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  max-width: 46em;
  line-height: 1.65;
}
.foot__label {
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 4px;
}

/* 넓은 화면 */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .hero { padding: 96px 0 104px; }
  .hero__lead { font-size: 1.1875rem; margin-top: 28px; }
  .actions { margin-top: 36px; gap: 12px; }
  .sec { padding: 88px 0; }
  .ex-nav { grid-template-columns: repeat(4, 1fr); }
  .ex__head { padding: 16px 24px; }
  .ex__body { padding: 24px; gap: 24px; }
  .ex__pair { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ex__pair--single { grid-template-columns: 1fr; }
  .ex__pair--single .blk { max-width: 40em; }
  .stage { grid-template-columns: repeat(3, 1fr); }
  .pilot > div {
    display: grid;
    grid-template-columns: 7.5em 1fr;
    gap: 16px;
    padding: 18px 0;
  }
  .pilot dt { margin: 0; padding-top: 2px; }
}

@media (min-width: 1000px) {
  .sec__grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 48px;
    align-items: start;
  }
  .sec__grid > .sec__title { margin-bottom: 0; }
  .ex-intro {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 48px;
    align-items: start;
  }
  .ex-intro__notes { margin-top: 0; }
  .pain li, .steps li { font-size: 1.125rem; }
}

@media print {
  .top__cta, .actions, .ex-nav, .skip { display: none; }
  .sec--examples, .sec--pilot { background: none; }
}
