/* =====================================================================
   BIZGIS 지오코딩 — 공유 디자인 시스템 (Apple 스타일)
   - 흰 여백, 큰 헤드라인, 프로스트(blur) 내비, 둥근 카드, 절제된 색
   - 한 곳만 고치면 모든 페이지에 반영됩니다.
   ===================================================================== */

/* NEXON Lv1 Gothic — 기존 자료와 동일한 넥슨 폰트 */
@font-face {
  font-family: "NEXON Lv1 Gothic OTF Light";
  src: url("https://www.policymap.or.kr/lib_xraymap/ex_lib/font/NEXON%20Lv1%20Gothic%20OTF%20Light.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Apple 팔레트 */
  --bg: #ffffff;
  --bg-alt: #f5f5f7;       /* 애플 섹션 회색 배경 */
  --ink: #1d1d1f;          /* 애플 본문 검정 */
  --muted: #6e6e73;        /* 애플 보조 회색 */
  --muted-2: #86868b;
  --line: #d2d2d7;         /* 애플 구분선 */
  --blue: #0071e3;         /* 애플 블루 (버튼) */
  --blue-link: #0066cc;    /* 애플 링크 블루 */
  --blue-hover: #0077ed;
  --accent: #d52b1e;       /* BIZGIS 브랜드 레드 (포인트 최소 사용) */
  --teal: #0f8375;
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1024px;
  --maxw-wide: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "NEXON Lv1 Gothic OTF Light", "Apple SD Gothic Neo",
    "Malgun Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }
p  { margin: 0; }
a  { color: var(--blue-link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ───────────── 상단 내비 (frosted) ───────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: 48px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav-inner {
  max-width: var(--maxw-wide); margin: 0 auto; height: 100%;
  padding: 0 22px;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; color: var(--ink);
  letter-spacing: -0.02em;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo .mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(150deg, #ef4133, var(--accent));
  display: grid; place-items: center;
}
.nav-logo .mark svg { width: 13px; height: 13px; }
.nav-links {
  margin-left: auto; display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
}
.nav-links a {
  color: var(--ink); font-size: 13px; opacity: 0.86;
  padding: 6px 11px; border-radius: 8px; letter-spacing: -0.01em;
}
.nav-links a:hover { opacity: 1; background: rgba(0,0,0,0.05); text-decoration: none; }
.nav-links a.active { opacity: 1; font-weight: 600; }
.nav-links a.cta {
  background: var(--blue); color: #fff; font-weight: 500;
}
.nav-links a.cta:hover { background: var(--blue-hover); }

/* 모바일 햄버거(체크박스 토글, JS 불필요) */
.nav-toggle, .nav-burger { display: none; }

/* ───────────── 레이아웃 ───────────── */
.wrap   { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.wrap-wide { max-width: var(--maxw-wide); margin: 0 auto; padding: 0 22px; }
.section { padding: 100px 0; }
.section.tight { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.center { text-align: center; }

/* 큰 섹션 헤드라인 (애플 제품 섹션 스타일) */
.eyebrow {
  font-size: 19px; font-weight: 600; color: var(--accent);
  letter-spacing: -0.01em; margin-bottom: 6px;
}
.display {
  font-size: clamp(40px, 6.4vw, 80px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.05;
}
.headline {
  font-size: clamp(32px, 4.6vw, 56px); font-weight: 700; letter-spacing: -0.03em;
}
.subhead {
  font-size: clamp(19px, 2.2vw, 28px); font-weight: 600;
  color: var(--muted); letter-spacing: -0.01em; margin-top: 12px;
}
.lead {
  font-size: clamp(17px, 1.5vw, 21px); color: var(--muted);
  margin-top: 18px; line-height: 1.45;
}
.maxr { max-width: 720px; }
.maxr.center { margin-left: auto; margin-right: auto; }

/* 본문 링크 (애플 "자세히 보기 ›") */
.txtlink {
  display: inline-flex; align-items: center; gap: 3px;
  color: var(--blue-link); font-size: clamp(16px,1.3vw,19px);
}
.txtlink::after { content: "›"; font-size: 1.15em; line-height: 1; }
.txtlink:hover { text-decoration: underline; }
.linkrow { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 22px; }

/* 버튼 (애플 pill) */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  min-height: 44px; padding: 0 22px; border-radius: 980px;
  background: var(--blue); color: #fff; font-size: 16px; font-weight: 500;
  border: 1px solid var(--blue); cursor: pointer;
  transition: background 0.18s ease;
}
.btn:hover { background: var(--blue-hover); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--blue-link); border-color: var(--line); }
.btn.ghost:hover { background: rgba(0,0,0,0.04); }
.btn.dark { background: var(--ink); border-color: var(--ink); }
.btn.dark:hover { background: #000; }
.btn svg { width: 17px; height: 17px; }
.btnrow { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }
.btnrow.left { justify-content: flex-start; }

/* ───────────── 카드 / 그리드 ───────────── */
.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
}
.card.soft { background: var(--bg-alt); border-color: transparent; }
.card .ic {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  color: #fff; margin-bottom: 18px;
}
.card .ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 22px; font-weight: 600; }
.card .kr { font-size: 14px; color: var(--muted-2); font-weight: 400; margin-top: 3px; }
.card p { color: var(--muted); font-size: 16px; margin-top: 12px; line-height: 1.5; }
.card ul { margin: 16px 0 0; padding: 0; list-style: none; }
.card li {
  position: relative; padding-left: 22px; margin-top: 9px;
  font-size: 15px; color: var(--ink);
}
.card li::before {
  content: ""; position: absolute; left: 3px; top: 9px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
}

/* 큰 둥근 패널 (애플 bento 느낌) */
.panel {
  background: var(--bg-alt); border-radius: var(--radius-lg);
  padding: 56px; overflow: hidden;
}
.panel.dark {
  background: linear-gradient(180deg, #1d1d1f, #000); color: #f5f5f7;
}
.panel.dark h2, .panel.dark h3 { color: #fff; }
.panel.dark .lead, .panel.dark p { color: #a1a1a6; }

/* 이미지 플레이스홀더 — 실제 이미지로 교체할 자리 */
.ph {
  position: relative; width: 100%;
  background:
    repeating-linear-gradient(135deg, #e8e8ed 0 14px, #eeeef2 14px 28px);
  border: 1px dashed var(--line); border-radius: var(--radius);
  display: grid; place-items: center; text-align: center;
  color: var(--muted-2); min-height: 280px; padding: 24px;
}
.ph .tag {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent);
  background: #fff; border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; display: inline-block;
}
.ph .desc { font-size: 14px; max-width: 460px; }
.ph .spec { font-size: 12px; margin-top: 6px; color: var(--muted-2); }
.ph.r43 { aspect-ratio: 4/3; min-height: 0; }
.ph.r169 { aspect-ratio: 16/9; min-height: 0; }
.ph.r11 { aspect-ratio: 1/1; min-height: 0; }

/* 숫자 지표 스트립 */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.stats .stat { padding: 10px 26px; border-left: 1px solid var(--line); }
.stats .stat:first-child { border-left: none; }
.stats .num {
  font-size: clamp(36px, 4.4vw, 56px); font-weight: 700; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; line-height: 1.05;
}
.stats .num .u { font-size: 0.42em; color: var(--muted); margin-left: 4px; font-weight: 600; }
.stats .lbl { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* 단계(스텝) */
.steps { display: grid; gap: 16px; counter-reset: s; margin: 0; padding: 0; list-style: none; }
.steps li {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
  counter-increment: s; padding: 20px 22px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px;
}
.steps li::before {
  content: counter(s); display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 16px;
}
.steps b { display: block; font-size: 18px; font-weight: 600; margin-bottom: 3px; }
.steps span { color: var(--muted); font-size: 15.5px; }
.steps code, .inline-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em;
  background: var(--bg-alt); padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line);
}

/* 표 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--bg); font-size: 15.5px; }
th, td { padding: 15px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--bg-alt); font-weight: 600; color: var(--ink); }
tr:last-child td { border-bottom: none; }
td code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }

/* 키-값 리스트 (샘플 카드) */
.kv { display: grid; gap: 0; }
.kv > div {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.kv > div:last-child { border-bottom: none; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.kv .v small { color: var(--muted); font-weight: 400; }

/* 배지 / 칩 */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; padding: 5px 12px; border-radius: 999px;
  background: var(--bg-alt); color: var(--ink); border: 1px solid var(--line);
}
.chiprow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  padding: 4px 11px; border-radius: 999px; background: rgba(0,113,227,0.1); color: var(--blue-link);
}

/* 스크린샷(실제 이미지) */
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(20,30,45,0.12); background: #fff; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 10px 16px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

/* 시계열 차트 카드 */
.chartcard { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.chartcard-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.chartcard-head h3 { font-size: 20px; font-weight: 600; }
.chartcard-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.chartcard-sum { display: flex; gap: 32px; }
.chartcard-sum .n { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.chartcard-sum .l { color: var(--muted); font-size: 13px; margin-top: 3px; }
#dailyChart { width: 100%; height: 220px; display: block; overflow: visible; }
#dailyChart .bar { fill: url(#barGrad); transition: opacity 0.15s; }
#dailyChart .bar:hover { opacity: 0.75; }
#dailyChart .axis-label { fill: var(--muted-2); font-size: 11px; }
@media (max-width: 720px) { .chartcard { padding: 20px; } #dailyChart { height: 180px; } .chartcard-sum { gap: 22px; } }

/* 펼침(details) — 전체 세부 정보 */
.reveal { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden; }
.reveal > summary {
  cursor: pointer; list-style: none; padding: 18px 24px; font-weight: 600; font-size: 16px;
  display: flex; align-items: center; gap: 10px; user-select: none;
}
.reveal > summary::-webkit-details-marker { display: none; }
.reveal > summary::after { content: "펼치기 ▾"; margin-left: auto; color: var(--muted); font-size: 14px; font-weight: 400; }
.reveal[open] > summary::after { content: "접기 ▴"; }
.reveal[open] > summary { border-bottom: 1px solid var(--line); }
.reveal-body { padding: 26px; }
.reveal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 30px; }
.reveal-block h5 {
  font-size: 15px; font-weight: 600; margin-bottom: 8px; padding-bottom: 8px;
  border-bottom: 2px solid var(--bg-alt); display: flex; align-items: center; gap: 8px;
}
.dtable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dtable td { padding: 6px 4px; border-bottom: 1px solid var(--bg-alt); vertical-align: top; }
.dtable tr:last-child td { border-bottom: none; }
.dtable td:first-child { color: var(--muted); white-space: nowrap; padding-right: 12px; }
.dtable td:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 980px) { .reveal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .reveal-grid { grid-template-columns: 1fr; } .reveal-body { padding: 20px; } }

/* 수정 이력 리스트 */
.cl { list-style: none; margin: 0; padding: 0; }
.cl li { padding: 9px 2px; border-bottom: 1px solid var(--bg-alt); font-size: 14.5px; line-height: 1.5; }
.cl li:last-child { border-bottom: none; }
.cl li b { color: var(--blue-link); margin-right: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cl-year { font-size: 16px; font-weight: 700; margin: 26px 0 8px; }
.cl-year:first-child { margin-top: 0; }

/* 안내 박스 */
.note {
  padding: 18px 20px; border-radius: 14px; background: var(--bg-alt);
  border-left: 4px solid var(--blue); color: #33333a; font-size: 15.5px; line-height: 1.55;
}
.note.warn { border-left-color: var(--accent); background: #fff5f4; }
.note b { color: var(--ink); }

/* ───────────── 푸터 ───────────── */
.footer { background: var(--bg-alt); color: var(--muted); font-size: 12px; line-height: 1.5; }
.footer .wrap-wide { padding-top: 40px; padding-bottom: 40px; }
.footer-top {
  display: flex; flex-wrap: wrap; gap: 30px 60px; justify-content: space-between;
  padding-bottom: 26px; border-bottom: 1px solid var(--line);
}
.footer-col h5 { font-size: 13px; color: var(--ink); margin-bottom: 12px; font-weight: 600; }
.footer-col a { display: block; color: var(--muted); padding: 4px 0; font-size: 13px; }
.footer-col a:hover { color: var(--ink); }
.footer-brand { max-width: 280px; }
.footer-brand .logo { display: flex; align-items: center; gap: 9px; font-weight: 600; color: var(--ink); font-size: 16px; margin-bottom: 10px; }
.footer-brand .logo .mark { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(150deg, #ef4133, var(--accent)); display: grid; place-items: center; }
.footer-brand .logo .mark svg { width: 15px; height: 15px; }
.footer-bottom { padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }

/* 히어로 공통 */
.hero { padding: 80px 0 70px; text-align: center; }
.hero.alt { background: var(--bg-alt); }
.hero .display { margin-top: 8px; }

/* 유틸 */
.mt-s { margin-top: 14px; } .mt-m { margin-top: 26px; } .mt-l { margin-top: 44px; }
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.fade-up.in { opacity: 1; transform: none; }

/* ───────────── 반응형 ───────────── */
@media (max-width: 980px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .panel { padding: 40px; }
  .section { padding: 76px 0; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links { display: none; position: absolute; top: 48px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); padding: 8px; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links a { width: 100%; padding: 12px 14px; font-size: 16px; border-radius: 10px; }
  .nav-burger {
    display: inline-grid; place-items: center; margin-left: auto;
    width: 34px; height: 34px; cursor: pointer; gap: 5px;
  }
  .nav-burger span { display: block; width: 18px; height: 1.6px; background: var(--ink); }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 18px; }
  .stats .stat { border-left: none; border-top: 1px solid var(--line); padding: 16px 0 0; }
  .stats .stat:first-child { border-top: none; padding-top: 0; }
  .panel { padding: 30px 22px; border-radius: 20px; }
  .section { padding: 60px 0; }
  .steps li { grid-template-columns: 34px 1fr; gap: 12px; padding: 16px; }
  .steps li::before { width: 30px; height: 30px; font-size: 14px; }
}
