/* 모닥 정적 초안 v1_3 — 시스템 글꼴 · 내려받기 0 · 외부 요청 0 · 라이트/다크 */
:root {
  --bg: #f8f6f2; --surface: #ffffff; --fg: #1d1b18; --muted: #5b554d; --line: #e2dcd2;
  --accent: #a8401a; --accent-ink: #ffffff; --focus: #a8401a;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    /* v1_3 ①: muted · accent · focus 를 APCA Lc 60 이상으로(팀장 측정: muted −63.9/−63.0 · accent −65.8/−64.9 bg/surface · accent-ink 66.9) */
    --bg: #15130f; --surface: #1f1c18; --fg: #ece6dd; --muted: #c0b8ad; --line: #36312b;
    --accent: #f6ab80; --accent-ink: #1b120b; --focus: #f6ab80;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕",
    "Noto Sans KR", "Noto Sans CJK KR", "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem; line-height: 1.7;
  word-break: keep-all; overflow-wrap: break-word;
  padding-bottom: 6rem;
}
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.3; word-break: keep-all; text-wrap: balance; }
/* v1_1 ②: 마지막 줄에 두세 글자만 남지 않게(외톨이 줄) — 줄 나눔만 바뀌고 글은 그대로 */
p, li, td, th, dd { text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 16px; }
/* 본문 한 줄 34자 안팎: 17px 글에서 28em (한글 1em · 띄어쓰기 약 0.3em 어림, 실측은 캡처 때) */
main p, main li, .note, .consent { max-width: 28em; }
ul, ol { padding-left: 1.25rem; }
li { margin: 0.2rem 0; }
li::marker { color: var(--accent); }

.site-head { border-bottom: 1px solid var(--line); }
/* v1_1 ③ · v1_2 48px: 머리 메뉴 · 간판 누르는 곳 48px 이상 — 위아래 여백 대신 칸 높이 48px, 줄 사이 틈은 0 으로 줄여 머리 높이를 지킴.
   폰에서 한 줄 가로 밀기 메뉴는 안 씀: 메뉴 7개 가운데 뒤쪽이 화면 밖에 숨어 「값」「문의」를 못 볼 수 있다. */
.head-in { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.25rem; padding-top: 6px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; min-height: 48px; min-width: 48px; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; color: var(--fg); text-decoration: none; }
.site-head nav { display: flex; flex-wrap: wrap; gap: 0; margin: 0 -0.45rem; font-size: 0.95rem; }
.site-head nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 48px;
  padding: 0 0.45rem; color: var(--muted); text-decoration: none; }
.site-head nav a:hover { color: var(--fg); }
.site-head nav a[aria-current] { color: var(--fg); font-weight: 700; }

.hero { padding: 2.75rem 0 0.5rem; }
.hero h1 { font-size: clamp(1.85rem, 6vw, 2.75rem); margin: 0 0 1rem; }
.hero p, .hero li { font-size: 1.125rem; color: var(--muted); }
.hero p { margin: 0.3rem 0; }

.blk { margin: 2.75rem 0; }
.blk h2 { font-size: 1.35rem; margin: 2rem 0 0.75rem; }
.blk > h2:first-child, .blk > .pricehead + h2 { margin-top: 0; }
.prices h2 { margin-top: 2.25rem; }
.pricehead { color: var(--muted); font-size: 1rem; border-left: 3px solid var(--accent); padding-left: 0.8rem; margin-bottom: 1.5rem; }
.pricehead p { margin: 0.15rem 0; }

.tbl { margin: 0.75rem 0 1rem; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 1rem; }
th, td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { font-size: 0.85rem; color: var(--muted); font-weight: 600; border-bottom: 1.5px solid var(--fg); }
tbody th { font-weight: 600; }
td.num { text-align: right; white-space: nowrap; }
/* v1_1 ②: 넓은 폭 값표 줄 이름(「블로그 운영」 등)이 좁은 첫 칸에서 두 줄로 갈라지지 않게 */
@media (min-width: 601px) { tbody th { white-space: nowrap; } }
/* 폰 폭: 표 줄마다 카드로 세워 가로로 밀리지 않게 (칸 이름은 data-label) */
@media (max-width: 600px) {
  table, thead, tbody, tr, th, td { display: block; }
  thead tr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  thead th { white-space: nowrap; }   /* v1_1 ①: th 의 text-wrap: pretty 가 물려받은 nowrap 을 덮으므로 th 에도 적음 */
  tbody tr { border: 1px solid var(--line); border-radius: 12px; padding: 0.6rem 0.85rem; margin: 0.6rem 0; background: var(--surface); }
  tbody th { border: 0; padding: 0 0 0.3rem; }
  td { border: 0; padding: 0.15rem 0; display: flex; justify-content: space-between; gap: 1rem; text-align: right; }
  td::before { content: attr(data-label); color: var(--muted); text-align: left; flex: 0 0 auto; }
  td:empty { display: none; }
}

.cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 1rem 0; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; }
.card h3 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.card h3 a { display: inline-flex; align-items: center; min-height: 48px; color: var(--fg); text-decoration: none; }
.card h3 a::after { content: "\2192"; margin-left: 0.3em; color: var(--accent); }
.card p { margin: 0.25rem 0; }
.card .price { color: var(--muted); font-size: 1rem; font-variant-numeric: tabular-nums; }
a.more { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; }

.faq .qa { border-top: 1px solid var(--line); padding: 1rem 0; }
.faq .qa:last-child { border-bottom: 1px solid var(--line); }
.faq .q { font-size: 1.05rem; margin: 0 0 0.35rem; }
.faq .a { margin: 0; }

.doc h2 { font-size: 1.15rem; margin: 2rem 0 0.5rem; }
.doc li p { margin: 0.2rem 0; }

.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 1.6rem;
  border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: inherit;
  font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer; }
.cta:hover { filter: brightness(1.06); }
.cta-wrap { margin: 3rem 0 1rem; }

.form { margin-top: 1.25rem; }
.field { margin: 0 0 1.1rem; border: 0; padding: 0; }
.field > label, .field > legend { display: block; font-weight: 700; margin: 0 0 0.35rem; padding: 0; }
.form input[type="text"], .form textarea, .assist textarea {
  width: 100%; max-width: 28em; min-height: 48px; padding: 0.6rem 0.75rem; font: inherit; color: var(--fg);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px;
}
.radios { display: flex; flex-wrap: wrap; gap: 0 1.1rem; }
.radios label { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 48px; }
/* v1_1 ③: 단추 칸 24px — 누르는 자리는 칸을 감싼 이름표(48px 높이 · 이름 글까지)가 함께 맡는다 */
input[type="radio"], input[type="checkbox"] { width: 1.5rem; height: 1.5rem; accent-color: var(--accent); margin: 0; flex: 0 0 auto; }
.note { color: var(--muted); font-size: 1rem; }
.consent { color: var(--muted); font-size: 1rem; margin: 1.5rem 0 0.75rem; }
.check { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.5rem 0.6rem; }
.check input { margin-top: 0.15rem; }
.check label { flex: 1 1 16rem; }
.send { margin-top: 1.5rem; }

/* v1_3 ②: 아래 여백 5rem — 떠 있는 상담 단추(16px + 48px)가 맨 끝 줄을 덮지 않게 */
.site-foot { border-top: 1px solid var(--line); margin-top: 3rem; padding: 2rem 0 5rem; color: var(--muted); font-size: 0.9rem; }
.biz { list-style: none; padding: 0; margin: 0 0 1rem; }
.biz li { margin: 0.1rem 0; }
.legal { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.legal li { margin: 0; }
.legal a { display: inline-flex; align-items: center; min-height: 48px; color: var(--fg); }

.assist { position: fixed; right: 16px; bottom: 16px; z-index: 10; }
.assist > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 48px;
  padding: 0 1.15rem; border-radius: 999px; background: var(--surface); color: var(--fg);
  border: 1.5px solid var(--accent); font-weight: 700; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14); }
.assist > summary::-webkit-details-marker { display: none; }
/* v1_1 ⑤: 닫힌 창 속은 브라우저가 그리지 않지만 꼴(display)은 남아 「글자 없는 단추」로 잡혔다 — 닫힘을 꼴로도 적음 */
.assist:not([open]) > .assist-panel { display: none; }
.assist-panel { position: absolute; right: 0; bottom: calc(100% + 10px); width: min(21rem, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18); }
.assist-note { margin: 0 0 0.6rem; font-size: 0.9rem; color: var(--muted); }
.assist-panel button { margin-top: 0.5rem; min-height: 48px; padding: 0 1rem; border-radius: 10px; border: 0;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; opacity: 0.55; }
