/* 정든가계부 소개 웹 (심플 스타일: 흰 바탕 · 칸 사이는 연한 회색 띠 · 모서리 4px) */
:root {
  --acc: #41605A; --acc-ink: #2E4642; --acc-soft: #E5ECEA;
  --ink: #33312D; --sub: #5F5C55; --muted: #6F6B63; --faint: #8A867D;
  --line: #E4E0D7; --line-soft: #ECE9E2; --band: #F3F3F1; --soft: #F7F7F5; --off: #DCD8D0;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #FFFFFF; color: var(--ink); font-family: 'Noto Sans KR', system-ui, -apple-system, sans-serif; font-variant-numeric: tabular-nums; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.w { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.band { height: 10px; background: var(--band); }
.sec { padding-top: 88px; padding-bottom: 88px; }
.eyebrow { margin-bottom: 12px; font-size: 14px; font-weight: 700; color: var(--acc); }
.h2 { font-size: 34px; font-weight: 800; letter-spacing: -1px; line-height: 1.3; }
.lead { margin-top: 16px; font-size: 17px; line-height: 1.7; color: var(--sub); }
.muted { color: var(--muted); }
.row { display: flex; align-items: center; gap: 8px; }
.sq { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 머리글 */
.top { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 34px; height: 34px; border-radius: 4px; background: var(--acc); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.logo strong { font-size: 19px; font-weight: 800; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--sub); }
.btn { height: 40px; padding: 0 16px; border-radius: 4px; background: var(--acc); color: #FFFFFF; font-weight: 700; display: inline-flex; align-items: center; }

/* 첫 화면 */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 64px; align-items: center; padding: 56px 20px 88px; }
.badge { display: inline-block; margin-bottom: 20px; padding: 6px 10px; border-radius: 3px; background: var(--acc-soft); color: var(--acc-ink); font-size: 14px; font-weight: 700; }
.hero h1 { font-size: 52px; font-weight: 800; letter-spacing: -2px; line-height: 1.25; }
.hero .lead { font-size: 18px; max-width: 520px; }
.stores { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store { height: 56px; padding: 0 22px; border-radius: 4px; display: inline-flex; align-items: center; gap: 12px; }
.store-on { background: var(--ink); color: #FFFFFF; }
.store-off { border: 1px solid var(--line); color: var(--faint); }
.store span { display: flex; flex-direction: column; line-height: 1.2; }
.store small { font-size: 11px; opacity: .8; }
.store strong { font-size: 16px; }
.note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.visual { position: relative; height: 560px; }
.phone { position: absolute; right: 0; top: 0; width: 300px; border: 1px solid var(--line); border-radius: 28px; background: #FFFFFF; overflow: hidden; box-shadow: 0 24px 48px -28px rgba(51, 49, 45, .35); }
.ph-pad { padding: 0 18px; }
.ph-head { height: 52px; display: flex; align-items: center; font-size: 16px; font-weight: 700; }
.ph-total { margin-top: 14px; font-size: 32px; font-weight: 800; letter-spacing: -1.2px; }
.ph-total small { font-size: 18px; font-weight: 700; margin-left: 2px; }
.ph-cats { margin-top: 18px; display: grid; gap: 9px; font-size: 13px; }
.ph-pct { flex: 1; font-size: 11px; color: var(--faint); }
.ph-band { height: 8px; margin-top: 14px; background: var(--band); }
.ph-row { height: 44px; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ph-row small { display: block; font-size: 11px; color: var(--muted); }
.paper { position: absolute; left: -36px; top: 210px; width: 190px; transform: rotate(-4deg); z-index: 1; }
.paper-body { background: #FFFFFF; border: 1px solid var(--line); border-bottom: 0; padding: 16px 16px 12px; font-size: 11px; color: var(--sub); box-shadow: 0 18px 32px -24px rgba(51, 49, 45, .4); }
.paper-body hr { border: 0; border-top: 1px dashed #D6D2C8; margin: 10px 0; }
.paper .pr { display: flex; justify-content: space-between; margin-top: 4px; }
.scan { position: absolute; left: -14px; right: -14px; top: 92px; height: 8px; border-radius: 4px; background: #FF8A3D; }
.toast { position: absolute; left: -10px; top: 478px; z-index: 2; padding: 12px 14px; border-radius: 4px; background: #FFFFFF; border: 1px solid var(--line); display: flex; align-items: center; gap: 10px; box-shadow: 0 12px 24px -18px rgba(51, 49, 45, .4); }
.toast i { width: 28px; height: 28px; border-radius: 3px; background: var(--acc); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.toast span { display: flex; flex-direction: column; line-height: 1.3; }
.toast small { font-size: 11px; color: var(--muted); }
.toast strong { font-size: 14px; }

/* 사용법 · 기능 */
.steps { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.steps li { border-top: 2px solid var(--ink); padding-top: 20px; }
.steps b { font-size: 14px; font-weight: 800; color: var(--acc); }
.steps h3, .cols h3 { margin-top: 8px; font-size: 20px; font-weight: 700; }
.cols h3 { margin-top: 0; font-size: 18px; }
.steps p, .cols p { margin-top: 10px; font-size: 15px; line-height: 1.7; color: var(--sub); }
.cols { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.checks { margin-top: 24px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 10px; font-size: 15px; line-height: 1.6; }
.checks li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 1px; background: var(--acc); }
.panel { padding: 32px; border: 1px solid var(--line); border-radius: 4px; }
.range { height: 44px; padding: 0 14px; border-radius: 4px; background: var(--soft); display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
.range small { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--muted); }
.donut-row { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 16px; }
.donut { position: relative; width: 150px; height: 150px; border-radius: 50%; background: conic-gradient(var(--acc) 0 45.5%, #FFFFFF 45.5% 46.5%, var(--off) 46.5% 69.5%, #FFFFFF 69.5% 70.5%, var(--off) 70.5% 87.5%, #FFFFFF 87.5% 88.5%, var(--off) 88.5% 99%, #FFFFFF 99% 100%); }
.donut div { position: absolute; inset: 22px; border-radius: 50%; background: #FFFFFF; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut span { font-size: 11px; font-weight: 700; color: var(--muted); }
.donut strong { font-size: 18px; font-weight: 800; color: var(--acc); }
.legend { display: grid; gap: 6px; font-size: 14px; }
.legend .row { height: 26px; }
.legend .row > :nth-child(2) { flex: 1; }
.sum { margin-top: 16px; text-align: right; font-size: 17px; font-weight: 700; }
.sheet { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; font-size: 14px; }
.sheet div { display: grid; grid-template-columns: minmax(0, 1fr) 64px 100px 100px; }
.sheet div + div { border-top: 1px solid var(--line); }
.sheet span { padding: 11px 12px; text-align: right; }
.sheet span:first-child { text-align: left; }
.sheet span + span { border-left: 1px solid var(--line); }
.sheet .th { background: var(--soft); font-size: 13px; font-weight: 600; color: var(--muted); }
.sheet .th span { text-align: center; }

/* 개인정보 보호 */
.safe { background: var(--acc-ink); color: #FFFFFF; }
.safe .h2 { color: #FFFFFF; }
.safe-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.safe-grid div { border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 18px; }
.safe-grid h3 { font-size: 17px; font-weight: 700; }
.safe-grid p { margin-top: 10px; font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, .78); }

/* 자주 묻는 질문 */
.faq-wrap { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 80px; }
.faq { border-top: 1px solid var(--line-soft); padding: 20px 0; }
.faq h3 { font-size: 16px; font-weight: 700; }
.faq p { margin-top: 8px; font-size: 15px; line-height: 1.7; color: var(--sub); }

/* 바닥글 */
.foot { border-top: 1px solid var(--line-soft); background: var(--soft); }
.foot-in { padding: 40px 20px 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font-size: 14px; color: var(--sub); }
.foot-in strong { font-size: 16px; color: var(--ink); }
.foot-in p { margin-top: 12px; line-height: 1.8; color: var(--muted); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: flex-start; }
.foot-nav .on { font-weight: 700; color: var(--ink); }

/* 정책 문서 (개인정보 처리방침 · 이용약관 · 계정 삭제 안내) */
.doc { max-width: 800px; margin: 0 auto; padding: 56px 20px 96px; }
.doc h1 { font-size: 34px; font-weight: 800; letter-spacing: -1px; line-height: 1.3; }
.doc .meta { margin-top: 12px; font-size: 14px; color: var(--muted); }
.doc .intro { margin-top: 24px; font-size: 16px; line-height: 1.8; color: var(--sub); }
.doc .toc { margin-top: 28px; padding: 20px 24px; border-radius: 4px; background: var(--soft); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; font-size: 14px; color: var(--sub); }
.doc h2 { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: 20px; font-weight: 700; }
.doc h3 { margin-top: 20px; font-size: 16px; font-weight: 700; }
.doc p, .doc li { font-size: 15px; line-height: 1.8; color: var(--sub); }
.doc p { margin-top: 12px; }
.doc ul, .doc ol { margin-top: 10px; display: grid; gap: 6px; }
.doc ul li { position: relative; padding-left: 16px; }
.doc ul li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 5px; height: 5px; border-radius: 1px; background: var(--acc); }
.doc ol { counter-reset: n; }
.doc ol li { position: relative; padding-left: 26px; counter-increment: n; }
.doc ol li::before { content: counter(n); position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 3px; background: var(--acc-soft); color: var(--acc-ink); font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; }
.doc b { color: var(--ink); font-weight: 700; }
.doc a.link { color: var(--acc); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.doc .tbl { margin-top: 14px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.doc th, .doc td { padding: 10px 12px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); color: var(--sub); }
.doc th + th, .doc td + td { border-left: 1px solid var(--line); }
.doc thead th { border-top: 0; background: var(--soft); font-size: 13px; font-weight: 600; color: var(--muted); }
.doc td:first-child { color: var(--ink); font-weight: 500; }
.doc .box { margin-top: 16px; padding: 16px 18px; border-radius: 4px; background: var(--acc-soft); color: var(--acc-ink); font-size: 15px; line-height: 1.7; }
.doc .todo { color: #8A4108; background: #FCEBDD; padding: 0 4px; border-radius: 2px; }

/* 휴대폰 화면 */
@media (max-width: 900px) {
  .nav a:not(.btn) { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 32px; padding-bottom: 56px; }
  .hero h1 { font-size: 32px; letter-spacing: -1.2px; }
  .visual { height: 580px; max-width: 420px; margin: 0 auto; width: 100%; }
  .phone { right: 0; }
  .paper { left: 0; top: 250px; }
  .toast { left: 0; top: 470px; }
  .sec { padding-top: 56px; padding-bottom: 56px; }
  .h2 { font-size: 26px; }
  .steps, .cols, .split, .safe-grid, .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .split .sheet-wrap { order: 2; }
  .doc { padding-top: 32px; }
  .doc h1 { font-size: 28px; }
  .doc .toc { grid-template-columns: minmax(0, 1fr); }
  .doc .tbl { overflow-x: auto; }
  .doc table { min-width: 560px; }
}
@media (max-width: 420px) {
  .paper { width: 150px; top: 270px; }
  .toast { top: 500px; }
  .phone { width: 270px; }
  .donut-row { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .legend { width: 100%; }
}
