/* =========================================================
   우리동네 국·공유재산을 한눈에 — 기획 랜딩 페이지
   디자인: 공간정보 플랫폼형
   소유 구분 색: 국유 초록 / 시유 노랑 / 구유 파랑, 활용 가능은 빗금
   반응형 기준: 960px(태블릿) / 640px(모바일)
   ========================================================= */

:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #f8fafb;
  --ink: #0f2233;
  --ink-soft: #4b5b6b;
  --ink-mute: #7a8896;
  --line: #dde3e9;
  --line-strong: #c9d2db;

  --navy: #12365a;
  --navy-deep: #0c2742;
  --navy-tint: #e6edf4;

  --kuk: #1e7f55;        /* 국유 */
  --kuk-mid: #2e9d68;
  --kuk-tint: #cfe8da;
  --si: #b58600;         /* 시유 */
  --si-mid: #f0b429;
  --si-tint: #fbe8a6;
  --si-text: #6f5200;
  --gu: #2f6fb0;         /* 구유 */
  --gu-mid: #3b7cc9;
  --gu-tint: #d3e3f4;

  --hatch-line: rgba(15, 34, 51, 0.6);
  --hatch: repeating-linear-gradient(45deg, var(--hatch-line) 0 1.5px, transparent 1.5px 5px);

  --map-base: #eef1f4;
  --map-parcel: #fbfcfd;
  --map-line: #9aa7b4;

  --font: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --r-lg: 12px;
  --r-md: 8px;
  --r-sm: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--surface);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }
button, input { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

:focus-visible { outline: 3px solid var(--gu); outline-offset: 2px; border-radius: var(--r-sm); }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 30;
  background: var(--navy); color: #fff; padding: 8px 14px; border-radius: var(--r-md);
}
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 상단 바 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-mark rect { fill: var(--navy); }
.brand-mark path { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 0.9375rem; font-weight: 700; }
.brand-text small { font-size: 0.75rem; color: var(--ink-mute); }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a:not(.btn) {
  color: var(--ink-soft); text-decoration: none; font-size: 0.9375rem; font-weight: 500;
  padding: 8px 12px; border-radius: var(--r-md);
}
.topnav a:not(.btn):hover { color: var(--navy); background: var(--navy-tint); }
.topnav .btn { margin-left: 8px; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-md);
  font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 0.875rem; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-outline { background: var(--surface); color: var(--navy); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--navy); }

/* ---------- 1. 첫 화면 ---------- */
.hero {
  padding-block: clamp(40px, 6vw, 80px);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(18, 54, 90, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 54, 90, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}
/* 첫 화면 뒤로 천천히 흐르는 수채화 색 */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 46% at 18% 28%, rgba(127, 196, 216, 0.30), transparent 70%),
    radial-gradient(34% 42% at 82% 18%, rgba(169, 200, 240, 0.34), transparent 70%),
    radial-gradient(42% 48% at 64% 88%, rgba(181, 184, 238, 0.26), transparent 70%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: wash-drift 26s ease-in-out infinite alternate; }
}
@keyframes wash-drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to { transform: translate3d(3%, 3%, 0) scale(1.08); }
}

.slogan {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9375rem; font-weight: 600; color: var(--kuk); margin-bottom: 18px;
}
.slogan::before { content: ""; width: 24px; height: 2px; background: var(--kuk); }
.hero h1 {
  font-size: clamp(2.125rem, 3.7vw, 3.25rem);
  line-height: 1.22; letter-spacing: -0.035em; font-weight: 700; color: var(--navy-deep);
}
.hero h1 span { display: block; }
.lede { margin-top: 22px; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); font-weight: 500; line-height: 1.6; max-width: 30em; text-wrap: balance; }
.lede-sub { margin-top: 10px; color: var(--ink-soft); max-width: 34em; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.hero-meta { margin: 32px 0 0; display: grid; border-top: 1px solid var(--line-strong); max-width: 30rem; }
.hero-meta div { display: grid; grid-template-columns: 3.5em minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.hero-meta dt { font-weight: 700; color: var(--navy); }
.hero-meta dd { margin: 0; color: var(--ink-soft); }

/* GIS 앱 창 */
.gis {
  margin: 0; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--r-lg); overflow: hidden;
}
.gis-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface);
}
.gis-title { font-weight: 700; font-size: 0.9375rem; color: var(--navy-deep); }
.gis-search {
  display: inline-flex; align-items: center; gap: 8px; min-width: 190px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface-2); color: var(--ink-mute); font-size: 0.8125rem;
}
.gis-search svg { width: 14px; height: 14px; fill: none; stroke: var(--ink-mute); stroke-width: 1.6; stroke-linecap: round; }
.gis-body { display: grid; grid-template-columns: 148px minmax(0, 1fr); }

.gis-layers { margin: 0; padding: 14px 12px; border: 0; border-right: 1px solid var(--line); background: var(--surface-2); min-width: 0; }
.gis-layers legend { float: left; width: 100%; padding: 0; margin-bottom: 8px; font-size: 0.75rem; font-weight: 700; color: var(--ink-mute); }
.gis-layers label {
  display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-radius: var(--r-sm);
  font-size: 0.8125rem; font-weight: 500; cursor: pointer; clear: both;
}
.gis-layers label:hover { background: var(--navy-tint); }
.gis-layers input { width: 15px; height: 15px; margin: 0; accent-color: var(--navy); flex: none; }
.lyr { width: 14px; height: 11px; border-radius: 2px; flex: none; }
.lyr-dong { border: 1.5px solid var(--navy); background: var(--map-parcel); }
.lyr-kuk { background: var(--kuk-mid); border: 1px solid var(--kuk); }
.lyr-si { background: var(--si-mid); border: 1px solid var(--si); }
.lyr-gu { background: var(--gu-mid); border: 1px solid var(--gu); }
.lyr-use { background: var(--hatch), #fff; border: 1px solid var(--ink-soft); }
.lyr-route { height: 0; border-top: 2px dashed var(--navy); }

.gis-map { position: relative; height: clamp(460px, 64vh, 620px); background: var(--map-base); overflow: hidden; }
.gis-svg { display: block; width: 100%; height: 100%; }
.gis-hud {
  position: absolute; left: 12px; top: 12px;
  padding: 8px 12px; border-radius: var(--r-md);
  background: rgba(12, 39, 66, 0.92); color: #fff; min-width: 172px;
}
.gis-hud-head { display: flex; align-items: center; gap: 7px; font-size: 0.75rem; font-weight: 700; line-height: 1.4; }
.gis-rec { width: 7px; height: 7px; border-radius: 50%; background: #ff5a5f; }
.gis-hud-meta { margin-left: auto; padding-left: 10px; font-weight: 500; color: #9fb4c8; }
.gis-hud-status { margin-top: 2px; font-size: 0.8125rem; font-weight: 500; color: #dce7f1; line-height: 1.4; }
.gis-zoom {
  position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); overflow: hidden;
}
.gis-zoom button {
  width: 34px; height: 34px; padding: 0; border: 0; background: var(--surface); cursor: pointer;
  font-size: 1.125rem; font-weight: 600; line-height: 1; color: var(--ink-soft);
}
.gis-zoom button + button { border-top: 1px solid var(--line); }
.gis-zoom button:hover { color: var(--navy); }
.gis-zoom button[aria-pressed="true"] { color: var(--navy); background: var(--navy-tint); }
.gis-north { position: absolute; right: 16px; bottom: 12px; width: 20px; }
.gis-north svg { display: block; width: 20px; height: 28px; }
.gis-north path { fill: var(--navy); }
.gis-north text { fill: var(--navy); font-size: 8px; font-weight: 700; text-anchor: middle; }
.gis-status {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px;
  padding: 8px 14px; border-top: 1px solid var(--line); background: var(--surface);
  font-size: 0.75rem; color: var(--ink-mute);
}
.gis-sample { margin-left: auto; font-weight: 700; color: var(--navy); background: var(--navy-tint); padding: 1px 8px; border-radius: var(--r-sm); }

/* 첫 화면 지도: 행정동 지도와 필지 표시 */
.hm-base { fill: var(--map-base); }
/* 수채화 그라데이션 위에 흰 행정동 경계선 */
.hm-wash { opacity: 0.72; }
#hero-svg .dong { fill: none; stroke: #fff; stroke-width: 3; stroke-linejoin: round; transition: stroke-opacity .2s; }
#hero-svg .outline { fill: none; stroke: var(--navy); stroke-width: 4; stroke-linejoin: round; }
#hero-svg .name {
  font-family: var(--font); font-size: 20px; font-weight: 600; fill: var(--ink-soft);
  text-anchor: middle; dominant-baseline: central;
  paint-order: stroke; stroke: var(--map-parcel); stroke-width: 4px; stroke-linejoin: round;
}
#hero-svg .neighbor { font-family: var(--font); font-size: 30px; font-weight: 700; fill: #aab4be; text-anchor: middle; dominant-baseline: central; }
#hm-labels { transition: opacity .2s; }
.hm-lot-body { stroke: #fff; stroke-width: 2; }
.hm-lot-kuk .hm-lot-body { fill: var(--kuk-mid); }
.hm-lot-si .hm-lot-body { fill: var(--si-mid); }
.hm-lot-gu .hm-lot-body { fill: var(--gu-mid); }
.hm-hatch { pointer-events: none; }
.hm-landmark rect { fill: #d4dce4; stroke: var(--navy); stroke-width: 1.5; }
.hm-landmark path { stroke: var(--navy); stroke-width: 2; }
.hm-label { fill: var(--navy-deep); font-size: 15px; font-weight: 700; text-anchor: middle; paint-order: stroke; stroke: var(--map-parcel); stroke-width: 4px; }
.hm-route { fill: none; stroke: var(--navy); stroke-width: 2; stroke-dasharray: 7 6; opacity: 0.6; transition: opacity .2s; }
.hm-marker circle { fill: var(--navy); stroke: #fff; stroke-width: 2; }
.hm-marker text { fill: #fff; font-size: 12px; font-weight: 700; text-anchor: middle; dominant-baseline: central; }

/* 레이어 켜고 끄기 */
.hide-dong .dong { stroke-opacity: 0.15; }
.hide-dong #hm-labels { opacity: 0; }
.hide-kuk .hm-lot-kuk,
.hide-si .hm-lot-si,
.hide-gu .hm-lot-gu,
.hide-use .hm-hatch { display: none; }
.hide-route .hm-route { opacity: 0; }

/* 드론 조사 */
.hm-drone-shadow { fill: rgba(15, 34, 51, 0.16); stroke: rgba(15, 34, 51, 0.16); }
.hm-drone .hm-arm { stroke: var(--navy-deep); stroke-width: 4; stroke-linecap: round; }
.hm-drone .hm-rotor { fill: rgba(255, 255, 255, 0.8); stroke: var(--navy-deep); stroke-width: 1.2; }
.hm-drone .hm-prop { stroke: var(--navy-deep); stroke-width: 2; stroke-linecap: round; }
.hm-drone .hm-body { fill: var(--navy-deep); }
.hm-drone .hm-cam { fill: #6fb1e8; }
.hm-drone .hm-led { fill: #3ddc84; }
.hm-scan { opacity: 0; transition: opacity .3s; }
.hm-scan.is-on { opacity: 1; }
.hm-scan-area { fill: rgba(18, 54, 90, 0.1); }
.hm-scan-frame { fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: square; }
.hm-scan-pulse { fill: none; stroke: var(--navy); stroke-width: 2; opacity: 0; }
.hm-scan-line { fill: var(--navy); opacity: 0.6; }
.hm-chip { opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s; }
.hm-done.is-on .hm-chip { opacity: 1; transform: none; }
.hm-chip rect { fill: #fff; stroke: var(--line-strong); stroke-width: 1; }
.hm-chip circle { fill: var(--kuk); }
.hm-chip path { fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hm-chip text { fill: var(--ink); font-size: 11px; font-weight: 600; dominant-baseline: central; }

@media (prefers-reduced-motion: no-preference) {
  .hm-prop { transform-box: fill-box; transform-origin: center; animation: spin .16s linear infinite; }
  .hm-led, .gis-rec { animation: blink 1.2s ease-in-out infinite; }
  .hm-scan.is-on .hm-scan-pulse { transform-box: fill-box; transform-origin: center; animation: pulse 1.1s ease-out infinite; }
  .hm-scan.is-on .hm-scan-line { animation: sweep 1.1s ease-in-out infinite alternate; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0.3; } }
@keyframes pulse { from { transform: scale(.2); opacity: .9; } to { transform: scale(1); opacity: 0; } }
@keyframes sweep { from { transform: translateY(-28px); } to { transform: translateY(28px); } }

/* ---------- 공통 섹션 ---------- */
.section { padding-block: clamp(56px, 7.5vw, 96px); }
.problem, .demo, .effects { background: var(--surface); }
.features, .flow, .roadmap { background: var(--bg); border-block: 1px solid var(--line); }
.section-head { max-width: 42rem; margin-bottom: clamp(28px, 3.5vw, 40px); }
.section-head h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); line-height: 1.3; letter-spacing: -0.025em; color: var(--navy-deep); }
.section-head p { margin-top: 10px; color: var(--ink-soft); font-size: 1.0625rem; }
h3 { font-size: 1.125rem; line-height: 1.45; letter-spacing: -0.01em; }

.icon {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: var(--r-md); background: var(--navy-tint); color: var(--navy);
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 2. 문제 ---------- */
.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.pains li { padding: clamp(22px, 2.6vw, 30px); background: var(--surface); }
.pains li + li { border-left: 1px solid var(--line); }
.pains h3 { margin-top: 16px; }
.pains p { margin-top: 6px; color: var(--ink-soft); font-size: 0.9375rem; }

/* ---------- 3. 기능 ---------- */
.sheets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 20px); }
.sheet {
  display: flex; flex-direction: column;
  padding: clamp(22px, 2.6vw, 28px); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
}
.feature-head { display: flex; align-items: center; gap: 12px; }
.sheet h3 { font-size: 1.1875rem; }
.sheet > p { margin-top: 12px; color: var(--ink-soft); font-size: 0.9375rem; }

.mini-facts, .mini-docs, .mini-list, .mini-drawings { margin-top: 18px; }
.mini-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.mini-facts div { padding: 8px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mini-facts div:first-child { grid-column: span 2; }
.mini-facts div:last-child { grid-column: 1 / -1; border-bottom: 0; }
.mini-facts dt { font-size: 0.75rem; color: var(--ink-mute); }
.mini-facts dd { margin: 0; font-weight: 600; font-size: 0.9375rem; }

.mini-docs { display: grid; gap: 8px; }
.mini-docs li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md);
  font-weight: 500; font-size: 0.9375rem;
}
.mini-docs li::after { content: "온라인 제출"; font-size: 0.75rem; font-weight: 600; color: var(--kuk); }

.mini-list { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.mini-list li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-weight: 600; font-size: 0.9375rem; background: var(--surface-2); }
.mini-list li + li { border-top: 1px solid var(--line); }
.mini-list li span:last-child { margin-left: auto; font-weight: 400; color: var(--ink-soft); font-size: 0.875rem; }
.dot { width: 14px; height: 11px; border-radius: 2px; flex: none; background: var(--hatch), var(--kuk-mid); border: 1px solid var(--kuk); }

.mini-drawings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mini-drawings figure { margin: 0; }
.mini-drawings svg { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); }
.mini-drawings figcaption { font-size: 0.8125rem; color: var(--ink-soft); margin-top: 6px; text-align: center; }
.md-lines path { fill: none; stroke: var(--ink-soft); stroke-width: 1; }
.md-target { fill: var(--navy-tint); stroke: var(--navy); stroke-width: 1.8; }
.mini-drawings text { font-size: 10px; font-weight: 700; fill: var(--ink); text-anchor: middle; }
.md-road { fill: var(--map-base); }
.md-blocks path { fill: var(--surface-2); stroke: var(--line-strong); }
.md-pin { fill: var(--navy); stroke: #fff; stroke-width: 1.5; }
.md-cur-target { fill: none; stroke: #ffd84d; stroke-width: 2; stroke-dasharray: 4 3; }

/* ---------- 4. 데모 ---------- */
.demo-board { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(14px, 2vw, 24px); align-items: start; }
.demo-map-panel { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 961px) { .demo-map-panel { position: sticky; top: 84px; } }
.demo-map-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
}
.sample-badge { font-size: 0.75rem; font-weight: 700; color: var(--navy); background: var(--navy-tint); padding: 2px 8px; border-radius: var(--r-sm); }
.demo-map { display: block; width: 100%; height: auto; background: var(--map-base); touch-action: manipulation; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.875rem; color: var(--ink-soft); }
.legend li { display: flex; align-items: center; gap: 7px; }
.legend-sm { font-size: 0.8125rem; gap: 4px 14px; }
.swatch { width: 14px; height: 12px; border-radius: 2px; }
.swatch-kuk { background: var(--kuk-tint); border: 1px solid var(--kuk); }
.swatch-si { background: var(--si-tint); border: 1px solid var(--si); }
.swatch-gu { background: var(--gu-tint); border: 1px solid var(--gu); }
.swatch-use { background: var(--hatch), #fff; border: 1px solid var(--ink-soft); }

.demo-map .road { fill: #fff; }
.demo-map .road-name { fill: var(--ink-mute); font-size: 11px; font-weight: 500; }
.demo-map .lot-private { fill: var(--map-parcel); stroke: var(--map-line); stroke-width: 0.8; }
.demo-map .parcel { stroke-width: 1.4; cursor: pointer; transition: fill .15s; }
.demo-map .parcel-kuk { fill: var(--kuk-tint); stroke: var(--kuk); }
.demo-map .parcel-si { fill: var(--si-tint); stroke: var(--si); }
.demo-map .parcel-gu { fill: var(--gu-tint); stroke: var(--gu); }
.demo-map .parcel-kuk:hover { fill: #b5dcc6; }
.demo-map .parcel-si:hover { fill: #f7da7c; }
.demo-map .parcel-gu:hover { fill: #bcd4ee; }
.demo-map .parcel:focus { outline: none; }
.demo-map .parcel:focus-visible { stroke: var(--navy); stroke-width: 4; }
.demo-map .parcel.is-selected { stroke: var(--navy); stroke-width: 4; }
.demo-map .parcel-hatch { pointer-events: none; }
.demo-map .parcel-no {
  font-size: 12px; font-weight: 700; fill: var(--ink); text-anchor: middle; pointer-events: none;
  paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round;
}

.demo-card {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  padding: clamp(18px, 2.4vw, 24px);
}
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.owner-chip, .status-chip { font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: var(--r-sm); }
.owner-kuk { background: var(--kuk); color: #fff; }
.owner-si { background: var(--si-mid); color: var(--si-text); }
.owner-gu { background: var(--gu); color: #fff; }
.status-chip { background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--ink-soft); }
.status-available { background: var(--hatch), #fff; border-color: var(--ink-soft); color: var(--ink); text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.demo-card h3 { font-size: 1.5rem; margin-top: 10px; letter-spacing: -0.02em; color: var(--navy-deep); }

.card-facts { margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.card-facts div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.card-facts div:nth-child(odd) { padding-right: 12px; }
.card-facts .wide { grid-column: 1 / -1; }
.card-facts dt { font-size: 0.75rem; color: var(--ink-mute); }
.card-facts dd { margin: 2px 0 0; font-weight: 500; }

.zoning { margin-top: 16px; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); }
.zoning-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.zoning-title { font-weight: 700; font-size: 0.9375rem; color: var(--navy-deep); }
.zoning-badge { font-size: 0.6875rem; font-weight: 700; color: var(--navy); background: var(--navy-tint); padding: 1px 7px; border-radius: var(--r-sm); }
.zoning-list { margin: 0; display: grid; gap: 6px; }
.zoning-list div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 8px; font-size: 0.9375rem; line-height: 1.5; }
.zoning-list dt { color: var(--ink-mute); }
.zoning-list dd { margin: 0; font-weight: 500; }
.eum-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; min-height: 38px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface);
  color: var(--navy); font-weight: 600; font-size: 0.875rem; text-decoration: none;
}
.eum-link:hover { border-color: var(--navy); }
.eum-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.zoning-hint { margin-top: 8px; font-size: 0.8125rem; color: var(--ink-mute); }

.drawing { margin-top: 18px; }
.drawing-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 8px; }
.drawing-title { font-weight: 700; font-size: 0.9375rem; color: var(--navy-deep); }
.drawing-note { margin-top: 8px; font-size: 0.8125rem; color: var(--ink-mute); text-align: center; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); }
.seg button {
  min-height: 32px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; cursor: pointer;
  font-size: 0.8125rem; font-weight: 500; color: var(--ink-soft);
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--navy); font-weight: 700; box-shadow: 0 0 0 1px var(--line-strong); }
.drawing-svg { display: block; width: 100%; max-width: 480px; margin-inline: auto; height: auto; aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); }
.drawing-svg .dw-lot { fill: none; stroke: var(--ink-soft); stroke-width: 1; vector-effect: non-scaling-stroke; }
.drawing-svg .dw-target { fill: var(--navy-tint); stroke: var(--navy); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.drawing-svg .dw-label { font-weight: 700; fill: var(--ink); text-anchor: middle; }
.drawing-svg .dw-sub { fill: var(--ink-soft); text-anchor: middle; }
.drawing-svg .dw-road { fill: var(--map-base); }
.drawing-svg .dw-block { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.drawing-svg .dw-pin { fill: var(--navy); stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.drawing-svg .dw-north { fill: none; stroke: var(--ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.drawing-svg .dw-north-n { fill: var(--ink); font-weight: 700; text-anchor: middle; }
.drawing-svg .cur-lane { stroke: #e8e3cf; stroke-width: 1.2; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.drawing-svg .cur-lot { stroke: rgba(255, 255, 255, 0.3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.drawing-svg .cur-ridge { stroke: rgba(255, 255, 255, 0.45); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.drawing-svg .cur-target { fill: none; stroke: #ffd84d; stroke-width: 3; stroke-dasharray: 8 5; vector-effect: non-scaling-stroke; }
.drawing-svg .cur-label { fill: #fff; font-weight: 700; text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: rgba(15, 34, 51, 0.85); stroke-linejoin: round; }
.drawing-svg .dw-north.on-photo { stroke: #fff; }
.drawing-svg .dw-north-n.on-photo { fill: #fff; }

.photos { margin-top: 18px; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.photo-grid figure { margin: 0; }
.photo-grid a { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.photo-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-grid figcaption { display: flex; flex-direction: column; margin-top: 6px; font-size: 0.8125rem; font-weight: 700; line-height: 1.4; }
.photo-grid figcaption small { font-size: 0.75rem; font-weight: 400; color: var(--ink-mute); }

.docs { margin-top: 18px; }
.docs-title { font-weight: 700; font-size: 0.9375rem; margin-bottom: 8px; color: var(--navy-deep); }
.docs-list { display: grid; gap: 8px; }
.doc-btn {
  width: 100%; min-height: 46px; padding: 8px 14px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); font-weight: 500;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  transition: background-color .15s, border-color .15s, color .15s;
}
.doc-btn small { font-size: 0.75rem; font-weight: 600; color: var(--navy); }
.doc-btn:hover:not(:disabled) { background: var(--navy); border-color: var(--navy); color: #fff; }
.doc-btn:hover:not(:disabled) small { color: #fff; }
.doc-btn:disabled { cursor: not-allowed; color: var(--ink-mute); border-color: var(--line); background: var(--surface-2); }
.doc-btn:disabled small { color: var(--ink-mute); font-weight: 400; }
.docs-hint { margin-top: 10px; font-size: 0.875rem; color: var(--ink-soft); }

.demo-toast { margin-top: 12px; padding: 12px 16px; border-radius: var(--r-md); background: var(--navy-deep); color: #fff; font-size: 0.9375rem; }

/* ---------- 5. 사용자 흐름 ---------- */
.tabs { display: inline-flex; padding: 4px; gap: 4px; margin-bottom: 28px; max-width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.tabs button { min-height: 42px; padding: 0 20px; border: 0; border-radius: var(--r-md); background: transparent; cursor: pointer; font-weight: 600; color: var(--ink-soft); }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 14px;
  border-radius: 50%; background: var(--navy); color: #fff; font-size: 0.875rem; font-weight: 700;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 34px; right: -17px; width: 17px; border-top: 1px solid var(--line-strong);
}
.steps p { margin-top: 6px; color: var(--ink-soft); font-size: 0.9375rem; }

/* ---------- 6. 기대 효과 ---------- */
.goals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 20px); }
.goals li { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); border-top: 3px solid var(--kuk); }
.goal-tag { display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--kuk); background: var(--kuk-tint); border-radius: var(--r-sm); padding: 1px 8px; margin-bottom: 12px; }
.goals p { margin-top: 8px; color: var(--ink-soft); font-size: 0.9375rem; }

/* ---------- 7. 개발 계획 ---------- */
.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.phases li { position: relative; padding: 24px; }
.phases li + li { border-left: 1px solid var(--line); }
.phases li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--line-strong); }
.phases li:first-child::before { background: var(--kuk); }
.phase-no { display: inline-block; margin-bottom: 10px; font-weight: 700; font-size: 0.8125rem; color: var(--navy); background: var(--navy-tint); padding: 2px 10px; border-radius: var(--r-sm); }
.phases li:first-child .phase-no { color: #fff; background: var(--kuk); }
.phases p { margin-top: 6px; color: var(--ink-soft); font-size: 0.9375rem; }

.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 20px); margin-top: clamp(14px, 2vw, 20px); }
.plan-box { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.plan-box h3 { color: var(--navy-deep); }
.plan-box ul { margin-top: 10px; display: grid; gap: 6px; }
.plan-box li { position: relative; padding-left: 16px; color: var(--ink-soft); font-size: 0.9375rem; }
.plan-box li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 6px; height: 6px; border-radius: 1px; background: var(--navy); }

/* ---------- 8. 하단 ---------- */
.footer { background: var(--navy-deep); color: #c9d6e2; padding-block: 44px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-name { font-weight: 700; color: #fff; font-size: 1.0625rem; }
.footer-slogan { color: #9fb4c8; margin-top: 2px; font-size: 0.9375rem; }
.footer-meta { max-width: 34rem; font-size: 0.9375rem; }
.footer-label { display: inline-block; margin-right: 10px; color: #9fb4c8; }
.notice { margin-top: 8px; font-size: 0.8125rem; color: #9fb4c8; }

/* =========================================================
   태블릿: 960px 이하
   ========================================================= */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-meta { max-width: none; }
  .pains { grid-template-columns: 1fr; }
  .pains li + li { border-left: 0; border-top: 1px solid var(--line); }
  .demo-board { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li::after { display: none; }
  .goals { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; }
  .phases li + li { border-left: 0; border-top: 1px solid var(--line); }
}

/* =========================================================
   모바일: 640px 이하
   ========================================================= */
@media (max-width: 640px) {
  .brand-text small { display: none; }
  .topnav a:not(.btn) { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .gis-search { display: none; }
  .gis-body { grid-template-columns: 1fr; }
  .gis-layers { display: flex; flex-wrap: wrap; gap: 2px 10px; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .gis-layers legend { float: none; width: auto; margin: 0 4px 0 0; padding-top: 6px; }
  .gis-layers label { clear: none; padding: 4px 2px; }
  .gis-map { height: 440px; }
  .gis-hud { left: 8px; top: 8px; min-width: 0; padding: 6px 10px; }
  .gis-zoom { right: 8px; top: 8px; }
  .gis-status .gis-coord { display: none; }
  .sheets { grid-template-columns: 1fr; }
  .mini-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-grid { grid-template-columns: 1fr; }
  .tabs { display: flex; width: 100%; }
  .tabs button { flex: 1; padding: 0 10px; }
  .steps { grid-template-columns: 1fr; }
  .card-facts { grid-template-columns: 1fr; }
  .card-facts div:nth-child(odd) { padding-right: 0; }
  .footer-inner { flex-direction: column; }
}
