/* 찬스로컬 사이트 공통 CSS — 탭 3 (generator/static/css/site.css)
   기준: 결정 3안 _hub/site/designs/platform-region.html + 목업 mockups/platform-pages.html
   색은 base.html 이 site.colors 로 :root 를 다시 찍는다(아래 값은 기본값). */
:root { --pri:#1E3FAE; --pri-strong:#16308A; --pri-weak:#EAF0FF; --ink:#111827; --text:#374151; --muted:#6B7280; --line:#E5E7EB; --surface:#F5F7FB; --yellow:#FFE7A3; --ok:#1F7A45; --ok-weak:#E6F4EC; --bad:#B42318; --bad-weak:#FEF3F2; }
* { box-sizing: border-box; }
html { background: #fff; -webkit-text-size-adjust: 100%; }
body { margin: 0 auto; max-width: 480px; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: #fff; color: var(--text); font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-size: 16px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
main { flex: 1 0 auto; }
@media (min-width: 600px) { html { background: var(--surface); } body { box-shadow: 0 0 0 1px var(--line); } }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.03em; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pri); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 10; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; }
.skip:focus { top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.g { padding-left: 20px; padding-right: 20px; }
.ex { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--yellow); color: #5A4200; font-size: 11.5px; font-weight: 800; vertical-align: middle; white-space: nowrap; }

/* 머리 */
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: -0.03em; line-height: 1.2; }
.logo i { width: 28px; height: 28px; border-radius: 8px; background: var(--pri); display: grid; place-items: center; color: #fff; font-style: normal; font-size: 15px; flex: none; }
.logo small { font-size: 11px; color: var(--muted); font-weight: 600; }
.where { position: relative; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.where::after, .chips a::after, .gu a::after { content: ""; position: absolute; inset: -6px 0; }
.crumb { font-size: 13px; color: var(--muted); margin-top: 6px; }
.crumb ol { display: flex; flex-wrap: wrap; }
.crumb li + li::before { content: "›"; margin: 0 5px; }
.crumb a, .crumb li > span { display: inline-block; padding: 4px 0; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }

/* 첫 화면 */
.hero h1 { font-size: 27px; line-height: 1.3; margin-top: 6px; }
.hero .lead { margin-top: 8px; }
.note { display: flex; gap: 8px; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--surface); font-size: 13.5px; color: var(--muted); }
.note b { color: var(--ink); }

/* 현장 사례 */
.case { position: relative; display: block; margin-top: 12px; border-radius: 18px; overflow: hidden; background: var(--surface); }
.case.big { margin-top: 16px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.pair figure { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #E3E7EF; }
.case.big .pair figure { aspect-ratio: 3 / 4; }
.pair img, .hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tag { position: absolute; left: 8px; top: 8px; padding: 2px 9px; border-radius: 999px; background: rgb(17 24 39 / .62); color: #fff; font-size: 12px; font-weight: 700; }
.case-b { padding: 12px 14px 14px; }
.case-b b { color: var(--ink); }
a.case:hover .case-b b { text-decoration: underline; text-underline-offset: 3px; }
.ver { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border-radius: 999px; background: var(--ok-weak); color: var(--ok); font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.meta { font-size: 13px; color: var(--muted); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.count { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--pri-weak); color: var(--ink); font-weight: 700; font-size: 15px; }
.count small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.count b { font-size: 24px; color: var(--pri); letter-spacing: -0.02em; white-space: nowrap; }
.more { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.more .case { margin-top: 0; }
.more .case-b { padding: 8px 10px 10px; font-size: 13.5px; }
.empty { margin-top: 16px; padding: 22px 16px; border-radius: 18px; background: var(--surface); text-align: center; color: var(--muted); font-size: 15px; }
.empty b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }

/* 업체 카드 */
.pro { margin-top: 16px; border-radius: 20px; box-shadow: 0 0 0 1.5px var(--pri), 0 18px 40px -26px rgb(30 63 174 / .55); overflow: hidden; }
.pro-band { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 14px; background: var(--pri); color: #fff; font-size: 13px; font-weight: 700; }
.pro-in { padding: 16px; }
.pro-head { display: flex; gap: 12px; align-items: center; }
.pro-head .mark { width: 56px; height: 56px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--pri-weak); color: var(--pri); font-size: 24px; font-weight: 800; }
.pro-head b { display: block; font-size: 20px; color: var(--ink); letter-spacing: -0.03em; }
.pro-head span { font-size: 13.5px; color: var(--muted); }
.pro-head a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.facts div { padding: 10px 8px; border-radius: 12px; background: var(--surface); text-align: center; }
.facts b { display: block; font-size: 19px; color: var(--ink); letter-spacing: -0.02em; }
.facts span { font-size: 12px; color: var(--muted); }
.checks { margin-top: 12px; font-size: 14px; }
.checks li { display: flex; gap: 8px; padding: 4px 0; }
.checks li::before { content: "✓"; color: var(--ok); font-weight: 800; }
.btns { display: grid; gap: 8px; margin-top: 14px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 16px; border: 0; border-radius: 14px; background: none; font-size: 17px; font-weight: 800; cursor: pointer; text-align: center; }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn.call { background: var(--pri); color: #fff; }
.btn.call:hover { background: var(--pri-strong); }
.btn.call small { font-weight: 600; opacity: .85; font-size: 14px; }
.btn.line { box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); background: #fff; }
.btn.line:hover { box-shadow: inset 0 0 0 1.5px var(--muted); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.rule { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* 구역 */
.sec { padding-top: 32px; }
.sec h2 { font-size: 21px; }
.sec h2 .n { color: var(--muted); font-size: 16px; line-height: 1; white-space: nowrap; }
.sec .sub { font-size: 14px; color: var(--muted); margin-top: 2px; }
.sec .txt { margin-top: 8px; }

/* 후기 */
.rv { margin-top: 10px; padding: 14px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.rv p { font-size: 15px; color: var(--ink); }
.rv .meta { margin-top: 6px; }
.rv .reply { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); font-size: 13.5px; color: var(--text); }
.rv .reply b { color: var(--ink); }

/* 비용 조건 · 정보 표 */
.cond, .kv { margin-top: 10px; border-top: 1px solid var(--line); }
.cond div, .kv div { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.cond dt { font-weight: 700; color: var(--ink); }
.cond dd { color: var(--muted); text-align: right; }
.kv { margin-top: 12px; }
.kv div { padding: 11px 0; }
.kv dt { color: var(--muted); flex: none; }
.kv dd { font-weight: 700; color: var(--ink); text-align: right; }

/* 자주 묻는 질문 */
.faq { margin-top: 10px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 52px; padding: 10px 0; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 20px; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 14px; font-size: 15px; }

/* 칩 · 구 고르기 · 목록 */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips a, .chips span { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; font-weight: 700; color: var(--ink); }
.chips span { color: var(--muted); font-weight: 600; }
.chips a:hover { box-shadow: inset 0 0 0 1.5px var(--muted); }
.chips a.on { background: var(--pri-weak); box-shadow: none; color: var(--pri-strong); }
.sec h2.h-next { margin-top: 24px; }
.gu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.gu a, .gu span { position: relative; display: grid; place-items: center; min-height: 44px; padding: 4px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; font-weight: 700; color: var(--ink); text-align: center; }
.gu a:hover { box-shadow: inset 0 0 0 1.5px var(--pri); }
.gu a.on { background: var(--pri); color: #fff; box-shadow: none; }
.gu span.off { color: #9AA1AD; box-shadow: inset 0 0 0 1px #EEF0F3; font-weight: 600; }
.stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.stat div { padding: 12px 8px; border-radius: 14px; background: var(--pri-weak); text-align: center; }
.stat b { display: block; font-size: 22px; color: var(--pri); letter-spacing: -0.02em; }
.stat span { font-size: 12px; color: var(--muted); }
.list { margin-top: 12px; display: grid; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 14px; border-radius: 16px; background: var(--surface); }
a.row:hover { box-shadow: inset 0 0 0 1.5px var(--pri); }
.row .ic { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; flex: none; font-size: 18px; font-weight: 800; color: var(--pri); box-shadow: inset 0 0 0 1px var(--line); }
.row .ic.mk { background: var(--pri-weak); box-shadow: none; }
.row div { flex: 1; min-width: 0; }
.row b { display: block; color: var(--ink); font-size: 16.5px; }
.row span { font-size: 13.5px; color: var(--muted); }
.row .go { color: var(--muted); font-size: 18px; flex: none; }
.row.off { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.row.off b { color: var(--muted); }

/* 사례 상세 */
.hero-photo { margin-top: 16px; border-radius: 18px; overflow: hidden; display: grid; gap: 2px; }
.hero-photo figure { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #E3E7EF; }
.hero-photo .two { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.hero-photo .two figure { aspect-ratio: 1; }
.story p { margin-top: 10px; }
.story p.rule { margin-top: 14px; }

/* 방침 · 약관 */
.policy h2 { font-size: 19px; margin-top: 28px; }
.policy h2:first-child { margin-top: 20px; }
.policy p, .policy li { font-size: 15px; }
.policy p { margin-top: 8px; }
.policy ul { margin-top: 8px; padding-left: 1.1em; list-style: disc; }
.policy li + li { margin-top: 4px; }
.policy .tbl { margin-top: 10px; overflow-x: auto; }
.policy table { width: 100%; border-collapse: collapse; font-size: 14px; }
.policy th, .policy td { padding: 9px 8px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.policy th { background: var(--surface); color: var(--ink); }
.policy th, .policy td:first-child { white-space: nowrap; overflow-wrap: normal; }
.policy td:first-child { font-weight: 600; color: var(--ink); }

/* 업체 등록 */
.price { margin-top: 14px; padding: 18px; border-radius: 18px; background: var(--ink); color: #fff; }
.price b { display: block; font-size: 22px; letter-spacing: -0.03em; }
.price p { color: #D1D5DB; font-size: 14px; margin-top: 6px; }
.price ul { margin-top: 10px; font-size: 14px; color: #E5E7EB; }
.price li { padding: 4px 0; }
.price li::before { content: "✓ "; color: #BFD3FF; font-weight: 800; }
.steps { margin-top: 12px; counter-reset: s; display: grid; gap: 8px; }
.steps li { position: relative; padding: 14px 14px 14px 52px; border-radius: 16px; background: var(--surface); }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--pri); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.steps b { display: block; color: var(--ink); }
.steps span { font-size: 14px; color: var(--muted); }

/* 폼 (견적 신청 · 후기) */
.job-card { margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--surface); font-size: 14.5px; }
.job-card b { color: var(--ink); }
.form { padding-top: 8px; }
.prog { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--muted); font-weight: 700; }
.prog .bar { flex: 1; height: 6px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.prog .bar i { display: block; height: 100%; width: 0; background: var(--pri); border-radius: inherit; transition: width .25s; }
.step { margin-top: 18px; border: 0; padding: 0; min-width: 0; }
.step[hidden] { display: none; }
.step legend, .step h2 { padding: 0; font-size: 21px; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; }
.step .sub { font-size: 14px; color: var(--muted); margin-top: 2px; }
.step legend:focus { outline: none; }
.step .opt, .field .opt { color: var(--muted); font-weight: 600; font-size: .8em; }
.step .pick + .field { margin-top: 18px; }
.field { margin-top: 14px; }
.field > label, .field > .lb { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field .opt { color: var(--muted); font-weight: 600; }
.input { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); font: inherit; font-size: 16px; color: var(--ink); background: #fff; }
.input:focus { border-color: var(--pri); outline: none; box-shadow: 0 0 0 3px var(--pri-weak); }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.6; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.pick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pick.col { display: grid; }
.pick label { position: relative; display: inline-flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 6px 16px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 15px; font-weight: 700; color: var(--ink); cursor: pointer; }
.pick label small { font-size: 13px; font-weight: 500; color: var(--muted); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick input:checked + span, .pick label:has(input:checked) { color: var(--pri-strong); }
.pick label:has(input:checked) { background: var(--pri-weak); box-shadow: inset 0 0 0 2px var(--pri); }
.pick label:has(input:focus-visible) { outline: 3px solid var(--pri); outline-offset: 2px; }
.inline { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.inline .btn { min-height: 52px; font-size: 15px; white-space: nowrap; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.photos .ph { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface); }
.photos .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photos .ph button { position: absolute; right: 4px; top: 4px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgb(17 24 39 / .7); color: #fff; font-size: 16px; cursor: pointer; }
.photos .ph button::after { content: ""; position: absolute; inset: -8px; }
.photos .add { display: grid; place-items: center; align-content: center; gap: 2px; aspect-ratio: 1; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 13px; color: var(--muted); font-weight: 700; cursor: pointer; text-align: center; }
.photos .add b { font-size: 26px; line-height: 1; color: var(--pri); }
.agree { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 14px; border-radius: 14px; background: var(--surface); font-size: 14.5px; color: var(--ink); cursor: pointer; }
.agree input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--pri); }
.agree small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.agree a { text-decoration: underline; text-underline-offset: 3px; }
.step .rule a { display: inline-block; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }   /* 동의 아래 "개인정보처리방침 자세히 보기" — 링크로 보이게 · 누르기 쉽게 */
.nav { display: flex; gap: 8px; margin-top: 22px; }
.nav .btn.call { flex: 1; }
.nav .btn.line { padding: 0 18px; font-size: 15px; }
.nav [hidden] { display: none; }
.msg { margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; }
.msg[hidden] { display: none; }
.msg.err { background: var(--bad-weak); color: var(--bad); font-weight: 600; }
.msg.ok { background: var(--ok-weak); color: var(--ok); font-weight: 600; }
.msg.info { background: var(--surface); color: var(--text); }
.msg b { color: var(--ink); }
.done { margin-top: 24px; padding: 24px 18px; border-radius: 20px; background: var(--ok-weak); text-align: center; }
.done b { display: block; font-size: 20px; color: var(--ink); }
.done p { margin-top: 6px; font-size: 15px; }
.summary { margin-top: 12px; }

/* 바닥 · 고정 바 */
.foot { margin-top: 40px; padding-top: 24px; padding-bottom: 28px; background: var(--ink); color: #D1D5DB; font-size: 13px; }
.foot b { color: #fff; }
.foot p + p { margin-top: 8px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 14px; margin-top: 6px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: underline; text-underline-offset: 3px; }
.dock { position: sticky; bottom: 0; z-index: 5; display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: rgb(255 255 255 / .95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.dock .btn { min-height: 54px; }
.dock .btn.line { padding: 0 16px; font-size: 15px; }
.toast { position: fixed; left: 50%; bottom: 96px; z-index: 20; transform: translateX(-50%); max-width: calc(100% - 32px); width: max-content; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; }
.toast[hidden] { display: none; }

/* 없는 페이지 · 준비 중 */
.center { padding-top: 48px; text-align: center; }
.center h1 { font-size: 25px; }
.center .lead { margin-top: 10px; }
.center .btns { max-width: 320px; margin: 22px auto 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.pair.one { grid-template-columns: 1fr; }
.case.big .pair.one figure, .pair.one figure { aspect-ratio: 4 / 3; }

/* 접근성: 색 박스 위 작은 회색 글은 조금 더 진하게 (대비 4.5 이상) · 예시 표시는 어디서나 같은 색 */
.note, .stat, .facts, .count, .case, .empty, .reply, .row, .job-card, .agree, .steps li, .msg.info, .cond, .kv { --muted: #565E6B; }
.ex { color: #5A4200 !important; font-size: 11.5px !important; font-weight: 800 !important; }
.gu span.off { color: var(--muted); }

/* 고정 바: 전화하기 + 카톡 상담하기 (카카오 노랑 · 글자 검정 85%) · 넓은 화면에선 번호도 */
.btn.kakao { background: #FEE500; color: #191919; padding: 0 16px; font-size: 15px; }
.btn.kakao:hover { background: #F5DC00; }
.dock .num { display: none; }
@media (min-width: 440px) { .dock .btn.call .num { display: inline; font-size: 14px; font-weight: 600; opacity: .85; } }
