/* GO-Chatbot 공공 랜딩 — 외부 CDN·웹폰트 없음(CSAP 환경). 시스템 한글 글꼴만 쓴다. */

:root {
  --namcheong: #10345c;   /* 관청 남색 — 주색 */
  --namcheong-deep: #0b1e33;
  --ink: #16202b;         /* 본문 */
  --muted: #566577;       /* 보조 글 */
  --line: #d6dee8;
  --paper: #ffffff;
  --tint: #eef3f9;        /* 구획 바탕 */
  --seal: #d4432a;        /* 대기번호 LED·작은 표식에만 */
  --sky: #2f6fd8;         /* 링크·포커스 */
  --ok: #1d7a4f;

  --font-sans: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --font-mono: "D2Coding", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --wrap: 1160px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--sky); }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 32px, 820px); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--namcheong); color: #fff; padding: 10px 16px; border-radius: 6px;
}
.skip:focus { top: 12px; }

/* 작은 머리표 — 남색 글 + 주홍 사각 표식 */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em;
  color: var(--namcheong); font-weight: 700;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--seal); border-radius: 1px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 8px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--namcheong); color: #fff; }
.btn--primary:hover { background: var(--namcheong-deep); }
.btn--ghost { border-color: var(--namcheong); color: var(--namcheong); background: transparent; }
.btn--ghost:hover { background: var(--tint); }

/* ── 머리 ─────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px);
}
.top__in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand__mark { width: 30px; height: 30px; fill: var(--namcheong); }
.brand__mark path { fill: none; stroke: var(--namcheong); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.brand__mark path:first-of-type { fill: var(--namcheong); }
.brand__mark .brand__seg { stroke: #fff; }
.brand__name { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand__name b { color: var(--namcheong); }

.nav__toggle { display: none; }
.nav__list { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav__list a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav__list a:hover { color: var(--namcheong); text-decoration: underline; text-underline-offset: 4px; }
.nav__list .nav__cta { background: var(--namcheong); color: #fff; padding: 9px 16px; border-radius: 8px; }
.nav__list .nav__cta:hover { color: #fff; background: var(--namcheong-deep); text-decoration: none; }

/* ── 첫 화면 ──────────────────────────────────── */
.hero {
  background:
    linear-gradient(180deg, var(--tint) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.hero__in {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  padding: 88px 0 96px;
}
.hero__title {
  margin-top: 18px;
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  font-weight: 800; line-height: 1.12; letter-spacing: -0.035em;
  color: var(--namcheong-deep);
}
.hero__lead { margin-top: 24px; max-width: 34em; font-size: 18px; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* 대기번호 표시기 — 이 페이지의 서명 */
.desk { position: relative; }
.board {
  background: var(--namcheong-deep);
  border-radius: 14px;
  padding: 18px 22px 26px;
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 24px 48px -24px rgba(11, 30, 51, .55);
  color: #c9d6e6;
}
.board__head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em;
  border-bottom: 1px dashed rgba(201, 214, 230, .25); padding-bottom: 12px;
}
.board__live { display: inline-flex; align-items: center; gap: 6px; color: #9fd8b8; }
.board__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4cc38a; }
.board__body { display: flex; align-items: flex-end; gap: 14px; padding-top: 18px; }
.board__label { font-weight: 700; font-size: 15px; padding-bottom: 10px; white-space: nowrap; }
.board__digits { display: inline-flex; gap: 10px; height: 116px; }
.board__digits svg { height: 100%; width: auto; filter: drop-shadow(0 0 6px rgba(212, 67, 42, .55)); }
.board__digits .seg { fill: rgba(212, 67, 42, .1); transition: fill .12s linear; }
.board__digits .seg.on { fill: var(--seal); }
.board__unit { font-weight: 700; font-size: 18px; padding-bottom: 10px; }
.board__meta {
  list-style: none; margin-left: auto; padding: 0 0 8px 18px;
  border-left: 1px dashed rgba(201, 214, 230, .25);
  font-family: var(--font-mono); font-size: 12.5px; line-height: 2; color: #9fb2c8;
}
.board__meta li::before { content: "▸ "; color: var(--seal); }

.talk {
  position: relative; margin: -14px 18px 0 38px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px 16px;
  box-shadow: 0 18px 36px -24px rgba(16, 52, 92, .45);
}
.talk__cap {
  position: absolute; top: -11px; right: 16px;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px;
}
.talk__q {
  margin-left: auto; width: fit-content; max-width: 86%;
  background: var(--namcheong); color: #fff; border-radius: 14px 14px 4px 14px;
  padding: 9px 14px; font-size: 15px;
}
.talk__a {
  margin-top: 10px; max-width: 92%;
  background: var(--tint); border-radius: 14px 14px 14px 4px; padding: 11px 14px; font-size: 15px;
}
.talk__src {
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.talk__handoff { margin-top: 10px; font-size: 14px; color: var(--muted); }
.talk__handoff span { color: var(--namcheong); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ── 구획 ─────────────────────────────────────── */
.band { padding: 96px 0; }
.band--tint { background: var(--tint); }
.band--ink { background: var(--namcheong); color: #e6edf6; }
.band__head { max-width: 680px; margin-bottom: 44px; }
.band__head h2 { margin-top: 12px; font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; color: var(--namcheong-deep); }
.band__lead { margin-top: 14px; color: var(--muted); }
.band--ink .eyebrow { color: #c9d6e6; }
.band--ink .band__head h2 { color: #fff; }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.split .band__head { margin-bottom: 0; }

/* 상담·안내 업무 */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; }
.area {
  border: 1px solid var(--line); border-top: 4px solid var(--namcheong);
  border-radius: var(--radius); padding: 22px 22px 20px; background: var(--paper);
  display: flex; flex-direction: column;
}
.area h3 { font-size: 19px; font-weight: 800; }
.area p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.area .area__ex {
  margin-top: auto; padding-top: 16px; color: var(--ink); font-size: 15px;
}
.area .area__ex::before {
  content: "민원인 질문"; display: block; margin-bottom: 2px;
  font-family: var(--font-mono); font-size: 12px; color: var(--seal); letter-spacing: .03em;
}

/* 민원인 배려 */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.facts > div { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.facts > div:nth-child(odd) { border-right: 1px solid var(--line); }
.facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.facts dt { font-weight: 800; color: var(--namcheong-deep); }
.facts dd { margin-top: 4px; color: var(--muted); font-size: 15.5px; }

/* 보안·운영 */
.sec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--namcheong); }
.sec__item { padding: 24px 24px 26px 0; border-bottom: 1px solid var(--line); }
.sec__item:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.sec__item h3 { font-size: 18px; font-weight: 800; color: var(--namcheong-deep); }
.sec__item p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }

/* 도입 절차 — 실제 순서라 번호를 쓴다 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid rgba(230, 237, 246, .35); padding-top: 18px; }
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff; color: var(--namcheong); font-weight: 800; font-family: var(--font-mono);
}
.steps h3 { margin-top: 14px; font-size: 19px; font-weight: 800; color: #fff; }
.steps p { margin-top: 8px; font-size: 15.5px; color: #c9d6e6; }

/* 자주 묻는 질문 */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 700; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 22px; color: var(--namcheong);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* 도입 상담 신청 */
.contact-alt { margin-top: 20px; color: var(--muted); font-size: 15.5px; }
.form { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form label { font-weight: 700; font-size: 15px; }
.req { color: var(--seal); font-size: 12px; font-weight: 700; margin-left: 4px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  border: 1px solid #b9c5d3; border-radius: 8px; padding: 11px 12px; background: #fff; width: 100%;
}
.form textarea { resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline-offset: 0; border-color: var(--sky); }
.form [aria-invalid="true"] { border-color: var(--seal); }
.form__agree { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; margin: 4px 0 20px; }
.form__agree input { width: 20px; height: 20px; accent-color: var(--namcheong); }
.form__note { grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); }
.form__submit { width: 100%; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__submit[disabled] { opacity: .6; cursor: progress; }
.form__status { margin-top: 12px; font-size: 15px; min-height: 1.5em; }
.form__status.is-ok { color: var(--ok); font-weight: 700; }
.form__status.is-error { color: var(--seal); font-weight: 700; }

/* ── 바닥 ─────────────────────────────────────── */
.foot { background: var(--namcheong-deep); color: #aebfd3; padding: 44px 0 52px; font-size: 14px; }
.foot__in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot__brand { color: #fff; font-weight: 800; font-size: 17px; }
.foot__legal { margin-top: 10px; line-height: 1.8; }
.foot__links { display: flex; gap: 22px; list-style: none; flex-wrap: wrap; align-items: flex-start; }
.foot a { color: #dbe5f1; }

/* ── 반응형 ───────────────────────────────────── */
@media (max-width: 980px) {
  .hero__in, .split { grid-template-columns: 1fr; gap: 44px; }
  .hero__in { padding: 64px 0 72px; }
  .areas, .sec { grid-template-columns: 1fr 1fr; }
  .sec__item, .sec__item:not(:nth-child(3n+1)) { padding: 22px 20px 22px 0; border-left: 0; }
  .sec__item:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__toggle {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
    font: inherit; font-weight: 700; color: var(--namcheong);
    background: #fff; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  }
  .nav__list {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav__list.is-open { display: flex; }
  .nav__list a { display: block; padding: 12px 4px; }
  .nav__list .nav__cta { margin-top: 8px; text-align: center; }
  .band { padding: 68px 0; }
  .areas, .sec, .facts, .form__grid, .steps { grid-template-columns: 1fr; }
  .sec__item, .sec__item:nth-child(even) { padding: 20px 0; border-left: 0; }
  .facts > div, .facts > div:nth-child(odd) { border-right: 0; }
  .facts > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .board__digits { height: 80px; }
  .board__meta { display: none; }
  .talk { margin: -12px 0 0 12px; }
  .form { padding: 20px; }
}

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