/* SPEC-681 — 소개 홈페이지(/ = public/index.html) 모양. 외부 요청은 Google Fonts 만(index.html 머리).
   ★ 가운데 정렬 0 — 글 시작은 늘 왼쪽(text-align:center · margin:auto 로 글 덩이를 가운데 두기 금지 · 681 캡처 판정이 잰다).
   ★ 누르는 자리(a · button · input)는 높이·폭 44px 이상. 제목은 본문보다 늘 크다.
   ★ 낱말 가운데 꺾임 0 — 한글은 word-break:keep-all(띄어쓰기에서만 줄을 바꾼다). */
:root {
  --navy: #0F1A2E;
  --card: #1C2A45;
  --line: #33456A;
  --amber: #F2C46D;
  --paper: #F3F1EC;
  --white: #FFFFFF;
  --ink: #0F1A2E;
  --muted: #465066;
  --muted-dark: #C7CFDC;
  --rule: #D6D1C4;
  --serif: "Noto Serif KR", "Apple SD Gothic Neo", serif;
  --sans: "IBM Plex Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --gutter: 16px;
  --max: 1120px;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font: 400 17px/1.7 var(--sans);
  word-break: keep-all;
  overflow-wrap: break-word;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 800; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
.nw { white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; z-index: 50; background: var(--amber); color: var(--navy); padding: 12px 16px; min-height: 44px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ── 머리 ── */
.top { position: sticky; top: 0; z-index: 20; background: var(--navy); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font: 800 21px/1 var(--serif); color: var(--white); }
.brand .mark { width: 28px; height: 28px; flex: none; }
.menu { display: none; gap: 4px; margin: 0; padding: 0; list-style: none; }
.menu a {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 12px;
  text-decoration: none; color: var(--muted-dark); font-weight: 500; font-size: 16px;
  border-bottom: 3px solid transparent;
}
.menu a:hover { color: var(--white); }
.menu a[aria-current="page"] { color: var(--white); border-bottom-color: var(--amber); }
.actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px;
  min-height: 48px; min-width: 44px; padding: 0 20px; border-radius: 10px;
  font: 600 16px/1.2 var(--sans); text-align: left; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; white-space: nowrap;
}
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: #F6D38E; }
.btn-line { border-color: var(--muted-dark); color: var(--white); background: transparent; }
.btn-line:hover { border-color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.admin-btn { display: none; }
.burger {
  display: inline-flex; align-items: center; justify-content: flex-start; width: 48px; height: 48px; padding: 0 12px;
  background: transparent; border: 1.5px solid var(--line); border-radius: 10px; color: var(--white); cursor: pointer;
}
.burger svg { width: 22px; height: 22px; }
.drawer { border-top: 1px solid var(--line); background: var(--card); }
.drawer ul { list-style: none; margin: 0; padding: 8px 0 16px; }
.drawer a {
  display: flex; align-items: center; min-height: 52px; padding: 0 var(--gutter) 0 calc(var(--gutter) - 4px);
  text-decoration: none; font-weight: 500; color: var(--white); border-left: 4px solid transparent;
}
.drawer a[aria-current="page"] { border-left-color: var(--amber); background: rgba(242, 196, 109, 0.08); }
.drawer .drawer-admin { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.drawer .drawer-admin a { color: var(--amber); }
/* 682 — 메뉴가 여섯이 되면서 768~1099 에서 「주요 / 기능」처럼 두 줄로 접혔다 → 펼친 메뉴는 1100 부터, 그 아래는 ☰ . */
.menu a { white-space: nowrap; }
@media (min-width: 1100px) {
  .menu { display: flex; }
  .admin-btn { display: inline-flex; }
  .burger, .drawer { display: none !important; }
}

/* ── 페이지 전환 ── */
.page[hidden] { display: none; }
.light { background: var(--paper); color: var(--ink); }
.section { padding-top: 64px; padding-bottom: 88px; }
@media (min-width: 768px) { .section { padding-top: 88px; padding-bottom: 112px; } }
.eyebrow { font: 600 15px/1.5 var(--sans); color: var(--amber); letter-spacing: 0.02em; }
.light .eyebrow { color: var(--muted); }
.h2 { font-size: 30px; line-height: 1.3; margin-top: 10px; }
@media (min-width: 768px) { .h2 { font-size: 42px; } }
.lead { margin-top: 16px; max-width: 40em; color: var(--muted); font-size: 18px; }

/* ── 홈 ── */
.hero { display: grid; gap: 48px; padding: 56px 0 64px; }
@media (min-width: 960px) { .hero { grid-template-columns: 1fr 320px; align-items: center; padding: 88px 0 96px; gap: 64px; } }
.hero h1 { font-size: 40px; line-height: 1.22; margin-top: 14px; }
@media (min-width: 768px) { .hero h1 { font-size: 60px; } }
.hero .body { margin-top: 22px; color: var(--muted-dark); font-size: 18px; max-width: 30em; }
.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); font-size: 15px; font-weight: 500; color: var(--white);
}
.pill svg { width: 16px; height: 16px; }
.pills .note { font-size: 15px; color: var(--muted-dark); }

/* 폰 그림(HTML/CSS · 이미지 파일 아님) */
.phone {
  width: 300px; max-width: 100%; border-radius: 40px; padding: 12px; background: #0A1220;
  border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.screen { border-radius: 30px; overflow: hidden; background: #F5F6F8; color: #1B2230; font-size: 13px; line-height: 1.45; }
.scr-status { display: flex; justify-content: space-between; padding: 12px 22px 6px; font-size: 12px; font-weight: 600; color: #1B2230; }
.scr-app { padding: 6px 18px 12px; }
.scr-app .union { font-size: 12px; color: #4A5468; }
.scr-app .title { font: 800 19px/1.3 var(--serif); color: #0F1A2E; }
.scr-body { padding: 0 12px 12px; display: grid; gap: 10px; }
.scr-card { background: #FFFFFF; border-radius: 14px; padding: 12px 14px; border: 1px solid #E3E6EC; }
.scr-card .k { font-size: 11px; font-weight: 600; color: #4A5468; }
.scr-card .v { font-size: 14px; font-weight: 600; color: #0F1A2E; margin-top: 2px; }
.badge-new { display: inline-block; font-size: 10px; font-weight: 700; color: #0F1A2E; background: var(--amber); border-radius: 6px; padding: 1px 6px; margin-left: 4px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-top: 8px; font-size: 11px; color: #4A5468; }
.cal span { padding: 2px 0 2px 4px; }
.cal .bar { grid-column: 3 / span 3; height: 6px; padding: 0; background: #0F1A2E; border-radius: 3px; }
.cal .ev { grid-column: 1 / -1; font-size: 12px; font-weight: 600; color: #0F1A2E; padding: 2px 0 0 4px; }
.poll-row { display: flex; justify-content: space-between; font-size: 12px; margin-top: 6px; color: #1B2230; }
.poll-track { height: 8px; border-radius: 4px; background: #E7E9EE; margin-top: 4px; overflow: hidden; }
.poll-track i { display: block; height: 100%; background: #0F1A2E; border-radius: 4px; }
.poll-track.b i { background: #8C96A8; }
.scr-tabs { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid #E3E6EC; background: #FFFFFF; padding: 8px 4px 14px; }
.scr-tabs span { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding-left: 8px; font-size: 10.5px; color: #4A5468; }
.scr-tabs span b { width: 18px; height: 18px; border-radius: 6px; background: #D5D9E1; }
.scr-tabs span.on { color: #0F1A2E; font-weight: 700; }
.scr-tabs span.on b { background: #0F1A2E; }

/* 두 갈래 문 */
.doors { display: grid; gap: 20px; }
.doors > *, .hero > *, .steps > *, .contact > * { min-width: 0; }
@media (min-width: 900px) { .doors { grid-template-columns: 1fr 1fr; } }
.door { border-radius: 20px; padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 768px) { .door { padding: 36px 36px; } }
.door h2 { font-size: 26px; line-height: 1.35; }
@media (min-width: 768px) { .door h2 { font-size: 30px; } }
.door .who { font-weight: 600; font-size: 15px; }
.door-a { background: var(--amber); color: var(--navy); }
.door-a .who { color: var(--navy); }
.door-b { background: var(--card); border: 1px solid var(--line); }
.door-b .who { color: var(--amber); }
.door .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.field-label { margin-top: 8px; font-size: 15px; font-weight: 500; color: var(--muted-dark); }
.addr {
  display: flex; align-items: stretch; min-height: 52px; border-radius: 10px; overflow: hidden;
  border: 1.5px solid var(--line); background: var(--navy);
}
.addr:focus-within { border-color: var(--amber); }
.addr .fixed {
  display: inline-flex; align-items: center; padding: 0 4px 0 14px; white-space: nowrap;
  color: var(--muted-dark); font-size: 15px; flex: none;
}
.addr input {
  flex: 1 1 0; min-width: 0; width: 100%; min-height: 48px; border: 0; background: transparent; color: var(--white);
  font: 600 16px/1.2 var(--sans); padding: 0 12px 0 0;
}
.addr input:focus { outline: none; }
.addr input::placeholder { color: #8F9AAE; font-weight: 400; }
.hint { font-size: 14px; color: var(--muted-dark); }
.shake { animation: shake 0.4s linear; border-color: #FF9C8A; }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .shake { animation: none; } }

/* 조직활동 띠(682 §2) — 남색 카드 안 왼쪽 글 · 오른쪽(768 미만은 아래) 흰 순위 카드(예시) */
.band {
  display: grid; gap: 28px; margin: 32px 0 96px; padding: 28px 24px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--line);
}
.band > * { min-width: 0; }
@media (min-width: 768px) { .band { grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: 40px 36px; } }
@media (min-width: 1100px) { .band { grid-template-columns: 1fr 400px; } }
.band h2 { font-size: 30px; line-height: 1.3; margin-top: 10px; }
@media (min-width: 768px) { .band h2 { font-size: 40px; } }
.band-body { margin-top: 16px; color: var(--muted-dark); font-size: 17px; }
.band .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.rank { background: var(--white); color: var(--ink); border-radius: 16px; padding: 20px 20px 8px; }
.rank-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rank-title { font-weight: 600; font-size: 17px; }
.tag { flex: none; font-size: 13px; font-weight: 600; line-height: 1.5; padding: 2px 10px; border-radius: 999px; background: var(--paper); color: var(--muted); border: 1px solid var(--rule); }
.rank-list { list-style: none; margin: 12px 0 0; padding: 0; }
.rank-list li { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid #E6E2D8; }
/* 메달 숫자는 동그라미 안 한 글자라 글 흐름이 아니다(글 시작 규칙 밖 · 판정기의 flex 칸은 글 자식이 있을 때만 잰다). */
.medal { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; font: 700 15px/1 var(--sans); color: var(--navy); }
.m1 { background: #F2C46D; }
.m2 { background: #C7CFDC; }
.m3 { background: #E3B48A; }
.rank-list .who { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.rank-list .who b { font-weight: 600; font-size: 16px; }
.rank-list .rec { font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; }

/* ── 주요 기능 · 안심 설계 줄 ── */
.rows { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.rows li { display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 768px) { .rows li { grid-template-columns: 96px minmax(200px, 360px) 1fr; gap: 24px; align-items: baseline; padding: 32px 0; } }
.rows .num { font: 800 26px/1.2 var(--serif); color: var(--ink); grid-row: span 2; }
@media (min-width: 768px) { .rows .num { font-size: 30px; grid-row: auto; } }
.rows .num::after { content: ""; display: block; width: 24px; height: 3px; background: var(--amber); margin-top: 8px; }
.rows h3 { font-size: 22px; line-height: 1.4; color: var(--ink); }
.rows p { color: var(--muted); font-size: 17px; }

/* ── 도입 절차 카드 ── */
.steps { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--white); border: 1px solid var(--rule); border-radius: 18px; padding: 28px 24px; }
.step .no { font: 600 15px/1 var(--sans); color: var(--muted); }
.step h3 { font-size: 22px; line-height: 1.4; margin-top: 14px; color: var(--ink); }
.step p { margin-top: 10px; color: var(--muted); font-size: 17px; }
.after { margin-top: 36px; }

/* ── 자주 묻는 질문 ── */
.faq { margin: 48px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.faq div { padding: 28px 0; border-bottom: 1px solid var(--rule); }
.faq dt { font: 800 21px/1.45 var(--serif); color: var(--ink); }
.faq dd { margin: 10px 0 0; color: var(--muted); font-size: 17px; max-width: 42em; }

/* ── 문의 ── */
.contact { display: grid; gap: 20px; margin-top: 48px; }
@media (min-width: 900px) { .contact { grid-template-columns: 3fr 2fr; } }
.c-card { border-radius: 20px; padding: 32px 24px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 768px) { .c-card { padding: 40px 36px; } }
.c-card h3 { font-size: 26px; line-height: 1.35; }
.c-card .mail { font-size: 20px; font-weight: 600; }
.c-card .mail a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.c-card .mail a:hover { text-decoration: underline; }
.c-navy { background: var(--navy); color: var(--white); }
.c-navy .eyebrow { color: var(--amber); }
.c-navy p.desc { color: var(--muted-dark); }
.c-white { background: var(--white); color: var(--ink); border: 1px solid var(--rule); }
.c-white p.desc { color: var(--muted); }
.c-card .row { margin-top: 12px; }

/* ── 발 ── */
.foot { background: var(--navy); border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted-dark); font-size: 15px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--white); text-decoration: none; font-weight: 500; }
.foot a:hover { text-decoration: underline; }
.foot .biz { margin-top: 20px; line-height: 1.8; }
.foot .biz-more { line-height: 1.8; }
.foot .brand-line { font: 800 18px/1.4 var(--serif); color: var(--white); margin-bottom: 12px; }
