/* 교권안전 소개 홈페이지 — 색은 docs/brand/README.md 와 같다 */
:root {
  --red: #D32F2F;
  --red-dark: #B71C1C;
  --red-soft: #FDECEC;
  --sky: #6CB2EB;
  --sky-soft: #E6F2FC;
  --navy: #14256B;
  --navy-deep: #0B1530;
  --ink: #0F172A;
  --ink-2: #475569;
  --line: #E2E8F0;
  --page: #FFFFFF;
  --tint: #F6F7FB;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.3; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 12px;
  font-weight: 700; font-size: 17px; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { border: 1.5px solid #CBD5E1; color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); }

/* 머리글 */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 24px; margin-left: 12px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.nav a:hover { color: var(--navy); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.link-quiet { font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.link-quiet:hover { color: var(--navy); }

/* 첫 화면 */
.hero { padding: 72px 0 88px; background: linear-gradient(180deg, #fff 0%, var(--tint) 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.eyebrow { font-size: 15px; font-weight: 700; color: var(--red); margin-bottom: 14px; }
.eyebrow-light { color: #FF9C94; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; color: var(--navy); }
.lead { margin-top: 22px; font-size: 19px; color: var(--ink-2); max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 32px 0 0; font-size: 15px; font-weight: 600; color: var(--navy); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }

/* 첫 화면 그림: 실제 상황판 + 앱 화면 */
.hero-visual { position: relative; padding: 0 0 120px; }
.hero-visual figure { margin: 0; }
.tv { width: 100%; max-width: 620px; }
.tv-screen { border: 10px solid #1E293B; border-radius: 14px; overflow: hidden; background: #1E293B; box-shadow: 0 30px 60px -30px rgba(20,37,107,.45); }
.tv-screen img { width: 100%; }
.tv-stand { width: 120px; height: 14px; margin: 0 auto; background: #1E293B; border-radius: 0 0 10px 10px; }
.phone { position: absolute; right: -12px; bottom: 0; width: 184px; background: #0F172A; border-radius: 30px; padding: 8px; box-shadow: 0 30px 50px -20px rgba(15,23,42,.55); }
.phone img { width: 100%; border-radius: 22px; }
.hero-note { position: absolute; left: 0; bottom: 8px; font-size: 13px; color: #94A3B8; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* 섹션 공통 */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; color: var(--navy); }
.section-lead { margin-top: 14px; color: var(--ink-2); font-size: 18px; }

/* 서비스 소개 카드 */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: 20px; font-weight: 800; color: var(--ink); margin-top: 18px; }
.card p { margin-top: 8px; font-size: 16px; color: var(--ink-2); }
.ic { width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: var(--sky-soft); fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 핵심 숫자 띠 */
.stats-band { margin-top: -40px; position: relative; z-index: 2; }
.stats { list-style: none; margin: 0; padding: 28px 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border-radius: 22px; box-shadow: 0 20px 50px -28px rgba(20,37,107,.35); border: 1px solid var(--line); }
.stats li { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 16px; }
.stats li + li { border-left: 1px solid var(--line); }
.stats svg { width: 44px; height: 44px; fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.stats svg .hot { stroke: var(--red); stroke-width: 3.4; }
.stats strong { margin-top: 10px; font-size: 30px; font-weight: 800; color: var(--red); letter-spacing: -0.02em; line-height: 1.2; }
.stats span { margin-top: 4px; font-size: 15px; color: var(--ink-2); }

/* 이용 흐름 */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.flow li { position: relative; background: #fff; border-radius: var(--radius); padding: 22px 22px 26px; display: flex; flex-direction: column; }
.flow .time { align-self: flex-start; font-size: 13px; font-weight: 800; color: var(--navy); background: var(--sky-soft); padding: 3px 12px; border-radius: 999px; }
.flow .illus { width: 100%; height: auto; margin: 10px 0 6px; }
.flow .num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-right: 8px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-size: 15px; vertical-align: 2px; }
.flow h3 { font-size: 19px; font-weight: 800; }
.flow p { margin-top: 8px; font-size: 15.5px; color: var(--ink-2); }
.flow li:not(:last-child)::after { content: ''; position: absolute; top: 50%; right: -16px; width: 12px; height: 12px; border-top: 3px solid var(--red); border-right: 3px solid var(--red); transform: translateY(-50%) rotate(45deg); z-index: 1; }

/* 호출 버튼 두 종류 */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.option { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 32px; }
.option > :not(.option-art) { margin-left: 16px; margin-right: 16px; }
.option-art { border-radius: 14px; padding: 24px 16px 18px; margin-bottom: 24px; text-align: center; }
.option-art-red { background: var(--red-soft); }
.option-art-sky { background: var(--sky-soft); }
.option-art svg { width: 100%; max-width: 340px; height: auto; margin: 0 auto; display: block; }
.art-caption { margin-top: 12px; font-size: 15px; color: var(--ink); }
.art-caption b { color: var(--red-dark); }
.option-tag { display: inline-block; font-size: 14px; font-weight: 800; color: var(--red-dark); background: var(--red-soft); padding: 4px 12px; border-radius: 999px; }
.option-tag-sky { color: var(--navy); background: var(--sky-soft); }
.option h3 { margin-top: 16px; font-size: 24px; font-weight: 800; color: var(--navy); }
.option > p { margin-top: 10px; color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 16px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }

/* 구성 */
.section-navy { background: var(--navy); color: #fff; }
.section-navy .section-head h2 { color: #fff; }
.map-scroll { overflow-x: auto; border-radius: var(--radius); }
.school-map { display: block; width: 100%; min-width: 640px; height: auto; font-family: inherit; }
.scroll-hint { display: none; margin-top: 10px; text-align: center; font-size: 13px; color: #8FA0D0; }
@media (max-width: 680px) { .scroll-hint { display: block; } }
.legend { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.legend li { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 10px; font-size: 15px; color: #C9D3EA; }
.legend b { color: #fff; display: block; font-size: 16px; }
.lg { grid-row: span 2; width: 14px; height: 14px; margin-top: 5px; border-radius: 50%; }
.lg-beacon { background: var(--sky); }
.lg-red { background: var(--red); }
.lg-white { background: #fff; border-radius: 3px; }
.lg-sky { background: #E6F2FC; border-radius: 3px; }

/* 개인정보 보호 — 녹음 시간 띠 */
.timeline { display: grid; grid-template-columns: 1.1fr 1fr 1.1fr; border-radius: 18px; overflow: hidden; }
.tl { position: relative; padding: 26px 28px 26px 30px; display: flex; flex-direction: column; gap: 2px; }
.tl-when { font-size: 13px; font-weight: 700; opacity: .8; }
.tl strong { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.tl span:last-child { font-size: 15px; }
.tl-idle { background: #EEF1F6; color: var(--ink-2); }
.tl-idle strong { color: var(--ink); }
.tl-rec { background: var(--red); color: #fff; }
.tl-keep { background: var(--navy); color: #fff; }
/* 앞 구간 색으로 그린 화살촉이 다음 구간으로 들어간다 */
.tl-rec::before, .tl-keep::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 18px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.tl-rec::before { background: #EEF1F6; }
.tl-keep::before { background: var(--red); }
.badges { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.badges li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; align-items: center; background: var(--tint); border-radius: 14px; padding: 18px; }
.badges svg { grid-row: span 2; width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: #fff; fill: none; stroke: var(--navy); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.badges b { font-size: 17px; color: var(--ink); }
.badges span { font-size: 14.5px; color: var(--ink-2); }

/* 자주 묻는 질문 */
.faq .section-head { margin-bottom: 32px; }
.qa { display: grid; gap: 12px; max-width: 860px; }
.qa details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.qa summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; font-weight: 700; font-size: 17px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ''; flex: none; width: 10px; height: 10px; border-right: 2.5px solid var(--ink-2); border-bottom: 2.5px solid var(--ink-2); transform: rotate(45deg) translateY(-3px); transition: transform .15s; }
.qa details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.qa details p { padding: 0 0 20px; color: var(--ink-2); font-size: 16px; }

/* 도입 문의 */
.contact { display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--tint); border-radius: 28px; padding: 64px 24px; }
.contact h2 { margin-top: 22px; font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; color: var(--navy); }
.contact > p { margin-top: 10px; color: var(--ink-2); }
.contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin: 28px 0 0; }
.contact-list div { display: flex; gap: 10px; align-items: baseline; }
.contact-list dt { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.contact-list dd { margin: 0; font-size: 20px; font-weight: 800; color: var(--navy); }
.contact-list dd a { color: inherit; text-decoration: none; }
.placeholder { color: var(--red-dark) !important; background: var(--red-soft); padding: 0 8px; border-radius: 6px; }

/* 바닥글 */
.foot { background: var(--navy-deep); color: #B7C0D6; padding: 40px 0; font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot-row img { height: 32px; width: auto; }
.foot-row a { margin-left: auto; color: #B7C0D6; text-decoration: none; font-weight: 600; }
.foot-row a:hover { color: #fff; }
.placeholder-dark { color: #FF9C94; }

/* 반응형 */
@media (max-width: 1024px) {
  .nav { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .tv { margin: 0 auto; }
  .cards, .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow li::after { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .stats li:nth-child(3) { border-left: 0; }
  .badges { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top-row { height: 64px; gap: 12px; }
  .brand img { height: 32px; }
  .link-quiet { display: none; }
  .hero { padding: 44px 0 56px; }
  .lead { font-size: 17px; }
  .hero-visual { padding: 0; }
  .hero-visual .phone { position: relative; right: auto; width: 170px; margin: -56px auto 0; }
  .hero-note { position: static; margin-top: 12px; text-align: center; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .cards, .flow, .duo, .legend { grid-template-columns: minmax(0, 1fr); }
  .option { padding: 14px 14px 26px; }
  .option > :not(.option-art) { margin-left: 8px; margin-right: 8px; }
  .stats-band { margin-top: -24px; }
  .stats strong { font-size: 24px; }
  .stats span { font-size: 13.5px; }
  .stats li { padding: 4px 8px; }
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .tl-rec::before, .tl-keep::before { display: none; }
  .tl { padding: 20px 22px; }
  .foot-row a { margin-left: 0; }
}
