/* bizaccount.co.kr 판매관리 소개 페이지 스타일 — M3 색 역할 토큰·타입 스케일·4dp 간격 (공통 디자인 규칙 2026-10-23) */

@font-face {
  font-family: 'Pretendard';
  src: url('fonts/Pretendard-KSX1001.woff2') format('woff2');
  font-weight: 45 920;
  font-display: swap;
}

/* 대표색 1개(푸른색, Lee님 2026-10-25)에서 나온 M3 라이트 색 역할. 규칙 안에서는 hex 대신 이 토큰만 쓴다 */
:root {
  --md-sys-color-primary: #1f5fa8;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #d5e3ff;
  --md-sys-color-on-primary-container: #001b3c;
  --md-sys-color-surface: #f9f9ff;
  --md-sys-color-surface-container-lowest: #ffffff;
  --md-sys-color-surface-container-low: #f2f3fa;
  --md-sys-color-surface-container: #ecedf4;
  --md-sys-color-surface-container-high: #e6e8ef;
  --md-sys-color-on-surface: #191c20;
  --md-sys-color-on-surface-variant: #43474e;
  --md-sys-color-outline: #73777f;
  --md-sys-color-outline-variant: #c3c6cf;
  --md-sys-color-inverse-surface: #1b2a3f;
  --md-sys-color-inverse-on-surface: #eef2fb;
  --md-sys-color-inverse-primary: #a5c8ff;

  --font: 'Pretendard', -apple-system, 'Malgun Gothic', sans-serif;
  --gutter: 16px;
  --max: 1200px;
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 28px;
  --elev-2: 0 1px 2px rgb(0 0 0 / .3), 0 2px 6px 2px rgb(0 0 0 / .15);
  --elev-3: 0 4px 8px 3px rgb(0 0 0 / .15), 0 1px 3px rgb(0 0 0 / .3);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  font: 400 16px/24px var(--font);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { max-width: 100%; display: block; }
a { color: var(--md-sys-color-primary); }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; } }

.bx { width: 24px; height: 24px; fill: currentColor; flex: none; vertical-align: middle; }
.bx-20 { width: 20px; height: 20px; }

:focus-visible { outline: 3px solid var(--md-sys-color-primary); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--md-sys-color-surface-container-lowest); padding: 12px 16px; }

/* 버튼 — M3 filled / outlined, 높이 48px, 상태 레이어는 같은 색 투명도 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 24px;
  font: 500 14px/20px var(--font); letter-spacing: .1px; text-decoration: none;
  position: relative; overflow: hidden; transition: box-shadow .2s;
}
.btn::after { content: ''; position: absolute; inset: 0; background: currentColor; opacity: 0; transition: opacity .15s; }
.btn:hover::after { opacity: .08; }
.btn:active::after { opacity: .12; }
.btn-filled { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); }
.btn-filled:hover { box-shadow: var(--elev-2); }
.btn-outlined { border: 1px solid var(--md-sys-color-outline); color: var(--md-sys-color-primary); }

/* 머리 — 스크롤해도 위에 남는 얇은 띠 */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--md-sys-color-surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; min-height: 48px; text-decoration: none; color: var(--md-sys-color-on-surface); margin-right: auto; }
.brand b { font: 700 22px/28px var(--font); letter-spacing: -.4px; }
.brand b span { color: var(--md-sys-color-primary); }
.brand small { font: 500 12px/16px var(--font); color: var(--md-sys-color-on-surface-variant); }
.nav { display: none; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: 24px;
  color: var(--md-sys-color-on-surface-variant); text-decoration: none; font: 500 14px/20px var(--font);
}
.nav a:hover { background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent); color: var(--md-sys-color-on-surface); }
.top .btn { padding: 0 16px; }
@media (min-width: 840px) { .nav { display: flex; } }

/* 대문 — 왼쪽 문구, 오른쪽에 겹쳐 놓인 거래명세서 예시 */
.hero { padding: 48px 0 64px; overflow: hidden; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 14px/20px var(--font); color: var(--md-sys-color-primary); margin-bottom: 16px; }
.eyebrow::before { content: ''; width: 24px; height: 2px; background: currentColor; }
.hero h1 { font: 700 36px/44px var(--font); letter-spacing: -1px; }
.hero h1 em { font-style: normal; color: var(--md-sys-color-primary); }
.hero .lead { margin-top: 24px; font: 400 16px/26px var(--font); color: var(--md-sys-color-on-surface-variant); max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px; padding: 0; list-style: none; font: 500 14px/20px var(--font); color: var(--md-sys-color-on-surface-variant); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts .bx { color: var(--md-sys-color-primary); width: 20px; height: 20px; }
@media (min-width: 840px) {
  .hero { padding: 80px 0 96px; }
  .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 64px; }
  .hero h1 { font-size: 45px; line-height: 56px; }
}

/* 대문 그림 — 장부 줄 무늬 배경 위에 거래명세서 예시와 캐릭터 부기. 숫자는 고정폭 숫자 */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, transparent 0 31px, color-mix(in srgb, var(--md-sys-color-primary) 9%, transparent) 31px 32px),
    linear-gradient(to right, transparent 0 calc(50% - 1px), color-mix(in srgb, var(--md-sys-color-primary) 14%, transparent) calc(50% - 1px) 50%, transparent 50%);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.hero-art { position: relative; padding: 16px 0 140px 16px; }
.hero-art::before {
  content: ''; position: absolute; inset: 0 16px 164px 0; border-radius: var(--radius-m);
  background: var(--md-sys-color-primary-container); transform: rotate(-2.5deg);
}
.bugi { position: absolute; left: -8px; bottom: 0; width: 150px; display: grid; justify-items: start; }
.bugi img { width: 150px; height: auto; filter: drop-shadow(0 6px 10px rgb(0 27 60 / .18)); }
.bubble {
  position: absolute; left: 140px; bottom: 16px; width: max-content; max-width: 220px;
  background: var(--md-sys-color-surface-container-lowest); color: var(--md-sys-color-on-surface);
  border: 2px solid var(--md-sys-color-primary); border-radius: 16px 16px 16px 4px;
  padding: 8px 12px; font: 600 14px/20px var(--font); box-shadow: var(--elev-2);
}
@media (min-width: 840px) { .bugi { left: -48px; width: 170px; } .bugi img { width: 170px; } .bubble { left: 168px; bottom: 40px; } .hero-art { padding-bottom: 150px; } }
@media (prefers-reduced-motion: no-preference) {
  .bugi img { animation: bugi-bob 4s ease-in-out infinite; transform-origin: 50% 100%; }
  @keyframes bugi-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-1.5deg); } }
}
.doc {
  position: relative; background: var(--md-sys-color-surface-container-lowest); border-radius: var(--radius-m);
  box-shadow: var(--elev-3); padding: 20px; font-variant-numeric: tabular-nums;
}
.doc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--md-sys-color-on-surface); padding-bottom: 12px; }
.doc-head strong { font: 700 18px/24px var(--font); letter-spacing: 4px; }
.doc-head span { font: 400 12px/16px var(--font); color: var(--md-sys-color-on-surface-variant); }
.doc table { width: 100%; border-collapse: collapse; margin-top: 12px; font: 400 13px/20px var(--font); }
.doc th { text-align: left; font-weight: 500; color: var(--md-sys-color-on-surface-variant); border-bottom: 1px solid var(--md-sys-color-outline-variant); padding: 6px 4px; font-size: 12px; }
.doc td { padding: 7px 4px; border-bottom: 1px solid var(--md-sys-color-surface-container-high); }
.doc .n { text-align: right; white-space: nowrap; }
.doc tr.hl td { background: var(--md-sys-color-surface-container-low); }
.doc .hint {
  display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; font: 500 12px/18px var(--font);
  background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary);
}
.doc-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.doc-sum div { background: var(--md-sys-color-surface-container-low); border-radius: var(--radius-s); padding: 8px 10px; }
.doc-sum dt { font: 400 12px/16px var(--font); color: var(--md-sys-color-on-surface-variant); }
.doc-sum dd { margin: 2px 0 0; font: 600 14px/20px var(--font); text-align: right; }
.doc-sum div:last-child { background: var(--md-sys-color-inverse-surface); }
.doc-sum div:last-child dt { color: var(--md-sys-color-inverse-on-surface); }
.doc-sum div:last-child dd { color: var(--md-sys-color-inverse-primary); }
@media (max-width: 420px) { .doc .col-spec { display: none; } .doc { padding: 16px; } }

/* 1분 점검 — 체크 목록과 부기의 한마디 */
.check-list { display: grid; gap: 12px; }
.check-list label {
  display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding: 12px 16px; cursor: pointer;
  background: var(--md-sys-color-surface-container-lowest); border: 1px solid var(--md-sys-color-outline-variant); border-radius: var(--radius-m);
  transition: border-color .15s, background .15s;
}
.check-list label:hover { border-color: var(--md-sys-color-outline); }
.check-list input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--md-sys-color-primary); flex: none; }
.check-list label:has(input:checked) { border-color: var(--md-sys-color-primary); background: var(--md-sys-color-primary-container); }
.check-list label:has(input:focus-visible) { outline: 3px solid var(--md-sys-color-primary); outline-offset: 2px; }
.check-result {
  display: flex; align-items: center; gap: 16px; margin-top: 24px; padding: 16px 20px;
  background: var(--md-sys-color-inverse-surface); color: var(--md-sys-color-inverse-on-surface); border-radius: var(--radius-m);
}
.check-result img { width: 56px; height: auto; flex: none; }
.check-result b { color: var(--md-sys-color-inverse-primary); font-size: 22px; margin-right: 8px; }
@media (min-width: 840px) { .check-list { grid-template-columns: 1fr 1fr; } }

/* 구역 공통 */
.sec { padding: 64px 0; }
.sec-alt { background: var(--md-sys-color-surface-container-low); }
.sec-head { max-width: 720px; margin-bottom: 40px; }
.sec-head .no { font: 600 14px/20px var(--font); color: var(--md-sys-color-primary); letter-spacing: 1px; }
.sec-head h2 { margin-top: 8px; font: 700 28px/36px var(--font); letter-spacing: -.5px; }
.sec-head p { margin-top: 12px; color: var(--md-sys-color-on-surface-variant); }
@media (min-width: 840px) { .sec { padding: 96px 0; } .sec-head h2 { font-size: 32px; line-height: 40px; } }

/* 기능 — 크기가 다른 칸을 섞은 bento 배치 */
.bento { display: grid; gap: 16px; }
.cell {
  background: var(--md-sys-color-surface-container-lowest); border: 1px solid var(--md-sys-color-outline-variant);
  border-radius: var(--radius-m); padding: 24px;
}
.cell .ic {
  width: 48px; height: 48px; border-radius: var(--radius-m); display: grid; place-items: center;
  background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); margin-bottom: 16px;
}
.cell h3 { font: 600 22px/28px var(--font); letter-spacing: -.2px; }
.cell p { margin-top: 8px; color: var(--md-sys-color-on-surface-variant); }
.cell ul { margin-top: 12px; padding: 0; list-style: none; display: grid; gap: 8px; }
.cell li { display: flex; gap: 8px; color: var(--md-sys-color-on-surface); }
.cell li .bx { width: 20px; height: 20px; margin-top: 2px; color: var(--md-sys-color-primary); }
.cell-lead { background: var(--md-sys-color-inverse-surface); border-color: transparent; color: var(--md-sys-color-inverse-on-surface); }
.cell-lead p, .cell-lead li { color: var(--md-sys-color-inverse-on-surface); }
.cell-lead li .bx { color: var(--md-sys-color-inverse-primary); }
.cell-lead .ic { background: var(--md-sys-color-inverse-primary); color: var(--md-sys-color-on-primary-container); }
.cell-small h3 { font-size: 16px; line-height: 24px; font-weight: 600; }
.cell-small p { font-size: 14px; line-height: 20px; }
@media (min-width: 600px) { .bento { grid-template-columns: repeat(2, 1fr); } .cell-lead { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .cell-lead { grid-column: span 2; grid-row: span 2; padding: 32px; }
  .cell-lead h3 { font-size: 28px; line-height: 36px; }
  .cell-wide { grid-column: span 2; }
}

/* 화면 — 스크린샷 8칸. 이미지가 없으면 자리 표시 */
.shots { display: grid; gap: 24px; counter-reset: shot; }
.shot { counter-increment: shot; }
.shot .frame {
  aspect-ratio: 16 / 10; border-radius: var(--radius-m); overflow: hidden;
  background: var(--md-sys-color-surface-container-lowest); border: 1px solid var(--md-sys-color-outline-variant);
  display: grid; place-items: center; position: relative;
}
.shot .frame img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.shot .frame .wait {
  display: grid; justify-items: center; gap: 8px; color: var(--md-sys-color-on-surface-variant); font: 500 14px/20px var(--font);
  text-align: center; padding: 16px;
}
.shot .frame .wait .bx { width: 32px; height: 32px; color: var(--md-sys-color-outline); }
.shot figcaption { margin-top: 12px; }
.shot figcaption b { display: block; font: 600 16px/24px var(--font); }
.shot figcaption b::before { content: counter(shot, decimal-leading-zero) ' '; color: var(--md-sys-color-primary); }
.shot figcaption span { display: block; margin-top: 4px; font: 400 14px/20px var(--font); color: var(--md-sys-color-on-surface-variant); }
.shots-note { margin-top: 24px; font: 400 14px/20px var(--font); color: var(--md-sys-color-on-surface-variant); }
@media (min-width: 600px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .shots { grid-template-columns: repeat(4, 1fr); } .shot-wide { grid-column: span 2; } }

/* 도입 절차 — 번호가 이어지는 단계 */
.steps { display: grid; gap: 16px; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; padding: 24px 24px 24px 80px;
  background: var(--md-sys-color-surface-container-lowest); border-radius: var(--radius-m); border: 1px solid var(--md-sys-color-outline-variant);
}
.steps li::before {
  content: counter(step); position: absolute; left: 24px; top: 24px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font: 700 16px/1 var(--font);
  background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary);
}
.steps h3 { font: 600 16px/24px var(--font); }
.steps p { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--md-sys-color-on-surface-variant); }
@media (min-width: 840px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { padding: 80px 24px 24px; }
}

/* 비용·컨설팅 두 칸 */
.duo { display: grid; gap: 16px; margin-top: 48px; }
.duo .cell h3 { display: flex; align-items: center; gap: 12px; }
.duo .cell h3 .bx { color: var(--md-sys-color-primary); }
@media (min-width: 840px) { .duo { grid-template-columns: 1fr 1fr; } }

/* 개발자 소개 — 큰 숫자 하나로 무게를 둔다 */
.maker { display: grid; gap: 32px; align-items: center; }
.maker .big { font: 800 96px/1 var(--font); letter-spacing: -4px; color: var(--md-sys-color-primary); font-variant-numeric: tabular-nums; }
.maker .big small { font: 600 22px/28px var(--font); letter-spacing: 0; margin-left: 8px; color: var(--md-sys-color-on-surface); }
.maker h2 { font: 700 28px/36px var(--font); letter-spacing: -.5px; }
.maker p { margin-top: 16px; color: var(--md-sys-color-on-surface-variant); max-width: 40em; }
@media (min-width: 840px) { .maker { grid-template-columns: 280px 1fr; gap: 64px; } .maker .big { font-size: 128px; } }

/* 문의 — 진한 띠 */
.contact { background: var(--md-sys-color-inverse-surface); color: var(--md-sys-color-inverse-on-surface); padding: 64px 0; }
.contact .wrap { display: grid; gap: 24px; align-items: center; }
.contact h2 { font: 700 28px/36px var(--font); letter-spacing: -.5px; }
.contact p { margin-top: 12px; color: var(--md-sys-color-inverse-on-surface); }
.contact .btn-filled { background: var(--md-sys-color-inverse-primary); color: var(--md-sys-color-on-primary-container); }
.contact .mail { font: 500 16px/24px var(--font); color: var(--md-sys-color-inverse-primary); }
@media (min-width: 840px) { .contact .wrap { grid-template-columns: 1fr auto; } .contact { padding: 80px 0; } }

/* 바닥글 — 공통 기준 7항목 */
.foot { padding: 40px 0 48px; font: 400 14px/20px var(--font); color: var(--md-sys-color-on-surface-variant); }
.foot .wrap { display: grid; gap: 16px; }
.foot dl { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; }
.foot dl div { display: flex; gap: 6px; }
.foot dt { font-weight: 500; color: var(--md-sys-color-on-surface); }
.foot dd { margin: 0; }
.foot .links { display: flex; flex-wrap: wrap; gap: 0 8px; margin-left: -12px; }
.foot .links a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; color: var(--md-sys-color-on-surface); font-weight: 500; }

/* 약관·개인정보 문서 */
.policy { max-width: 720px; padding: 48px var(--gutter) 64px; margin: 0 auto; }
.policy h1 { font: 700 28px/36px var(--font); }
.policy h2 { margin-top: 40px; font: 600 22px/28px var(--font); }
.policy h3 { margin-top: 24px; font: 600 16px/24px var(--font); }
.policy p, .policy li { margin-top: 8px; color: var(--md-sys-color-on-surface-variant); }
.policy ol, .policy ul { padding-left: 20px; }
.policy .date { margin-top: 8px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
