/* ============================================
   내용증명 작성 마법사 — 공통 스타일
   디자인: 법무법인 클래식 (아이보리 × 네이비 × 브론즈, 명조 헤드라인)
   ============================================ */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;500;600;700;900&display=swap");

:root {
  --ink: #102A43;
  --ink-deep: #0C2236;
  --ink-soft: #52606D;
  --ink-mute: #8A95A1;
  --paper: #FAF6EF;
  --paper-deep: #F3ECE0;
  --paper-row: #FBF8F2;
  --white: #ffffff;
  --line: rgba(16, 42, 67, 0.08);
  --line-strong: rgba(16, 42, 67, 0.12);
  --accent: #A86F3D;
  --accent-deep: #8A5A2F;
  --gold: #C8A45C;
  --navy-text: #A9B7CF;
  --navy-text-dim: #7E8DA6;
  --red: #C0392B;
  --green: #1d7a4f;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(16, 42, 67, 0.08);
  --font-ui: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-doc: "Noto Serif KR", "Nanum Myeongjo", serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- 상단 신뢰 띠 ---------- */
.trust-bar {
  background: var(--ink);
  color: #D6DEE8;
  font-size: 13px;
  text-align: center;
  padding: 9px 20px;
  letter-spacing: 0.01em;
}

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  font-family: var(--font-doc);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.brand .seal { display: none; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

.header-nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 30px rgba(16, 42, 67, 0.22);
}

.btn-primary:hover { background: var(--ink-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}

.btn-ghost:hover { border-color: var(--ink-mute); background: var(--white); }

.btn-lg { padding: 17px 36px; font-size: 16px; }
.btn-sm { padding: 10px 22px; font-size: 14px; }

/* ---------- 히어로 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 0;
  text-align: center;
}

.hero .container { position: relative; }

.hero-badge {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 26px;
}

.hero h1 {
  font-family: var(--font-doc);
  font-size: clamp(34px, 5.6vw, 60px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.28;
  max-width: 740px;
  margin: 0 auto 30px;
}

.hero h1 .underline { position: relative; }
.hero h1 .underline::after { display: none; }

.hero p.lead {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 42px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-note {
  font-size: 13.5px;
  color: var(--ink-mute);
}

/* 히어로 문서 목업 */
.doc-mockup {
  max-width: 580px;
  margin: 64px auto 0;
  position: relative;
}

.doc-mockup::before {
  content: "";
  position: absolute;
  inset: -40px -40px 0;
  background: radial-gradient(60% 50% at 50% 30%, rgba(168, 111, 61, 0.10), transparent 70%);
  pointer-events: none;
}

.doc-mockup .sheet {
  position: relative;
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px rgba(16, 42, 67, 0.16);
  border-radius: 8px 8px 0 0;
  padding: 48px 52px 64px;
  text-align: left;
}

.doc-mockup .m-title {
  text-align: center;
  font-family: var(--font-doc);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 12px;
  text-indent: 12px;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 18px;
  margin-bottom: 28px;
}

.doc-mockup .m-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 13px;
}

.doc-mockup .m-row span {
  font-size: 12.5px;
  color: #9AA3AE;
  width: 52px;
  flex-shrink: 0;
}

.doc-mockup .m-row i {
  height: 10px;
  background: #ECEEF1;
  border-radius: 2px;
  flex: 1;
}

.doc-mockup .m-subject {
  text-align: center;
  font-family: var(--font-doc);
  font-weight: 600;
  font-size: 17px;
  color: #1F3A5F;
  letter-spacing: 3px;
  margin: 28px 0 26px;
}

.doc-mockup .m-line {
  height: 9px;
  background: #F1F2F5;
  border-radius: 2px;
  margin-bottom: 11px;
}

.doc-mockup .m-stamp {
  position: absolute;
  bottom: 38px;
  right: 46px;
  width: 60px;
  height: 60px;
  border: 2px solid var(--red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-family: var(--font-doc);
  font-weight: 700;
  font-size: 22px;
  transform: rotate(-7deg);
  opacity: 0.85;
}

@media (max-width: 640px) { .doc-mockup .sheet { padding: 32px 24px 56px; } }

/* ---------- 섹션 공통 ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--paper-deep); border: none; }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 60px; }

.section-head .eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-head h2 {
  font-family: var(--font-doc);
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 16px;
}

.section-head p { color: var(--ink-soft); font-size: 17px; line-height: 1.7; max-width: 620px; margin: 0 auto; }

/* ---------- 카드 그리드 ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--paper-deep);
  margin-bottom: 16px;
}

.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; }
.card p { font-size: 14.5px; line-height: 1.75; color: var(--ink-soft); }

/* 단계 카드 */
.step-card { position: relative; text-align: left; }

.step-card .step-no {
  display: block;
  font-family: var(--font-doc);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 22px;
}

/* 사실 카드 (내용증명이란) */
.fact-card {
  background: transparent;
  border: none;
  border-top: 2px solid var(--ink);
  border-radius: 0;
  padding: 28px 6px 0;
}

.fact-card h3 { font-size: 18px; margin-bottom: 14px; }
.fact-card p { line-height: 1.8; }

/* 사유 카드 (랜딩) */
.case-card {
  display: block;
  padding: 32px 30px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(16, 42, 67, 0.12);
}

.case-card .chip {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
}

.case-card h3 { font-size: 19px; margin-bottom: 12px; }
.case-card p { margin-bottom: 22px; font-size: 14px; line-height: 1.7; }
.case-card .go { font-size: 14px; font-weight: 600; color: var(--ink); }

/* ---------- 비용 테이블 ---------- */
.cost-table {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  font-size: 14.5px;
}

.cost-table th, .cost-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.cost-table th {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
}

.cost-table tbody tr:nth-child(even) { background: var(--paper-row); }
.cost-table tr:last-child { background: var(--paper-deep) !important; }
.cost-table tr:last-child td { border-bottom: none; padding: 18px 24px; }
.cost-table tr:last-child td.num { color: var(--accent); }
.cost-table td.num { font-variant-numeric: tabular-nums; font-weight: 600; }
.cost-table .note { color: var(--ink-soft); font-size: 13.5px; }

/* ---------- 발송 가이드 ---------- */
.guide-list {
  counter-reset: guide;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 860px) { .guide-list { grid-template-columns: 1fr; } }

.guide-item {
  display: flex;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
}

.guide-item::before {
  counter-increment: guide;
  content: "0" counter(guide);
  flex-shrink: 0;
  font-family: var(--font-doc);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.3;
}

.guide-item strong { display: block; margin-bottom: 10px; font-size: 17px; letter-spacing: -0.01em; }
.guide-item span { color: var(--ink-soft); font-size: 14.5px; line-height: 1.8; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 8px 32px;
}

.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: none; }

.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 0;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after { transform: rotate(45deg); }

.faq-list .faq-body {
  padding: 0 0 28px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.85;
  max-width: 720px;
}

/* ---------- 네이비 밴드 (신뢰/CTA) ---------- */
.trust-banner {
  background: var(--ink);
  color: #fff;
  border-radius: 0;
  padding: 96px 32px;
  margin: 0 -32px;
  display: block;
  text-align: center;
}

.trust-banner .eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 24px;
}

.trust-banner h2 {
  font-family: var(--font-doc);
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin-bottom: 24px;
}

.trust-banner p {
  color: var(--navy-text);
  font-size: 17px;
  line-height: 1.85;
  max-width: 700px;
  margin: 0 auto 40px;
}

.trust-banner .btn-primary {
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

.trust-banner .btn-primary:hover { background: var(--paper-deep); }

/* 섹션 자체가 네이비인 경우 */
.section.navy { background: var(--ink); padding: 96px 0; }
.section.navy .section-head h2, .section.navy h2 { color: #fff; }
.section.navy .section-head p, .section.navy p { color: var(--navy-text); }
.section.navy .eyebrow { color: var(--gold); }
.section.navy .btn-primary { background: #fff; color: var(--ink); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28); }
.section.navy .btn-primary:hover { background: var(--paper-deep); }

/* ---------- 디스클레이머 ---------- */
.disclaimer {
  background: #FBF4E4;
  border: 1px solid #ECD9B0;
  border-radius: 12px;
  padding: 18px 22px;
  font-size: 13.5px;
  color: #7A5C1E;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.disclaimer .d-label {
  flex-shrink: 0;
  font-family: var(--font-doc);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-deep);
  border: 1px solid #ECD9B0;
  border-radius: 6px;
  padding: 2px 8px;
  margin-top: 1px;
}

/* ---------- 푸터 ---------- */
.site-footer {
  background: var(--ink-deep);
  border-top: none;
  padding: 56px 0 48px;
  font-size: 13.5px;
  color: var(--navy-text-dim);
}

.site-footer .container { display: flex; flex-direction: column; gap: 8px; }

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links a { color: var(--navy-text); font-weight: 500; font-size: 14px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

.site-footer .disclaimer {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--navy-text-dim);
  font-size: 12.5px;
  line-height: 1.8;
}

.site-footer .disclaimer b { color: #9FB0C9; }
.site-footer p { font-size: 12.5px; color: #54637D; }

/* ---------- 약관/법적 페이지 ---------- */
.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.legal-wrap h1 {
  font-family: var(--font-doc);
  font-size: clamp(26px, 3.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal-date { color: var(--ink-mute); font-size: 14px; margin-bottom: 36px; }

.legal-wrap h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 36px 0 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.legal-wrap h2:first-of-type { border-top: none; padding-top: 0; }

.legal-wrap p, .legal-wrap li { color: var(--ink-soft); margin-bottom: 10px; }

.legal-wrap ul, .legal-wrap ol { padding-left: 22px; margin-bottom: 14px; }

.legal-wrap a { color: var(--accent-deep); text-decoration: underline; }

.legal-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 16px 0;
}

/* ============================================
   에러 페이지 (404.html)
   ============================================ */
.error-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 110px 24px 130px;
  text-align: center;
}

.error-code {
  font-family: var(--font-doc);
  font-size: clamp(72px, 12vw, 110px);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}

.error-wrap h1 {
  font-family: var(--font-doc);
  font-size: clamp(24px, 3.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.error-desc {
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 36px;
}

.error-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.error-help { font-size: 14px; color: var(--ink-mute); }
.error-help a { color: var(--accent-deep); text-decoration: underline; }

/* ============================================
   마법사 (write.html)
   ============================================ */
.wizard-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 88px;
}

/* 진행 표시 */
.progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}

.progress .p-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-mute);
}

.progress .p-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.2s ease;
}

.progress .p-step.active .p-dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.progress .p-step.done .p-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.progress .p-step.active { color: var(--ink); }

.progress .p-bar {
  width: 42px;
  height: 1.5px;
  background: var(--line-strong);
  margin: 0 8px;
}

.progress .p-label { display: none; }
.progress .p-step.active .p-label { display: inline; }

@media (min-width: 640px) {
  .progress .p-label { display: inline; }
}

/* 패널 */
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 40px;
}

@media (max-width: 640px) { .panel { padding: 26px 20px; } }

.panel h2 {
  font-family: var(--font-doc);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.panel .panel-desc { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 28px; }

/* 사유 선택 */
.case-select { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 560px) { .case-select { grid-template-columns: 1fr; } }

.case-option {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  padding: 18px 16px;
  background: var(--white);
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  transition: all 0.15s ease;
}

.case-option .cat {
  font-family: var(--font-doc);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  flex-shrink: 0;
}

.case-option small { display: block; font-weight: 500; color: var(--ink-mute); font-size: 12.5px; margin-top: 2px; }

.case-option:hover { border-color: var(--ink-mute); }
.case-option.selected { border-color: var(--ink); background: var(--paper-row); }
.case-option.selected .cat { background: var(--ink); color: #fff; border-color: var(--ink); }

/* 폼 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }

.field label { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.field label .req { color: var(--red); margin-left: 2px; }
.field label .opt { color: var(--ink-mute); font-weight: 500; font-size: 12px; margin-left: 4px; }

.field input, .field textarea, .field select {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper-row);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.field textarea { resize: vertical; min-height: 96px; line-height: 1.6; }

.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(16, 42, 67, 0.1);
  background: #fff;
}

.field input.error, .field textarea.error { border-color: var(--red); }
.field .hint { font-size: 12.5px; color: var(--ink-mute); }
.field .error-msg { font-size: 12.5px; color: var(--red); display: none; }
.field input.error ~ .error-msg, .field textarea.error ~ .error-msg { display: block; }

/* 금액 한글 표기 미리보기 */
.money-korean {
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 700;
  min-height: 18px;
}

/* 내비게이션 버튼 */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
}

.wizard-nav .spacer { flex: 1; }

/* ---------- 미리보기 / 문서 ---------- */
.preview-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.doc-sheet {
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px rgba(16, 42, 67, 0.12);
  padding: 56px 52px;
  font-family: var(--font-doc);
  font-size: 14.5px;
  line-height: 2;
  color: #111;
}

@media (max-width: 640px) { .doc-sheet { padding: 32px 22px; } }

.doc-sheet .doc-title {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.45em;
  margin-bottom: 40px;
  text-indent: 0.45em;
}

.doc-sheet .doc-parties {
  border-top: 2px solid #111;
  border-bottom: 1px solid #999;
  padding: 14px 4px;
  margin-bottom: 28px;
}

.doc-sheet .doc-parties table { width: 100%; border-collapse: collapse; }

.doc-sheet .doc-parties td {
  padding: 3px 6px;
  vertical-align: top;
  font-size: 14px;
}

.doc-sheet .doc-parties td.role {
  width: 70px;
  font-weight: 700;
  white-space: nowrap;
}

.doc-sheet .doc-parties td.key {
  width: 64px;
  color: #444;
  white-space: nowrap;
}

.doc-sheet .doc-subject {
  font-weight: 700;
  font-size: 15.5px;
  margin-bottom: 26px;
}

.doc-sheet .doc-body p { margin-bottom: 16px; text-align: justify; word-break: keep-all; }

.doc-sheet .doc-date { text-align: center; margin: 44px 0 20px; font-size: 15px; }

.doc-sheet .doc-sign { text-align: center; font-size: 16px; font-weight: 700; letter-spacing: 0.1em; }
.doc-sheet .doc-sign .in { color: #888; font-weight: 400; font-size: 13px; margin-left: 6px; }

/* 복사 토스트 */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 13px 26px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 100;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 발송 안내 박스 (미리보기 하단) */
.next-steps {
  margin-top: 28px;
  background: var(--paper-deep);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 22px 26px;
  font-size: 14px;
  color: var(--ink-soft);
}

.next-steps strong { display: block; margin-bottom: 8px; color: var(--ink); }
.next-steps ol { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }

/* ---------- 모바일 ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .cost-table { min-width: 560px; }

@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .trust-bar { font-size: 11.5px; padding: 8px 14px; line-height: 1.5; }

  .site-header .container { height: 60px; }
  .brand { font-size: 17px; }
  .header-nav { gap: 14px; }
  .header-nav a:not(.btn) { display: none; }

  .section { padding: 60px 0; }
  .section.navy { padding: 68px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head p { font-size: 15.5px; }

  .hero { padding: 56px 0 0; }
  .hero p.lead { margin-bottom: 32px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; max-width: 340px; }

  .doc-mockup { margin-top: 44px; }
  .doc-mockup .m-title { letter-spacing: 7px; text-indent: 7px; font-size: 22px; }
  .doc-mockup .m-subject { letter-spacing: 2px; font-size: 15px; }
  .doc-mockup .m-stamp { width: 48px; height: 48px; font-size: 18px; bottom: 24px; right: 24px; }

  .grid { gap: 14px; }
  .card { padding: 28px 24px; }
  .case-card { padding: 26px 24px; }
  .case-card p { margin-bottom: 16px; }

  .guide-item { padding: 24px 20px; gap: 14px; }
  .guide-item strong { font-size: 15.5px; }

  .faq-list { padding: 4px 20px; }
  .faq-list summary { font-size: 15px; padding: 20px 0; }
  .faq-list .faq-body { font-size: 14px; padding-bottom: 22px; }

  .cost-table th, .cost-table td { padding: 12px 14px; font-size: 13.5px; }
  .cost-table .note { font-size: 12.5px; }

  .footer-links { gap: 16px 20px; }
  .site-footer { padding: 40px 0 36px; }
}

@media (max-width: 480px) {
  .wizard-wrap { padding: 28px 16px 64px; }

  .progress { margin-bottom: 28px; }
  .progress .p-dot { width: 26px; height: 26px; font-size: 12px; }
  .progress .p-bar { width: 14px; margin: 0 5px; }
  .progress .p-step { gap: 6px; font-size: 12px; }

  .panel h2 { font-size: 20px; }

  .preview-toolbar { flex-direction: column; }
  .preview-toolbar .btn { width: 100%; }

  .wizard-nav { flex-wrap: wrap; }
  .wizard-nav .btn { flex: 1; white-space: nowrap; }

  .btn-lg { padding: 15px 28px; font-size: 15px; }
}

/* ---------- 인쇄 ---------- */
@media print {
  body { background: #fff; }
  body * { visibility: hidden; }
  #docSheet, #docSheet * { visibility: visible; }
  #docSheet {
    position: absolute;
    inset: 0;
    width: 100%;
    border: none;
    box-shadow: none;
    padding: 10mm 14mm;
    font-size: 12.5pt;
  }
  @page { size: A4; margin: 14mm; }
}
