/* ===== 디자인 토큰 (v2 · 템플릿 방향: 흰 바탕, 검정 알약 버튼, 초록 강조 한 가지) ===== */
:root {
  /* v2.1 (2026-11-09): 첫 화면 수채화 그림의 크림 바탕 + 그림 속 짙은 숲색 */
  --bg:#FBF8F5; --soft:#F4EEE4; --card:#FFFDFA;
  --ink:#1F2A1C; --sub:#4E5547; --mute:#655F55; --line:#E8E0D2; --line2:#D3C9B7;
  --pri:#2F4A24; --onpri:#ffffff; --pri-hover:#3F5A2E;
  --accent:#4E6B3A; --accent-soft:#E9EEDC;
  --warn:#b3261e; --warn-soft:#fdeceb;
  --focus:#4E6B3A;
  --radius:20px;
  --font:"Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  --font-serif:"Noto Serif KR","Apple SD Gothic Neo","Malgun Gothic",serif;
  color-scheme: light; /* 수채화와 맞추기 위해 어두운 화면 모드는 쓰지 않음 */
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* 숨김 속성이 다른 display 값에 덮이지 않게 */
/* html에 overflow-x:hidden을 주면 상단 메뉴의 position:sticky가 깨져서 body에만 둠 */
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.7; word-break: keep-all; letter-spacing: -.01em; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
.g { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.w { max-width: 1080px; margin: 0 auto; }
.w-n { max-width: 760px; margin: 0 auto; }
h1, h2, h3 { margin: 0; letter-spacing: -.035em; text-wrap: balance; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.skip { position:absolute; left:16px; top:-60px; z-index:20; background:var(--pri); color:var(--onpri); padding:10px 16px; border-radius:999px; font-weight:700; text-decoration:none; }
.skip:focus { top: 12px; }
.ic { width: 18px; height: 18px; flex: none; }

/* ===== 버튼 (알약) ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font: inherit; font-weight: 700; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; padding: 12px 24px; font-size: 16px; line-height: 1.3; min-height: 46px; }
.btn.pri { background: var(--pri); color: var(--onpri); }
.btn.pri:hover { background: var(--pri-hover); }
.btn.out { background: transparent; color: var(--ink); border-color: var(--line2); }
.btn.out:hover { border-color: var(--ink); background: var(--soft); }
.btn.sm { padding: 8px 16px; font-size: 14px; min-height: 40px; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ===== 상단 메뉴 ===== */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .w { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.top .left { display: flex; align-items: center; gap: 28px; min-width: 0; }
.wm { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 18px; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.wm i { width: 18px; height: 9px; border-radius: 18px 18px 0 0; background: var(--accent); display: block; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--sub); padding: 8px 10px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a[aria-current] { color: var(--ink); font-weight: 700; background: var(--soft); }
.top .right { display: flex; align-items: center; gap: 8px; }
.menuBtn { display: none; }
@media (max-width: 960px) {
  .nav { display: none; }
  .menuBtn { display: inline-flex; }
}
.mnav { border-top: 1px solid var(--line); background: var(--bg); }
.mnav[hidden] { display: none; }
.mnav ul { list-style: none; margin: 0 auto; padding: 8px 0 16px; max-width: 1080px; display: flex; flex-direction: column; }
.mnav a { display: block; text-decoration: none; font-size: 17px; font-weight: 700; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.mnav a:hover { color: var(--accent); }
.mnav a[aria-current] { color: var(--accent); }

/* ===== 첫 화면 ===== */
.hero { text-align: center; background:
  linear-gradient(to bottom, var(--bg) 0, rgba(251,248,245,0) 7%, rgba(251,248,245,0) 82%, var(--bg) 100%),
  var(--bg) url(../forest.webp) center bottom / cover no-repeat; min-height: min(58vw, 780px); }
.hero .w-n { padding-block: clamp(56px, 7vw, 96px) clamp(170px, 19vw, 300px); display: flex; flex-direction: column; align-items: center; gap: 22px; }
/* 태블릿: 그림 전체 폭을 보여 양옆 나무·사람이 잘리지 않게 */
@media (min-width: 721px) and (max-width: 1100px) {
  .hero { background-size: 100% 56.3vw, 100% auto; background-position: center bottom, center bottom; min-height: calc(56.3vw + 180px); }
}
/* 휴대폰: 그림을 자르지 않고 전체 폭 기준으로 줄여서 글 아래에 그대로 보여줌(2026-12-01) */
@media (max-width: 720px) {
  .hero { background-size: 100% 56.3vw, 100% auto; background-position: center bottom, center bottom; min-height: calc(56.3vw + 120px); }
}
.badge { display: inline-flex; align-items: center; gap: 10px; background: var(--pri); color: var(--onpri); text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 14px 6px 6px; border-radius: 999px; max-width: 100%; }
.badge em { font-style: normal; background: var(--onpri); color: var(--pri); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; flex: none; }
.badge span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge:hover { background: var(--pri-hover); }
.kick { font-size: 14px; font-weight: 700; color: var(--mute); }
.hero h1 { font-family: var(--font-serif); font-size: clamp(40px, 8.4vw, 72px); font-weight: 900; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.hero h1 .hl { color: var(--accent); }
.hero .lead { font-size: clamp(17px, 2.2vw, 19px); color: var(--sub); max-width: 32em; }
.hero .btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 480px) { .hero .btns { flex-direction: column; align-self: stretch; } }

/* ===== 두 개의 문 ===== */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 24px; }
@media (max-width: 720px) { .doors { grid-template-columns: 1fr; } }
.door { display: flex; flex-direction: column; gap: 6px; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; background: var(--card); }
.door:hover { border-color: var(--ink); }
.door .q { font-size: 14px; font-weight: 700; color: var(--mute); }
.door b { font-size: 22px; font-weight: 900; letter-spacing: -.04em; }
.door span { font-size: 15px; color: var(--sub); }
.door .go { font-weight: 700; color: var(--ink); margin-top: 4px; display: inline-flex; align-items: center; gap: 4px; }

/* ===== 메뉴 바로가기(홈) ===== */
.hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 880px) { .hub { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hub { grid-template-columns: 1fr; } }
.hubCard { display: flex; flex-direction: column; gap: 6px; text-decoration: none; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; background: var(--card); }
.hubCard:hover { border-color: var(--ink); }
.hubCard .n { font-size: 12px; font-weight: 700; color: var(--accent); }
.hubCard b { font-size: 17px; font-weight: 900; }
.hubCard span { font-size: 14px; color: var(--sub); }

/* ===== 공통 구간 ===== */
.blk { padding-block: clamp(56px, 8vw, 96px); scroll-margin-top: 64px; }
.blk.soft { background: var(--soft); }
.blk.first { padding-top: clamp(28px, 5vw, 48px); }
.blk > .w, .blk > .w-n { display: flex; flex-direction: column; gap: 32px; }
.hd { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.hd .eb { font-size: 14px; font-weight: 700; color: var(--mute); }
.hd h1, .hd h2 { font-family: var(--font-serif); font-size: clamp(28px, 4.6vw, 40px); font-weight: 900; text-wrap: balance; }
.hd p { color: var(--sub); font-size: 17px; max-width: 36em; text-align: left; align-self: flex-start; }
.hd.left { align-items: flex-start; text-align: left; }
.quickTags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.quickTags a { font-size: 14px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 6px 14px; text-decoration: none; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.quickTags a:hover { background: var(--pri); color: var(--onpri); }
.org, .info { scroll-margin-top: 80px; }
.subhd { font-size: 15px; font-weight: 900; margin-bottom: 12px; }

/* ===== 탭 (단계 탭 · 칩 탭 공통) ===== */
.utabs { display: flex; justify-content: center; gap: clamp(8px, 3vw, 36px); flex-wrap: wrap; }
.utabs button { font: inherit; background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 4px; font-size: clamp(15px, 2vw, 18px); font-weight: 700; color: var(--mute); cursor: pointer; }
.utabs button:hover { color: var(--ink); }
.utabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.utabs button .en { display: block; font-size: 11px; letter-spacing: .1em; font-weight: 700; color: var(--accent); }
.stepPanel { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 28px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.stepPanel .n { width: 44px; height: 44px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 900; }
.stepPanel h3 { font-size: 22px; font-weight: 900; }
.stepPanel p { color: var(--sub); max-width: 30em; }

.chips { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.chips button { font: inherit; font-size: 15px; font-weight: 700; padding: 10px 20px; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--line2); background: var(--card); color: var(--ink); cursor: pointer; }
.chips button:hover { border-color: var(--ink); }
.chips button[aria-selected="true"] { background: var(--pri); color: var(--onpri); border-color: var(--pri); }

[role="tabpanel"][hidden] { display: none; }

/* ===== 숫자 · 걸음 ===== */
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: center; }
@media (max-width: 640px) { .nums { grid-template-columns: 1fr; } }
.nums div { border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 24px 16px; display: flex; flex-direction: column; gap: 6px; background: var(--card); }
.nums b { font-family: var(--font-serif); font-size: clamp(40px, 6vw, 56px); font-weight: 900; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.nums span { font-size: 14px; color: var(--sub); }
.numsCap { text-align: center; font-size: 15px; font-weight: 700; color: var(--sub); }
.tl { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tl li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.tl b { font-weight: 900; }
@media (max-width: 480px) { .tl li { grid-template-columns: 1fr; gap: 2px; } }

/* ===== 기능 줄 (체크 목록 + 휴대폰 예시 화면) ===== */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 820px) { .feat { grid-template-columns: 1fr; } }
.feat .copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.feat .icb { width: 48px; height: 48px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); display: grid; place-items: center; }
.feat .tag { font-size: 14px; font-weight: 700; color: var(--mute); }
.feat h3 { font-size: clamp(26px, 3.8vw, 34px); font-weight: 900; }
.feat .desc { color: var(--sub); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.checks svg { color: var(--accent); margin-top: 3px; }
.note { font-size: 14px; font-weight: 700; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }

.phone { justify-self: center; width: min(320px, 100%); background: var(--soft); border: 1px solid var(--line); border-radius: 32px; padding: 12px; box-shadow: 0 24px 48px -24px rgba(0,0,0,.25); position: relative; }
.phone .scr { background: var(--card); border-radius: 22px; min-height: 420px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.phone .bar { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; }
.phone .dots { display: flex; gap: 3px; } .phone .dots i { width: 4px; height: 4px; border-radius: 9px; background: var(--ink); display: block; }
.phone .ex { position: absolute; top: -10px; right: 18px; background: var(--pri); color: var(--onpri); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.phone .t { font-size: 15px; font-weight: 900; letter-spacing: -.03em; }
.phone .s { font-size: 13px; color: var(--mute); }
.phone .box { background: var(--soft); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.map { position: relative; height: 130px; border-radius: 12px; background:
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 22px 22px,
  linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 22px 22px, var(--accent-soft); overflow: hidden; }
.map .av { position: absolute; width: 24px; height: 24px; border-radius: 999px; border: 2px solid var(--card); display: grid; place-items: center; font-size: 10px; font-weight: 900; color: #fff; }
.map .av::after { content: attr(data-n); position: absolute; top: 24px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--ink); white-space: nowrap; font-weight: 700; }
.bub { font-size: 13px; padding: 8px 12px; border-radius: 14px; background: var(--soft); align-self: flex-start; max-width: 85%; }
.bub.me { align-self: flex-end; background: var(--pri); color: var(--onpri); }
.bub small { display: block; font-size: 11px; color: var(--mute); font-weight: 700; }
.bub.me small { color: inherit; opacity: .7; }
.row2 { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.row2 .dot { width: 30px; height: 30px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 900; flex: none; font-size: 12px; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.scale span { font-size: 11px; text-align: center; border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 1px; color: var(--sub); }
.scale span.on { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); font-weight: 700; }

/* ===== 나의 일상 체크(HQ-25) ===== */
.hqWrap { margin-top: 28px; max-width: 600px; margin-inline: auto; }
.hqProgress { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; color: var(--sub); margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.hqProgress .bar { flex: 1; height: 6px; border-radius: 9px; background: var(--line); overflow: hidden; }
.hqProgress .bar i { display: block; height: 100%; background: var(--accent); }
.hqStep[hidden] { display: none; }
.hqq { border: 0; margin: 0 0 24px; padding: 0; }
.hqq legend { display: block; width: 100%; padding: 0; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.scale5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
@media (max-width: 560px) { .scale5 { grid-template-columns: 1fr; } }
.scale5 label { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; font-size: 13px; border: 1.5px solid var(--line2); border-radius: 10px; padding: 8px 6px; color: var(--sub); cursor: pointer; }
.scale5 label:hover { border-color: var(--ink); }
.scale5 input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scale5 input:focus-visible { outline: none; }
.scale5 input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.scale5 input:checked + span { color: var(--ink); font-weight: 700; }
.scale5 label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.hqNav { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }
.hqSubmitRow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.hqErr { font-size: 14px; font-weight: 700; color: var(--warn); min-height: 1.4em; }
.suggest { background: var(--accent-soft); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }

/* ===== 일정 ===== */
.series { display: flex; flex-direction: column; gap: 24px; }
.ser { display: flex; flex-direction: column; gap: 12px; }
.ser .sh b { font-size: 15px; font-weight: 900; color: var(--mute); }
.ev { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); display: flex; flex-direction: column; gap: 8px; }
.ev:hover { border-color: var(--line2); box-shadow: 0 12px 32px -20px rgba(0,0,0,.25); }
.ev .date { font-size: 14px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.ev h3 { font-size: clamp(20px, 2.6vw, 24px); font-weight: 900; }
.ev .m { font-size: 15px; color: var(--sub); }
.ev .intro { font-size: 15px; }
.ev .meta { font-size: 14px; color: var(--sub); }
.ev .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.seat { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.seat .bar { width: 96px; height: 6px; border-radius: 9px; background: var(--line); overflow: hidden; flex: none; }
.seat .bar i { display: block; height: 100%; background: var(--accent); }
.ev .by { font-size: 13px; color: var(--mute); }
.empty { font-size: 15px; color: var(--sub); border: 1.5px dashed var(--line2); border-radius: var(--radius); padding: 20px; text-align: center; }
.closedNote { font-size: 14px; font-weight: 700; color: var(--sub); }
.skel { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.skel i { display: block; height: 14px; border-radius: 8px; background: var(--soft); }
.skel i:nth-child(1) { width: 30%; } .skel i:nth-child(2) { width: 70%; height: 22px; } .skel i:nth-child(3) { width: 50%; }

/* ===== 함께하는 곳 · 자료실 · 기록 ===== */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 820px) { .cards3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards3 { grid-template-columns: 1fr; } }
.partner { border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 4px; background: var(--card); }
.partner b { font-size: 16px; }
.partner .kind { font-size: 13px; font-weight: 700; color: var(--accent); }
.partner p { font-size: 14px; color: var(--sub); }
.partner a { font-size: 14px; font-weight: 700; }

.resList, .recList { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.res { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.res .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.res b { font-size: 16px; }
.res p { font-size: 14px; color: var(--sub); }
.res a { font-size: 14px; font-weight: 700; }
.rec { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.rec .date { font-size: 13px; font-weight: 700; color: var(--mute); grid-column: 1; }
.rec b { font-size: 17px; grid-column: 1; }
.rec .sum { font-size: 14px; color: var(--sub); grid-column: 1; }
.rec::after { content: "→"; grid-column: 2; grid-row: 1 / span 3; align-self: center; font-weight: 900; color: var(--mute); }
.rec:hover b { text-decoration: underline; text-underline-offset: 3px; }
.rec:hover::after { color: var(--ink); }

/* ===== 시작하기 (A·B·C) ===== */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 880px) { .paths { grid-template-columns: 1fr; } }
.path { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; background: var(--card); text-decoration: none; min-width: 0; }
.path.feature { border: 2px solid var(--pri); }
.path:hover { border-color: var(--ink); }
.path .ab { font-size: 13px; font-weight: 700; color: var(--mute); }
.path h3 { font-size: 22px; font-weight: 900; }
.path .who { font-size: 13px; font-weight: 700; background: var(--accent-soft); color: var(--accent); align-self: flex-start; padding: 3px 10px; border-radius: 999px; }
.path p { font-size: 15px; color: var(--sub); flex: 1; }
.path .btn { align-self: stretch; }

/* ===== 폼 ===== */
.formwrap { background: var(--soft); border: 1px solid var(--line); border-radius: 24px; padding: clamp(16px, 4vw, 32px); scroll-margin-top: 80px; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3vw, 28px); display: flex; flex-direction: column; gap: 16px; max-width: 600px; margin: 0 auto; }
.form h3 { font-size: 21px; font-weight: 900; }
.form .picked { font-weight: 700; background: var(--accent-soft); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.f { display: flex; flex-direction: column; gap: 6px; }
.f label, .f .lbl { font-size: 15px; font-weight: 700; }
.f .opt, .req { font-weight: 500; color: var(--mute); font-size: 12px; margin-left: 4px; }
.req { color: var(--warn); font-weight: 700; }
.f input, .f textarea, .f select { font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line2); border-radius: 12px; padding: 12px 14px; width: 100%; }
.f input:hover, .f textarea:hover, .f select:hover { border-color: var(--mute); }
.f input:focus, .f textarea:focus, .f select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.f input:focus-visible, .f textarea:focus-visible, .f select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.f textarea { min-height: 110px; resize: vertical; }
.f .hint { font-size: 13px; color: var(--mute); }
.ferr { display: block; font-size: 13px; color: var(--warn); font-weight: 700; min-height: 1em; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.chk input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.chk b { font-weight: 700; }
.chk a { text-decoration: underline; }
.consent { font-size: 14px; color: var(--sub); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.consent summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.consent table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.consent th, .consent td { text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; }
.form button[type=submit] { align-self: stretch; }
.crisis { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: 12px; padding: 14px 16px; font-size: 15px; display: flex; flex-direction: column; gap: 4px; }
.crisis b { color: var(--warn); }
.crisis .nums2 { font-weight: 900; font-size: 17px; font-variant-numeric: tabular-nums; }
.result { background: var(--card); border: 2px solid var(--pri); border-radius: 20px; padding: clamp(20px, 3vw, 28px); max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.result h3 { font-size: 22px; font-weight: 900; outline: none; }
.result p { font-size: 15px; color: var(--sub); }
.result .receipt { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.result .crisisline { background: var(--warn-soft); border-radius: 12px; padding: 10px 14px; color: var(--ink); font-size: 14px; }
.result .phoneline { font-weight: 700; color: var(--ink); }
.result .btn { align-self: flex-start; }
.msgnote, .netnote { font-size: 14px; background: var(--warn-soft); border-radius: 12px; padding: 12px 14px; }
.msgnote b, .netnote b { color: var(--warn); }
.familyOnly { display: flex; flex-direction: column; gap: 16px; border-top: 1px dashed var(--line2); padding-top: 14px; }
.familyOnly[hidden] { display: none; }

/* ===== 밴드 · 이야기 · 기관 · FAQ ===== */
.band { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; background: var(--soft); }
.band .eb { font-size: 14px; font-weight: 700; color: var(--mute); }
.band h3 { font-size: clamp(20px, 3vw, 26px); font-weight: 900; }
.band p { font-size: 15px; color: var(--sub); }
.soon { font-size: 13px; font-weight: 700; background: var(--accent-soft); color: var(--accent); padding: 3px 10px; border-radius: 999px; }

.storyGrid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: start; }
@media (max-width: 820px) { .storyGrid { grid-template-columns: 1fr; } }
.storyGrid .l { display: flex; flex-direction: column; gap: 14px; }
.storyGrid .l p { color: var(--sub); font-size: 16px; }
.storyGrid .form { margin: 0; max-width: none; }

.org { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; }
@media (max-width: 820px) { .org { grid-template-columns: 1fr; } }
.org .def { font-size: clamp(18px, 2.6vw, 22px); font-weight: 700; letter-spacing: -.03em; line-height: 1.55; }
.flow { list-style: none; margin: 0; padding: 0; counter-reset: f; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.flow li { counter-increment: f; display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; align-items: center; }
.flow li::before { content: counter(f); width: 28px; height: 28px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 900; font-size: 13px; font-variant-numeric: tabular-nums; }
.info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 720px) { .info { grid-template-columns: 1fr; } }
.info div { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.info span { font-size: 13px; font-weight: 700; color: var(--mute); }
.info b { font-size: 16px; }

.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; padding-block: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 500; font-size: 22px; line-height: 1; color: var(--mute); flex: none; }
.faq details[open] summary::after { content: "−"; color: var(--ink); }
.faq summary:hover { color: var(--accent); }
.faq details p { color: var(--sub); padding-bottom: 18px; max-width: 46em; font-size: 15px; }

/* ===== 하단 ===== */
footer { border-top: 1px solid var(--line); background: var(--soft); }
footer .w { padding-block: 40px 48px; display: flex; flex-direction: column; gap: 24px; }
footer .logos { background: #ffffff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; display: inline-flex; align-items: center; gap: 16px; align-self: flex-start; flex-wrap: wrap; }
footer .logos img { height: 28px; width: auto; display: block; }
footer .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; font-size: 14px; color: var(--sub); }
@media (max-width: 720px) { footer .cols { grid-template-columns: 1fr; } }
footer .cols b { display: block; font-size: 13px; color: var(--mute); margin-bottom: 4px; }
footer .cols a { text-decoration: underline; }
footer .help { font-size: 15px; border-top: 1px solid var(--line); padding-top: 16px; }
footer .help b { color: var(--warn); }

.toTop { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 9; width: 46px; height: 46px; border-radius: 999px; background: var(--pri); color: var(--onpri); border: 0; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 24px -8px rgba(0,0,0,.35); }
.toTop[hidden] { display: none; }

/* ===== 움직임: 기기에서 '동작 줄이기'를 켜지 않은 경우에만 ===== */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn, .nav a, .chips button, .utabs button, .door, .path, .ev, .partner, .f input, .f textarea, .f select, .rec::after, .badge, .toTop, .hubCard { transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease; }
  .btn.pri:hover, .badge:hover, .toTop:hover { transform: translateY(-1px); }
  .door:hover, .path:hover, .hubCard:hover { transform: translateY(-2px); }
  .rec:hover::after { transform: translateX(3px); }
  .hero .w-n > * { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
  .hero .w-n > *:nth-child(2) { animation-delay: .05s; }
  .hero .w-n > *:nth-child(3) { animation-delay: .1s; }
  .hero .w-n > *:nth-child(4) { animation-delay: .15s; }
  .hero .w-n > *:nth-child(5) { animation-delay: .2s; }
  [role="tabpanel"]:not([hidden]) { animation: fade .28s ease both; }
  .result:not([hidden]) { animation: fade .3s ease both; }
  .mnav:not([hidden]) { animation: fade .18s ease both; }
  .skel i { animation: pulse 1.2s ease-in-out infinite; }
  @keyframes rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  @keyframes pulse { 50% { opacity: .45; } }
  /* 스크롤 리빌: 요소가 화면에 들어올 때만 살짝 떠오름 (site.js가 .reveal 부여, 교차 즉시 .inview 추가) */
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
  .reveal.inview { opacity: 1; transform: none; }
}
