/* A안 '앱처럼 선명하게' (2026-10-27 사장님 선택) — 흰 바탕 · 인디고 한 가지 · 둥근 카드 · Gothic A1 */
:root {
  --bg: #ffffff;
  --soft: #f3f4f8;
  --card: #ffffff;
  --line: #e5e7ef;
  --ink: #111827;
  --ink-2: #5b6275;
  --pri: #3d3ae8;
  --pri-ink: #2f2cc4;
  --pri-soft: #ecebff;
  --bar-off: #c9ccda;
  --r-lg: 24px;
  --r-md: 18px;
  --font: 'Gothic A1', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --wrap: 40rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--font); word-break: keep-all; overflow-wrap: anywhere; padding-bottom: 6rem; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--pri); outline-offset: 2px; border-radius: 6px; }
.num { font-feature-settings: 'tnum'; }

/* 머리 */
.top { max-width: var(--wrap); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: .85rem 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.06rem; letter-spacing: -.02em; text-decoration: none; }
.brand i { width: 1.75rem; height: 1.75rem; border-radius: .45rem; background: var(--pri) url(/assets/favicon.svg) center / cover no-repeat; }  /* 파비콘과 같은 스카이차 그림 */
.pill { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: .86rem; padding: .5rem .95rem; border-radius: 999px; background: var(--pri-soft); color: var(--pri); text-decoration: none; }

main { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.crumb { font-size: .8rem; font-weight: 500; color: var(--ink-2); }
.crumb a { color: var(--ink-2); text-decoration: none; }
.crumb span { margin: 0 .3rem; }

/* 첫 화면 */
.hero { display: grid; gap: .9rem; padding: .25rem 0 1.6rem; }
.hero-media img { width: 100%; height: 14.5rem; object-fit: cover; border-radius: var(--r-lg); background: var(--soft); }
@media (min-width: 40rem) { .hero-media img { height: 20rem; } }
h1 { font-weight: 900; font-size: clamp(2.1rem, 9vw, 2.8rem); line-height: 1.15; letter-spacing: -.04em; }
h1 small { display: block; font-size: .95rem; font-weight: 500; letter-spacing: 0; color: var(--ink-2); margin-top: .45rem; }
.lead { color: var(--ink-2); line-height: 1.6; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { font-size: .86rem; font-weight: 500; padding: .55rem .85rem; border-radius: 999px; background: var(--soft); color: var(--ink-2); }
.chips li b { color: var(--ink); font-weight: 700; margin-right: .25rem; }
.cta { display: grid; gap: .6rem; margin-top: .3rem; }
.btn { display: flex; justify-content: center; align-items: center; gap: .5rem; padding: 1.05rem; border-radius: 16px; font-weight: 800; font-size: 1.05rem; text-decoration: none; }
.btn.pri { background: var(--pri); color: #fff; }
.btn.pri:hover { background: var(--pri-ink); }
.btn.sec { background: var(--pri-soft); color: var(--pri); font-weight: 700; font-size: 1rem; }

/* 구역 — 본문은 main 바로 아래 h2로 나뉜다 */
main > h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; margin: 2rem 0 .8rem; }
main > p { margin: .6rem 0; }
main > .note { margin-top: .6rem; }
.index { display: flex; flex-wrap: wrap; gap: .45rem; }
.index li a { display: inline-block; padding: .5rem .8rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .86rem; text-decoration: none; }
.index li a:hover { border-color: var(--pri); color: var(--pri); }
.index .k { font-size: .72rem; color: var(--ink-2); margin-left: .25rem; }
.mapcard .index { margin-top: .2rem; }
main > h2 + .index, main > .index { margin-bottom: .4rem; }
.reach { margin-top: .4rem; }
/* 구역(묶음 상자) */
.block { padding: 0 0 1.9rem; }
.block > h2, .card > h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .8rem; }
.card { background: var(--soft); border-radius: var(--r-lg); padding: 1.25rem; display: grid; gap: .9rem; }
.card > h2 { margin: 0; }
.note { font-size: .8rem; color: var(--ink-2); line-height: 1.55; }
.block > p + p { margin-top: .5rem; }

/* 높이 맞춤 */
.reach form { display: grid; gap: .7rem; }
.reach fieldset { border: 0; padding: 0; margin: 0; }
.reach legend { font-size: .82rem; font-weight: 700; color: var(--ink-2); padding: 0; margin-bottom: .45rem; }
.seg { display: flex; flex-wrap: wrap; gap: .4rem; }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-block; padding: .6rem .9rem; border-radius: 999px; background: #fff; font-weight: 500; font-size: .88rem; color: var(--ink-2); }
.seg input:checked + span { background: var(--pri); color: #fff; font-weight: 700; }
.seg input:focus-visible + span { outline: 3px solid var(--pri); outline-offset: 2px; }
.result { background: #fff; border-radius: var(--r-md); padding: 1.1rem; display: grid; gap: .2rem; }
.result .k { font-size: .8rem; color: var(--ink-2); }
.result .v { font-size: 1rem; font-weight: 700; }
.result .v b { font-size: 2.1rem; font-weight: 900; color: var(--pri); letter-spacing: -.03em; margin-right: .35rem; }
.result .d { font-size: .88rem; color: var(--ink-2); }
.bars { display: grid; gap: .5rem; }
.bar { display: grid; grid-template-columns: 3rem 1fr 3.6rem; align-items: center; gap: .6rem; font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.bar i { height: .62rem; border-radius: 9px; background: #fff; position: relative; overflow: hidden; }
.bar i::after { content: ''; position: absolute; inset: 0; width: var(--w); background: var(--bar-off); border-radius: 9px; }
.bar.on { color: var(--pri); }
.bar.on i::after { background: var(--pri); }
.bar em { font-style: normal; text-align: right; }
details.rule { background: #fff; border-radius: var(--r-md); padding: .8rem 1rem; }
details.rule summary { cursor: pointer; font-size: .86rem; font-weight: 700; }
.mini { width: 100%; border-collapse: collapse; font-size: .84rem; margin-top: .6rem; }
.mini th, .mini td { text-align: left; padding: .4rem .3rem .4rem 0; border-bottom: 1px solid var(--line); }
.mini th { font-weight: 500; color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) { .bar i::after, .seg span { transition: width .25s, background .2s, color .2s; } }

/* 장비 카드 */
.equip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.equip a { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: .75rem; display: grid; gap: .2rem; text-decoration: none; }
.equip a:hover { border-color: var(--pri); }
.equip img { width: 100%; height: 3.4rem; object-fit: contain; }
.equip h3 { font-size: .95rem; font-weight: 800; margin-top: .2rem; }
.equip .h { font-size: 1.12rem; font-weight: 900; color: var(--pri); letter-spacing: -.02em; }
.equip .f { font-size: .74rem; color: var(--ink-2); line-height: 1.4; }

/* 사진 */
.photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
@media (min-width: 40rem) { .photos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.photos img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); background: var(--soft); }
.photos figcaption { font-size: .74rem; color: var(--ink-2); margin-top: .35rem; }

/* 지도 */
/* 지도(10/27 사장님 "지도 허접" → 동네 경계·강조·이름표·위치 표시·축척) */
.mapcard svg { width: 100%; height: auto; border-radius: 18px; background: #fbfbff; box-shadow: inset 0 0 0 1px var(--line); }
.map2 pattern circle { fill: #dfe1f3; }
.map2 .out { fill: #fff; stroke: #b9bce9; stroke-width: 5; stroke-linejoin: round; }
.map2 .c { fill: #eef0fb; stroke: #fff; stroke-width: 3; stroke-linejoin: round; transition: fill .15s; }
.map2 .c.hl { fill: #d6d7fb; }
.map2 a:hover .c, .map2 a:focus-visible .c { fill: #c3c5fa; }
.map2 .me { fill: var(--pri); stroke: #fff; stroke-width: 4; stroke-linejoin: round; }
.map2 .lb { font: 700 38px var(--font); fill: #3b3f5c; text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: #fff; stroke-width: 9px; stroke-linejoin: round; pointer-events: none; }
.map2 .pin path { fill: #14152b; stroke: #fff; stroke-width: 5; }
.map2 .pin circle { fill: #fff; }
.map2 .tag rect { fill: #14152b; }
.map2 .tag text { font: 800 32px var(--font); fill: #fff; text-anchor: middle; dominant-baseline: central; }
.map2 .scale rect { fill: #14152b; }
.map2 .scale text { font: 700 28px var(--font); fill: #14152b; }
.map2 .north circle { fill: #fff; stroke: #d9dbee; stroke-width: 2; }
.map2 .north path { fill: var(--pri); }
.mapcard .k { font-size: .8rem; color: var(--ink-2); }
.mapcard dd { margin: .2rem 0 0; font-size: .92rem; }
.mapcard dt { font-size: .8rem; color: var(--ink-2); margin-top: .5rem; }
.links { display: flex; flex-wrap: wrap; gap: .45rem; }
.links a { display: inline-block; padding: .5rem .8rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .86rem; text-decoration: none; }
.links a:hover { border-color: var(--pri); color: var(--pri); }
.links a::after { content: ' ›'; color: var(--ink-2); }
.links .k { font-weight: 500; color: var(--ink-2); font-size: .74rem; margin-left: .2rem; }

/* 확인 항목·질문 */
.checks { display: grid; gap: .55rem; }
.checks li { position: relative; padding: .85rem 1rem .85rem 2.6rem; background: var(--soft); border-radius: var(--r-md); font-size: .94rem; }
.checks li::before { content: ''; position: absolute; left: 1rem; top: 1.05rem; width: .95rem; height: .95rem; border-radius: 50%; background: var(--pri); box-shadow: inset 0 0 0 .3rem var(--pri-soft); }
.faq { display: grid; gap: .55rem; margin: 0; }
.faq div { background: var(--soft); border-radius: var(--r-md); padding: .95rem 1rem; }
.faq dt { font-weight: 700; }
.faq dd { margin: .3rem 0 0; color: var(--ink-2); font-size: .94rem; }

/* 표(업체 정보·장비 비교) */
.spec { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: .7rem .4rem .7rem 0; border-bottom: 1px solid var(--line); }
.spec th { font-weight: 500; color: var(--ink-2); width: 34%; }
.fig { margin: .4rem 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: .8rem; }
.fig img { width: 100%; height: auto; }
.fig figcaption { font-size: .76rem; color: var(--ink-2); margin-top: .4rem; }
ul.plain { display: grid; gap: .35rem; padding-left: 1.1rem; list-style: disc; }

/* 아이콘 */
.ic { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* 신뢰 배지 */
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin-top: .4rem; }
@media (min-width: 40rem) { .trust { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trust li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .6rem; align-items: center; padding: .8rem .85rem; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.trust .ic { grid-row: 1 / 3; width: 2.3rem; height: 2.3rem; padding: .5rem; border-radius: 50%; background: var(--pri-soft); color: var(--pri); }
.trust b { font-size: .9rem; font-weight: 800; line-height: 1.3; }
.trust span { font-size: .74rem; color: var(--ink-2); line-height: 1.3; }

/* 작업 종류 */
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
@media (min-width: 40rem) { .works { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.works .w { display: grid; gap: .35rem; padding: 1rem; border-radius: var(--r-md); background: var(--soft); }
.works .ic { width: 2.4rem; height: 2.4rem; padding: .52rem; border-radius: 14px; background: #fff; color: var(--pri); box-shadow: 0 2px 8px rgba(61, 58, 232, .12); }
.works b { font-size: .95rem; font-weight: 800; margin-top: .25rem; }
.works span { font-size: .78rem; color: var(--ink-2); line-height: 1.45; }
.works-mini { display: flex; flex-wrap: wrap; gap: .45rem; }
.works-mini li { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .8rem .5rem .6rem; border-radius: 999px; background: var(--soft); font-size: .84rem; font-weight: 700; }
.works-mini .ic { width: 1.1rem; height: 1.1rem; color: var(--pri); }

/* 진행 순서 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; counter-reset: st; }
.steps li { counter-increment: st; display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; padding: 1rem; border: 1px solid var(--line); border-radius: var(--r-md); position: relative; }
.steps .ic { width: 2.5rem; height: 2.5rem; padding: .55rem; border-radius: 50%; background: var(--pri); color: #fff; }
.steps li::after { content: counter(st); position: absolute; top: .65rem; right: .9rem; font-weight: 900; font-size: 1.4rem; color: var(--pri-soft); }
.steps b { display: block; font-size: .98rem; font-weight: 800; }
.steps span { display: block; font-size: .84rem; color: var(--ink-2); margin-top: .15rem; line-height: 1.5; }

/* 자주 묻는 질문(네이버 관련질문 꼴) */
.qa { display: grid; gap: .55rem; }
.qa details { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.qa summary { list-style: none; cursor: pointer; padding: 1rem 2.8rem 1rem 1rem; font-weight: 800; font-size: .98rem; position: relative; line-height: 1.45; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ''; position: absolute; right: 1.1rem; top: 1.25rem; width: .55rem; height: .55rem; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); }
.qa details[open] summary::after { transform: rotate(-135deg); top: 1.45rem; }
.qa details[open] summary { color: var(--pri); }
.qa .a { padding: 0 1rem 1rem; color: var(--ink-2); font-size: .94rem; display: grid; gap: .6rem; }
.qa .a p { margin: 0; }
.qa .a p:first-child { color: var(--ink); font-weight: 600; }
.cmp { font-size: .84rem; }
.cmp thead th { font-weight: 800; color: var(--ink); background: var(--soft); padding: .55rem .5rem; }
.cmp th, .cmp td { padding: .55rem .5rem; }
.cmp tbody th { width: 22%; }
.nolink { display: inline-block; padding: .5rem .8rem; border-radius: 999px; background: var(--soft); font-size: .86rem; color: var(--ink-2); }

/* 가이드 */
.gcards { display: grid; gap: .6rem; }
@media (min-width: 40rem) { .gcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gcard { display: grid; gap: .2rem; padding: 1.1rem 1.1rem 1.1rem 1.2rem; border-radius: var(--r-md); background: var(--soft); text-decoration: none; border-left: 4px solid var(--pri); }
.gcard b { font-size: 1.02rem; font-weight: 800; }
.gcard span { font-size: .84rem; color: var(--ink-2); }
.gloss dt { color: var(--pri); }

/* 동네·산단용 3줄 장비 기준 */
.tiers { display: grid; gap: .45rem; }
.tiers li { display: grid; grid-template-columns: 5.2rem 1fr; align-items: center; padding: .75rem .9rem; border-radius: 14px; background: #fff; }
.tiers b { font-weight: 800; color: var(--pri); }
.tiers span { font-size: .9rem; color: var(--ink-2); }

/* 본문 밖 공통 안내(동네·산단 페이지) */
.side { max-width: var(--wrap); margin: 0 auto; padding: 1.2rem 1.25rem .5rem; display: grid; gap: 1rem; border-top: 1px solid var(--line); }
.side > h2 { font-size: 1.15rem; font-weight: 800; margin: .4rem 0 -.3rem; }
.side .block { padding: 0; }

/* 바닥 */
footer { background: var(--soft); margin-top: 1.5rem; }
footer .in { max-width: var(--wrap); margin: 0 auto; padding: 1.6rem 1.25rem 2rem; font-size: .78rem; color: var(--ink-2); line-height: 1.7; }
footer p { margin: .25rem 0; }
footer b { color: var(--ink); }

/* 아래 고정 바 */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; gap: .5rem; padding: .7rem 1rem calc(.9rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.dock .btn { flex: 1; padding: .95rem; }
.dock .btn.sec { flex: 0 0 6rem; }
@media (min-width: 60rem) { .dock { left: auto; right: 1.5rem; bottom: 1.5rem; width: 22rem; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 30px rgba(17, 24, 39, .12); } body { padding-bottom: 2rem; } }

/* PC(넓은 화면): 첫 화면 2단 — 왼쪽 글·버튼, 오른쪽 사진 */
@media (min-width: 60rem) {
  :root { --wrap: 66rem; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 3rem; align-items: start; padding-top: 1.2rem; }
  .hero > * { grid-column: 1; }
  .hero > .hero-media { grid-column: 2; grid-row: 1 / span 6; }
  .hero-media img { height: 27rem; }
  .hero > .trust { grid-column: 1 / -1; margin-top: 1rem; }
  .cta { grid-template-columns: 1.35fr 1fr; }
  .btn { white-space: nowrap; font-size: 1rem; }
  h1 { font-size: 3.2rem; }
  main > h2 { font-size: 1.55rem; margin-top: 2.6rem; }
  .reach .card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 2rem; }
  .reach .card > h2, .reach .card > form { grid-column: 1; }
  .reach .card > .result, .reach .card > .bars, .reach .card > details, .reach .card > .note { grid-column: 2; }
  .reach .card > .result { grid-row: 1 / span 2; }
  .photos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qa { grid-template-columns: minmax(0, 1fr); }
  .mapcard { grid-template-columns: 24rem 1fr; align-items: start; }
}

/* 작업 기록(사장님 작업 폴더 — 동네·작업·달) */
.jobs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
@media (min-width: 40rem) { .jobs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .jobs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.jobs a { display: grid; gap: .45rem; text-decoration: none; }
.jobs img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); background: var(--soft); transition: transform .2s; }
.jobs a:hover img { transform: translateY(-2px); }
.jobs span { display: grid; gap: .1rem; font-size: .86rem; line-height: 1.4; }
.jobs b { font-size: .95rem; }
.jobs i { font-style: normal; font-size: .76rem; color: var(--ink-2); }
.job { display: grid; gap: .6rem; margin-top: 1rem; }
.job .jt { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; }
.job .jt b { font-size: 1.02rem; }
.job .jt span { font-size: .78rem; color: var(--pri); font-weight: 700; background: var(--pri-soft); padding: .15rem .6rem; border-radius: 999px; }

/* 이해를 돕는 설명 그림(AI 생성 표시) */
.fig.ai { margin: .4rem 0 .2rem; }
.fig.ai img { width: 100%; height: auto; border-radius: var(--r-lg); background: var(--soft); }
.fig.ai figcaption { display: flex; flex-wrap: wrap; gap: .35rem .6rem; align-items: center; font-size: .84rem; color: var(--ink-2); margin-top: .5rem; }
.aitag { font-size: .72rem; font-weight: 700; color: var(--ink-2); background: var(--soft); border: 1px solid var(--line); padding: .1rem .5rem; border-radius: 999px; }
.works .w img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; background: #fff; }
.side .fig.ai figcaption { font-size: .78rem; }
.tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-md); }
.spec.dong { min-width: 34rem; font-size: .86rem; }
.spec.dong th[scope=row] a { font-weight: 700; }
.spec.dong th, .spec.dong td { width: auto; padding-right: .7rem; white-space: nowrap; }
main h3.sub { font-size: 1.05rem; margin: .4rem 0 .6rem; }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 50; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 12px; font-weight: 700; text-decoration: none; }
.skip:focus { left: .5rem; }
