/* 웨비픽 필수 웹페이지 — design/app-ui/StyleGuide.dc.html 의 색·글꼴 토큰 */
:root {
  --brand: #C8632E;
  --ink: #2A2420;
  --sub: #8A8077;
  --ok: #5A9E4B;
  --gold: #E8A838;
  --bg: #F6F4EF;
  --surface: #FFFFFF;
  --line: #EDE7DD;
  --line-strong: #E7DED2;
  --paper: #FBFAF7;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 500 15px/1.7 'Noto Sans KR', system-ui, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
a { color: var(--brand); }
code { background: var(--line); border-radius: 6px; padding: 1px 6px; font-size: .9em; }

.top { background: var(--surface); border-bottom: 2px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 18px; letter-spacing: -.5px; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 8px; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.top nav a { color: var(--sub); text-decoration: none; font-size: 13.5px; font-weight: 700; padding: 4px 0; }
.top nav a[aria-current="page"] { color: var(--brand); }

main { padding-top: 26px; padding-bottom: 40px; }
h1 { font-size: 24px; line-height: 1.35; font-weight: 900; letter-spacing: -.6px; margin: 0 0 8px; }
h2 { font-size: 16px; font-weight: 800; margin: 28px 0 8px; }
.lead { font-size: 15.5px; color: #4a4038; margin: 0 0 16px; }
.meta { font-size: 12.5px; color: var(--sub); }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }

.draft, .notice { border-radius: 12px; padding: 12px 14px; font-size: 13.5px; margin: 0 0 18px; }
.draft { background: #FCF2DC; color: #7a5410; }
.notice { background: #EFE8E0; color: #5b4c40; }
.tbd { display: inline-block; font-size: 11px; font-weight: 700; color: #B07A16; background: #FCF2DC; padding: 1px 9px; border-radius: 999px; vertical-align: 1px; }

table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 13.5px; margin: 8px 0; display: block; overflow-x: auto; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); min-width: 110px; }
thead th { background: var(--bg); font-weight: 800; }
tbody th { width: 9em; font-weight: 700; color: var(--sub); }

.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-bottom: 22px; }
.hero img { width: 200px; max-width: 45%; height: auto; }
.hero > div { flex: 1 1 260px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.card { background: var(--surface); border-radius: 16px; padding: 16px; box-shadow: 0 2px 10px rgba(42,36,32,.05); }
.card h2 { margin: 0 0 4px; }
.card p { margin: 0; font-size: 13.5px; }

form.card { margin: 14px 0; max-width: 460px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset:disabled { opacity: .6; }
label { display: block; font-size: 13px; font-weight: 700; margin: 12px 0 4px; }
label.check { display: flex; gap: 8px; font-weight: 500; align-items: flex-start; }
input[type=email], select { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
button, .btn { display: inline-block; border: 0; background: var(--brand); color: #fff; font: 800 14px 'Noto Sans KR', sans-serif; padding: 13px 22px; border-radius: 14px; text-decoration: none; cursor: pointer; margin-top: 16px; }
button:disabled { background: var(--line-strong); color: var(--sub); cursor: not-allowed; }
.steps li { margin: 6px 0; }

.foot { border-top: 1px solid var(--line); color: var(--sub); font-size: 12.5px; padding: 18px 0 30px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 8px; }
.foot a { color: var(--sub); }
.foot p { margin: 0; }
.bizf { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 2px 32px; font-size: 12px; line-height: 1.7; }
.bizf-k { color: var(--ink); }
.bizf .bizf-chip { display: inline-block; padding: 0 6px; margin-left: 4px; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 11px; line-height: 17px; white-space: nowrap; text-decoration: none; }
@media (max-width: 560px) { .bizf { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  h1 { font-size: 21px; }
  .hero img { max-width: 60%; }
}

/* 계정 삭제 요청: 결과·모달 */
.notice.done { background: #E8F2DE; color: #3A5A28; }
.notice.error { background: #FBE4DC; color: #8a3a1c; }
.notice[hidden], [hidden] { display: none !important; }
#providers { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; max-width: 460px; }
#providers button { margin-top: 0; }
button.apple { background: #000; }
dialog { border: 0; border-radius: 18px; padding: 22px; max-width: 420px; width: calc(100% - 40px); color: var(--ink); box-shadow: 0 12px 40px rgba(42,36,32,.3); }
dialog::backdrop { background: rgba(42,36,32,.5); }
dialog h2 { margin-top: 0; }
dialog .actions { display: flex; gap: 10px; justify-content: flex-end; }
dialog .actions button { margin-top: 8px; }
button.ghost { background: var(--surface); color: #6B6157; border: 1px solid var(--line-strong); }
