:root {
  --text: #1f2328;
  --muted: #5b6470;
  --line: #e3e6ea;
  --soft: #f6f7f9;
  --accent: #1f3a5f;
  --warn: #b54708;
  --error: #b42318;
  --ok: #067647;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
  word-break: keep-all;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--accent); }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; }
nav a { color: var(--muted); text-decoration: none; margin-left: 16px; font-size: 14px; }

main { padding: 40px 0 56px; }
h1 { font-size: 28px; line-height: 1.35; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 40px 0 12px; }
.lead { color: var(--muted); margin: 0; }
.date { color: var(--muted); font-size: 14px; margin: 0 0 24px; }

table.spec { width: 100%; border-collapse: collapse; }
table.spec th, table.spec td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec th { width: 32%; color: var(--muted); font-weight: 500; background: var(--soft); }
table.spec tr.total td { font-weight: 700; }
.pending { color: var(--warn); }

form.checkout { display: grid; gap: 12px; }
label.field { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
label.field input { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); }
label.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
label.agree input { margin-top: 6px; }
button.pay { font: inherit; font-weight: 700; padding: 14px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; cursor: pointer; }
button.pay:disabled { background: #9aa4b2; cursor: not-allowed; }
.message { font-size: 14px; margin: 0; min-height: 1.7em; color: var(--muted); }
.message.error { color: var(--error); }
.message.ok { color: var(--ok); }

.doc h2 { font-size: 17px; margin: 32px 0 8px; }
.doc p { margin: 0 0 8px; }
.doc ol, .doc ul { padding-left: 20px; margin: 0 0 8px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--soft); font-weight: 500; }

footer.site { border-top: 1px solid var(--line); background: var(--soft); font-size: 13px; color: var(--muted); }
footer.site .wrap { padding: 24px 20px 32px; }
footer.site p { margin: 0 0 8px; }
footer.site a { color: var(--muted); }

@media (max-width: 560px) {
  nav a { margin-left: 10px; font-size: 13px; }
  h1 { font-size: 24px; }
  table.spec th { width: 38%; }
}
