/* 동행ON 홈페이지 — 깔끔한 흰 바탕, 반투명 고정 메뉴, 연한 그라데이션 첫 화면, 둥근 카드.
   색은 동행ON 보라(앱·운영자 웹과 같은 계열). 본문 대비 4.5:1 이상.
   웹폰트는 fonts/ 에 직접 둔다 (CSP font-src 'self'). 한글 KS X 1001 2,350자 + 영문·기호 — 그 밖의 글자는 시스템 글꼴로 보인다. */
@font-face { font-family: "Pretendard Variable"; src: url("fonts/pretendard-ks.woff2") format("woff2-variations"), url("fonts/pretendard-ks.woff2") format("woff2");
  font-weight: 45 920; font-style: normal; font-display: swap; }
@font-face { font-family: "DH Serif"; src: url("fonts/serif-ks.woff2") format("woff2-variations"), url("fonts/serif-ks.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap; }
:root {
  --serif: "DH Serif", "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", "Batang", serif;
  --ink: #1B1830; --ink-2: #3D3852; --muted: #6B6680; --line: #E7E3F0; --soft: #F7F5FB;
  --pri: #6952A4; --pri-h: #533E8C; --pri-soft: #F0EBFA; --pri-line: #DCD2F2;
  --r: 16px; --max: 1120px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--pri); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--pri); outline-offset: 2px; }

/* 로고: 보라 원 + 동행 / ON */
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; letter-spacing: -.03em; flex: none; }
.brand .mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 16px;
  background: linear-gradient(135deg, #8A72CC, #5B449A); box-shadow: 0 4px 12px -4px rgba(105,82,164,.6); }
/* 글자 로고: 첫 화면 제목의 "동행ON" 과 같은 모양 — 명조 그라데이션 "동행" + 어두운 둥근 배지 "ON"(살짝 위로) */
.brand .word { display: inline-flex; align-items: flex-start; gap: 4px; }
.brand .wm { font-family: var(--serif); font-weight: 800; font-size: 23px; line-height: 1.15; letter-spacing: -.06em; color: var(--pri);
  background: linear-gradient(100deg, #7B5FCB 0%, #5A3F9B 45%, #B8467A 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand .word b { margin-top: 3px; padding: 4px 7px 3px; border-radius: 999px; font: 800 10px/1 var(--font); letter-spacing: .08em; color: #fff; background: var(--ink);
  box-shadow: 0 4px 10px -4px rgba(27,24,48,.6); }
/* 로고 그림 (images/logo-*.png — ON512.png 을 둥근 모서리만 남겨 줄인 것) */
.brand img.mark { width: 40px; height: 40px; border-radius: 11px; background: none; display: block; box-shadow: 0 6px 14px -6px rgba(60,30,174,.55); }
.nav a[aria-current="page"] { color: var(--pri); font-weight: 700; }

/* 위 메뉴 */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid rgba(0,0,0,.06); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.nav { display: flex; gap: 24px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav a { white-space: nowrap; }
.nav a:hover { color: var(--pri); }
.act { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.umenu { position: relative; }   /* 2026-11-19 이름 단추 → 내 메뉴 (내 정보·로그아웃) */
.umenu .caret { font-size: 11px; color: var(--muted); }
.umenu .badge-n, .umenu-pop .badge-n { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: #A8231B; color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.umenu > .btn .badge-n { margin-left: 2px; }
.umenu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; display: grid; gap: 2px; padding: 6px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px -16px rgba(30,20,70,.35); z-index: 60; }
.umenu-pop a, .umenu-pop button { display: flex; align-items: center; gap: 6px; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: none;
  font: 500 15px/1.2 var(--font); color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.umenu-pop a:hover, .umenu-pop button:hover, .umenu-pop a:focus-visible, .umenu-pop button:focus-visible { background: var(--soft); outline: none; }
.umenu-pop .danger { color: #A8231B; }
.umenu-pop hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.umenu-pop[hidden] { display: none; }   /* 위 display:grid 가 hidden 을 덮지 않게 (app.css 가 없는 첫 화면·설명서) */
.narrow-only { display: none !important; }
@media (max-width: 760px) { .act .wide-only { display: none !important; } .umenu-pop .narrow-only { display: flex !important; } }
@media (max-width: 1060px) { .nav { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 18px; border-radius: 10px;
  font: 600 15px/1 var(--font); cursor: pointer; border: 1px solid transparent; white-space: nowrap; transition: background .15s, border-color .15s, transform .08s; }
.btn:active { transform: scale(.98); }
.btn.pri { background: var(--pri); color: #fff; box-shadow: 0 1px 2px rgba(105,82,164,.35); }
.btn.pri:hover { background: var(--pri-h); }
.btn.ghost { color: var(--ink-2); }
.btn.ghost:hover { background: var(--soft); }
.btn.line { border-color: var(--line); background: #fff; color: var(--ink); }
.btn.line:hover { border-color: var(--pri-line); }
.btn.big { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 12px; }

/* 첫 화면 */
.hero { text-align: center; padding: 84px 0 0; background: linear-gradient(180deg, #F5F0FD 0%, #fff 72%); overflow: hidden; }
.hero .keye { display: inline-block; margin: 0 0 22px; padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--pri);
  background: #fff; border: 1px solid var(--pri-line); box-shadow: 0 4px 14px -6px rgba(105,82,164,.3); }
.hero h1 { margin: 0; font-size: clamp(36px, 6vw, 60px); line-height: 1.15; letter-spacing: -.035em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--pri); }
.hero .lead { max-width: 640px; margin: 22px auto 0; font-size: clamp(16px, 2vw, 19px); color: var(--ink-2); }
.cta { display: flex; gap: 10px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.cta.left { justify-content: flex-start; }
.hero .call { margin: 18px 0 0; font-size: 14.5px; color: var(--muted); }
.hero .call b { color: var(--ink); }
.stage { position: relative; max-width: 1040px; margin: 56px auto 0; padding-bottom: 48px; }
.ph-hero { aspect-ratio: 16 / 9; border-radius: 18px; }
.ph.ph-phone { position: absolute; right: -1%; bottom: 8px; width: 22%; aspect-ratio: 390 / 844; border-radius: 26px; background-color: #fff; box-shadow: 0 24px 60px -12px rgba(30,20,70,.3); }
@media (max-width: 700px) { .ph.ph-phone { display: none; } }

/* 구역 */
section { padding: 96px 0; scroll-margin-top: 64px; }
section.band { background: var(--soft); }
.kick { display: inline-block; font-size: 13px; font-weight: 700; color: var(--pri); background: var(--pri-soft); padding: 4px 10px; border-radius: 999px; }
h2 { margin: 14px 0 0; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.22; letter-spacing: -.03em; font-weight: 800; }
h3 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.sub { margin: 16px 0 0; font-size: 17px; color: var(--ink-2); }
.center { text-align: center; }
.center .sub { max-width: 680px; margin-left: auto; margin-right: auto; }
.note { margin: 18px 0 0; font-size: 14.5px; color: var(--muted); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: 0 18px 50px -24px rgba(30,20,70,.22); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
@media (max-width: 820px) { .grid2 { grid-template-columns: 1fr; } }
.svc .ph-card { aspect-ratio: 3 / 2; border-radius: 0; border-width: 0 0 2px; }
.svc-body { padding: 26px 28px 30px; }
.svc-body > p { margin: 8px 0 0; color: var(--ink-2); }
.more { display: inline-block; margin-top: 20px; font-weight: 700; color: var(--pri); }
.more:hover { text-decoration: underline; }

ul.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
ul.ticks li { position: relative; padding-left: 28px; font-size: 15.5px; color: var(--ink-2); }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--pri-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236952A4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat; }

/* 이용 방법 */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px 22px; }
.steps i { font-style: normal; font-size: 13px; font-weight: 800; color: var(--pri); letter-spacing: .06em; }
.steps h3 { margin-top: 8px; font-size: 19px; }
.steps p { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.ph-wide { margin-top: 32px; aspect-ratio: 1120 / 360; border-radius: var(--r); }

/* 안심 장치 · 매니저 */
.row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.row.flip { grid-template-columns: 1fr 1.2fr; }
.row > * { min-width: 0; }
@media (max-width: 900px) { .row, .row.flip { grid-template-columns: 1fr; gap: 36px; } .row.flip .ph { order: 2; } }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.feat { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: #fff; }
.feat h3 { font-size: 16.5px; }
.feat p { margin: 6px 0 0; font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 560px) { .feats { grid-template-columns: 1fr; } }
.ph-tall { aspect-ratio: 4 / 5; border-radius: var(--r); }

/* 자주 묻는 질문 */
.faq { margin-top: 36px; display: grid; gap: 10px; }
.faq-tabs { display: flex; gap: 4px; margin: 28px 0 0; padding: 4px; width: max-content; background: #fff; border: 1px solid var(--line); border-radius: 12px; }   /* 2026-11-19 보호자·매니저 */
.faq-tabs[hidden] { display: none; }
.faq-tabs button { border: 0; background: none; padding: 10px 26px; border-radius: 9px; font: 700 15px/1 var(--font); color: var(--muted); cursor: pointer; }
.faq-tabs button[aria-pressed="true"] { background: var(--pri-soft); color: var(--pri-h); }
.faq-tabs + .faq { margin-top: 16px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 700; font-size: 16.5px; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--pri); font-size: 22px; line-height: 1; }
.faq-more { margin: 18px 0 0; text-align: center; font-size: 15px; }   /* 2026-11-19 게시판 FAQ·질문과답변 링크 */
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); }

.closing { background: linear-gradient(180deg, #fff 0%, #F5F0FD 100%); }

/* 바닥글 */
.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--muted); }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--pri); }
.foot-info { margin: 18px 0 0; }
.foot-copy { margin: 6px 0 0; }

/* 그림 자리 (실제 사진·화면으로 바꿀 곳) — 번호·무엇을 넣을지·파일 이름과 크기 */
.ph { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: repeating-linear-gradient(45deg, #FAF8FD 0 12px, #F3EFFA 12px 24px); border: 2px dashed #CFC5E6; color: #6B6680; text-align: center; padding: 16px; }
.ph-n { font-size: 34px; font-weight: 800; color: #B3A6D6; line-height: 1; }
.ph-t { font-size: 14px; font-weight: 600; max-width: 520px; }
.ph-s { font-size: 12px; color: #9C94B3; font-variant-numeric: tabular-nums; }
