/* =====================================================================
 * style.css — Stellar Connect (S:CON) 디자인 시스템
 * 아스트로젠(ASTROGEN) 브랜드 기반 · 디지털 헬스케어
 *
 * 브랜드 원칙
 *  - 컬러: 아스트로젠 블루(자폐 인식 'Light It Up Blue') + 따뜻한 앰버 액센트
 *  - 톤: 과학적 신뢰 × 사람을 향한 따뜻함 ("과학과 사람 사이의 빈틈을 채운다")
 *  - 접근성: 발달장애 아동 양육자 대상 — 큰 터치 영역, 명확한 대비, 차분한 리듬
 * ===================================================================== */

/* ---------- 0. 웹폰트 (나눔스퀘어 네오 / 로컬 임베드) ---------- */
@font-face {
  font-family: 'NanumSquareNeo';
  src: url('../fonts/NanumSquareNeo-aLt.ttf') format('truetype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'NanumSquareNeo';
  src: url('../fonts/NanumSquareNeo-bRg.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'NanumSquareNeo';
  src: url('../fonts/NanumSquareNeo-cBd.ttf') format('truetype');
  font-weight: 600 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'NanumSquareNeo';
  src: url('../fonts/NanumSquareNeo-dEb.ttf') format('truetype');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'NanumSquareNeo';
  src: url('../fonts/NanumSquareNeo-eHv.ttf') format('truetype');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ---------- 1. 디자인 토큰 ---------- */
:root {
  /* 표면 / 배경 */
  --bg:            #eef2fa;
  --surface:       #ffffff;
  --surface-2:     #eef2fb;
  --surface-3:     #f6f8fd;

  /* 아스트로젠 블루 (primary 계열 — 기존 변수명 유지) */
  --primary:       #1f56d6;
  --primary-dark:  #1640a8;
  --primary-deep:  #0e2b6b;
  --primary-soft:  #e6ecfe;
  --primary-100:   #d5e0fd;
  --primary-tint:  #f1f5ff;

  /* 따뜻한 앰버 액센트 — '사람'의 온기 */
  --accent:        #f0a23a;
  --accent-dark:   #c87f1c;
  --accent-soft:   #fdefd8;

  /* 잉크 / 텍스트 */
  --text:          #16213f;
  --text-muted:    #586183;
  --text-faint:    #8b95b2;

  /* 라인 */
  --border:        #e3e8f3;
  --border-strong: #cdd6e8;

  /* 카테고리 색상 (설명서 5개 영역) */
  --c-cando:    #1f9d6b;  --c-cando-bg:   #e6f5ee;
  --c-help:     #2b8fc7;  --c-help-bg:    #e3f1f9;
  --c-like:     #d95f93;  --c-like-bg:    #fbe9f1;
  --c-dislike:  #6f64cf;  --c-dislike-bg: #ebe9fa;
  --c-problem:  #d68a18;  --c-problem-bg: #fbf0d7;
  --c-comm:     #1f56d6;  --c-comm-bg:    #e6ecfe;
  --c-routine:  #1aa394;  --c-routine-bg: #e2f3f0;

  /* 상태 색 */
  --ok:     #1f9d6b;
  --warn:   #d68a18;
  --danger: #d6584e;
  --info:   #2b8fc7;

  /* 형태 */
  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-xl: 30px;

  /* 그림자 (블루 톤 섞인 깊이감) */
  --shadow-xs: 0 1px 2px rgba(16,30,72,.06);
  --shadow-sm: 0 2px 10px rgba(16,30,72,.07);
  --shadow:    0 4px 16px rgba(16,30,72,.08);
  --shadow-md: 0 10px 30px rgba(16,30,72,.12);
  --shadow-lg: 0 24px 60px rgba(16,30,72,.20);
  --ring:      0 0 0 4px rgba(31,86,214,.16);

  /* 레이아웃 */
  --sidebar-w: 256px;
  --appbar-h:  64px;
  --maxw:      1200px;

  --ease: cubic-bezier(.22,.7,.24,1);
}

/* ---------- 2. 리셋 & 베이스 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: 'NanumSquareNeo', 'Apple SD Gothic Neo',
               'Malgun Gothic', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
  letter-spacing: -0.003em;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
::selection { background: var(--primary-100); color: var(--primary-deep); }

h1,h2,h3,h4 { line-height: 1.32; font-weight: 800; letter-spacing: -0.022em; color: var(--text); }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.26rem; }
h3 { font-size: 1.05rem; }
small { font-size: .82rem; }
b, strong { font-weight: 700; }

/* 스크롤바 */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: #c6cfe2; border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #aab6d2; background-clip: content-box; }

/* ---------- 3. 레이아웃 셸 ---------- */
.app-shell { min-height: 100%; display: flex; flex-direction: column; }

.app-bar {
  position: sticky; top: 0; z-index: 40;
  height: var(--appbar-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.6) blur(10px);
  -webkit-backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
  padding: 0 20px;
}
.app-bar .brand { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.app-bar .brand .mark { width: 36px; height: 36px; flex: none; }
.app-bar .brand .wordmark { display: flex; flex-direction: column; line-height: 1.15; }
.app-bar .brand .wordmark b { font-size: 1.02rem; font-weight: 800; letter-spacing: -.02em; }
.app-bar .brand .wordmark span {
  font-size: .64rem; font-weight: 700; color: var(--primary);
  letter-spacing: .12em; text-transform: uppercase;
}
.app-bar .spacer { flex: 1; }

.child-switch {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 9px 5px 6px;
  font-size: .88rem; font-weight: 700; transition: .16s var(--ease);
}
.child-switch:hover { background: var(--primary-soft); border-color: var(--primary-100); }
.child-switch .avatar { width: 28px; height: 28px; font-size: .78rem; }
.child-switch svg { width: 15px; height: 15px; color: var(--text-faint); }

.usermenu { position: relative; }
.usermenu .trigger {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 9px 5px 6px; border-radius: 999px; transition: .16s var(--ease);
}
.usermenu .trigger:hover { background: var(--surface-2); }
.usermenu .dropdown {
  position: absolute; right: 0; top: calc(100% + 10px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  min-width: 224px; padding: 8px; z-index: 50;
  animation: popIn .16s var(--ease);
}
@keyframes popIn { from { opacity: 0; transform: translateY(-6px); } }
.usermenu .dropdown button {
  width: 100%; text-align: left; padding: 10px 12px;
  border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600;
  display: flex; align-items: center; gap: 11px; transition: .12s var(--ease);
}
.usermenu .dropdown button:hover { background: var(--primary-soft); color: var(--primary-dark); }
.usermenu .dropdown button svg { color: var(--text-faint); }
.usermenu .dropdown button:hover svg { color: var(--primary); }
.usermenu .dropdown .sep { height: 1px; background: var(--border); margin: 6px 6px; }

.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(140deg, var(--primary), var(--primary-dark));
  color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: .88rem; flex: none; overflow: hidden;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.12);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 58px; height: 58px; font-size: 1.3rem; border-radius: 18px; }
.avatar.xl { width: 86px; height: 86px; font-size: 2rem; border-radius: 26px; }

.app-body { flex: 1; display: flex; }

/* 사이드바 */
.sidebar {
  width: var(--sidebar-w); flex: none;
  border-right: 1px solid var(--border);
  background: var(--surface);
  padding: 18px 14px;
  position: sticky; top: var(--appbar-h);
  height: calc(100vh - var(--appbar-h));
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.nav-group-label {
  font-size: .7rem; font-weight: 800; color: var(--text-faint);
  padding: 14px 12px 7px; letter-spacing: .07em; text-transform: uppercase;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .93rem; color: var(--text-muted);
  width: 100%; margin-bottom: 3px; transition: .14s var(--ease);
  position: relative;
}
.nav-item svg { width: 19px; height: 19px; flex: none; color: var(--text-faint); transition: .14s var(--ease); }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item:hover svg { color: var(--primary); }
.nav-item.active { background: var(--primary-soft); color: var(--primary-dark); }
.nav-item.active svg { color: var(--primary); }
.nav-item.active::before {
  content: ''; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 22px; background: var(--primary); border-radius: 0 4px 4px 0;
}
.sidebar .side-foot {
  margin-top: auto; padding: 14px 12px 4px; font-size: .72rem;
  color: var(--text-faint); line-height: 1.5;
}
.sidebar .side-foot b { color: var(--primary); font-weight: 800; letter-spacing: .04em; }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.container { max-width: var(--maxw); margin: 0 auto; width: 100%; padding: 28px 24px 40px; }
.container.narrow { max-width: 780px; }
.app-foot {
  border-top: 1px solid var(--border); padding: 18px 24px;
  text-align: center; font-size: .78rem; color: var(--text-faint);
}
.app-foot b { color: var(--primary); font-weight: 800; letter-spacing: .05em; }

/* 뷰 전환 애니메이션 */
.view-anim { animation: viewIn .34s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }

/* 하단 탭바 (모바일) */
.bottom-nav { display: none; }

/* ---------- 4. 페이지 헤더 ---------- */
.page-head { margin-bottom: 22px; }
.page-head .eyebrow {
  font-size: .76rem; font-weight: 800; color: var(--primary);
  text-transform: uppercase; letter-spacing: .08em;
}
.page-head h1 { margin-top: 5px; }
.page-head p { color: var(--text-muted); margin-top: 7px; font-size: .95rem; }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--text-faint); margin-bottom: 10px; }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- 5. 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 19px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .92rem; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: transform .08s var(--ease), background .16s var(--ease),
              box-shadow .16s var(--ease), border-color .16s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 14px rgba(31,86,214,.30);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 6px 20px rgba(31,86,214,.38); }
.btn-accent {
  background: var(--accent); color: #4a2e06;
  box-shadow: 0 4px 14px rgba(240,162,58,.36);
}
.btn-accent:hover { filter: brightness(1.04); box-shadow: 0 6px 20px rgba(240,162,58,.46); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--primary-100); }
.btn-soft { background: var(--primary-soft); color: var(--primary-dark); }
.btn-soft:hover { background: var(--primary-100); }
.btn-danger { background: #fbe9e7; color: var(--danger); }
.btn-danger:hover { background: #f6d6d2; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 13px; font-size: .85rem; border-radius: 9px; }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-icon {
  width: 38px; height: 38px; padding: 0; border-radius: 10px;
  background: var(--surface-2); color: var(--text-muted);
  transition: .14s var(--ease);
}
.btn-icon:hover { background: var(--primary-soft); color: var(--primary); }

/* ---------- 6. 카드 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card-pad { padding: 22px; }
.card-head {
  padding: 17px 22px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 11px;
}
.card-head h3 { flex: 1; }
.card-body { padding: 22px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ---------- 7. 폼 ---------- */
.field { margin-bottom: 17px; }
.field label, .field-label {
  display: block; font-weight: 700; font-size: .87rem;
  margin-bottom: 7px; color: var(--text);
}
.field .hint { font-size: .8rem; color: var(--text-faint); margin-top: 5px; }
.req { color: var(--danger); }
.input, .textarea, .select {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--primary); box-shadow: var(--ring); outline: none;
}
.input:hover, .textarea:hover, .select:hover { border-color: var(--border-strong); }
.textarea { resize: vertical; min-height: 92px; line-height: 1.58; }
.select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23586183' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.field-row { display: flex; gap: 14px; }
.field-row > * { flex: 1; }
.checkline { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; }
.checkline input { width: 19px; height: 19px; accent-color: var(--primary); flex: none; }
.seg {
  display: inline-flex; background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 4px; gap: 3px; border: 1px solid var(--border);
}
.seg button {
  padding: 8px 15px; border-radius: 8px; font-weight: 700; font-size: .85rem;
  color: var(--text-muted); transition: .14s var(--ease);
}
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface); color: var(--primary-dark); box-shadow: var(--shadow-xs); }

/* ---------- 8. 배지 / 칩 / 태그 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--text-muted);
}
.badge.ok      { background: var(--c-cando-bg); color: #157a51; }
.badge.warn    { background: var(--c-problem-bg); color: #9a6207; }
.badge.danger  { background: #fbe9e7; color: var(--danger); }
.badge.info    { background: var(--c-help-bg); color: #1d6f9e; }
.badge.brand   { background: var(--primary-soft); color: var(--primary-dark); }
.badge.dot::before { content:''; width:6px; height:6px; border-radius:50%; background: currentColor; }
.tag {
  display: inline-block; font-size: .75rem; font-weight: 600;
  background: var(--surface-2); color: var(--text-muted);
  padding: 2px 9px; border-radius: 7px; margin: 2px 4px 2px 0;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px; font-size: .85rem; font-weight: 700;
  background: var(--surface-2); border: 1.5px solid transparent;
  color: var(--text-muted); transition: .14s var(--ease); white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- 9. 통계 카드 ---------- */
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden; transition: .16s var(--ease);
}
.stat:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat .label { font-size: .82rem; color: var(--text-muted); font-weight: 700; }
.stat .value { font-size: 1.8rem; font-weight: 800; margin-top: 5px; letter-spacing: -.03em; color: var(--text); }
.stat .value small { font-size: .88rem; color: var(--text-muted); font-weight: 700; }
.stat .ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); float: right;
}
.stat .ico svg { width: 21px; height: 21px; }

/* ---------- 10. 빈 상태 ---------- */
.empty { text-align: center; padding: 54px 24px; color: var(--text-muted); }
.empty .emoji {
  font-size: 2rem; width: 78px; height: 78px; margin: 0 auto 4px;
  display: grid; place-items: center; border-radius: 26px;
  background: var(--primary-tint); border: 1px solid var(--border);
}
.empty h3 { margin: 14px 0 6px; color: var(--text); }
.empty p { font-size: .92rem; margin-bottom: 18px; }

/* ---------- 11. 랜딩 ---------- */
.landing { background: var(--surface); }
.lp-bar {
  position: sticky; top: 0; z-index: 40; height: 66px;
  display: flex; align-items: center; gap: 12px; padding: 0 24px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.lp-section { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 460px at 78% -8%, rgba(240,162,58,.20), transparent 60%),
    radial-gradient(900px 520px at 8% 110%, rgba(80,140,255,.30), transparent 60%),
    linear-gradient(150deg, #2a63e0 0%, #173f9c 52%, #0f2d72 100%);
  color: #fff;
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 76px 24px 86px; position: relative; z-index: 2; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 800; letter-spacing: .04em;
  color: #fff; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  padding: 7px 14px; border-radius: 999px;
}
.hero h1 {
  color: #fff; font-size: 2.7rem; line-height: 1.24;
  margin: 22px 0 18px; max-width: 660px; letter-spacing: -.03em;
}
.hero h1 .em { color: #ffd79b; }
.hero p { font-size: 1.1rem; max-width: 545px; color: #dbe6ff; line-height: 1.66; }
.hero .cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.34); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.22); }
.hero .trust {
  margin-top: 30px; display: flex; gap: 20px; flex-wrap: wrap;
  font-size: .85rem; color: #c5d4f7;
}
.hero .trust span { display: flex; align-items: center; gap: 7px; }
.hero .trust svg { width: 16px; height: 16px; color: #ffd79b; }
.hero-spark { position: absolute; color: rgba(255,255,255,.5); z-index: 1; }
.hero-card {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 318px; background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 20px; color: var(--text);
}

.section { padding: 76px 0; }
.section.tint { background: var(--surface-3); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .eyebrow {
  font-size: .78rem; font-weight: 800; color: var(--primary);
  text-transform: uppercase; letter-spacing: .08em;
}
.section-head h2 { font-size: 1.92rem; margin-top: 8px; letter-spacing: -.03em; }
.section-head p { color: var(--text-muted); margin-top: 12px; font-size: 1.02rem; }

.feature-card {
  padding: 26px; border-radius: var(--radius-lg);
  transition: .18s var(--ease); height: 100%;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature-card .ico {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--primary), var(--primary-dark));
  color: #fff; margin-bottom: 15px; box-shadow: 0 6px 16px rgba(31,86,214,.28);
}
.feature-card .ico svg { width: 26px; height: 26px; }
.feature-card h3 { margin-bottom: 7px; font-size: 1.1rem; }
.feature-card p { color: var(--text-muted); font-size: .92rem; }

.steps { counter-reset: s; display: grid; gap: 8px; }
.step {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px; border-radius: var(--radius); transition: .16s var(--ease);
}
.step:hover { background: var(--surface-3); }
.step .num {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  background: var(--primary-soft); color: var(--primary-dark);
  display: grid; place-items: center; font-size: 1.05rem; font-weight: 800;
}
.step h4 { font-size: 1.02rem; margin-bottom: 3px; }
.step p { font-size: .9rem; color: var(--text-muted); }

.quote-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px;
  box-shadow: var(--shadow-sm); height: 100%;
}
.quote-card .qmark { font-size: 2.6rem; line-height: .5; color: var(--primary-100); font-weight: 800; }
.quote-card p { margin-top: 14px; font-size: 1.02rem; color: var(--text); line-height: 1.62; }
.quote-card .who { margin-top: 14px; font-size: .85rem; color: var(--text-faint); font-weight: 600; }

.mission {
  background:
    radial-gradient(700px 360px at 88% 0%, rgba(240,162,58,.16), transparent 60%),
    linear-gradient(150deg, #16213f, #0e2b6b);
  color: #fff; border-radius: var(--radius-xl); padding: 56px 48px;
  position: relative; overflow: hidden;
}
.mission .eyebrow { color: #ffd79b; font-weight: 800; letter-spacing: .06em; font-size: .8rem; }
.mission h2 { color: #fff; font-size: 1.9rem; margin: 12px 0 16px; letter-spacing: -.03em; }
.mission p { color: #cdd9f5; font-size: 1.04rem; max-width: 620px; line-height: 1.72; }
.mission .pills { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.mission .pill {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  padding: 9px 16px; border-radius: 999px; font-size: .88rem; font-weight: 700;
}

.lp-foot {
  background: #0e1a36; color: #93a2c8; padding: 44px 24px 36px;
}
.lp-foot .inner { max-width: var(--maxw); margin: 0 auto; }
.lp-foot .row-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.lp-foot b { color: #fff; }
.lp-foot .fnav { display: flex; gap: 18px; flex-wrap: wrap; font-size: .88rem; }
.lp-foot .fnav a:hover { color: #fff; }
.lp-foot .copyright { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; }

/* ---------- 12. 아이 카드 ---------- */
.child-card {
  display: flex; gap: 15px; align-items: center;
  padding: 19px; transition: box-shadow .16s var(--ease), transform .08s var(--ease), border-color .16s var(--ease);
  text-align: left;
}
.child-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--primary-100); cursor: pointer; }
.child-card:active { transform: translateY(0); }
.child-card .meta { flex: 1; min-width: 0; }
.child-card .meta .nm { font-weight: 800; font-size: 1.06rem; }
.child-card .meta .sub { font-size: .84rem; color: var(--text-muted); }
.child-card > svg { color: var(--text-faint); flex: none; }

/* ---------- 13. 사용 설명서 편집 ---------- */
.manual-tabs {
  display: flex; gap: 2px; overflow-x: auto; padding-bottom: 2px;
  margin-bottom: 20px; border-bottom: 2px solid var(--border);
  scrollbar-width: none;
}
.manual-tabs::-webkit-scrollbar { display: none; }
.manual-tab {
  padding: 12px 16px; font-weight: 700; font-size: .9rem; white-space: nowrap;
  color: var(--text-muted); border-bottom: 3px solid transparent; margin-bottom: -2px;
  display: flex; align-items: center; gap: 8px; transition: .14s var(--ease);
}
.manual-tab:hover { color: var(--text); }
.manual-tab .dot { width: 9px; height: 9px; border-radius: 50%; }
.manual-tab.active { color: var(--primary-dark); border-bottom-color: var(--primary); }
.manual-tab .num {
  font-size: .72rem; background: var(--surface-2); border-radius: 999px;
  padding: 1px 8px; font-weight: 800; color: var(--text-muted);
}
.manual-tab.active .num { background: var(--primary-soft); color: var(--primary-dark); }

.sec-head { display: flex; align-items: center; gap: 13px; }
.sec-head .sec-ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none;
}
.sec-head .sec-ico svg { width: 23px; height: 23px; }
.sec-head h2 { font-size: 1.14rem; }
.sec-head p { font-size: .86rem; color: var(--text-muted); margin-top: 1px; }

.item-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 0; border-bottom: 1px solid var(--border);
}
.item-row:last-of-type { border-bottom: none; }
.item-row .bullet {
  width: 24px; height: 24px; border-radius: 8px; flex: none; margin-top: 1px;
  display: grid; place-items: center; color: #fff;
}
.item-row .bullet svg { width: 13px; height: 13px; }
.item-row .txt { flex: 1; line-height: 1.58; }
.item-row .txt .resp { color: var(--text-muted); font-size: .9rem; margin-top: 3px; }
.item-actions { display: flex; gap: 4px; opacity: 0; transition: .14s var(--ease); }
.item-row:hover .item-actions { opacity: 1; }

.add-item { display: flex; gap: 9px; margin-top: 14px; align-items: flex-start; }
.add-item .input, .add-item .textarea { flex: 1; }

/* ---------- 14. 한 장 요약 (서포트북) ---------- */
.summary-sheet {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  overflow: hidden;
}
.summary-sheet .sheet-top {
  background:
    radial-gradient(420px 200px at 92% -20%, rgba(240,162,58,.34), transparent 65%),
    linear-gradient(135deg, #2a63e0, #143b96);
  color: #fff; padding: 28px 30px; display: flex; gap: 18px; align-items: center;
  position: relative;
}
.summary-sheet .sheet-top .avatar { background: rgba(255,255,255,.2); }
.summary-sheet .sheet-top h2 { color: #fff; font-size: 1.45rem; }
.summary-sheet .sheet-top .sub { color: #d3e0ff; font-size: .9rem; margin-top: 2px; }
.summary-sheet .sheet-top .brand-tag {
  position: absolute; right: 26px; top: 22px;
  font-size: .68rem; font-weight: 800; letter-spacing: .12em;
  color: rgba(255,255,255,.7);
}
.summary-sheet .sheet-body { padding: 28px 30px; }
.summary-note {
  background: var(--accent-soft); border: 1px solid #f3dcae;
  border-radius: var(--radius); padding: 16px 18px;
  font-size: .96rem; color: #7a4e0c; margin-bottom: 22px; line-height: 1.6;
  display: flex; gap: 9px;
}
.summary-note svg { flex: none; margin-top: 2px; color: var(--accent-dark); }
.summary-block { margin-bottom: 20px; break-inside: avoid; }
.summary-block .blk-title {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 1rem; margin-bottom: 9px; color: var(--text);
}
.summary-block .blk-title .dot { width: 13px; height: 13px; border-radius: 5px; flex: none; }
.summary-block ul li {
  padding: 7px 0 7px 19px; position: relative; font-size: .92rem; line-height: 1.58;
  border-bottom: 1px dotted var(--border);
}
.summary-block ul li:last-child { border-bottom: none; }
.summary-block ul li::before {
  content: ''; position: absolute; left: 3px; top: 14px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
}
.summary-block .prob-li { padding-left: 0; }
.summary-block .prob-li::before { display: none; }
.summary-block .prob-li b { color: var(--c-problem); }
.summary-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 26px; }
.sheet-foot {
  border-top: 1px solid var(--border); padding: 16px 30px;
  font-size: .78rem; color: var(--text-faint); display: flex;
  justify-content: space-between; flex-wrap: wrap; gap: 6px;
  background: var(--surface-3);
}

/* ---------- 15. 기록 타임라인 ---------- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.tl-item { position: relative; margin-bottom: 14px; }
.tl-item::before {
  content: ''; position: absolute; left: -26px; top: 19px;
  width: 14px; height: 14px; border-radius: 50%;
  border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--border);
}
.tl-item.t-behavior::before  { background: var(--c-help); }
.tl-item.t-treatment::before { background: var(--c-comm); }
.tl-item.t-change::before    { background: var(--accent); }
.rec-card { padding: 16px 18px; transition: .16s var(--ease); }
.rec-card:hover { box-shadow: var(--shadow-md); transform: translateX(2px); cursor: pointer; }
.rec-card .rec-top { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.rec-card .rec-date { font-size: .8rem; color: var(--text-faint); margin-left: auto; }
.rec-card .rec-title { font-weight: 700; }
.rec-card .rec-content { font-size: .89rem; color: var(--text-muted); margin-top: 4px; }
.mood { display: inline-flex; gap: 1px; }
.mood span { font-size: .92rem; filter: grayscale(1); opacity: .3; }
.mood span.on { filter: none; opacity: 1; }

/* ---------- 16. 차트 ---------- */
.chart-bars { display: flex; align-items: flex-end; gap: 12px; height: 178px; padding-top: 12px; }
.chart-bars .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; }
.chart-bars .bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.chart-bars .bar {
  width: 100%; max-width: 44px; margin: 0 auto;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  border-radius: 7px 7px 0 0; min-height: 4px; transition: height .5s var(--ease);
}
.chart-bars .bar.alt { background: linear-gradient(180deg, var(--accent), var(--accent-dark)); }
.chart-bars .bar-label { font-size: .76rem; color: var(--text-muted); font-weight: 600; }
.chart-bars .bar-val { font-size: .78rem; font-weight: 800; color: var(--text); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--text-muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 11px; height: 11px; border-radius: 4px; display: inline-block; }
.line-chart { width: 100%; height: 180px; }

/* ---------- 17. 테이블 ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.tbl th, table.tbl td {
  padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border);
}
table.tbl th {
  font-size: .77rem; color: var(--text-muted); font-weight: 800;
  background: var(--surface-3); text-transform: uppercase; letter-spacing: .03em;
}
table.tbl tr:last-child td { border-bottom: none; }
table.tbl tbody tr { transition: .12s var(--ease); }
table.tbl tbody tr:hover td { background: var(--primary-tint); }
table.tbl td.actions { white-space: nowrap; }

/* ---------- 18. 토스트 ---------- */
#toast-host {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%);
  z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--text); color: #fff; padding: 12px 20px;
  border-radius: 999px; font-size: .9rem; font-weight: 700;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 9px;
  animation: toastIn .3s var(--ease);
}
.toast.ok { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.toast.err { background: var(--danger); }
.toast svg { width: 17px; height: 17px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.94); } }

/* ---------- 19. 모달 ---------- */
#modal-host:empty { display: none; }
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(14,26,54,.55);
  backdrop-filter: blur(3px);
  z-index: 150; display: flex; align-items: center; justify-content: center;
  padding: 18px; animation: fadeIn .16s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } }
.modal {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); width: 100%; max-width: 490px;
  max-height: 90vh; overflow-y: auto; animation: modalIn .24s var(--ease);
}
.modal.wide { max-width: 700px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.modal-head {
  padding: 19px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 11px;
  position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.modal-head h3 { flex: 1; }
.modal-body { padding: 24px; }
.modal-foot {
  padding: 15px 24px; border-top: 1px solid var(--border);
  display: flex; gap: 10px; justify-content: flex-end;
  position: sticky; bottom: 0; background: var(--surface);
}

/* ---------- 20. 기타 ---------- */
.divider { height: 1px; background: var(--border); margin: 18px 0; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.gap-sm { gap: 6px; }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }

.pill-info {
  background: var(--c-help-bg); color: #1d6f9e;
  border-radius: var(--radius-sm); padding: 13px 15px; font-size: .87rem;
  display: flex; gap: 10px; align-items: flex-start; line-height: 1.55;
}
.pill-info svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.pill-info b { color: inherit; }
.pill-warn { background: var(--c-problem-bg); color: #9a6207; }
.pill-ok { background: var(--c-cando-bg); color: #157a51; }

.callout {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 17px; background: var(--surface-3);
}
.help-list { font-size: .85rem; color: var(--text-muted); }
.help-list li { padding: 3px 0 3px 16px; position: relative; }
.help-list li::before { content: '·'; position: absolute; left: 4px; font-weight: 800; }

.kv { display: grid; grid-template-columns: 116px 1fr; gap: 10px 14px; font-size: .92rem; }
.kv dt { color: var(--text-muted); font-weight: 700; }
.kv dd { font-weight: 500; line-height: 1.55; }

.code-box {
  background: var(--surface-3); border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-sm); padding: 12px 14px;
  font-family: 'Courier New', monospace; font-size: .88rem;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  word-break: break-all;
}
.access-code {
  font-size: 2rem; font-weight: 800; letter-spacing: .32em;
  color: var(--primary-dark); text-align: center;
  font-family: 'NanumSquareNeo', sans-serif;
}

.progress-track { height: 9px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 99px; transition: width .5s var(--ease);
}

/* =====================================================================
 * 21. 적응형 레이아웃 — 웹(데스크톱) / 앱(태블릿·모바일) 최적화
 *
 *  · 기본 CSS = 웹 모드 (사이드바 내비게이션, 다단 레이아웃)
 *  · ≤ 960px  = 앱 모드 (하단 탭바, 풀폭, 바텀시트 모달 — 네이티브 앱 경험)
 *  · ≤ 600px  = 모바일 (단일 컬럼, 큰 터치 영역)
 * ===================================================================== */
@keyframes sheetUp { from { transform: translateY(100%); } }

/* ---------- 와이드 데스크톱 ---------- */
@media (min-width: 1440px) {
  :root { --maxw: 1280px; }
}

/* ---------- 중간 데스크톱: 그리드 약간 축소 ---------- */
@media (max-width: 1120px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 앱 모드 (태블릿·모바일 공통, ≤ 960px) ---------- */
@media (max-width: 960px) {
  /* 내비게이션: 사이드바 → 하단 탭바 */
  .sidebar { display: none; }
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
    background: rgba(255,255,255,.97); backdrop-filter: saturate(1.6) blur(12px);
    -webkit-backdrop-filter: saturate(1.6) blur(12px);
    border-top: 1px solid var(--border);
    padding: 7px 4px calc(7px + env(safe-area-inset-bottom));
  }
  .bottom-nav a, .bottom-nav button {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 2px; color: var(--text-faint); font-size: .68rem; font-weight: 700;
    min-height: 52px; justify-content: center;
  }
  .bottom-nav a svg, .bottom-nav button svg { width: 23px; height: 23px; }
  .bottom-nav a.active { color: var(--primary); }

  /* 앱바 컴팩트 */
  .app-bar { padding: 0 14px; gap: 9px; }
  .app-bar .brand .wordmark span { display: none; }
  .child-switch .nm-full { display: none; }
  .usermenu .trigger .nm-full { display: none; }

  /* 콘텐츠 영역 — 하단 탭바 공간 확보 */
  .container { padding: 18px 16px 24px; }
  .app-foot { padding: 16px 16px calc(84px + env(safe-area-inset-bottom)); }

  /* 그리드 */
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  /* 모달 → 바텀시트 (네이티브 앱 느낌) */
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal, .modal.wide {
    max-width: 100%; width: 100%;
    border-radius: 22px 22px 0 0; max-height: 94vh;
    animation: sheetUp .3s var(--ease);
  }
  .modal-head { padding-top: 22px; }
  .modal-head::before {
    content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: 42px; height: 5px; border-radius: 99px; background: var(--border-strong);
  }
  .modal-foot .btn { flex: 1; }

  /* 랜딩 */
  .hero-card { display: none; }
  .hero-inner { padding: 56px 20px 60px; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 56px 0; }
  .mission { padding: 40px 28px; }
}

/* ---------- grid-2 는 좁아지면 단으로 ---------- */
@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; gap: 0; }
}

/* ---------- 모바일 (≤ 600px) ---------- */
@media (max-width: 600px) {
  body { font-size: 15px; }
  .grid-3 { grid-template-columns: 1fr; }
  .summary-cols { grid-template-columns: 1fr; }
  .container { padding: 16px 14px 24px; }

  .page-head h1 { font-size: 1.4rem; }
  .page-head { margin-bottom: 18px; }

  /* 랜딩 */
  .hero-inner { padding: 46px 16px 52px; }
  .hero h1 { font-size: 1.7rem; }
  .hero p { font-size: 1rem; }
  .hero .trust { gap: 10px 16px; }
  .section { padding: 44px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: 1.44rem; }
  .mission { padding: 30px 22px; }
  .mission h2 { font-size: 1.5rem; }
  .lp-section { padding: 0 16px; }

  /* 카드·시트 패딩 축소 */
  .card-pad, .card-body { padding: 17px; }
  .card-head { padding: 14px 17px; }
  .summary-sheet .sheet-top { padding: 20px; }
  .summary-sheet .sheet-body { padding: 20px; }
  .feature-card { padding: 20px; }

  /* 터치 영역 확대 */
  .btn-sm { padding: 9px 14px; font-size: .86rem; }
  .btn-icon { width: 42px; height: 42px; }
  .chip { padding: 8px 14px; }
  .manual-tab { padding: 13px 15px; }
}

/* ---------- 소형 폰 (≤ 380px) ---------- */
@media (max-width: 380px) {
  .access-code { font-size: 1.5rem; letter-spacing: .2em; }
  .hero h1 { font-size: 1.46rem; }
  .section-head h2 { font-size: 1.28rem; }
  .app-bar { padding: 0 11px; }
  .stat .value { font-size: 1.55rem; }
}

/* ---------- 큰 화면에서만 호버 효과 (터치기기 오작동 방지) ---------- */
@media (hover: none) {
  .card:hover, .child-card:hover, .obs-card:hover, .rec-card:hover,
  .feature-card:hover, .stat:hover { transform: none; }
}

/* 사이드 드로어 (모바일 전체메뉴) */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(14,26,54,.55);
  backdrop-filter: blur(3px); z-index: 120; animation: fadeIn .16s var(--ease);
}
.drawer {
  position: fixed; right: 0; top: 0; bottom: 0; width: 290px; max-width: 86vw;
  background: var(--surface); z-index: 121; padding: 18px 14px;
  box-shadow: var(--shadow-lg); overflow-y: auto; animation: drawerIn .26s var(--ease);
}
@keyframes drawerIn { from { transform: translateX(100%); } }

/* ---------- 23. 짧은 영상(릴스) 기록 ---------- */
.clip-empty { display: flex; gap: 8px; flex-wrap: wrap; }
.reels-cap { display: flex; flex-direction: column; align-items: center; gap: 11px; padding: 6px 0; }
.reels-frame {
  position: relative; width: 208px; max-width: 72vw; aspect-ratio: 9 / 16;
  border-radius: 18px; overflow: hidden; background: #0e1a2e;
  box-shadow: var(--shadow-md);
}
.reels-video { width: 100%; height: 100%; object-fit: cover; background: #0e1a2e; display: block; }
.reels-timer {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  background: rgba(14,26,46,.72); color: #fff; font-size: .76rem; font-weight: 800;
  padding: 3px 11px; border-radius: 999px;
}
.reels-progress {
  width: 208px; max-width: 72vw; height: 6px;
  background: var(--surface-2); border-radius: 99px; overflow: hidden;
}
.reels-progress > div {
  height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--danger));
  transition: width .15s linear;
}
.reels-ctrl { display: flex; }
.rec-btn {
  width: 62px; height: 62px; border-radius: 50%; background: #fff;
  border: 4px solid var(--danger); display: grid; place-items: center; padding: 0;
  transition: transform .08s var(--ease);
}
.rec-btn:active { transform: scale(.94); }
.rec-btn::after {
  content: ''; width: 40px; height: 40px; border-radius: 50%;
  background: var(--danger); transition: .2s var(--ease);
}
.rec-btn.recording::after { width: 24px; height: 24px; border-radius: 7px; }
.reels-review { display: flex; flex-direction: column; align-items: center; }
.rec-clip-player { display: flex; justify-content: center; margin: 4px 0; }

/* 기록 카드의 클립 썸네일 */
.rec-card { display: flex; gap: 12px; align-items: flex-start; }
.rec-main { flex: 1; min-width: 0; }
.clip-thumb-wrap { position: relative; width: 60px; flex: none; }
.clip-thumb {
  width: 60px; height: 82px; object-fit: cover; border-radius: 11px;
  background: #0e1a2e; display: block;
}
.clip-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; pointer-events: none;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.75));
}

/* ---------- 23-b. 음성 입력 버튼 ---------- */
.voice-btn { flex: none; }
.voice-btn.recording {
  background: var(--danger) !important;
  color: #fff !important;
  border-color: var(--danger) !important;
  animation: voicePulse 1.2s ease-in-out infinite;
}
@keyframes voicePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(214,88,78,.55); }
  50%      { box-shadow: 0 0 0 8px rgba(214,88,78,0); }
}

/* ---------- 24. 아이 프로필 헤더 ---------- */
.profile-hero { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.profile-photo { position: relative; flex: none; }
.photo-edit-btn {
  position: absolute; right: -3px; bottom: -3px;
  width: 33px; height: 33px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  border: 3px solid var(--surface); box-shadow: var(--shadow);
  transition: background .15s var(--ease);
}
.photo-edit-btn:hover { background: var(--primary-dark); }
.photo-edit-btn svg { width: 15px; height: 15px; }
.profile-hero .meta { flex: 1; min-width: 170px; }
.profile-hero .meta h1 { font-size: 1.5rem; }
.profile-hero .actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 600px) {
  .profile-hero { gap: 14px; }
  .profile-hero .meta h1 { font-size: 1.3rem; }
  .profile-hero .actions { width: 100%; }
  .profile-hero .actions .btn { flex: 1; }
}

/* ---------- 25. Stellar Connect — 브랜드 가이드 반영 ---------- */
/* 히어로의 손글씨 느낌 인용 */
.hero .handwritten-note {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 0 6px 14px;
  border-left: 2px solid rgba(255,215,155,.7);
  font-style: italic;
  color: #ffd79b;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .005em;
  max-width: 480px;
  line-height: 1.55;
}

/* CONNECT — 한 아이를 둘러싼 연결 */
.connect-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.connect-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 18px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 5px;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s var(--ease);
}
.connect-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
  border-color: var(--primary-100);
}
.connect-card .connect-ico {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(140deg, #6b5bd6, #3d72ef 55%, #1aa394);
  color: #fff; display: grid; place-items: center;
  margin-bottom: 9px; box-shadow: 0 6px 18px rgba(61,114,239,.28);
}
.connect-card b { font-size: 1.02rem; color: var(--text); }
.connect-card .faint { font-size: .85rem; }

/* CLOSING BAND — "세상을 연결하는 시작" */
.closing-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(800px 360px at 50% -10%, rgba(107,91,214,.36), transparent 60%),
    radial-gradient(600px 320px at 100% 100%, rgba(26,163,148,.26), transparent 60%),
    linear-gradient(155deg, #0e1a36, #16213f 50%, #0e2b6b);
  color: #fff; border-radius: var(--radius-xl);
  padding: 70px 36px 64px; text-align: center;
}
.closing-band .hero-spark { color: rgba(255,255,255,.7); z-index: 1; }
.closing-band h2 {
  color: #fff; font-size: 2rem; line-height: 1.32;
  letter-spacing: -.03em; max-width: 580px;
  margin: 0 auto 16px; position: relative; z-index: 2;
}
.closing-band h2 .em { color: #ffd79b; }
.closing-band p {
  color: #cdd9f5; max-width: 540px; margin: 0 auto 24px;
  font-size: 1.04rem; line-height: 1.7;
  position: relative; z-index: 2;
}
.closing-band .closing-tag {
  display: inline-block; font-size: .8rem; font-weight: 800;
  letter-spacing: .12em; color: #ffd79b;
  border: 1px solid rgba(255,215,155,.5); border-radius: 999px;
  padding: 9px 20px; position: relative; z-index: 2;
}
@media (max-width: 600px) {
  .closing-band { padding: 48px 22px 44px; border-radius: var(--radius-lg); }
  .closing-band h2 { font-size: 1.46rem; }
  .closing-band p { font-size: .96rem; }
  .hero .handwritten-note { font-size: .92rem; }
}

/* 접근성: 모션 최소화 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
