/* 찬이작업실 AI 대행 — bmfood.co.kr/ai */
:root {
  --navy: #1F2A44;
  --navy-2: #2C3A5C;
  --orange: #F28C28;
  --orange-d: #D9741A;
  --cream: #F7F5F0;
  --bg: #FFFFFF;
  --text: #2B2B2B;
  --sub: #5E5E5E;
  --line: #E6E1D8;
  --ok: #1F7A4D;
  --radius: 16px;
  --shadow: 0 2px 10px rgba(31, 42, 68, .06);
  --max: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 17px; line-height: 1.7; word-break: keep-all; overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
section { padding: 64px 0; scroll-margin-top: 64px; }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); color: #fff; }
.eyebrow { display: inline-block; color: var(--orange-d); font-weight: 700; font-size: 15px; letter-spacing: .02em; margin-bottom: 8px; }
.bg-navy .eyebrow { color: var(--orange); }
h1, h2, h3 { color: var(--navy); line-height: 1.35; margin: 0 0 12px; letter-spacing: -.02em; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
h2 { font-size: 28px; font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
.lead { color: var(--sub); font-size: 18px; margin: 0 0 32px; }
.bg-navy .lead { color: #D6DCEA; }
.hl { color: var(--orange-d); }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 12px; border: 0;
  font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-d); }
.btn-ghost { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.btn-ghost:hover { background: var(--cream); }
.btn-kakao { background: #FEE500; color: #191919; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* 상단 띠 + 헤더 */
.topbar { background: var(--navy); color: #C9D1E3; font-size: 13px; text-align: center; padding: 6px 16px; }
.topbar a { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; color: var(--navy); }
.logo img { width: 36px; height: 36px; border-radius: 50%; }
.logo small { display: block; font-size: 12px; font-weight: 600; color: var(--sub); line-height: 1.2; }
.nav { display: none; margin-left: auto; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; color: var(--navy); font-size: 16px; }
.nav a:hover { background: var(--cream); }
.site-header .btn { margin-left: auto; }
@media (min-width: 1024px) { .nav { display: flex; } .site-header .btn { margin-left: 8px; } }

/* 히어로 */
.hero { padding: 40px 0 56px; background: linear-gradient(180deg, #FFF8EE 0%, #fff 100%); }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
.hero h1 { font-size: 32px; font-weight: 800; margin-bottom: 16px; }
.hero h1 .hl { display: block; }
.hero p.sub { font-size: 18px; color: var(--sub); margin: 0 0 24px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .cta .btn { flex: 1 1 200px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.hero-badges li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; font-weight: 600; color: var(--navy); }
.hero-img { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: var(--cream); aspect-ratio: 4 / 5; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) {
  .hero .wrap { grid-template-columns: 1.1fr .9fr; }
  .hero h1 { font-size: 46px; }
}

/* 카드 그리드 */
.grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--sub); }
.pain .card { display: flex; gap: 16px; align-items: flex-start; }
.pain .num { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #FFF1E2; color: var(--orange-d); font-weight: 800; display: grid; place-items: center; }
.pain .card h3 { margin-bottom: 4px; }
.pain-close { margin: 32px 0 0; font-size: 22px; font-weight: 800; color: var(--navy); text-align: center; }

/* 소개 */
.about .wrap { display: grid; gap: 32px; align-items: center; }
.about-img { max-width: 320px; margin: 0 auto; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow); }
.about ul { padding: 0; margin: 24px 0 0; list-style: none; display: grid; gap: 10px; }
.about li { padding-left: 28px; position: relative; }
.about li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 14px; border-radius: 4px; background: var(--orange); }
@media (min-width: 768px) { .about .wrap { grid-template-columns: 320px 1fr; } }

/* 서비스 */
.service { display: flex; flex-direction: column; gap: 12px; }
.service img { width: 88px; height: 88px; border-radius: 20px; }
.service .ex { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 15px; color: var(--sub); }
.service .ex b { color: var(--navy); }

/* Before / After */
.proof .wrap { display: grid; gap: 32px; align-items: center; }
.proof-img { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
/* 이미지 상단 빈 띠(좌·우) 위에 얹는 라벨 — 위치는 이미지 비율(%) 기준 */
.ba-label { position: absolute; top: .6%; height: 18%; display: grid; place-items: center; font-weight: 800; font-size: clamp(20px, 3.2vw, 36px); letter-spacing: -.02em; line-height: 1.2; text-align: center; }
.ba-label.before { left: .7%; width: 48.3%; color: var(--navy); }
.ba-label.after { left: 50.6%; width: 48.8%; color: var(--orange-d); }
.ba { display: grid; gap: 12px; margin: 24px 0; }
.ba-row { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 16px; }
.ba-row .tag { font-weight: 800; font-size: 14px; text-align: center; border-radius: 8px; padding: 4px 0; }
.ba-row.before .tag { background: #3B4A6B; color: #C9D1E3; }
.ba-row.after .tag { background: var(--orange); color: #fff; }
.ba-row strong { color: #fff; display: block; }
.ba-row span { color: #C9D1E3; font-size: 15px; }
.big-num { font-size: 40px; font-weight: 800; color: var(--orange); line-height: 1.1; }
@media (min-width: 768px) { .proof .wrap { grid-template-columns: .9fr 1.1fr; } }

/* 사례 */
.case { display: flex; flex-direction: column; gap: 10px; }
.case .cat { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--orange-d); background: #FFF1E2; border-radius: 999px; padding: 2px 10px; }
.case .delta { margin-top: auto; padding-top: 12px; font-size: 15px; font-weight: 700; color: var(--navy); }

/* 진행·가격 */
.steps { list-style: none; padding: 0; margin: 0 0 48px; display: grid; gap: 12px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.steps li::before { content: counter(step); width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps b { display: block; color: var(--navy); }
.steps span { color: var(--sub); font-size: 15px; }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.price-note { background: #FFF1E2; border-radius: 12px; padding: 12px 16px; font-weight: 600; color: var(--navy); margin: 0 0 16px; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
table.price { width: 100%; border-collapse: collapse; min-width: 320px; }
.price th, .price td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.price thead th { background: var(--navy); color: #fff; font-size: 15px; }
.price tbody tr:last-child td { border-bottom: 0; }
.price td.amt { font-weight: 800; color: var(--navy); white-space: nowrap; }
.price td small { display: block; color: var(--sub); font-size: 14px; }
.price .free td.amt { color: var(--orange-d); }
.fine { font-size: 14px; color: var(--sub); margin: 12px 0 0; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.faq-list summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 700; color: var(--navy); position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before { content: "Q"; color: var(--orange-d); font-weight: 800; margin-right: 10px; }
.faq-list summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--sub); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list .a { padding: 0 20px 20px 46px; color: var(--sub); }
.faq-list .a p { margin: 0; }
.faq-more { text-align: center; margin-top: 24px; color: var(--sub); }

/* 게시판 안내 배너 */
.board-cta { display: grid; gap: 16px; align-items: center; background: var(--navy); color: #fff; border-radius: 20px; padding: 28px 24px; }
.board-cta h3 { color: #fff; margin: 0 0 4px; }
.board-cta p { margin: 0; color: #C9D1E3; }
@media (min-width: 768px) { .board-cta { grid-template-columns: 1fr auto; padding: 32px 40px; } }

/* 폼 */
.apply .wrap { display: grid; gap: 32px; }
@media (min-width: 1024px) { .apply .wrap { grid-template-columns: .8fr 1.2fr; align-items: start; } }
.apply-side .contact { display: grid; gap: 12px; margin-top: 24px; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 700; color: var(--navy); font-size: 16px; padding: 0; }
.field .req { color: var(--orange-d); margin-left: 2px; }
.field .opt { color: var(--sub); font-weight: 500; font-size: 14px; margin-left: 4px; }
.field input[type=text], .field input[type=tel], .field input[type=password], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--text);
  border: 1.5px solid #CFC8BB; border-radius: 12px; padding: 12px 14px; background: #fff; min-height: 52px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,140,40,.2); }
.field .hint { font-size: 14px; color: var(--sub); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { font-weight: 600; color: var(--text); }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid #CFC8BB; border-radius: 999px; cursor: pointer; background: #fff; font-size: 16px; }
.chips input:checked + span { border-color: var(--orange); background: #FFF1E2; color: var(--navy); font-weight: 700; }
.chips input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.row-2 { display: grid; gap: 18px; }
@media (min-width: 768px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--sub); }
.agree input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--orange); flex: none; }
.agree a { color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { border-radius: 12px; padding: 12px 16px; font-weight: 600; display: none; }
.msg.show { display: block; }
.msg.err { background: #FDECEA; color: #A12A1B; }
.msg.ok { background: #E7F5EE; color: var(--ok); }
.done-box { text-align: center; padding: 24px 8px; }
.done-box .check { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #E7F5EE; color: var(--ok); display: grid; place-items: center; font-size: 32px; font-weight: 800; }

/* 푸터 */
.site-footer { background: #151D30; color: #9BA6BF; font-size: 14px; padding: 40px 0 120px; }
.site-footer a { color: #D6DCEA; }
.site-footer .brand { color: #fff; font-weight: 800; font-size: 17px; margin-bottom: 8px; }
.site-footer p { margin: 4px 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0; }
@media (min-width: 1024px) { .site-footer { padding-bottom: 40px; } }

/* 모바일 하단 고정 버튼 */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); display: flex; gap: 8px; transition: transform .2s; }
.sticky-cta .btn { flex: 1; }
.sticky-cta.hide { transform: translateY(110%); }
@media (min-width: 1024px) { .sticky-cta { display: none; } }

/* 우측 하단 TOP 버튼 (모바일은 하단 고정 버튼 위) */
.to-top {
  position: fixed; right: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 61;
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid #fff; cursor: pointer;
  background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(31, 42, 68, .3);
  display: grid; place-items: center; align-content: center; gap: 0;
  font: 800 11px/1 "Pretendard Variable", Pretendard, sans-serif; letter-spacing: .04em;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s, background .15s;
}
.to-top svg { width: 18px; height: 18px; margin-bottom: 2px; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--orange); }
@media (min-width: 1024px) { .to-top { right: 24px; bottom: 24px; } }

/* ── 게시판 ─────────────────────────────── */
.page-head { background: linear-gradient(180deg, #FFF8EE 0%, #fff 100%); padding: 40px 0 24px; }
.page-head h1 { font-size: 28px; font-weight: 800; }
.page-head p { color: var(--sub); margin: 0; }
@media (min-width: 768px) { .page-head h1 { font-size: 38px; } }
.board-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.board-tools .count { color: var(--sub); font-size: 15px; }
.board-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.board-list li { border-bottom: 1px solid var(--line); }
.board-list button { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; width: 100%; padding: 16px 8px; cursor: pointer; }
.board-list button:hover { background: var(--cream); }
.board-list button:focus-visible { outline: 3px solid var(--orange); }
.board-list .t { font-weight: 700; color: var(--navy); display: flex; gap: 8px; align-items: center; min-width: 0; }
.board-list .t span.txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-list .meta { grid-column: 1 / -1; font-size: 14px; color: var(--sub); display: flex; gap: 10px; flex-wrap: wrap; }
.lock { flex: none; width: 18px; height: 18px; color: var(--sub); }
.state { align-self: center; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.state.wait { background: #EEF0F5; color: #4A5578; }
.state.done { background: #FFF1E2; color: var(--orange-d); }
.empty { text-align: center; color: var(--sub); padding: 48px 0; }
.pager { display: flex; justify-content: center; gap: 6px; margin: 24px 0 0; flex-wrap: wrap; }
.pager button { min-width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; cursor: pointer; }
.pager button[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 700; }
.notice-box { background: var(--cream); border-radius: 14px; padding: 16px 20px; font-size: 15px; color: var(--sub); margin-bottom: 24px; }
.notice-box b { color: var(--navy); }

/* 모달 */
dialog { border: 0; border-radius: 20px; padding: 0; width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(21, 29, 48, .55); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.dlg-head h2 { font-size: 19px; margin: 0; }
.dlg-close { all: unset; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; font-size: 24px; color: var(--sub); }
.dlg-close:hover { background: var(--cream); }
.dlg-body { padding: 20px; }
.dlg-body .form { border: 0; box-shadow: none; padding: 0; }
.post-meta { font-size: 14px; color: var(--sub); margin-bottom: 12px; }
.post-body { white-space: pre-wrap; background: var(--cream); border-radius: 12px; padding: 16px; margin: 0 0 16px; }
.answer { border: 2px solid var(--orange); border-radius: 14px; padding: 16px; }
.answer h3 { font-size: 17px; color: var(--orange-d); margin-bottom: 8px; }
.answer .body { white-space: pre-wrap; margin: 0; }
.answer.wait { border-color: var(--line); color: var(--sub); }
.dlg-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }

/* 정책 문서 */
.doc { max-width: 760px; }
.doc h2 { font-size: 21px; margin-top: 32px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px; text-align: left; }
.doc th { background: var(--cream); }

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