/* 씨알아이 메인 홈페이지 — 모양 (작업명령서 12). 색·글자 크기는 맨 위 :root 에서만 바꾼다. */
:root {
  --bg: #F7F5F0;
  --bg-2: #F1ECE3;
  --sand: #EAE2D6;
  --sand-2: #E2D7C6;
  --ochre: #C69A65;
  --ochre-d: #B98B59;
  --brown: #7E5A36;
  --ink: #171717;
  --ink-2: #3A3631;
  --muted: #7A736A;
  --line: #E2DACD;
  --card: #FFFFFF;
  --char: #1D1B19;
  --char-2: #282522;
  --char-line: #3A3632;
  --wrong: #B8543A;
  --right: #4F7A4A;
  --font: "Pretendard Variable", "Pretendard", "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(40, 30, 20, .06), 0 12px 32px -12px rgba(60, 40, 20, .18);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 17px; line-height: 1.7; word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.wrap { width: min(var(--wrap), 100%); margin: 0 auto; padding: 0 var(--gut); }
.eyebrow { font-size: 13px; font-weight: 650; letter-spacing: .14em; color: var(--ochre-d); margin: 0 0 20px; }
.h-xl { font-size: clamp(40px, 6vw, 84px); line-height: 1.14; letter-spacing: -0.03em; font-weight: 750; margin: 0; }
.h-l { font-size: clamp(30px, 4.3vw, 60px); line-height: 1.22; letter-spacing: -0.03em; font-weight: 750; margin: 0; }
.h-m { font-size: clamp(26px, 3.2vw, 44px); line-height: 1.25; letter-spacing: -0.035em; font-weight: 750; margin: 0; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); line-height: 1.75; margin: 0; }
.soft { color: var(--muted); }
.accent { color: var(--ochre-d); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 650; font-size: 16px; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-line { border-color: #CFC5B6; background: transparent; }
.btn-line:hover { background: #fff; border-color: var(--ink); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

/* 등장 효과: 흐림 → 또렷, 아래 → 제자리 */
.rv { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; filter: none; }
/* 화면 밖 구역은 움직임을 멈춘다 */
[data-io]:not(.inview) *, [data-io]:not(.inview) { animation-play-state: paused !important; }

/* ---------------------------------------------------------------- 머리 */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .35s, border-color .35s, box-shadow .35s; border-bottom: 1px solid transparent; }
.hdr .wrap { height: 84px; display: flex; align-items: center; gap: 28px; transition: height .35s var(--ease); max-width: 1440px; }
.hdr.scrolled { background: rgba(255, 255, 255, .72); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); border-bottom-color: rgba(23, 23, 23, .09); box-shadow: 0 8px 24px -18px rgba(40, 28, 15, .35); }
.hdr.scrolled .wrap { height: 60px; }
.brand { display: flex; align-items: baseline; gap: 10px; margin-right: auto; line-height: 1; }
.brand b { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; }
.brand b i { font-style: normal; color: #E8511E; }
.brand span { font-size: 12.5px; color: var(--muted); font-weight: 650; }
/* SeeAllai 글자 로고 — 로고와 같은 글꼴(Noto Sans KR, SeeAll 560 · ai 900)로 그린 그림 (tools/ops/make_wordmark.py) */
.brand .wm { height: 26px; width: auto; align-self: auto; transition: height .35s var(--ease); }
.hdr.scrolled .brand .wm { height: 20px; }
.wm-in { display: inline-block; height: 1.3em; width: auto; vertical-align: baseline; margin: 0 .08em; }
.wm-core { display: block; height: clamp(18px, 2.2vw, 26px); width: auto; margin: 0 auto 6px; }
.foot .brand .wm { height: 20px; }
.nav { display: flex; gap: 32px; font-size: 15px; font-weight: 650; color: var(--ink-2); }
.nav a { position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.hdr-act { display: flex; align-items: center; gap: 10px; }
.login { font-size: 15px; font-weight: 650; color: var(--ink-2); padding: 6px 0 6px 28px; }
.login:hover { color: var(--ink); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.burger i { position: absolute; left: 11px; right: 11px; height: 1.8px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.burger i:nth-child(1) { top: 16px; } .burger i:nth-child(2) { top: 21px; } .burger i:nth-child(3) { top: 26px; }
.menu-open .burger i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .burger i:nth-child(2) { opacity: 0; }
.menu-open .burger i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.mnav { display: none; }

/* ---------------------------------------------------------------- 1. 첫 화면 */
.hero { padding: clamp(112px, 13vh, 150px) 0 clamp(56px, 7vh, 88px); text-align: center; position: relative; overflow: hidden; background: linear-gradient(180deg, #FFFFFF 0%, #FEFDFB 45%, var(--bg) 100%); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 80%; background: radial-gradient(50% 60% at 50% 30%, rgba(198, 154, 101, .16), transparent 70%); pointer-events: none; }
.hero .h-xl { position: relative; }
/* 제목 한 줄씩 번갈아: '학생을 기억하는' → 'AI.' → 위로 사라지며 '필요한 공부만 찾아냅니다.' 올라옴 → 되풀이 (site.js initHeroTitle) */
.rot { position: relative; height: 1.22em; overflow: hidden; }
.rot .rl, .rot2 .rl { position: absolute; left: 0; right: 0; top: 0; white-space: normal; opacity: 0; transform: translateY(105%); transition: transform .9s var(--ease), opacity .9s var(--ease); }
.rot .rl.in, .rot2 .rl.in { opacity: 1; transform: none; }
.rot .rl.out, .rot2 .rl.out { opacity: 0; transform: translateY(-105%); }
.rot .rl.snap, .rot2 .rl.snap { transition: none; }
.rot .r2 { color: var(--ochre-d); }
.rot .ai { display: inline-block; font-weight: inherit; opacity: 0; transform: translateY(.35em); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rot .r1.show-ai .ai { opacity: 1; transform: none; }
.rot.static, .rot2.static { height: auto; }
.rot2 { position: relative; height: 1.75em; overflow: hidden; }
.rot2 .rl { transition-duration: 1.35s; }
.rot2.static .rl { position: static; display: block; opacity: 1; transform: none; white-space: normal; }
.rot.static .rl { position: static; display: block; opacity: 1; transform: none; white-space: normal; }
.rot.static .ai { opacity: 1; transform: none; }
/* 제목이 한 줄이 된 만큼 글자 묶음을 내리고, 카드 띠는 제자리 (원장님 09-29) */
/* PC: 첫 화면 덩어리(로고 줄~명령창)를 화면 위아래 한가운데에, 그 아래는 여백 — 황토 띠는 내려야 보인다 (원장님 09-29) */
@media (min-width: 861px) {
  .hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 84px 0; }
}

.hero .lead { max-width: 760px; margin: 22px auto 0; position: relative; }

/* 곡면 모니터 카드 띠 — 원통 안쪽 곡면 (site.js initCurve 가 화면에 보일 때만 자리·각도를 계산). 카드는 모두 HTML.
   카드 속은 320×214 기준으로 그리고 크기만 줄인다. 여백 18px · 머리 26px · 본문 13px · 큰 숫자 34px 로 통일. */
.cstage { position: relative; height: 430px; margin-top: -98px; pointer-events: none; perspective: 1000px; perspective-origin: 50% 50%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent); }
.ctrack { position: absolute; left: 0; top: 50%; width: 100%; height: 0; transform-style: preserve-3d; }
.cc { position: absolute; left: 0; top: 0; width: 320px; height: 214px; margin-top: -107px; padding: 16px 18px 16px; display: flex; flex-direction: column;
  --c-bg: #fff; --c-ink: #171717; --c-mut: #8C8378; --c-soft: #F4EDE3; --c-soft-ink: #7E5A36; --c-track: #F1EBE2; --c-bar: linear-gradient(90deg, #D2A775, #B98B59); --c-bar-top: #171717; --c-acc: #B98B59; --c-line: rgba(23, 23, 23, .07);
  background: var(--c-bg); border-radius: 18px; border: 1px solid var(--c-line); color: var(--c-ink); text-align: left; font-size: 13px; line-height: 1.4; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 2px 4px rgba(40, 28, 15, .04), 0 24px 44px -22px rgba(60, 40, 20, .42);
  backface-visibility: hidden; will-change: transform; }
.cc-h { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.cc-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--c-soft); color: var(--c-soft-ink); flex: none; }
.cc-ic svg { width: 15px; height: 15px; }
.cc-t { font-size: 13px; font-weight: 650; letter-spacing: -0.01em; }
.cc-m { margin-left: auto; font-size: 11px; font-weight: 650; color: var(--c-mut); font-variant-numeric: tabular-nums; }
.cc .lbl { font-size: 11px; font-weight: 650; color: var(--c-mut); }
.cc .num { font-size: 34px; font-weight: 750; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.cc .num small { font-size: 15px; font-weight: 650; color: var(--c-mut); letter-spacing: 0; margin-left: 2px; }
.cc .num.acc { color: var(--c-acc); }
.cc .chip2 { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 650; padding: 4px 9px; border-radius: 999px; background: var(--c-soft); color: var(--c-soft-ink); white-space: nowrap; }
.cc .chip2.ink { background: var(--c-ink); color: var(--c-bg); }
.cc .chip2.ok { background: #E7F1E4; color: #3F6B3A; }
.cc .ft { margin-top: auto; display: flex; gap: 6px; align-items: center; }

/* 채점 */
.cc .g { display: flex; align-items: center; gap: 16px; }
.cc .gg { margin-left: auto; display: grid; grid-template-columns: repeat(5, 26px); gap: 5px; }
.cc .gg span { height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: 11px; font-weight: 650; background: rgba(255, 255, 255, .78); color: #2F6B34; }
.cc .gg span.x { background: #FBEAE4; color: #A8452C; box-shadow: inset 0 0 0 1.5px #EBC0B2; }

/* 풀이영상 — 실제 수업 화면 + 자막 */
.cc.media { padding: 0; background: #111; border-color: #111; color: #fff; }
.cc.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cc.media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .7) 100%); }
.cc .v-top { position: absolute; left: 14px; top: 12px; right: 14px; z-index: 1; display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 650; }
.cc .v-top b { background: rgba(255, 255, 255, .92); color: var(--ink); border-radius: 999px; padding: 3px 9px; font-size: 11px; }
.cc .v-top span { margin-left: auto; opacity: .85; font-variant-numeric: tabular-nums; }
.cc .v-bar { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; display: flex; align-items: center; gap: 9px; font-size: 10.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.cc .v-bar i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); position: relative; }
.cc .v-bar i::after { content: ""; position: absolute; inset: 0 57% 0 0; border-radius: 3px; background: #F2C38D; }
.cc .v-bar i::before { content: ""; position: absolute; left: 43%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff; }

/* 오답 유형 */
.cc .br { margin-bottom: 9px; }
.cc .br div { display: flex; justify-content: space-between; font-size: 12px; font-weight: 650; margin-bottom: 4px; }
.cc .br div b { font-weight: 750; font-variant-numeric: tabular-nums; }
.cc .br s { display: block; height: 6px; border-radius: 6px; background: var(--c-track); position: relative; text-decoration: none; }
.cc .br s::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 6px; background: var(--c-bar); }
.cc .br.top s::after { background: var(--c-bar-top); }

/* 학부모 안내 — 휴대폰 알림 두 장 겹침 */
.cc.soft { background: linear-gradient(160deg, #FBF8F3, #F3ECE1); }
.cc .nt3 { position: relative; background: #fff; border-radius: 14px; padding: 11px 12px; box-shadow: 0 6px 16px -10px rgba(40, 25, 10, .45); display: grid; grid-template-columns: 30px 1fr; gap: 3px 10px; }
.cc .nt3 img { grid-row: span 3; width: 30px; height: 30px; border-radius: 8px; }
.cc .nt3 .a { font-size: 10.5px; font-weight: 650; color: #9A9086; display: flex; }
.cc .nt3 .a span { margin-left: auto; font-weight: 650; }
.cc .nt3 b { font-size: 12.5px; font-weight: 750; }
.cc .nt3 p { margin: 0; font-size: 12px; color: var(--ink-2); line-height: 1.4; }
.cc .nt3.back { height: 18px; margin: -10px 10px 0; padding: 0; background: rgba(255, 255, 255, .75); box-shadow: none; border-radius: 0 0 12px 12px; z-index: 0; }

/* 필요한 문제 */
.cc .nd { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.cc .nd .arr { font-size: 18px; color: var(--c-mut); padding-bottom: 6px; }
.cc .dg { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; }
.cc .dg i { aspect-ratio: 1; border-radius: 2px; background: var(--c-track); }
.cc .dg i.on { background: var(--c-ink); transform: scale(1.25); border-radius: 3px; }

/* 이번 주 확인수업 */
.cc .wk2 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; flex: 1; }
.cc .wk2 div { display: flex; flex-direction: column; gap: 5px; }
.cc .wk2 em { font-style: normal; font-size: 10.5px; font-weight: 650; color: var(--c-mut); text-align: center; }
.cc .wk2 em b { display: block; font-size: 13px; color: var(--c-ink); }
.cc .wk2 i { flex: 1; border-radius: 8px; background: var(--c-track); position: relative; font-style: normal; }
.cc .wk2 i .old, .cc .wk2 i .new { position: absolute; left: 3px; right: 3px; border-radius: 6px; font-size: 10px; font-weight: 750; display: grid; place-items: center; line-height: 1.2; text-align: center; }
.cc .wk2 i .old { top: 14px; height: 32px; border: 1.5px dashed var(--c-mut); color: var(--c-mut); text-decoration: line-through; }
.cc .wk2 i .new { top: 40px; height: 40px; background: var(--c-acc); color: #fff; box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .5); }

/* 학생별 시험지 */
.cc .ps { position: relative; flex: 1; }
.cc .pp { position: absolute; top: 0; width: 150px; height: 118px; background: #fff; border: 1px solid #E6DCCD; border-radius: 6px; padding: 10px 11px; box-shadow: 0 10px 18px -12px rgba(60, 40, 20, .5); }
.cc .pp:nth-child(1) { left: 6px; transform: rotate(-4deg); }
.cc .pp:nth-child(2) { left: 128px; top: 6px; transform: rotate(3deg); }
.cc .pp b { display: block; font-size: 13px; font-weight: 750; }
.cc .pp em { display: block; font-style: normal; font-size: 10px; font-weight: 650; color: var(--c-acc); margin: 1px 0 7px; }
.cc .pp i { display: block; height: 4px; border-radius: 2px; background: #EFE7DA; margin-bottom: 6px; }
.cc .pp i:nth-of-type(2n) { width: 72%; }

/* 복습 시점 그래프 */
.cc svg { display: block; width: 100%; flex: 1; min-height: 0; }

/* 출결 */
.cc .at { display: flex; gap: 16px; align-items: center; flex: 1; }
.cc .qr2 { width: 100px; height: 100px; flex: none; padding: 7px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px #E6DCCD; display: grid; grid-template-columns: repeat(21, 1fr); grid-template-rows: repeat(21, 1fr); }
.cc .qr2 i { background: transparent; }
.cc .qr2 i.k { background: var(--ink); }

/* 신규원생 등록 */
.cc .fm2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 14px; }
.cc .fm2 div span { display: block; font-size: 10.5px; font-weight: 650; color: var(--c-mut); }
.cc .fm2 div b { font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.cc .ask2 { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 10px; background: var(--c-soft); font-size: 12px; font-weight: 650; }
.cc .ask2 b { background: var(--c-ink); color: var(--c-bg); border-radius: 999px; padding: 4px 12px; font-size: 11.5px; }

/* 학습 고리 */
.cc .lp { position: relative; flex: 1; }
.cc .lp svg { position: absolute; inset: 0; height: 100%; }
.cc .lp span { position: absolute; transform: translate(-50%, -50%); font-size: 11px; font-weight: 650; color: #171717; background: #fff; border-radius: 999px; padding: 3px 9px; box-shadow: 0 3px 8px -4px rgba(40, 25, 10, .45); white-space: nowrap; }
.cc .lp span.on { background: var(--c-ink); color: var(--c-bg); }
.cc .lp .mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; font-size: 11px; font-weight: 650; color: var(--c-mut); line-height: 1.35; }

/* 학원 안의 AI */
.cc.dark { background: radial-gradient(120% 90% at 50% 0%, #2E2925, #1B1917 70%); color: #EFE9DF; border-color: #1B1917; }
.cc.dark .cc-ic { background: rgba(216, 179, 132, .14); color: #D8B384; }
.cc.dark .cc-m { color: #8F867A; }
.cc .core3 { flex: 1; display: grid; place-items: center; position: relative; }
.cc .core3::before, .cc .core3::after { content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(216, 179, 132, .22); transform: translate(-50%, -50%); }
.cc .core3::before { width: 150px; height: 150px; }
.cc .core3::after { width: 206px; height: 206px; border-style: dashed; border-color: rgba(216, 179, 132, .16); }
.cc .core3 div { position: relative; width: 104px; height: 104px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(circle, #3B332B, #221E1A 72%); border: 1px solid rgba(216, 179, 132, .55); box-shadow: 0 0 36px rgba(216, 179, 132, .25); font-size: 10.5px; font-weight: 750; letter-spacing: .14em; color: #D8B384; }
.cc .core3 img { height: 15px; width: auto; margin: 0 auto 4px; }

/* 가운데 명령창 (시연 — 누를 수 없음) */
.cmdwrap { position: relative; z-index: 5; margin: -283px auto 0; width: min(640px, calc(100% - 2 * var(--gut))); }
.cmdbox { background: #fff; border: 1.5px solid var(--ink); border-radius: 22px; padding: 16px 20px 12px; text-align: left; box-shadow: 0 30px 60px -30px rgba(40, 25, 10, .45); }
.cmd-top { display: flex; align-items: center; gap: 10px; }
.cmd-top img { height: 18px; width: auto; }
/* 말하는 사람: 명령 글 앞, 회색·작게, 아래쪽 맞춤 */
.cmd-text .who { font-size: .7em; font-weight: 650; color: #9A9086; margin-right: .75em; vertical-align: baseline; transition: opacity .3s; }
.cmd-text .who.fade { opacity: 0; }
.cmd-text { min-height: 32px; margin: 10px 0 4px; white-space: nowrap; overflow: hidden; text-overflow: clip; font-size: clamp(17px, 1.7vw, 21px); font-weight: 650; color: var(--ink); line-height: 1.5; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--ochre-d); vertical-align: -0.18em; margin-left: 2px; animation: blink 1s steps(1) infinite; }
.cmd-bot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; }
.cmd-bot .res { font-size: 14px; font-weight: 650; color: var(--right); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ease); }
.cmd-bot .res.on { opacity: 1; transform: none; }
.cmd-bot .send { width: 36px; height: 36px; border-radius: 50%; background: var(--sand); color: var(--brown); display: grid; place-items: center; font-weight: 750; transition: background .3s, color .3s; flex: none; }
.cmd-bot .send.on { background: var(--ink); color: #fff; }
.facts { list-style: none; margin: 22px 0 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; font-weight: 650; color: var(--muted); }
.facts li { display: flex; align-items: center; gap: 7px; }
.facts li::before { content: "✓"; width: 16px; height: 16px; border-radius: 50%; background: var(--sand); color: var(--brown); font-size: 10px; font-weight: 750; display: grid; place-items: center; }

/* ---------------------------------------------------------------- 2. 황토색 무대 */
.stage-sec { padding: clamp(60px, 12vh, 140px) 0 clamp(80px, 12vh, 140px); }
.stage {
  width: 100%; margin: 0; border-radius: 0; color: var(--ink);
  background: linear-gradient(165deg, #CFA673 0%, #C69A65 45%, #B98B59 100%);
  border-top: 1px solid #A57846; border-bottom: 1px solid #A57846;
  padding: clamp(56px, 7vw, 104px) max(var(--gut), calc((100% - 1240px) / 2)) clamp(44px, 5vw, 72px); position: relative; overflow: hidden;
}
.stage::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 85% 0%, rgba(255, 255, 255, .22), transparent 70%); pointer-events: none; }

.stage .eyebrow { color: #FFF6E9; letter-spacing: .2em; }
.stage .h-l { color: #1A140E; font-size: clamp(27px, 3.87vw, 54px); }
.stage-head > div { flex: 1; min-width: 0; width: 100%; }
.rot-s { width: 100%; }
.stage-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(36px, 5vw, 64px); position: relative; z-index: 1; }
.stage-head p { max-width: 360px; margin: 0; color: #3B2A18; font-size: 16px; }
.slides { position: relative; aspect-ratio: 16 / 9.4; z-index: 1; }
.slide {
  position: absolute; top: 0; left: 0; width: 88%; height: 100%; border-radius: 22px; overflow: hidden;
  background: #FBF9F5; box-shadow: 0 30px 60px -20px rgba(60, 35, 10, .45);
  transition: transform .9s var(--ease), opacity .9s var(--ease), filter .9s; transform-origin: right center;
  opacity: 0; transform: translateX(16%) scale(.84); pointer-events: none; z-index: 1;
}
.slide.is-active { opacity: 1; transform: none; pointer-events: auto; z-index: 3; }
.slide.is-next { opacity: .55; transform: translateX(13.6%) scale(.9); z-index: 2; filter: saturate(.7); cursor: pointer; pointer-events: auto; }
.slide.is-prev { opacity: 0; transform: translateX(-8%) scale(.94); z-index: 2; }
.win-bar { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 18px; border-bottom: 1px solid #ECE5DA; background: #F6F2EB; font-size: 13px; color: var(--muted); font-weight: 650; }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #E0D6C8; }
.win-bar span { margin-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.win-bar em { flex: none; }
.win-bar i { flex: none; }
.win-bar em { margin-left: auto; font-style: normal; font-size: 11.5px; color: #A0917E; border: 1px solid #E3D8C8; border-radius: 999px; padding: 2px 10px; }
.win-body { position: absolute; inset: 44px 0 0 0; }
.slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-ctl { display: flex; align-items: center; gap: 24px; margin-top: 28px; position: relative; z-index: 1; }
.cap { flex: 1; min-width: 0; }
.cap b { display: block; font-size: clamp(19px, 1.8vw, 24px); letter-spacing: -0.02em; color: #1A140E; }
.cap span { font-size: 13px; font-weight: 650; color: #FFF6E9; letter-spacing: .12em; }
.pager { display: flex; gap: 8px; }
.pager button { width: 56px; height: 28px; border: 0; padding: 0; background: transparent; cursor: pointer; display: flex; align-items: center; }
.pager button i { display: block; width: 100%; height: 3px; border-radius: 3px; background: rgba(40, 25, 10, .22); overflow: hidden; position: relative; }
.pager button i b { position: absolute; inset: 0; background: #1A140E; transform: scaleX(0); transform-origin: left; }
.pager button.done i b { transform: scaleX(1); }
.time { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 650; color: #3B2A18; min-width: 82px; text-align: right; }
.arrows { display: flex; gap: 8px; }
.arrows button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(40, 25, 10, .25); background: rgba(255, 255, 255, .18); cursor: pointer; display: grid; place-items: center; transition: background .25s; }
.arrows button:hover { background: rgba(255, 255, 255, .5); }
.arrows svg { width: 18px; height: 18px; }

/* 시연 화면 공통 — data-t 시각에 켜진다 */
[data-t] { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
[data-t].on { opacity: 1; transform: none; }
.demo { position: absolute; inset: 0; padding: clamp(14px, 2.4vw, 32px); font-size: clamp(11px, 1.05vw, 15px); }

/* 시연 1: 오늘 학습 */
.d1 { display: grid; grid-template-columns: .9fr 1.4fr; gap: clamp(14px, 2.4vw, 32px); }
.paper { background: #fff; border: 1px solid #ECE5DA; border-radius: 14px; padding: 1.2em 1.4em; box-shadow: 0 8px 24px -14px rgba(60, 40, 20, .3); display: flex; flex-direction: column; }
.paper h4 { margin: 0 0 .2em; font-size: 1.05em; }
.paper .who { color: var(--muted); font-size: .85em; margin-bottom: .6em; }
.arow { display: flex; align-items: center; gap: .8em; padding: .32em 0; border-bottom: 1px dashed #EEE7DC; font-weight: 650; }
.arow .n { width: 1.8em; color: var(--muted); font-weight: 650; }
.arow .mk { margin-left: auto; width: 1.7em; height: 1.7em; border-radius: 50%; display: grid; place-items: center; font-size: .85em; font-weight: 750; color: #fff; }
.arow .mk.o { background: var(--right); }
.arow .mk.x { background: var(--wrong); }
.arow.bad.on-row { background: #FBEFEA; }
.score { margin-top: auto; padding-top: .6em; display: flex; justify-content: space-between; align-items: baseline; font-weight: 750; }
.score b { font-size: 1.8em; letter-spacing: -0.03em; }
.pills { display: flex; flex-wrap: wrap; gap: .4em; margin-top: .25em; }
.pill { font-size: .8em; font-weight: 650; padding: .2em .7em; border-radius: 999px; background: #F4ECE1; color: var(--brown); }
.pill.hot { background: var(--ink); color: #fff; }
.bar { height: .5em; background: #F0E8DC; border-radius: 9px; overflow: hidden; margin-top: .35em; }
.bar i { display: block; height: 100%; width: 0; background: var(--ochre-d); border-radius: 9px; transition: width 1.4s var(--ease) .2s; }
.on .bar i { width: var(--w); }
.minis { display: flex; gap: .4em; margin-top: .3em; }
.minis i { flex: 1; height: 2.2em; border-radius: 6px; background: repeating-linear-gradient(#fff 0 .35em, #EDE4D6 .35em .45em); border: 1px solid #E6DCCD; }
.printer { position: relative; height: 3.2em; width: 5.2em; flex: none; }
.printer .body { position: absolute; left: 0; bottom: 0; width: 5.2em; height: 1.9em; border-radius: 8px; background: var(--ink); }
.printer .sheet { position: absolute; left: .8em; bottom: 1.2em; width: 3.6em; height: 0; background: #fff; border: 1px solid #DDD2C2; border-bottom: 0; border-radius: 3px 3px 0 0; transition: height 1.6s var(--ease) .3s; }
.on .printer .sheet, .printer.on .sheet { height: 2.6em; }

/* 시연 2·5: 대화 */
.chat { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .7em; padding: 1.4em clamp(1em, 8%, 7em); overflow: hidden; }
.msg { max-width: 76%; padding: .7em 1em; border-radius: 1.1em; line-height: 1.5; font-weight: 500; }
.msg.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: .35em; }
.msg.ai { align-self: flex-start; background: #fff; border: 1px solid #ECE5DA; border-bottom-left-radius: .35em; }
.msg .nm { display: block; font-size: .78em; font-weight: 750; color: var(--ochre-d); margin-bottom: .2em; }
.typing { align-self: flex-start; display: flex; gap: .3em; padding: .8em 1em; background: #fff; border: 1px solid #ECE5DA; border-radius: 1.1em; }
.typing i { width: .45em; height: .45em; border-radius: 50%; background: #BFB2A0; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
[data-e]:not(.on) { display: none; }
.vcard { margin-top: .6em; border-radius: .8em; overflow: hidden; border: 1px solid #E6DCCD; background: #fff; width: min(20em, 100%); }
.vthumb { aspect-ratio: 16 / 8.6; background: #111 center / cover no-repeat; position: relative; display: grid; place-items: center; overflow: hidden; }
.vthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }


.vthumb b { width: 2.6em; height: 2.6em; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; position: relative; }
.vthumb b::after { content: ""; border-left: .8em solid var(--ink); border-top: .5em solid transparent; border-bottom: .5em solid transparent; margin-left: .2em; }
.vmeta, .fmeta { padding: .55em .8em; font-size: .85em; display: flex; justify-content: space-between; gap: .6em; }
.vmeta b, .fmeta b { font-weight: 650; }
.fcardx { margin-top: .6em; display: flex; align-items: center; gap: .8em; border: 1px solid #E6DCCD; border-radius: .8em; padding: .6em .8em; background: #FCFAF6; width: min(20em, 100%); }
.fcardx .pdf { width: 2.4em; height: 3em; border-radius: 4px; background: #fff; border: 1px solid #DCCFBD; position: relative; flex: none; }
.fcardx .pdf::after { content: "PDF"; position: absolute; left: -.3em; bottom: .35em; font-size: .6em; font-weight: 750; background: var(--wrong); color: #fff; padding: .1em .35em; border-radius: 3px; }
.fcardx small { color: var(--muted); display: block; font-size: .8em; }
.okline { display: flex; align-items: center; gap: .5em; margin-top: .5em; font-weight: 650; color: var(--right); }

/* 시연 3: 선생님 명령 */
.d3 { display: flex; flex-direction: column; gap: 1.1em; padding: clamp(16px, 3vw, 40px); }
.scene { position: absolute; inset: 0; padding: inherit; display: flex; flex-direction: column; gap: 1.1em; }
.scene:not(.on) { visibility: hidden; }
.cmdbar { display: flex; align-items: center; gap: .9em; background: var(--ink); color: #fff; border-radius: 999px; padding: .7em 1.2em .7em .7em; font-weight: 650; font-size: 1.08em; }
.cmdbar .mic { width: 2.3em; height: 2.3em; border-radius: 50%; background: #E9C99E; color: var(--ink); display: grid; place-items: center; flex: none; position: relative; }
.cmdbar .mic::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(233, 201, 158, .5); animation: ring 1.6s var(--ease) infinite; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.cmdbar .who { font-size: .78em; color: #A8A095; font-weight: 650; margin-right: .6em; vertical-align: baseline; }
.flow { display: flex; align-items: center; gap: .5em; flex-wrap: wrap; }
.flow .fs { background: #fff; border: 1px solid #E6DCCD; border-radius: 999px; padding: .4em 1em; font-weight: 650; font-size: .92em; color: var(--muted); transition: background .4s, color .4s, border-color .4s; }
.flow .fs.on { background: var(--sand); color: var(--ink); border-color: var(--sand-2); }
.flow .fs.last.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.flow .ar { color: #C5B7A3; font-weight: 750; }
.result { flex: 1; background: #fff; border: 1px solid #ECE5DA; border-radius: 16px; padding: 1.1em 1.3em; position: relative; overflow: hidden; min-height: 0; }
.result h5 { margin: 0 0 .7em; font-size: .95em; color: var(--muted); font-weight: 650; }
.week { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5em; position: relative; }
.week div { text-align: center; font-size: .85em; font-weight: 650; color: var(--muted); }
.week div i { display: block; height: 4.6em; margin-top: .4em; border-radius: 10px; background: #F6F1E9; position: relative; }
.evt { position: absolute; top: 2.3em; left: 20.4%; width: 19%; height: 2.4em; border-radius: 8px; background: var(--ochre-d); color: #fff; font-size: .82em; font-weight: 750; display: grid; place-items: center; transition: left 1.1s var(--ease), top 1.1s var(--ease), background .6s; }
.evt[data-t] { opacity: 1; transform: none; }
.evt.on { left: 60.8%; top: 3.8em; background: var(--ink); }
.hbar { display: grid; grid-template-columns: 7em 1fr 3em; align-items: center; gap: .8em; margin: .55em 0; font-weight: 650; font-size: .92em; }
.hbar .bar { height: .7em; margin: 0; }
.sheets { display: flex; gap: 1.4em; padding-top: .3em; }
.sheet2 { width: 9em; background: #fff; border: 1px solid #DCCFBD; border-radius: 6px; padding: .7em; font-size: .78em; box-shadow: 0 10px 20px -12px rgba(60, 40, 20, .35); transform: translateY(30%); opacity: 0; transition: transform 1s var(--ease), opacity 1s; }
.sheet2.on { transform: none; opacity: 1; }
.sheet2 b { display: block; font-size: 1.05em; margin-bottom: .3em; }
.sheet2 i { display: block; height: .45em; margin: .4em 0; border-radius: 3px; background: #EFE7DA; }
.sheet2 i:nth-child(odd) { width: 80%; }
.rcpt { display: grid; grid-template-columns: auto 1fr; gap: .45em 1.4em; font-size: .95em; }
.rcpt dt { color: var(--muted); font-weight: 650; }
.rcpt dd { margin: 0; font-weight: 650; }
.stamp { position: absolute; right: 1.2em; bottom: 1em; border: 2px solid var(--right); color: var(--right); font-weight: 750; border-radius: 10px; padding: .3em .8em; transform: rotate(-6deg) scale(1.3); opacity: 0; transition: transform .5s var(--ease), opacity .5s; }
.stamp.on { transform: rotate(-6deg) scale(1); opacity: 1; }
.sms2 { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.2em; height: 100%; }
.sms2 .bub { background: #F4EFE7; border-radius: 12px; padding: .6em .8em; font-size: .85em; margin-bottom: .5em; }
.form { display: grid; grid-template-columns: auto 1fr; gap: .35em 1em; font-size: .9em; align-content: start; }
.form dt { color: var(--muted); font-weight: 650; }
.form dd { margin: 0; font-weight: 650; }
.ask { grid-column: 1 / -1; margin-top: .5em; display: flex; align-items: center; justify-content: space-between; gap: .6em; background: var(--sand); border-radius: 10px; padding: .5em .8em; font-weight: 650; }
.ask button { border: 0; background: var(--ink); color: #fff; border-radius: 999px; padding: .3em 1em; font-weight: 650; font-size: .9em; }

/* ---------------------------------------------------------------- 3. 이야기 카드 — 왼쪽 붙박이, 오른쪽 화면 */
.stories { padding: clamp(80px, 10vw, 140px) 0 clamp(40px, 6vw, 80px); }
.st-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(40px, 6vw, 100px); align-items: stretch; }
.st-stick { position: sticky; top: 120px; padding-top: 12vh; }
.st-index { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 4px; }
.st-index a { display: flex; align-items: center; gap: 14px; padding: 10px 0 10px 16px; border-left: 2px solid var(--line); font-weight: 650; font-size: 17px; color: #A89E91; transition: color .4s, border-color .4s; }
.st-index a span { font-size: 12px; letter-spacing: .1em; color: inherit; }
.st-index li.cur a { color: var(--ink); border-left-color: var(--ink); }
.st-index a:hover { color: var(--ink-2); }
.story { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; padding: 8vh 0; transition: opacity .6s var(--ease); }
.st-panels .story:not(.cur) { opacity: .28; }
.story .copy { margin-top: 36px; max-width: 600px; }
.story .copy .num { font-size: 13px; font-weight: 750; color: var(--ochre-d); letter-spacing: .14em; margin-bottom: 14px; display: block; }
.story .copy .lead { margin-top: 18px; }
.story .copy .key { margin-top: 22px; padding-left: 18px; border-left: 3px solid var(--ochre); font-weight: 650; font-size: 18px; color: var(--ink); }
.visual { position: relative; background: var(--sand); border-radius: 28px; aspect-ratio: 1 / .78; overflow: hidden; }
.visual.light { background: #EFE8DC; }

/* 이야기 1: 왜 틀렸는지 */
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* 이야기 2: 필요한 문제만 */
.pick { position: absolute; inset: 8%; display: flex; flex-direction: column; gap: 16px; }
.qgrid { flex: 1; display: grid; grid-template-columns: repeat(16, 1fr); gap: 6px; position: relative; align-content: center; }
.qgrid i { aspect-ratio: 1; border-radius: 5px; background: #fff; border: 1px solid rgba(120, 90, 50, .14); display: block; transition: none; }
.qgrid .scan { position: absolute; left: -2%; right: -2%; height: 18%; top: -20%; background: linear-gradient(180deg, transparent, rgba(185, 139, 89, .35), transparent); border-bottom: 2px solid var(--ochre-d); pointer-events: none; opacity: 0; }
.pick.go .qgrid .scan { animation: scan 1.6s var(--ease) .2s both; }
@keyframes scan { 0% { top: -20%; opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.inview .qgrid i { animation: dim .8s var(--ease) 2.6s both; }
.inview .qgrid i.need { animation: need .9s var(--ease) 2.8s both; }
@keyframes dim { to { opacity: .16; transform: scale(.9); } }
@keyframes need { to { background: var(--ink); border-color: var(--ink); transform: scale(1.18); box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .4); } }
.criteria { display: flex; flex-wrap: wrap; gap: 6px; }
.criteria span { font-size: 12.5px; font-weight: 650; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .6); color: var(--muted); }
.inview .criteria span { animation: lit .5s var(--ease) both; animation-delay: calc(.5s + var(--i) * .3s); }
@keyframes lit { to { background: #fff; color: var(--ink); } }
.pickcount { display: flex; justify-content: space-between; font-size: 14px; font-weight: 650; color: var(--brown); }
.pickcount b { color: var(--ink); }
.pickcount .after { opacity: 0; }
.pick.go .pickcount .after { animation: pop .6s var(--ease) 2.2s both; }

/* 이야기 3: 기억 그래프 */
.curve { position: absolute; inset: 9% 7% 8%; }
.curve svg { width: 100%; height: 100%; overflow: visible; }
.curve .axis { stroke: rgba(80, 60, 30, .3); stroke-width: 1.5; }
.curve .grid { stroke: rgba(80, 60, 30, .08); stroke-width: 1; }
.curve .lost { opacity: 0; fill: none; stroke: rgba(120, 90, 50, .35); stroke-width: 2.5; stroke-dasharray: 6 8; }
.curve .main { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.inview .curve .main { animation: draw 4.2s var(--ease) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.curve .lbl { font-size: 13px; font-weight: 650; fill: var(--brown); font-family: var(--font); }
.curve .ax { font-size: 12px; fill: var(--muted); font-family: var(--font); font-weight: 650; }
.curve .rev { opacity: 0; }
.inview .curve .rev { animation: fadeIn .6s var(--ease) both; }
.inview .curve .rev.r1 { animation-delay: 1.5s; } .inview .curve .rev.r2 { animation-delay: 2.9s; }
.inview .curve .lost { animation: fadeIn 1s var(--ease) .6s both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.curve .rev rect { fill: var(--ochre-d); }
.curve .rev text { fill: #fff; font-size: 12.5px; font-weight: 750; font-family: var(--font); }

/* 이야기 4: 학습 고리 */
.loop { position: absolute; inset: 0; }
.loop svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.loop .track2 { fill: none; stroke: rgba(120, 90, 50, .25); stroke-width: 2; stroke-dasharray: 3 7; }
.loop .runner { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 60 1000; animation: run 16s linear infinite; }
@keyframes run { to { stroke-dashoffset: -1068; } }
.loop .node { position: absolute; transform: translate(-50%, -50%); background: #fff; border-radius: 999px; padding: 9px 16px; font-size: 14.5px; font-weight: 650; white-space: nowrap; box-shadow: 0 4px 14px -8px rgba(60, 40, 20, .4); color: var(--ink-2); animation: litnode 16s linear infinite; animation-delay: calc(var(--i) * 2s - 16s); }
@keyframes litnode { 0%, 11% { background: var(--ink); color: #fff; } 13%, 100% { background: #fff; color: var(--ink-2); } }
.loop .center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; }
.loop .center b { display: block; font-size: 20px; letter-spacing: -0.02em; }
.loop .center span { font-size: 13.5px; color: var(--muted); font-weight: 650; }

/* 폰 모양 (이야기 5 · 학부모) */
.phone { position: relative; width: min(330px, 78%); aspect-ratio: 9 / 18.5; margin: 0 auto; border-radius: 44px; background: #1F1C19; padding: 12px; box-shadow: 0 40px 60px -30px rgba(40, 25, 10, .55); }
.phone .scr { position: absolute; inset: 12px; border-radius: 34px; overflow: hidden; background: #F7F3EC; display: flex; flex-direction: column; }
.phone .top { padding: 34px 18px 12px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #EAE2D5; background: #FBF8F3; font-size: 14px; font-weight: 750; }
.phone .top i { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #E9C99E; display: grid; place-items: center; font-style: normal; font-size: 12px; }
.phone .top small { display: block; font-size: 11px; color: var(--muted); font-weight: 650; }
.phone .notch { position: absolute; top: 20px; left: 50%; width: 90px; height: 24px; transform: translateX(-50%); border-radius: 20px; background: #1F1C19; z-index: 2; }
.phone .chat { position: relative; flex: 1; padding: 14px 14px 18px; font-size: 13.5px; }
.phone .msg { max-width: 84%; }
.phone .vcard, .phone .fcardx { width: 100%; font-size: 12.5px; }
.cal { margin-top: .5em; border: 1px solid #E6DCCD; border-radius: .8em; background: #FCFAF6; padding: .6em .8em; font-size: .92em; }
.cal b { display: block; font-size: 1.05em; }
.cal span { color: var(--muted); font-size: .9em; }
.visual.tall { aspect-ratio: 1 / 1; }
.visual .phone { position: absolute; left: 50%; top: 5%; transform: translateX(-50%); width: min(290px, 44%); }

/* ---------------------------------------------------------------- 4. 감성 영상 */
.focus { position: relative; height: min(96vh, 1000px); min-height: 560px; overflow: hidden; color: #fff; display: grid; place-items: center; text-align: center; background: #6B5A48; }
.focus video, .focus .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.focus .ph { background:
  radial-gradient(22% 30% at 18% 30%, rgba(255, 226, 180, .75), transparent 70%),
  radial-gradient(18% 26% at 78% 24%, rgba(255, 240, 214, .6), transparent 70%),
  radial-gradient(30% 36% at 64% 78%, rgba(214, 168, 112, .7), transparent 70%),
  radial-gradient(26% 30% at 30% 82%, rgba(160, 120, 80, .7), transparent 70%),
  linear-gradient(160deg, #A58A6B, #6E5842 60%, #4E3F31);
  filter: blur(18px) saturate(1.05); transform: scale(1.12); animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.2) translate3d(-2%, 1.5%, 0); } }
.focus::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 14, 8, .10), rgba(20, 14, 8, .28)); }
.focus .txt { position: relative; z-index: 1; padding: 0 var(--gut); }
.focus .h-l { color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.focus .sig .wm-in { height: 1.5em; vertical-align: baseline; }
.focus .sig { position: absolute; bottom: 36px; left: 0; right: 0; z-index: 1; font-size: 12.5px; letter-spacing: .12em; font-weight: 650; opacity: .85; }
.phnote { position: absolute; right: 16px; top: 16px; z-index: 2; font-size: 12px; background: rgba(0, 0, 0, .35); color: #fff; border-radius: 10px; padding: 8px 12px; text-align: left; line-height: 1.5; max-width: 300px; }

/* ---------------------------------------------------------------- 5. 기록 연결 */
.records { padding: clamp(100px, 14vw, 180px) 0; text-align: center; }
.records .lead { max-width: 640px; margin: 24px auto 0; }
.web { position: relative; margin: clamp(48px, 7vw, 90px) auto 0; width: min(1000px, 100%); aspect-ratio: 16 / 9; }
.web svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.web line { stroke: rgba(120, 90, 50, .22); stroke-width: 1.5; }
.web line.pulse { stroke: var(--ochre-d); stroke-width: 2.4; stroke-dasharray: 3 60; stroke-linecap: round; animation: pulse 5.5s linear infinite; animation-delay: calc(var(--i) * -.7s); }
@keyframes pulse { to { stroke-dashoffset: -126; } }
.web .me { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: clamp(130px, 17%, 180px); aspect-ratio: 1; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-content: center; box-shadow: 0 0 0 14px rgba(198, 154, 101, .18), 0 0 0 30px rgba(198, 154, 101, .08); }
.web .me b { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; }
.web .me span { font-size: 12.5px; color: #E9C99E; font-weight: 650; }
.web .nd { position: absolute; transform: translate(-50%, -50%); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-size: 15px; font-weight: 650; white-space: nowrap; box-shadow: 0 6px 18px -12px rgba(60, 40, 20, .4); }

/* ---------------------------------------------------------------- 6. 학부모 */
.parents { padding: clamp(80px, 12vw, 160px) 0; background: var(--bg-2); }
.parents .grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 120px); align-items: center; }
.parents .lead { margin-top: 26px; }
.parents .h-l, .local .h-l { font-size: clamp(28px, 3.4vw, 48px); }
.parents ul { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
.parents li { display: flex; gap: 12px; align-items: baseline; font-weight: 650; color: var(--ink-2); }
.parents li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ochre-d); flex: none; transform: translateY(-2px); }
.nt { background: #fff; border-radius: 14px; padding: 12px 14px; font-size: 13.5px; line-height: 1.55; box-shadow: 0 6px 16px -12px rgba(60, 40, 20, .5); margin-bottom: 10px; }
.nt small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 3px; font-weight: 650; }

/* ---------------------------------------------------------------- 7. 로컬 AI (차콜) */
.local { background: var(--char); color: #EFE9DF; padding: clamp(100px, 14vw, 180px) 0; overflow: hidden; }
.local .grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.local .eyebrow { color: #D8B384; }
.local .h-l { color: #fff; }
.local .lead { color: #BDB4A7; margin-top: 26px; }
.local .note { margin-top: 28px; font-size: 14px; color: #8F867A; }
.core { position: relative; aspect-ratio: 1 / .9; }
.core svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.core .fence { fill: rgba(255, 255, 255, .02); stroke: rgba(216, 179, 132, .45); stroke-width: 1.5; stroke-dasharray: 6 8; }
.core .flow2 { fill: none; stroke: rgba(216, 179, 132, .25); stroke-width: 1.5; }
.core .flow2.mv { stroke: #D8B384; stroke-width: 2.4; stroke-dasharray: 4 44; stroke-linecap: round; animation: pulse2 4s linear infinite; }
@keyframes pulse2 { to { stroke-dashoffset: -96; } }
.core .src { position: absolute; transform: translate(-50%, -50%); background: var(--char-2); border: 1px solid var(--char-line); color: #EFE9DF; border-radius: 14px; padding: 12px 16px; font-size: 14.5px; font-weight: 650; white-space: nowrap; }
.core .src small { display: block; color: #8F867A; font-size: 11.5px; font-weight: 650; }
.core .ai { position: absolute; left: 62%; top: 50%; transform: translate(-50%, -50%); width: 34%; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(circle, #3A332B, #231F1B 70%); border: 1px solid rgba(216, 179, 132, .5); box-shadow: 0 0 0 18px rgba(216, 179, 132, .05), 0 0 0 38px rgba(216, 179, 132, .03), 0 0 80px rgba(216, 179, 132, .18); }
.core .ai b { font-size: clamp(15px, 1.7vw, 21px); letter-spacing: .02em; color: #fff; line-height: 1.25; }
.core .ai span { font-size: 12px; color: #D8B384; font-weight: 650; margin-top: 4px; }
.core .fence-lbl { position: absolute; left: 6%; bottom: 4%; font-size: 12.5px; color: #D8B384; font-weight: 650; letter-spacing: .08em; }
.core .out { position: absolute; right: 2%; top: 0; font-size: 12.5px; color: #7C746A; font-weight: 650; text-align: right; }
.core .out s { color: #7C746A; }

/* ---------------------------------------------------------------- 8. 작은 기능 카드 */
.feats { padding: clamp(100px, 13vw, 170px) 0 clamp(60px, 8vw, 100px); }
.feats-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(40px, 5vw, 64px); }
.feats-head p { max-width: 380px; margin: 0; }
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fc { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 14px 14px 26px; transition: transform .4s var(--ease), box-shadow .4s; }
.fc:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.fc .mini { height: 180px; border-radius: 16px; background: var(--bg-2); position: relative; overflow: hidden; }
.fc h3 { margin: 22px 12px 6px; font-size: 20px; letter-spacing: -0.02em; }
.fc p { margin: 0 12px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.fc .mini * { animation-play-state: paused; }
.fc:hover .mini *, .fc.play .mini * { animation-play-state: running; }
.mx { position: absolute; }
/* 카드 안 작은 그림 — 모두 같은 7초 고리 */
.m-qr { left: 14%; top: 50%; width: 64px; height: 64px; transform: translateY(-50%); border-radius: 8px; background:
  conic-gradient(from 90deg at 30% 30%, var(--ink) 25%, transparent 0) 0 0 / 16px 16px, #fff; border: 5px solid #fff; outline: 1.5px solid var(--ink); }
.m-arrow { left: 44%; top: 50%; width: 36px; height: 2px; background: var(--ochre-d); transform-origin: left; animation: grow 7s var(--ease) infinite; }
@keyframes grow { 0%, 12% { transform: scaleX(0); } 24%, 100% { transform: scaleX(1); } }
.m-vid { right: 12%; top: 50%; width: 36%; aspect-ratio: 16 / 10; transform: translateY(-50%); border-radius: 10px; background: linear-gradient(135deg, #3A342D, #6E5A43); overflow: hidden; animation: appear 7s var(--ease) infinite; }
.m-vid::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: #E9C99E; transform-origin: left; animation: progress 7s linear infinite; }
@keyframes appear { 0%, 22% { opacity: 0; transform: translateY(-40%); } 32%, 92% { opacity: 1; transform: translateY(-50%); } 100% { opacity: 0; transform: translateY(-50%); } }
@keyframes progress { 0%, 32% { transform: scaleX(0); } 92%, 100% { transform: scaleX(1); } }
.m-stu { left: 10%; top: 50%; transform: translateY(-50%); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 650; }
.m-doc { left: 42%; top: 50%; width: 38px; height: 48px; transform: translateY(-50%); border-radius: 4px; background: repeating-linear-gradient(#fff 0 7px, #E6DCCD 7px 9px); border: 1px solid #DCCFBD; animation: appear2 7s var(--ease) infinite; }
@keyframes appear2 { 0%, 15% { opacity: 0; } 25%, 100% { opacity: 1; } }
.m-prn { right: 10%; bottom: 26%; width: 78px; height: 36px; border-radius: 8px; background: var(--ink); }
.m-prn::before { content: ""; position: absolute; left: 14px; right: 14px; bottom: 30px; height: 0; background: #fff; border: 1px solid #DCCFBD; border-bottom: 0; animation: feed 7s var(--ease) infinite; }
@keyframes feed { 0%, 35% { height: 0; } 65%, 100% { height: 46px; } }
.m-rows { left: 12%; right: 12%; top: 16%; display: grid; gap: 9px; }
.m-rows i { height: 22px; border-radius: 6px; background: #fff; position: relative; display: block; }
.m-rows i::after { content: ""; position: absolute; right: 6px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--right); transform: scale(0); animation: mark 7s var(--ease) infinite; animation-delay: calc(var(--i) * .5s); }
.m-rows i.x::after { background: var(--wrong); }
@keyframes mark { 0%, 8% { transform: scale(0); } 14%, 90% { transform: scale(1); } 100% { transform: scale(0); } }
.m-score { right: 12%; bottom: 10%; font-weight: 750; font-size: 22px; animation: appear2 7s var(--ease) infinite; animation-delay: 2s; }
.m-cal { left: 10%; right: 10%; top: 18%; bottom: 18%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.m-cal i { border-radius: 8px; background: #fff; display: block; }
.m-evt { left: calc(10% + 3px); top: 34%; width: calc(16% - 4px); height: 30px; border-radius: 7px; background: var(--ochre-d); animation: slide 7s var(--ease) infinite; }
@keyframes slide { 0%, 20% { transform: translate(0, 0); } 45%, 80% { transform: translate(314%, 26px); background: var(--ink); } 100% { transform: translate(0, 0); } }
.m-phone { left: 50%; top: 14%; width: 76px; height: 132px; margin-left: -38px; border-radius: 16px; background: var(--ink); padding: 6px; }
.m-phone::before { content: ""; position: absolute; inset: 6px; border-radius: 11px; background: #FBF8F3; }
.m-in { left: 50%; top: 42%; transform: translate(-50%, 0) scale(0); background: var(--right); color: #fff; font-size: 12px; font-weight: 750; border-radius: 999px; padding: 5px 10px; white-space: nowrap; animation: popin 7s var(--ease) infinite; }
@keyframes popin { 0%, 30% { transform: translate(-50%, 0) scale(0); } 40%, 88% { transform: translate(-50%, 0) scale(1); } 100% { transform: translate(-50%, 0) scale(0); } }
.m-qr2 { left: 12%; top: 50%; width: 48px; height: 48px; transform: translateY(-50%); border-radius: 6px; background: conic-gradient(from 90deg at 30% 30%, var(--ink) 25%, transparent 0) 0 0 / 12px 12px, #fff; border: 4px solid #fff; outline: 1.5px solid var(--ink); }
.m-card { left: 10%; top: 50%; transform: translateY(-50%); width: 40%; background: #fff; border-radius: 10px; padding: 10px; font-size: 11.5px; font-weight: 650; line-height: 1.5; }
.m-noti { right: 9%; top: 22%; width: 38%; background: #fff; border-radius: 10px; padding: 8px 10px; font-size: 11px; font-weight: 650; box-shadow: 0 8px 16px -10px rgba(0, 0, 0, .4); animation: notif 7s var(--ease) infinite; }
@keyframes notif { 0%, 25% { opacity: 0; transform: translateY(-14px); } 35%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ---------------------------------------------------------------- 9. 숫자 (실제 값이 있을 때만) */
.stats { padding: 40px 0 100px; }
.stats .row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stats .it { padding: 32px 8px 0; }
.stats .it b { display: block; font-size: clamp(34px, 4vw, 54px); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stats .it span { color: var(--muted); font-weight: 650; font-size: 15px; }

/* ---------------------------------------------------------------- 10. 마지막 */
.final { padding: clamp(130px, 18vw, 240px) 0; text-align: center; }
.final .h-l { font-weight: 650; color: var(--ink-2); }
.final .h-l.strong { font-weight: 750; color: var(--ink); margin-top: .5em; }
.final .lead { max-width: 620px; margin: 40px auto 0; }
.final .cta { display: flex; gap: 12px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- 바닥 */
.foot { border-top: 1px solid var(--line); padding: 48px 0 56px; font-size: 14px; color: var(--muted); }
.foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot .brand b { font-size: 16px; }
.foot dl { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 14px 0 0; }
.foot dt { display: none; }
.foot dd { margin: 0; }
.foot .foot-ask { margin: 10px 0 0; font-size: 14px; line-height: 1.6; }   /* 전화번호 다음 줄 안내 (원장님 10-11) */
.foot .foot-ask a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.foot .links { display: flex; gap: 20px; font-weight: 650; color: var(--ink-2); }
.foot .copy { margin-top: 28px; font-size: 13px; }
.testnote { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 13px; background: #FFF6DE; border: 1px dashed #E0B24A; color: #8A5A00; border-radius: 12px; padding: 12px 16px; }
.testnote form { margin: 0 0 0 auto; }
.testnote button { border: 1px solid #D9B25A; background: #fff; border-radius: 8px; padding: 4px 12px; cursor: pointer; font-size: 13px; }

/* ================================================================= 태블릿 */
@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .hdr-act .btn { display: none; }
  .d1 { grid-template-columns: 1fr 1.3fr; }
}

/* ================================================================= 폰 · 작은 태블릿 */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav, .login { display: none; }
  .burger { display: block; }
  .hdr .wrap { height: 64px; }
  .hdr.scrolled .wrap { height: 54px; }
  .brand .wm { height: 22px; }
  .hdr.scrolled .brand .wm { height: 18px; }
  .menu-open .hdr { background: var(--bg); }
  .mnav { display: flex; flex-direction: column; position: fixed; inset: 64px 0 0 0; z-index: 49; background: var(--bg); padding: 28px var(--gut); gap: 4px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s; }
  .menu-open .mnav { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s var(--ease); }
  .mnav a { font-size: 24px; font-weight: 750; letter-spacing: -0.02em; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .mnav .btn { margin-top: 24px; justify-content: center; font-size: 16px; border-bottom: 0; }
  .menu-open { overflow: hidden; }

  .hero { padding-top: 120px; }
  .cstage { height: 250px; margin-top: 8px; }
  .hero .wrap { padding-top: 49px; }
  .rot { height: 1.3em; }
  .rot .rl { white-space: normal; }
  .feats-head .rot.g { width: 100%; flex: none; }
  .rot2 { height: 3.5em; }
  .rot.rot-s { height: 1.3em; font-size: clamp(21px, 7.2vw, 27px); }
  .rot.rot-s .rl { white-space: nowrap; }
  .rot2 .rl { white-space: normal; }
  .cmdwrap { margin-top: -28px; }
  .cmdbox { padding: 14px 16px 12px; border-radius: 18px; }
  .cmd-text { min-height: 26px; font-size: 15px; white-space: normal; }
  .facts { font-size: 12.5px; gap: 6px 14px; }

  .stage { border-radius: 0; }
  .stage-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .slides { aspect-ratio: 4 / 6.3; }
  .slide { width: 100%; }
  .slide.is-next { opacity: 0; transform: translateX(8%) scale(.94); }
  .stage-ctl { flex-wrap: wrap; gap: 14px 16px; }
  .cap { flex-basis: 100%; }
  .pager { flex: 1; }
  .pager button { width: auto; flex: 1; }
  .time { min-width: 0; }
  .demo { font-size: 13px; }
  .d1 { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }   /* 폰: 여섯 단계 고리가 제 높이를 먼저 갖고 해설지는 남는 자리만 (11-04 원장님 '5·6번이 카드 안에 가려') */
  .d1 .paper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px 8px; padding: 10px 12px; }
  .d1 .paper h4, .d1 .paper .who, .d1 .paper .score { grid-column: 1 / -1; }
  .d1 .paper .who { margin: 0; }
  .d1 .arow { border: 0; padding: 0; gap: 4px; font-size: 12px; }
  .d1 .arow .ans { display: none; }
  .d1 .arow .n { width: auto; }
  .d1 .arow .mk { margin-left: 0; }
  .d1 .score { padding-top: 2px; font-size: 12px; }
  .d1 .score b { font-size: 1.3em; }
  .d1 { gap: 10px; }
  .demo.d1 { padding: 12px; }
  .chat { padding: 16px; }
  .msg { max-width: 88%; }
  .d3 { padding: 16px; }
  .scene { gap: 12px; }
  .cmdbar { font-size: 14px; border-radius: 18px; }
  .flow .fs { font-size: 12px; padding: 4px 10px; }
  .sms2 { grid-template-columns: 1fr; gap: 8px; }
  .sms2 .bubs .bub:nth-child(n+2) { display: none; }

  .st-grid { grid-template-columns: 1fr; gap: 0; }
  .st-stick { position: static; padding-top: 0; }
  .st-index { display: none; }
  .story { min-height: 0; padding: 48px 0; }
  .st-panels .story:not(.cur) { opacity: 1; }
  .story .copy { margin-top: 28px; }
  .visual { aspect-ratio: 1 / 1; border-radius: 22px; }
  .qgrid { grid-template-columns: repeat(10, 1fr); gap: 5px; }
  .loop .node { font-size: 12px; padding: 6px 10px; }

  .focus { height: 88vh; min-height: 520px; }
  .phnote { font-size: 11px; max-width: 220px; }

  .web { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; gap: 28px; }
  .web svg { display: none; }
  .web .me { position: relative; left: auto; top: auto; transform: none; width: 150px; }
  .web .nds { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .web .nd { position: static; transform: none; font-size: 14px; padding: 8px 14px; }

  .parents .grid, .local .grid { grid-template-columns: 1fr; }
  .parents .phone-col { order: 2; }
  .core { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 36px 16px 28px; border: 1.5px dashed rgba(216, 179, 132, .45); border-radius: 24px; }
  .core svg, .core .out { display: none; }
  .core .srcs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .core .src { position: static; transform: none; font-size: 13px; padding: 9px 12px; }
  .core .src small { display: none; }
  .core .down { width: 2px; height: 36px; background: linear-gradient(#D8B384, transparent); }
  .core .ai { position: relative; left: auto; top: auto; transform: none; width: 170px; }
  .core .fence-lbl { position: static; order: -1; }

  .feats-head { flex-direction: column; align-items: flex-start; }
  .fgrid { grid-template-columns: 1fr; }
  .stats .row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 861px) { .core .down, .web .nds { display: contents; } .core .srcs { display: contents; } }
@media (max-width: 860px) and (min-width: 600px) { .fgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) {
  .h-xl { font-size: 36px; }
  .hero .cta .btn, .final .cta .btn { flex: 1 1 100%; justify-content: center; }
}
/* 손가락 화면: 작은 카드 그림은 화면에 들어오면 저절로 움직인다 (script 가 .play) */

/* ================================================================= 움직임 줄이기 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .caret { animation: none; }
  .st-panels .story:not(.cur) { opacity: 1; }
  .rv { opacity: 1; transform: none; filter: none; }
  [data-t] { opacity: 1; transform: none; }
  .focus .ph { animation: none; }
  .loop .node { animation: none; }
  .curve .lost, .curve .rev, .pickcount .after { opacity: 1 !important; animation: none !important; }
  .curve .main { stroke-dashoffset: 0; animation: none !important; }
  .web line.pulse, .core .flow2.mv, .loop .runner { display: none; }
}

/* 로고 그림 (logo_ko = logo_full 사본 — 원장님 10-10 전부 SeeAllai 붙은 판으로) */
.phone .top:has(.plogo) { flex-direction: column; align-items: flex-start; gap: 3px; }
.phone .top .plogo { height: 20px; width: auto; }
.final-logo { height: clamp(40px, 5vw, 60px); width: auto; margin: 0 auto 40px; }
.foot-logo { display: block; height: 30px; width: auto; margin-top: 16px; }

/* 카드 손질 2 (09-29) */
.cc .rate { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; margin: 12px 0 0; font-size: 11px; font-weight: 650; color: var(--c-mut); }
.cc .rate s { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .7); position: relative; text-decoration: none; }
.cc .rate s::after { content: ""; position: absolute; inset: 0 30% 0 0; border-radius: 6px; background: #6E9A66; }
.cc .rate b { color: var(--c-ink); font-variant-numeric: tabular-nums; }
.cc .nt3 + .nt3:not(.back) { margin-top: 7px; }
.cc .pp em { white-space: nowrap; overflow: hidden; }
.cc .pp .tp { display: inline-block; font-size: 9.5px; font-weight: 750; color: var(--c-soft-ink); background: var(--c-soft); border-radius: 999px; padding: 1px 7px; margin-bottom: 7px; }
.cc.soft .cc-h { margin-bottom: 9px; }
.cc .nt3 { padding: 8px 11px; }
.cc .nt3 p { line-height: 1.3; }
.cc .nt3 + .nt3:not(.back) { margin-top: 6px; }

/* 카드 색 꾸밈 (09-29 원장님: 알록달록하게) — 카드마다 바탕·글·보조색을 바꾼다 */
.cc.t-mint   { --c-bg: #DDF3E4; --c-ink: #0F3A22; --c-mut: #4B7A5C; --c-soft: #BFE6CC; --c-soft-ink: #155C33; --c-line: rgba(15, 58, 34, .08); }
.cc.t-blue   { --c-bg: #2B59E8; --c-ink: #FFFFFF; --c-mut: #BFD0FF; --c-soft: rgba(255, 255, 255, .16); --c-soft-ink: #FFFFFF; --c-track: rgba(255, 255, 255, .18); --c-bar: #FFD166; --c-bar-top: #FFFFFF; --c-line: #2B59E8; }
.cc.t-peach  { --c-bg: #FFE3D3; --c-ink: #3B1C0E; --c-mut: #9A6049; --c-soft: #FFCBB0; --c-soft-ink: #7A2F10; --c-line: rgba(59, 28, 14, .08); }
.cc.t-yellow { --c-bg: #FFEFA8; --c-ink: #2B2205; --c-mut: #7D6B1F; --c-soft: #FFE070; --c-soft-ink: #5E4B00; --c-track: rgba(43, 34, 5, .1); --c-acc: #E0561B; --c-line: rgba(43, 34, 5, .08); }
.cc.t-sky    { --c-bg: #D7EAFF; --c-ink: #0D2A4C; --c-mut: #53739A; --c-soft: #BAD8FB; --c-soft-ink: #124786; --c-track: rgba(255, 255, 255, .65); --c-acc: #1463D8; --c-line: rgba(13, 42, 76, .08); }
.cc.t-lilac  { --c-bg: #E7E0FF; --c-ink: #1F1845; --c-mut: #675C98; --c-soft: #D2C6FF; --c-soft-ink: #3B2A92; --c-acc: #5B3FD6; --c-line: rgba(31, 24, 69, .08); }
.cc.t-cream  { --c-bg: #FFF4E6; --c-ink: #2A1A0C; --c-mut: #9A7556; --c-soft: #FFE1C2; --c-soft-ink: #A1400F; --c-line: rgba(42, 26, 12, .08); }
.cc.t-black  { --c-bg: #141414; --c-ink: #FFFFFF; --c-mut: #9C9C9C; --c-soft: rgba(255, 255, 255, .12); --c-soft-ink: #FFFFFF; --c-line: #141414; }
.cc.t-coral  { --c-bg: #FF6A45; --c-ink: #FFFFFF; --c-mut: rgba(255, 255, 255, .78); --c-soft: rgba(255, 255, 255, .2); --c-soft-ink: #FFFFFF; --c-line: #FF6A45; }
.cc.t-teal   { --c-bg: #CDEFE8; --c-ink: #0A3A33; --c-mut: #4A7F76; --c-soft: #A8E2D7; --c-soft-ink: #0C5A4E; --c-line: rgba(10, 58, 51, .08); }
.cc.t-black .chip2.ok { background: #2F6B34; color: #fff; }
.cc.t-coral .ask2 b { background: #fff; color: #E24A26; }

/* 두 줄 굵은 제목 → 한 줄씩 위로 (site.js initRotators, 첫 화면 제목과 같은 박자). 칸 높이는 가장 긴 줄에 맞춰 스크립트가 정한다 */
.rot.g { height: var(--rh, 1.3em); }
.rot.g .rl { white-space: normal; }
.rot.g.static { height: auto; }
.rot.g.static .rl { position: static; display: block; opacity: 1; transform: none; }
.final .rot.g .rl { color: var(--ink-2); font-weight: 650; }
.final .rot.g .rl.em { color: var(--ink); font-weight: 750; }
.focus .rot.g .rl.l2 { color: #F6E6CF; opacity: 0; filter: none; margin: 0; }
.focus .rot.g .rl.l2.in { opacity: 1; }
.st-stick .rot.g { font-size: clamp(30px, 3.1vw, 44px); }
/* 황토 띠: SeeAllai 글자와 바뀌는 제목 사이 */
.stage .eyebrow { margin-bottom: 38px; }
.focus .txt { width: 100%; }
.feats-head .rot.g { flex: 1; min-width: 0; }

/* 복습 그래프 (09-29 원장님): 축 검정·가늘게, 복습 없이 = 빨간 점선, 복습 곡선 = 얇은 파랑 */
.curve .axis { stroke: #171717; stroke-width: 1.2; }
.curve .grid { stroke: rgba(23, 23, 23, .07); stroke-width: 1; }
.curve .lost { stroke: #E5484D; stroke-width: 1.6; stroke-dasharray: 5 6; }
.curve .main { stroke: #2B6FEA; stroke-width: 2; stroke-dasharray: 1400; }
.curve .pt { fill: #2B6FEA; }
.curve .lbl { fill: #2B6FEA; font-size: 12.5px; font-weight: 650; }
.curve .ax { font-size: 13px; font-weight: 650; fill: #171717; font-family: var(--font); }
.curve .rev circle { fill: #fff; stroke: #2B6FEA; stroke-width: 2; }
.curve .rev rect { fill: #EAF1FF; }
.curve .rev text { fill: #1B55C9; font-size: 12px; font-weight: 750; }
.curve .lg line { stroke-width: 2; }
.curve .lg .lg-b { stroke: #2B6FEA; }
.curve .lg .lg-r { stroke: #E5484D; stroke-dasharray: 4 4; stroke-width: 1.6; }
.curve .lg text { font-size: 12px; font-weight: 650; fill: #5B5650; font-family: var(--font); }
.visual.light { background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line); }

/* 이야기 1 '왜 틀렸는지' 상자 — 바탕과 달라도 되니 예쁘게 (09-29 원장님) */

/* 황토 띠 시연 화면 색 (09-29 원장님: 카드 색이 너무 같다) */
.demo .chat .msg.ai { background: #EAF2FF; border-color: #D5E4FF; }
.demo .chat .msg.ai .nm { color: #1463D8; }
.demo .chat .fcardx { background: #F1ECFF; border-color: #DCD2FF; }
.d3 .scene:nth-child(1) .result { background: #EAF3FF; border-color: #D3E5FF; }
.d3 .scene:nth-child(2) .result { background: #FFF6D6; border-color: #FFE89A; }
.d3 .scene:nth-child(3) .result { background: #F1ECFF; border-color: #DCD2FF; }
.d3 .scene:nth-child(4) .result { background: #E6F6EC; border-color: #C7EBD3; }
.d3 .scene:nth-child(5) .result { background: #FFEDE4; border-color: #FFD3BD; }
.d3 .scene:nth-child(1) .fs.on { background: #D3E5FF; border-color: #D3E5FF; }
.d3 .scene:nth-child(2) .fs.on { background: #FFE89A; border-color: #FFE89A; }
.d3 .scene:nth-child(3) .fs.on { background: #DCD2FF; border-color: #DCD2FF; }
.d3 .scene:nth-child(4) .fs.on { background: #C7EBD3; border-color: #C7EBD3; }
.d3 .scene:nth-child(5) .fs.on { background: #FFD3BD; border-color: #FFD3BD; }
.d3 .fs.last.on { background: var(--ink) !important; border-color: var(--ink) !important; }
.d3 .scene:nth-child(1) .evt { background: #1463D8; }
.d3 .scene:nth-child(1) .evt.on { background: #0D2A4C; }
.d3 .scene:nth-child(2) .hbar .bar i { background: #E0A800; }
.d3 .week div i { background: rgba(255, 255, 255, .75); }
.d3 .sheet2 b { color: #5B3FD6; }

/* 이야기 2: 실제 문항 캡처 — 흐리게 → 분석 → 필요한 6문항만 또렷하게 떠오름 */
.pick .qgrid { grid-template-columns: repeat(4, 1fr); gap: 10px; align-content: center; }   /* 11-03: 4칸으로 키움 — 그래프가 보이게 (16칸) */
.pick .qgrid .qi:nth-child(n+17) { display: none; }
.qgrid .qi { position: relative; aspect-ratio: 4 / 3; border-radius: 7px; overflow: hidden; background: #fff; box-shadow: 0 4px 10px -6px rgba(60, 40, 20, .35); }   /* 처음부터 또렷하게 (원장님 10-11 '그림이 안 보인다' — 예전엔 흐리게 깔림) */
.qgrid .qi img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }   /* 11-03: 그림 가운데 잘린 문항(_fig) */
.pick.go .qgrid .qi { animation: qdim 1s var(--ease) 1.5s both; }
.pick.go .qgrid .qi.need { animation: qneed 1.1s var(--ease) 1.7s both; z-index: 1; }
@keyframes qdim { to { opacity: .3; filter: blur(1.2px) grayscale(1); transform: scale(.94); } }
@keyframes qneed { to { opacity: 1; filter: none; transform: scale(1.14); box-shadow: 0 0 0 2px var(--ink), 0 16px 28px -12px rgba(0, 0, 0, .5); } }
@media (max-width: 860px) { .pick .qgrid { grid-template-columns: repeat(4, 1fr); gap: 6px; } .qgrid .qi:nth-child(n+17) { display: none; } }
@media (prefers-reduced-motion: reduce) { .qgrid .qi { filter: none; } .qgrid .qi:not(.need) { opacity: .3; } }

/* 위로 밀려 잘리게 된 말풍선은 통째로 흐려 없앰 */
.chat > .cut { opacity: 0 !important; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s; }

@media (max-width: 860px) {
  .visual.tall { aspect-ratio: 1 / 1.3; }
  .visual.tall .phone { width: min(290px, 66%); top: 4%; }
}
/* 대화: 아직 안 나온 말은 자리도 차지하지 않는다 — 새 말이 들어오면 앞 말을 위로 민다 (실제 메신저처럼) */
.chat > [data-t]:not(.on) { display: none; }
.chat > [data-t].on { animation: pop .5s var(--ease) both; }

/* ---- 마지막 문구: 한 번에, 90% 크기 */
.final .fin-h { font-size: clamp(27px, 3.87vw, 54px); }

/* ---- 휴대폰: 얇은 테두리 · 상태 줄 · 카톡 대화창 (09-29 원장님) */
.phone { width: min(312px, 78%); aspect-ratio: 9 / 19; border-radius: 48px; background: #1C1C1E; padding: 0;
  box-shadow: 0 0 0 1.5px #48484A, 0 0 0 3.5px #121214, 0 40px 60px -30px rgba(40, 25, 10, .55); }
.phone .scr { inset: 6px; border-radius: 42px; background: #BACEE0; }
.phone .island { position: absolute; top: 15px; left: 50%; width: 82px; height: 24px; margin-left: -41px; border-radius: 14px; background: #000; z-index: 3; }
.phone .scr::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 104px; height: 4px; margin-left: -52px; border-radius: 3px; background: #1a1a1a; z-index: 3; }
.kk-bar { height: 42px; flex: none; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 22px 5px 28px; font-size: 12.5px; font-weight: 650; color: #111; }
.kk-bar .kk-ic { display: flex; align-items: center; gap: 5px; }
.kk-bar svg { height: 10.5px; width: auto; fill: #111; color: #111; }
.kk-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 14px 10px; font-size: 14.5px; font-weight: 650; color: #111; }
.kk-head .bk { font-size: 24px; line-height: .8; font-weight: 400; }
.kk-head .tt { flex: 1; display: flex; align-items: center; }
.kk-head .tt .plogo { height: 15px; width: auto; }
.kk-head .hi { display: flex; gap: 10px; }
.kk-head .hi svg { width: 17px; height: 17px; }
.phone .chat { background: transparent; padding: 6px 12px 10px; gap: 8px; }
.phone .msg { font-size: 12.8px; line-height: 1.45; padding: 7px 10px; border: 0; box-shadow: none; max-width: 76%; font-weight: 500; color: #191919; }
.phone .msg.me { background: #FEE500; border-radius: 14px 4px 14px 14px; }
.phone .msg.ai { background: #fff; border-radius: 4px 14px 14px 14px; margin: 17px 0 0 40px; position: relative; }
.phone .msg.ai::before, .phone .nt::before, .phone .typing::before { content: ""; position: absolute; left: -40px; top: -17px; width: 32px; height: 32px; border-radius: 12px; background: #fff url(/icon-192.png) center / cover no-repeat; }
.phone .msg.ai .nm { position: absolute; left: 1px; top: -17px; margin: 0; font-size: 11px; font-weight: 650; color: #3E4A56; }
.phone .typing { position: relative; background: #fff; border: 0; margin: 17px 0 0 40px; border-radius: 4px 14px 14px 14px; }
.phone .vcard, .phone .fcardx, .phone .cal { border-color: #E4E8EE; }
.phone .nt { position: relative; background: #fff; border-radius: 4px 14px 14px 14px; margin: 18px 0 0 40px; padding: 8px 10px; box-shadow: none; font-size: 12.8px; max-width: calc(100% - 40px); color: #191919; }
.phone .nt small { position: absolute; left: 1px; top: -17px; margin: 0; font-size: 11px; font-weight: 650; color: #3E4A56; }
.kk-in { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px 16px; background: #fff; }
.kk-in .pl { font-size: 20px; color: #9A9A9A; line-height: 1; width: 22px; text-align: center; }
.kk-in i { flex: 1; height: 30px; border-radius: 15px; background: #F2F3F5; }
.kk-in .se { width: 30px; height: 30px; border-radius: 50%; background: #FEE500; display: grid; place-items: center; font-size: 13px; font-weight: 750; color: #3A3000; }
.visual .phone { width: min(290px, 42%); top: 4%; }

/* ---- 기록 연결: 푸른 사이버 (09-29 원장님) */
.records { background: radial-gradient(60% 55% at 50% 62%, #0E2A66 0%, #07142F 58%, #040B1C 100%); color: #CFE3FF; }
.records .eyebrow { color: #62D0FF; }
.records .h-l { color: #fff; }
.records .lead { color: #A7B7D4; }
.web line { stroke: rgba(92, 190, 255, .22); stroke-width: 1.2; }
.web line.pulse { stroke: #66D9FF; stroke-width: 2.2; stroke-dasharray: 2 58; filter: drop-shadow(0 0 4px #3FC8FF); }
.web .me { width: clamp(210px, 25%, 270px); aspect-ratio: auto; border-radius: 0; background: none; box-shadow: none; display: block; place-content: initial; color: #fff; text-align: center; }
.web .me .brain { position: static; inset: auto; display: block; width: 100%; height: auto; overflow: visible; }
.web .me .b-line path { stroke: #5BD2FF; stroke-width: 1.6; stroke-linecap: round; }
.web .me .b-trace path { stroke: #2F8CFF; stroke-width: 1.3; stroke-dasharray: 3 3; animation: trace 3s linear infinite; }
@keyframes trace { to { stroke-dashoffset: -24; } }
.web .me .b-node circle { fill: #9BE7FF; animation: twinkle 2.4s ease-in-out infinite; }
.web .me .b-node circle:nth-child(2n) { animation-delay: -1.2s; }
.web .me .b-node circle:nth-child(3n) { animation-delay: -.6s; }
@keyframes twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.web .me .b-chip rect { fill: #0A1D48; stroke: #6FDBFF; stroke-width: 1.6; }
.web .me .b-chip rect.core { fill: #1E6BFF; stroke: #A5EDFF; animation: corepulse 2.6s ease-in-out infinite; }
@keyframes corepulse { 0%, 100% { fill: #1E6BFF; } 50% { fill: #3FB6FF; } }
.web .me .b-chip path { stroke: #6FDBFF; stroke-width: 1.5; stroke-linecap: round; }
.web .me .me-l { margin-top: 4px; }
.web .me .me-l b { display: block; font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.01em; color: #fff; }
.web .me .me-l span { font-size: 13px; color: #7FD6FF; font-weight: 650; letter-spacing: .04em; }
.web .nd { background: rgba(12, 34, 84, .78); border: 1px solid rgba(98, 208, 255, .55); color: #D7EEFF; font-weight: 650;
  box-shadow: 0 0 14px rgba(64, 190, 255, .28), inset 0 0 10px rgba(64, 190, 255, .12); backdrop-filter: blur(4px); }
@media (max-width: 860px) {
  .web .me { width: 230px; }
  .visual .phone { width: min(290px, 64%); }
}
@media (min-width: 861px) { .web .me { transform: translate(-50%, -35%); } }

/* 학부모 폰: 월별 리포트 카드 (카톡 채널 메시지 모양) */
.phone .nt-card { padding: 0; overflow: hidden; width: calc(100% - 40px); }
.rp-h { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 10px 12px 8px; background: #2B59E8; color: #fff; }
.rp-h b { font-size: 13.5px; font-weight: 750; }
.rp-h span { font-size: 10.5px; opacity: .85; }
.rp-g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: end; height: 74px; padding: 10px 12px 4px; }
.rp-g div { display: flex; flex-direction: column; align-items: center; gap: 3px; height: 100%; justify-content: flex-end; }
.rp-g i { width: 16px; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #5B8CFF, #2B59E8); position: relative; }
.rp-g div:last-child i { background: linear-gradient(180deg, #FFB84D, #F07A1A); }
.rp-g em { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 9.5px; font-weight: 750; color: #3E4A56; }
.rp-g span { font-size: 9.5px; font-weight: 650; color: #7A8594; }
.phone .nt-card ul { list-style: none; margin: 6px 12px 8px; padding: 0; display: grid; gap: 3px; font-size: 11.5px; color: #3E4A56; }
.phone .nt-card ul b { color: #191919; }
.rp-b { border-top: 1px solid #EDF0F4; padding: 8px 12px; text-align: center; font-size: 12px; font-weight: 650; color: #2B59E8; }

/* 한 줄 제목(바뀌지 않음) — 안 들어가면 글씨만 줄여 한 줄 */
.rot.one { height: auto; overflow: visible; }
.rot.one .rl { position: static; opacity: 1; transform: none; white-space: normal; display: block; }
.feats-head .rot.one { flex: 1; min-width: 0; }

/* ---- 휴대폰: 삼성 갤럭시 최신 모양 (09-29 원장님) — 얇은 테두리·각진 둥근 모서리·작은 카메라 점·아래 단추 줄 */
.phone { border-radius: 30px; background: #0B0B0C;
  box-shadow: 0 0 0 1px #8E8E93, 0 0 0 2.5px #2C2C2E, 0 40px 60px -30px rgba(40, 25, 10, .55); }
.phone .scr { inset: 4px; border-radius: 26px; }
.phone .island { top: 11px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #050505; box-shadow: 0 0 0 1.5px #1C1C1E, inset 0 0 2px rgba(80, 120, 200, .6); }
.phone .scr::after { display: none; }
.kk-bar { height: 30px; align-items: center; padding: 0 16px 0 18px; font-size: 11.5px; }
.kk-bar .kk-ic { gap: 4px; }
.kk-bar .kk-ic em { font-style: normal; font-size: 10.5px; font-weight: 650; margin-left: 2px; }
.kk-bar svg.bat { height: 12px; }
.kk-in { padding-bottom: 8px; }
.nav3 { flex: none; display: flex; justify-content: space-around; align-items: center; height: 34px; background: #fff; color: #5A5A5E; padding: 0 22px; }
.nav3 svg { width: 17px; height: 17px; }

/* 기록 연결: 퇴원 시 삭제 안내 */
.records .purge { display: inline-flex; align-items: center; gap: 10px; margin: clamp(28px, 4vw, 48px) auto 0; padding: 12px 20px; border-radius: 999px;
  background: rgba(12, 34, 84, .7); border: 1px solid rgba(98, 208, 255, .45); color: #D7EEFF; font-size: 15px; font-weight: 650;
  box-shadow: 0 0 18px rgba(64, 190, 255, .22); }
.records .purge svg { width: 20px; height: 20px; color: #62D0FF; flex: none; }
.records .purge b { color: #fff; font-weight: 750; }
@media (max-width: 860px) { .records .purge { border-radius: 16px; font-size: 14px; text-align: left; } }

/* 복습 그래프: 세로축 이름은 축 끝(위), '학생마다 다른 망각 주기'는 그래프 아래 따로 크게 */
.curve { display: flex; flex-direction: column; }
.curve svg { flex: 1; min-height: 0; }
.curve .cap-f { margin: 10px 0 0; text-align: center; font-size: clamp(15px, 1.5vw, 19px); font-weight: 750; color: #1B55C9; letter-spacing: -0.01em; }
.curve { justify-content: center; }
.curve svg { flex: none; height: auto; width: 100%; }

/* ==== 09-29 원장님 손질 묶음 ==== */
/* 1. 망각 주기 글: 검정, 그래프가 다 그려진 뒤 나타남 */
.curve .cap-f { color: #171717; opacity: 0; }
.inview .curve .cap-f { animation: pop .8s var(--ease) 4.6s both; }
/* 2. 상자 크기를 내용에 맞춤 */
.visual.fit { aspect-ratio: auto; }
.visual.fit .curve { position: static; inset: auto; padding: 34px 30px 30px; }
.visual.fit .pick { position: static; inset: auto; padding: 28px 30px; }
.visual.fit .pick .qgrid { flex: none; }
/* 4. 갤럭시: 둥글기 더 줄임 */
.phone { border-radius: 18px; }
.phone .scr { border-radius: 14px; }
/* 7·8. SeeAllai 글자 로고 크기 통일(작은 크기), 명령창은 85% */
.brand .wm, .hdr.scrolled .brand .wm, .foot .brand .wm { height: 17px; }
.wm-in, .focus .sig .wm-in { height: 17px; }
.wm-core { height: 17px; }
.cmd-top img { height: 15.3px; }
@media (max-width: 860px) { .brand .wm, .hdr.scrolled .brand .wm { height: 17px; } }
/* 5. 작은 기능 카드: 곡면 카드와 같은 수준의 화면 그림 */
.fc { padding: 12px 12px 26px; border-radius: 26px; }
.fc .mini { height: 236px; border-radius: 18px; display: grid; place-items: center; overflow: hidden; position: relative; }
.fc-video .mini { background: linear-gradient(150deg, #2E2A26, #54473B); }
.fc-sheets .mini { background: linear-gradient(150deg, #F2EEFF, #E2D9FF); }
.fc-grade .mini { background: linear-gradient(150deg, #EAF8EF, #D3EFDD); }
.fc-week .mini { background: linear-gradient(150deg, #EAF3FF, #D2E5FF); }
.fc-attend .mini { background: linear-gradient(150deg, #FFF3D1, #FFE39A); }
.fc-notify .mini { background: linear-gradient(150deg, #FFF1E8, #FFD9C4); }
.fc .mini .cc { position: relative; left: auto; top: auto; margin: 0; transform: scale(.8); transition: transform .55s var(--ease), box-shadow .55s var(--ease); }
.fc:hover .mini .cc, .fc.play .mini .cc { transform: scale(.85) translateY(-6px) rotate(-1.2deg); box-shadow: 0 34px 50px -26px rgba(0, 0, 0, .55); }
.fc h3 { margin: 22px 10px 6px; }
.fc p { margin: 0 10px; }
@media (max-width: 860px) { .fc .mini { height: 220px; } .fc .mini .cc { transform: scale(.76); } }
/* 6. 빛나는 뇌 + 빛 가닥 + 칩 */
.web { aspect-ratio: 16 / 10; }
.web .me { width: clamp(250px, 31%, 330px); }
@media (min-width: 861px) { .web .me { transform: translate(-50%, -30%); } }
.web .me .brain { position: static; inset: auto; display: block; width: 100%; height: auto; overflow: visible; }
.brain .bz-out { stroke: #A8F0FF; stroke-width: 2.2; }
.brain .bz-gyri path { stroke: #6FE0FF; stroke-width: 1.25; stroke-linecap: round; opacity: .8; }
.brain .bz-sul { stroke: #A8F0FF; stroke-width: 1.8; opacity: .9; }
.brain .bz-fib path { stroke: #3AB8FF; stroke-width: 1.1; opacity: .75; }
.brain .bz-flow path { stroke: #C9F6FF; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 6 90; animation: fibflow 3.4s linear infinite; filter: drop-shadow(0 0 3px #5CD3FF); }
@keyframes fibflow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -192; } }
.brain .bz-chip rect { fill: #0B1D48; stroke: #5CCBFF; stroke-width: 1.4; }
.brain .bz-chip rect.core { fill: #1E5BD8; stroke: #9FE8FF; animation: corepulse 2.6s ease-in-out infinite; }
.brain .bz-chip rect[height="6"] { fill: #8FE6FF; stroke: none; }
@media (max-width: 860px) { .web .me { width: 260px; } }

.brain .bz-gyri path { stroke-width: 1.15; opacity: .72; stroke-linejoin: round; }

/* 학부모 폰: 일별 리포트 카드 */
.phone .nt-card .rp-day .rp-h { background: #0E9F8A; }
.phone .rp-l { list-style: none; margin: 8px 12px 10px; padding: 0; display: grid; gap: 6px; font-size: 11.8px; line-height: 1.4; color: #2B3440; }
.phone .rp-l li { display: grid; grid-template-columns: 16px 1fr; gap: 6px; align-items: start; }
.phone .rp-l li::before { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 9.5px; font-weight: 750; color: #fff; margin-top: 1px; }
.phone .rp-l li.ok::before { content: "✓"; background: #1E9E5A; }
.phone .rp-l li.warn::before { content: "!"; background: #E0561B; }
.phone .rp-l li.next::before { content: "→"; background: #2B59E8; }
/* 뇌 아래 이름표 */
.web .me .me-l b { font-size: clamp(17px, 1.6vw, 21px); color: #BFEBFF; font-weight: 750; letter-spacing: .02em; }
/* 바닥: 학원 로고 폭을 위 줄에 맞춤 */
.foot-mark { display: inline-flex; flex-direction: column; }
.foot-mark .foot-logo { width: 0; min-width: 100%; height: auto; margin-top: 12px; }

/* 대화 속 말풍선은 줄어들지 않는다 (칸이 모자라면 오래된 것부터 통째로 비킴) */
.chat > * { flex-shrink: 0; }

/* 큰 구역 사이 여백 (09-29 원장님): 영상 · 기록 연결 · 학부모 · 로컬 AI · 작은 기능 사이는 같은 간격, 마지막 문구 위는 두 배 */
:root { --sec-gap: clamp(80px, 10vw, 150px); }
.focus, .records, .parents, .local { margin-bottom: var(--sec-gap); }
.final { margin-top: calc(var(--sec-gap) * 2); }

/* 첫 화면 명령창: 로고 줄 빼고 두 줄로 얇게 */
.cmdwrap { margin-top: -262px; }
.cmdbox { padding: 12px 16px 10px 20px; border-radius: 18px; }
.cmd-text { margin: 2px 0 2px; min-height: 30px; }
.cmd-bot { min-height: 32px; }
.cmd-bot .send { width: 32px; height: 32px; }
@media (max-width: 860px) { .cmdwrap { margin-top: -28px; } .cmdbox { padding: 10px 12px 8px 14px; } }

/* 황토 띠 시연 3: 명령 줄 — 검은 알약 대신 밝은 입력창 모양 */
.cmdbar { background: #fff; color: var(--ink); border: 1px solid #E6DCCD; border-radius: 14px; padding: .7em 1.1em .7em .7em;
  box-shadow: 0 12px 26px -18px rgba(60, 40, 20, .45); font-weight: 650; }
.cmdbar .mic { border-radius: 10px; background: linear-gradient(135deg, #FFE7CF, #FFD3A6); color: #A2520B; width: 2.2em; height: 2.2em; }
.cmdbar .mic::after { border-radius: 12px; border-color: rgba(233, 150, 70, .45); }
.cmdbar .who { color: #9A9086; }

/* 이름 인쇄 시험지 캡처 */
.sheets.real { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2em; }
.sheets.real .sheet2 { width: auto; margin: 0; padding: 0; border: 1px solid #DCCFBD; border-radius: 6px; overflow: hidden; background: #fff; }
.sheets.real .sheet2 img { display: block; width: 100%; height: auto; }
.sheets.real .sheet2:first-child { transform: rotate(-1.2deg); }
.sheets.real .sheet2:last-child { transform: rotate(1.2deg); }
.sheets.real .sheet2:not(.on) { transform: translateY(30%); }
.sheets.real figcaption { font-size: .78em; padding: .4em .6em; border-top: 1px solid #EDE6DA; color: var(--ink-2); background: #FCFAF6; }
.sheets.real figcaption b { color: #5B3FD6; margin-right: .3em; }
.sheets.real { max-width: 700px; margin: 0 auto; width: 100%; }
@media (max-width: 860px) { .sheets.real { gap: .6em; } }

/* ---- 기록 연결: AI 칩 + 퍼지는 회로 + 아이콘 항목 (원장님 보내 주신 그림처럼, 09-29) */
.records { background: radial-gradient(55% 45% at 50% 42%, #2A7C82 0%, rgba(24, 96, 104, .55) 35%, transparent 70%), linear-gradient(180deg, #0B3640 0%, #0A2E36 55%, #07222A 100%); color: #D8F2F2; }
.records .eyebrow { color: #7FE3DE; }
.records .lead { color: #A7CCCF; }
.web .me { width: clamp(300px, 36%, 380px); }
@media (min-width: 861px) { .web .me { transform: translate(-50%, -46%); } }
.web .me .chip { position: static; inset: auto; display: block; width: 100%; height: auto; overflow: visible; }
.chip .ck-tr path { stroke: #F4FDFF; stroke-width: 1.5; stroke-linejoin: round; opacity: .92; }
.chip .ck-end circle { fill: none; stroke: #F4FDFF; stroke-width: 1.5; }
.chip .ck-pin path { stroke: #F4FDFF; stroke-width: 2.2; stroke-linecap: round; }
.chip .ck-flow path { stroke: #FFE2B8; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 5 120; animation: ckflow 3s linear infinite; filter: drop-shadow(0 0 3px #FFB36B); }
@keyframes ckflow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -250; } }
.chip .ck-body { fill: #10181C; stroke: #F4FDFF; stroke-width: 2.4; }
.chip .ck-in { fill: none; stroke: rgba(244, 253, 255, .35); stroke-width: 1.2; }
.chip .ck-ai { fill: #F4FDFF; font-family: var(--font); font-size: 46px; font-weight: 500; letter-spacing: .02em; }
.chip .warm { animation: warmglow 4s ease-in-out infinite; }
@keyframes warmglow { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.web .me .me-l b { color: #E6FBFB; }
/* 항목: 가는 흰 아이콘 + 반투명 글자 (상자 없음) */
.web .nd { display: inline-flex; align-items: center; gap: 9px; background: none; border: 0; box-shadow: none; backdrop-filter: none; padding: 0; color: #fff; }
.web .nd svg { position: static; inset: auto; width: 30px; height: 30px; color: #F4FDFF; filter: drop-shadow(0 0 6px rgba(160, 240, 255, .35)); flex: none; }
.web .nd em { font-style: normal; font-size: 14.5px; font-weight: 650; color: rgba(255, 255, 255, .62); letter-spacing: .01em; }
.records .purge { background: rgba(8, 44, 52, .72); border-color: rgba(127, 227, 222, .45); color: #D8F2F2; box-shadow: 0 0 18px rgba(80, 220, 210, .18); }
.records .purge svg { color: #7FE3DE; }
@media (max-width: 860px) {
  .web .me { width: 280px; }
  .web .nds { gap: 14px 18px; }
  .web .nd svg { width: 24px; height: 24px; }
  .web .nd em { font-size: 13px; }
}
@media (max-width: 860px) { .web .nd svg { display: block; } }

/* 맨 위 줄: 학원 로고 | SeeAllai — 로고 속 '수학과학학원' 글자 높이(로고의 52.5%)를 SeeAllai 글자(17px)에 맞춤 → 로고 32px */
.hdr .wrap { gap: 0; }
.acad { display: flex; align-items: center; flex: none; }
.acad img { height: 32px; width: auto; display: block; }
.bsep { width: 1px; height: 22px; background: rgba(23, 23, 23, .18); margin: 0 16px; flex: none; }
.hdr .nav { margin-right: 28px; }
@media (max-width: 860px) {
  .acad img { height: 26px; }
  .bsep { margin: 0 11px; height: 18px; }
  .brand .wm, .hdr.scrolled .brand .wm { height: 14px; }
  .brand span { display: none; }
}

/* 학생 폰 대화: 새 내용(복습 시기·시험 범위·오답 까닭·지금 할 일) — 폰·말풍선을 조금 키움 */
.visual.tall { aspect-ratio: 1 / 1.12; }
.visual.tall .phone { width: min(312px, 48%); top: 3.5%; }
.phone .msg.ai, .phone .typing { max-width: calc(88% - 40px); }
.phone .msg.me { max-width: 80%; }
.cal.rng b { font-size: .95em; }
.trail { margin-top: .55em; display: grid; gap: .35em; border: 1px solid #E4E8EE; border-radius: .8em; padding: .55em .7em; background: #FCFAF6; font-size: .9em; }
.trail div { display: grid; grid-template-columns: 1.4em 2.6em 1fr; align-items: center; gap: .35em; }
.trail i { width: 1.35em; height: 1.35em; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .75em; font-weight: 750; color: #fff; }
.trail i.o { background: #1E9E5A; }
.trail i.x { background: #E0561B; }
.trail b { font-variant-numeric: tabular-nums; }
.trail span { color: #5A6470; }
@media (max-width: 860px) { .visual.tall { aspect-ratio: 1 / 1.62; } .visual.tall .phone { width: min(300px, 80%); } }

.story .lead .lead-em { display: inline-block; margin-bottom: 6px; color: var(--ink); font-weight: 750; letter-spacing: -0.01em; }

/* '하루하루가 조금 더 편해집니다.' — 작게·크게·주황·작게 (09-29 원장님) */
.feat-h { font-size: clamp(40px, 5.6vw, 76px); letter-spacing: -0.03em; }
.feat-h .rl { white-space: nowrap; }
.feat-h small { font-size: .46em; font-weight: 650; color: var(--ink-2); letter-spacing: -0.01em; }
.feat-h em { font-style: normal; color: #FF4000; }

/* 첫 화면 제목의 AI. 만 로고 주황 (09-29 원장님) */
.rot .r1 .ai { color: #FF4000; }

/* (명령창 아래 세 줄 안내를 곡면 카드 아래로 내리던 132·176px 은 11-03 명령창이 띠 아래로 옮겨지며 없앰 — 입력창과 멀리 떨어졌음, 원장님 11-03 밤) */

/* 마지막 문구 (09-29 원장님): 첫 문장은 크되 얇게, 핵심은 압도적으로 굵고 크게 */
.final .fin-1 { margin: 0; font-size: clamp(26px, 3.3vw, 44px); font-weight: 400; line-height: 1.4; letter-spacing: -0.02em; color: var(--ink-2); }
.final .fin-2 { margin: .55em 0 0; font-size: clamp(42px, 6.8vw, 96px); font-weight: 750; line-height: 1.1; letter-spacing: -0.045em; color: var(--ink); }


/* ==================================================================== 작업명령서 13 — 1묶음: 기준(§2~8) ==== */
:root {
  --bg: #F7F5F0; --bg-2: #EFEAE2; --surface: #FBFAF7; --surface-2: #EFEAE2; --surface-3: #E7DED1;
  --sand: #E7DED1; --sand-2: #DCCFBD; --ochre: #C49A69; --ochre-d: #B98B59;
  --ink: #171613; --ink-2: #5F5B55; --muted: #958E84; --line: rgba(35, 28, 20, .08); --dark: #11110F;
  --content-max: 1440px; --content-wide: 1600px; --content-text: 760px;
  --r-sec: 44px; --r-vis: 32px; --r-card: 24px; --r-pill: 999px;
  --shadow-card: 0 30px 80px rgba(35, 28, 20, .07), 0 2px 8px rgba(35, 28, 20, .035);
  --border-card: 1px solid rgba(35, 28, 20, .06);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
}
body { font-size: 18px; line-height: 1.75; color: var(--ink); }
.wrap { width: min(calc(100% - 64px), var(--content-max)); padding: 0; }
/* §5 글자 체계 */
.eyebrow { font-size: 13px; font-weight: 650; letter-spacing: .12em; }
.h-l { font-size: clamp(48px, 4.3vw, 68px); font-weight: 750; line-height: 1.05; letter-spacing: -0.035em; }
.h-m { font-size: clamp(40px, 3.5vw, 54px); font-weight: 650; line-height: 1.08; letter-spacing: -0.03em; }
.lead { font-size: clamp(19px, 1.45vw, 22px); line-height: 1.65; color: var(--ink-2); }
/* §7 구역 간격 */
.records, .parents, .local, .feats, .final { padding-top: 140px; padding-bottom: 140px; }
/* §8 머리 띠: 88 → 68, 내리면 옅은 바탕색 + 흐림 + 가는 선 */
.hdr { transition: background .3s ease, border-color .3s ease, box-shadow .3s ease; }
.hdr .wrap { height: 88px; transition: height .3s ease; max-width: var(--content-max); }
.hdr.scrolled { background: rgba(247, 245, 240, .82); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom-color: rgba(20, 20, 20, .06); box-shadow: 0 10px 30px -24px rgba(35, 28, 20, .45); }
.hdr.scrolled .wrap { height: 68px; }
.nav { gap: 32px; }
.nav a, .login { font-weight: 500; color: var(--ink-2); }

/* ==================================================================== 2묶음: 첫 화면(§9~16) ==== */
.hero .h-xl, .hero .rot { font-size: clamp(64px, 6.1vw, 96px); font-weight: 750; letter-spacing: -0.045em; }
.hero .rot { line-height: .98; height: 1.18em; }
.hero .rot .rl { line-height: 1.12; }
.hero .rot2 { margin-top: 36px; max-width: 700px; font-size: 20px; line-height: 1.8; color: #666057; height: 1.8em; }
/* 곡면 카드 크게 (원장님: 카드 크기만 키우기) */
.cstage { height: 540px; }
.cmdwrap { margin-top: -318px; }
.cc { box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 2px 6px rgba(35, 28, 20, .05), 0 34px 60px -30px rgba(40, 28, 15, .45); }
.cmdbox { border-radius: 22px; border-width: 1px; box-shadow: 0 40px 80px -40px rgba(35, 28, 20, .5), 0 0 0 1px rgba(23, 22, 19, .9); border-color: transparent; }
@media (max-width: 860px) {
  .wrap { width: calc(100% - 32px); }
  .hero .h-xl, .hero .rot { font-size: clamp(42px, 12vw, 64px); }
  .hero .rot2 { font-size: 16.5px; height: 3.5em; }
  .records, .parents, .local, .feats, .final { padding-top: 72px; padding-bottom: 72px; }
  .cstage { height: 300px; }
}


/* ==================================================================== 3묶음: 황토 무대(§17~21) ==== */
.stage { padding-top: 88px; padding-bottom: 100px; min-height: 820px; }
.stage-sec { padding: 80px 0 160px; }
.slides { aspect-ratio: 16 / 7.6; }
.slide { width: 76%; border-radius: 28px; box-shadow: 0 40px 100px rgba(53, 37, 20, .22); transition: transform .85s var(--ease-out), opacity .85s var(--ease-out), filter .85s; }
.slide.is-next { opacity: .72; transform: translateX(8%) scale(.94); filter: none; }
.slide.is-next2 { opacity: .38; transform: translateX(14%) scale(.89); z-index: 1; pointer-events: none; }
.win-bar { height: 42px; }
.win-body { inset: 42px 0 0 0; }
/* 진행 표시: 01 ━━━━ 02 03 */
.pager { gap: 18px; align-items: center; }
.pager button { width: auto; height: 28px; gap: 10px; color: rgba(40, 25, 10, .55); }
.pager button .pn { font-size: 13px; font-weight: 650; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.pager button i { width: 0; height: 2px; transition: width .6s var(--ease-out); }
.pager button[aria-current="true"] { color: #1A140E; }
.pager button[aria-current="true"] i { width: 120px; }
/* 결석 안내 장면 */
.abs { display: grid; gap: .5em; margin-bottom: .7em; }
.abs-r { display: flex; justify-content: space-between; background: rgba(255, 255, 255, .8); border-radius: 10px; padding: .45em .8em; font-size: .92em; }
.abs-r span { color: var(--ink-2); }
.abs-m { font-size: .88em; color: var(--ink-2); background: #fff; border: 1px dashed #E3D8C8; border-radius: 10px; padding: .6em .8em; line-height: 1.55; }
.abs-b { margin-top: .6em; display: flex; justify-content: space-between; align-items: center; font-size: .88em; font-weight: 650; }
.abs-b b { background: var(--ink); color: #fff; border-radius: 999px; padding: .3em 1em; }
.d3 .scene:nth-child(6) .result { background: #FFEDE4; border-color: #FFD3BD; }
.d3 .scene:nth-child(1) .result { background: #EEF6EA; border-color: #D4EACB; }
@media (max-width: 860px) {
  .stage-sec { padding: 40px 0 72px; }
  .slides { aspect-ratio: 4 / 6.3; }
  .slide { width: 100%; }
  .slide.is-next, .slide.is-next2 { opacity: 0; }
  .pager button[aria-current="true"] i { width: 64px; }
}

/* ==================================================================== 4묶음: 이야기 = 좌우 교대 챕터(§22~28) ==== */
.stories { padding: 160px 0 100px; }
.st-grid { display: block; }
.st-stick { position: static; padding-top: 0; max-width: 820px; margin-bottom: 40px; }
.st-index { display: none; }
.st-panels .story:not(.cur) { opacity: 1; }
.story { min-height: 78vh; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(64px, 7vw, 120px); align-items: center; padding: 80px 0; }
.st-panels .story:nth-child(even) { grid-template-columns: .85fr 1.15fr; }
.st-panels .story:nth-child(even) .visual { order: 2; }
.story .copy { margin-top: 0; max-width: 560px; }
.story .copy .lead { margin-top: 22px; }
.visual { border-radius: var(--r-vis); }
.visual:not(.v-why):not(.light) { background: #F0ECE5; }
@media (max-width: 860px) {
  .stories { padding: 72px 0 40px; }
  .story, .st-panels .story:nth-child(even) { grid-template-columns: 1fr; min-height: 0; gap: 28px; padding: 44px 0; }
  .st-panels .story:nth-child(even) .visual { order: 0; }
}


/* ==================================================================== 5묶음: 감성 영상(§29~31) ==== */
.focus { height: min(100svh, 980px); min-height: 720px; display: block; }
.focus::after { background: linear-gradient(to bottom, rgba(0, 0, 0, .08), rgba(0, 0, 0, .28)); }
.focus .txt { position: absolute; left: 0; right: 0; top: 60%; transform: translateY(-50%); z-index: 1; }
.focus .rot.g .rl, .focus .rot.g .rl.out { transform: none; transition: opacity 1.2s ease; }
@media (max-width: 860px) { .focus { height: 80svh; min-height: 520px; } .focus video, .focus .ph { object-position: 55% center; } }
/* 감성 영상(11-03 선 기하): 글자가 영상 안에 있어 잘리면 안 됨 — 칸을 영상 비율 그대로, 어두운 막 없이, 바탕은 영상 바탕색 */
.focus:has(.fv) { height: auto; min-height: 0; display: block; background: none; padding: 0; border-block: 1px solid rgba(58, 44, 28, .12); content-visibility: visible; }   /* 구역 구분은 영상 높이에 맞춘 연한 가로선 위아래로만(원장님 11-09 '테두리 촌스럽다 — 가로로만') */
.focus:has(.fv)::after { display: none; }
/* 영상 칸(원장님 11-09 '어디부터 영상인지 표시가 안 나서 빈 자리로 생각') — 받기 전에도 어두운 바탕 · 처음 도착할 때 내려앉기는 다른 카드와 같은 .rv */
.fv { position: relative; width: min(1200px, 100%, calc(86svh * 16 / 9)); margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden; background: #2E3A22; }
.fv video, .fv-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.fv-poster { transition: opacity .5s ease; }
.fv.on .fv-poster { opacity: 0; pointer-events: none; }
.fv-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 18px 8px 10px; border: 0; border-radius: 999px; background: rgba(20, 14, 8, .62); color: #fff; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; transition: opacity .3s ease; }
.fv-play svg { width: 30px; height: 30px; }
.fv.on .fv-play { opacity: 0; pointer-events: none; }
.fv-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ochre); transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s linear; opacity: 0; }
.fv.on .fv-bar { opacity: .95; }
@media (max-width: 860px) { .fv { width: min(100%, calc(84svh * 9 / 16)); aspect-ratio: 9 / 16; } }   /* 폰은 세로판 영상(site.js FOCUS_VIDEO.mobile) — 칸도 세로 비율로 */

/* ==================================================================== 7묶음: 학부모(§35~37) ==== */
.parents { background: #EFE9E0; }
.parents .grid { grid-template-columns: .9fr 1.1fr; }
.par-h .p1, .par-h .p2 { display: block; }
.par-h .p1 { font-weight: 500; color: #6B665E; font-size: .78em; margin-bottom: .15em; }
.par-h .p2 { font-weight: 750; color: var(--ink); }
.phone .nt { animation: none; }
.phone .chat > .nt.on { animation: slideUp .6s var(--ease-out) both; }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ==================================================================== 8묶음: 로컬 AI(§38~40) ==== */
.local { background: var(--dark); min-height: 900px; display: flex; align-items: center; }
.local .grid { width: min(calc(100% - 64px), var(--content-max)); }
.core .ai { border-radius: 32px; width: clamp(220px, 36%, 300px); background: linear-gradient(150deg, #2A2621 0%, #181613 60%, #121110 100%);
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 0 0 1px rgba(196, 154, 105, .10), 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 120px rgba(196, 154, 105, .10); }
.core .ai b { color: #F4EEE4; }
.core .ai span { color: #C9A77C; }
.core .fence { stroke: rgba(196, 154, 105, .30); }
.core .flow2.mv { stroke: #D9B98E; }
.core .src { background: #1B1A17; border-color: rgba(255, 255, 255, .07); border-radius: 22px; }


/* ==================================================================== 10묶음: 작은 기능 카드 = 미니 시연(§42~47) ==== */
.fgrid { gap: 24px; }
.fc { min-height: 320px; border-radius: var(--r-card); padding: 14px 14px 30px; background: #FBFAF7; border: var(--border-card); box-shadow: var(--shadow-card); transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.fc:hover { transform: translateY(-4px); box-shadow: 0 40px 90px rgba(35, 28, 20, .10), 0 2px 8px rgba(35, 28, 20, .04); }
.fc .mini { height: 220px; border-radius: 18px; display: block; }
.fc h3 { margin: 24px 16px 8px; font-size: 21px; font-weight: 650; letter-spacing: -0.02em; }
.fc p { margin: 0 16px; font-size: 15.5px; color: var(--ink-2); }
.fc-pay .mini { background: linear-gradient(150deg, #FFF1E8, #FFD9C4); }
.md { position: absolute; inset: 0; padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; gap: 12px; font-size: 13px; color: var(--ink); }
.md [data-t] { transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.md-chip { align-self: flex-start; background: #fff; border-radius: 999px; padding: 5px 12px; font-weight: 650; box-shadow: 0 4px 10px -6px rgba(0, 0, 0, .25); }
.md-chip.acc { background: #5B3FD6; color: #fff; }
.md-row { display: flex; gap: 8px; }
.md-done { align-self: flex-start; background: #1E7A45; color: #fff; border-radius: 999px; padding: 6px 13px; font-weight: 650; }
/* 풀이영상 */
.md-video { color: #fff; }
.md-field { position: relative; display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 8px 14px; }
.md-field svg { width: 16px; height: 16px; flex: none; }
.md-field .ph { color: rgba(255, 255, 255, .45); }
.md-field .ty { position: absolute; left: 38px; font-weight: 650; font-size: 14px; background: #3a342d; padding-right: 30px; }
.md-field .spin { position: absolute; right: 12px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.md-thumb { position: relative; height: 112px; border-radius: 12px; overflow: hidden; }
.md-thumb img { width: 100%; height: 100%; object-fit: cover; }
.md-thumb span { position: absolute; left: 10px; bottom: 8px; font-size: 11.5px; font-weight: 650; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.md-play { position: absolute; left: 50%; top: 45%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: rgba(255, 255, 255, .92); }
.md-play::after { content: ""; position: absolute; left: 15px; top: 11px; border-left: 12px solid var(--ink); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.md-play.on { animation: pulse2b 1.2s ease-out 1; }
@keyframes pulse2b { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); } 100% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); } }
/* 프린트 */
.md-printer { position: relative; height: 70px; width: 120px; }
.md-printer .body { position: absolute; left: 0; bottom: 0; width: 120px; height: 42px; border-radius: 10px; background: var(--ink); }
.md-printer .paper { position: absolute; left: 22px; bottom: 30px; width: 76px; height: 0; background: #fff; border: 1px solid #DCCFBD; border-bottom: 0; border-radius: 4px 4px 0 0; overflow: hidden; transition: height 1s var(--ease-out) !important; opacity: 1 !important; transform: none !important; }
.md-printer .paper.on { height: 58px; }
.md-printer .paper em { display: block; height: 4px; margin: 8px 8px 0; border-radius: 2px; background: #EAE2D6; }
/* 채점 */
.md-sheet { background: #fff; border-radius: 12px; padding: 8px 12px; display: grid; gap: 4px; box-shadow: 0 8px 20px -14px rgba(0, 0, 0, .35); }
.md-sheet .gr { display: grid; grid-template-columns: 16px 1fr 20px; align-items: center; gap: 8px; }
.md-sheet .gr span { font-weight: 650; color: var(--muted); }
.md-sheet .gr i { height: 5px; border-radius: 3px; background: #EFE8DC; }
.md-sheet .gr b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; color: #fff; }
.md-sheet .gr b.o { background: #1E9E5A; } .md-sheet .gr b.x { background: #E0561B; }
.md-score { align-self: flex-end; font-size: 15px; font-weight: 650; } .md-score b { font-size: 28px; }
/* 일정 */
.wk3 { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.wk3 div { text-align: center; } .wk3 em { font-style: normal; font-weight: 650; color: var(--ink-2); font-size: 12px; }
.wk3 i { display: block; height: 96px; margin-top: 4px; border-radius: 10px; background: rgba(255, 255, 255, .7); }
.md-evt { position: absolute; left: calc(20% + 2px); top: 34px; width: calc(20% - 10px); height: 38px; border-radius: 8px; background: #1463D8; color: #fff; font-size: 10.5px; font-weight: 650; display: grid; place-items: center;
  opacity: 1 !important; transform: none; transition: left .9s var(--ease-out), top .9s var(--ease-out) !important; }
.md-evt.on { left: calc(60% + 2px); top: 58px; transform: none !important; }
/* 출결 */
.md-attend { flex-direction: row; align-items: center; gap: 22px; }
.qr3 { position: relative; width: 120px; height: 120px; padding: 8px; border-radius: 14px; background: #fff; display: grid; grid-template-columns: repeat(21, 1fr); grid-template-rows: repeat(21, 1fr); flex: none; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .4); overflow: hidden; }
.qr3 > i:not(.scan) { background: transparent; } .qr3 > i.k { background: var(--ink); }
.qr3 .scan { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #E0561B; box-shadow: 0 0 12px #E0561B; animation: scanq 1.1s linear 1 both; }
@keyframes scanq { from { top: 4%; } to { top: 94%; } }
.md-who { display: flex; flex-direction: column; gap: 10px; } .md-who b { font-size: 22px; font-weight: 750; }
.md-ok { background: #1E7A45; color: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 650; }
/* 수납 */
.md-say { background: #fff; border-radius: 14px; padding: 9px 12px; font-weight: 500; box-shadow: 0 8px 20px -14px rgba(0, 0, 0, .35); }
.md-status { color: var(--ink-2); font-weight: 650; display: flex; align-items: center; gap: 8px; }
.md-status::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .15); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@media (max-width: 860px) { .fc { min-height: 0; } }


/* ==================================================================== 12묶음: 마지막 문구(§49~53) — 비대칭 ==== */
.final { min-height: 820px; padding: 160px 0 140px; text-align: left; display: flex; align-items: center; }
.fin-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.final .final-logo { margin: 0 0 44px; height: 40px; }
.final .fin-1 { font-size: clamp(34px, 3.6vw, 54px); font-weight: 500; line-height: 1.3; letter-spacing: -0.03em; color: #4F4A43; margin: 0; }
.final .fin-2 { font-size: clamp(52px, 5.5vw, 82px); font-weight: 750; line-height: 1.04; letter-spacing: -0.045em; color: var(--ink); margin: .55em 0 0; }
.final .fin-2 .acc { color: var(--ochre-d); }
.final .fin-3 { max-width: 620px; font-size: 19px; line-height: 1.8; color: var(--ink-2); margin: 40px 0 0; }
.fin-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; justify-self: end; padding-bottom: 8px; }
.btn-p { display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 30px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 650;
  transition: transform .3s var(--ease-out), background .3s; }
.btn-p span, .btn-t span { display: inline-block; transition: transform .3s var(--ease-out); }
.btn-p:hover { transform: translateY(-2px); background: #000; }
.btn-p:hover span, .btn-t:hover span { transform: translateX(4px); }
.btn-t { font-size: 16px; font-weight: 650; color: var(--ink-2); padding: 4px 2px; border-bottom: 1px solid rgba(23, 22, 19, .25); }
.btn-t:hover { color: var(--ink); border-color: var(--ink); }
.fin-links { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.fin-fee-link { color: #817A72; font-size: 13px; font-weight: 550; letter-spacing: -.01em; transition: color .2s; }
.fin-fee-link span { display: inline-block; margin-left: 4px; transition: transform .2s; }
.fin-fee-link:hover { color: var(--ink); }
.fin-fee-link:hover span { transform: translate(2px, -2px); }
@media (max-width: 860px) {
  .final { min-height: 0; }
  .fin-grid { grid-template-columns: 1fr; gap: 36px; }
  .fin-cta { justify-self: start; }
  .final .fin-3 br { display: none; }
}

/* 기록 연결: 위 여백 줄여 칩이 첫 화면에 들어오게 */
.records { padding-top: 100px; }
.records .web { margin-top: 36px; aspect-ratio: 16 / 9; }

/* §55 나타나기: 24px 아래 + 흐림 4px → 제자리, 0.75초 */
.rv { transform: translateY(24px); filter: blur(4px); transition: opacity .75s var(--ease-out), transform .75s var(--ease-out), filter .75s var(--ease-out); transition-delay: var(--d, 0s); }
/* §48 둥근 모서리: 큰 그림 32 · 카드 24 · 알약 999 */
.slide { border-radius: 28px; }
.cc { border-radius: 22px; }
.phone .nt, .phone .msg { border-radius: 16px; }


/* ==================================================================== 폰 화면 바로잡기(§58~61) ==== */
.hint-t { display: none; }
@media (hover: none) { .hint-m { display: none; } .hint-t { display: inline; } }
@media (max-width: 860px) {
  /* 첫 화면: 카드 → 명령창 → 설명 세 줄 (PC용 끌어올림이 폰에 걸리던 것) */
  .cmdwrap { margin-top: -28px; }
  .facts { margin-top: 22px; }
  /* 학부모: 한 칸으로, 글 먼저 폰 나중 */
  .parents .grid { grid-template-columns: 1fr; }
  /* 로컬 AI: 폰에서는 높이 고정 없이 */
  .local { min-height: 0; display: block; }
  /* 학생 폰 그림: 아래 단추 줄까지 다 보이게 */
  .visual.tall { aspect-ratio: 1 / 1.86; }
}

/* 감성 영상 제목: 겹치지 않게 — 앞 문장이 0.7초에 사라진 뒤 다음 문장이 0.9초에 나타남 */
.focus .rot.g .rl, .focus .rot.g .rl.out { transition: opacity .7s ease; transition-delay: 0s; }
.focus .rot.g .rl.in { transition: opacity .9s ease; transition-delay: .75s; }

/* §5 글자 크기 맞추기: PC 설명 글 21~24px, 황토 띠 옆 설명은 본문 굵기로 */
@media (min-width: 861px) { .lead { font-size: clamp(21px, 1.5vw, 23px); } }
.stage-head > p { font-size: 17px; font-weight: 500; line-height: 1.7; }

/* §62 첫 화면 먼저: 화면 밖 구역은 가까이 올 때 배치·그리기 (크기는 마지막으로 잰 값을 기억) */
.stage-sec, .story, .focus, .records, .parents, .local, .feats, .final, .foot { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.story { contain-intrinsic-size: auto 720px; }

/* §8 머리 띠는 옅은 바탕 + 흐림 + 가는 선만 (그림자 빼기 — 로고 밑에 얼룩처럼 보였음) */
.hdr.scrolled { box-shadow: none; }
/* 작은 기능 머리: 설명을 두 줄로 */
@media (min-width: 861px) { .feats-head p { max-width: 540px; } }

/* 작은 기능 — 검색칸: 글자가 들어오면 흐린 안내 글만 숨김 (글자 뒤 검은 네모 없앰) */
.md-field .ty { background: none; padding-right: 0; }
.md-field:has(.ty.on) .ph { opacity: 0; }
/* 작은 기능 — 개인별 문제 출력: 왼쪽 학생·문항·완료, 오른쪽 밝은 프린터에서 종이가 올라옴 */
.md-print { flex-direction: row; align-items: center; justify-content: space-between; padding: 22px 30px; }
.md-l { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.md-l .md-done { margin-top: 6px; }
.md-printer { position: relative; width: 150px; height: 132px; flex: none; }
.md-printer .body { position: absolute; left: 0; bottom: 0; z-index: 1; width: 150px; height: 58px; border-radius: 14px; background: linear-gradient(180deg, #FFFFFF, #EEE9FB);
  border: 1px solid rgba(91, 63, 214, .14); box-shadow: 0 16px 28px -16px rgba(60, 40, 140, .45), inset 0 -3px 0 rgba(91, 63, 214, .08); }
.md-printer .body::before { content: ""; position: absolute; left: 20px; right: 20px; top: 10px; height: 6px; border-radius: 3px; background: #2B2540; }
.md-printer .led { position: absolute; right: 14px; bottom: 13px; width: 7px; height: 7px; border-radius: 50%; background: #CFC8E6; opacity: 1 !important; transform: none !important; transition: background .3s, box-shadow .3s !important; }
.md-printer .led.on { background: #2FBF71; box-shadow: 0 0 0 3px rgba(47, 191, 113, .2); }
.md-printer .paper { left: 30px; bottom: 45px; width: 90px; border-color: #E4DDF5; box-shadow: 0 -6px 16px -10px rgba(60, 40, 140, .35); }
.md-printer .paper.on { height: 80px; }
.md-printer .paper b { display: block; margin: 8px 8px 0; font-size: 7.5px; font-weight: 650; color: #5B3FD6; font-style: normal; white-space: nowrap; }
.md-printer .paper em { height: 3.5px; margin: 6px 8px 0; background: #ECE6F7; }
.md-printer .paper em.s { width: 55%; }
.md-printer .paper { display: block; }
.md-printer .paper { padding: 0; gap: 0; min-height: 0; }

/* 가명이 홍길동·전우치로 길어져 줄이 넘어가던 곳: 한 줄로 */
.cc-m, .linked { white-space: nowrap; }

/* 학부모 폰 월말 리포트: 카드 밖 얼굴 그림·'씨알 학습 안내' 이름표가 보이게 (숨김은 카드 속에서만) */
.phone .nt-card { overflow: visible; }
.phone .nt-card .rp { border-radius: inherit; overflow: hidden; }
.phone .nt-card ul li { display: block; padding: 0; white-space: nowrap; font-size: 11px; line-height: 1.6; }
.phone .nt-card ul li::before { display: none; }

/* ==================================================================== 기록 연결: 불규칙 별자리(§33) + 선 뻗기·무작위 신호 (원장님 09-29) ==== */
.records .web { aspect-ratio: 16 / 9; }
.web .me { z-index: 1; width: clamp(280px, 32%, 350px); }
.web svg.links { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; overflow: visible; pointer-events: none; }
.web .links line.ln { stroke: rgba(230, 251, 251, .28); stroke-width: 1.2; stroke-linecap: round; }
.web .links circle.tip { fill: #FFE2B8; filter: drop-shadow(0 0 5px #FFB36B); transition: opacity .3s; }
.web .links circle.pl { fill: #FFF3E2; filter: drop-shadow(0 0 6px #FFB36B); }
.web .links line.pt { stroke: rgba(255, 214, 160, .7); stroke-width: 2.8; stroke-linecap: round; }
.web .nds { position: absolute; inset: 0; z-index: 2; display: block; }
.web .nd { position: absolute; flex-direction: column; gap: 7px; transform: translate(-50%, -15px); transform-origin: 50% 15px; opacity: .35; transition: opacity .5s var(--ease-out); }
.web .nd.lit { opacity: 1; }
.web .nd em { white-space: nowrap; }
.chip .ck-core { fill: #F4FDFF; font-family: var(--font); font-size: 17px; font-weight: 750; letter-spacing: .16em; }
/* 기록 구역 영상(있으면 칩 그림 대신) — 가로 16:9 · 폰 4:5 */
.records .web.vid { width: min(1200px, 100%); aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .8); }
.records .web.vid video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .records .web.vid { aspect-ratio: 4 / 5; border-radius: 18px; }
  .records .web { display: block; aspect-ratio: 3 / 4.4; margin-top: 28px; }
  .web .me { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 188px; }
  .web .me .me-l b { font-size: 13px; }
  .web .nd { position: absolute; transform: translate(-50%, -12px); transform-origin: 50% 12px; gap: 5px; }
  .web .nd em { font-size: 12px; }
}

/* 수납 카드: 부르고 → 대답하고 → 말하는 세 마디 (원장님 09-29) */
.md-pay { gap: 8px; }
.md-b { max-width: 84%; padding: 7px 12px; border-radius: 14px; font-size: 12.5px; font-weight: 650; line-height: 1.35; }
.md-b.me { align-self: flex-end; background: #fff; color: var(--ink); border-bottom-right-radius: 4px; box-shadow: 0 8px 20px -14px rgba(0, 0, 0, .35); }
.md-b.ai { align-self: flex-start; background: rgba(23, 22, 19, .86); color: #fff; border-bottom-left-radius: 4px; }
.md-pay .md-done { margin-top: 2px; }

/* SeeAllai CORE: SeeAllai 는 작게, CORE 는 크고 굵게 (원장님 09-29) — 기록 연결 칩·로컬 AI 같은 모양 */
.chip .ck-core { font-size: 31px; font-weight: 750; letter-spacing: .05em; }
.wm-core { height: 13px; margin-bottom: 8px; }
.core .ai b { font-size: clamp(28px, 2.6vw, 36px); font-weight: 750; letter-spacing: .05em; line-height: 1.05; }
@media (max-width: 860px) { .wm-core { height: 11px; } .core .ai b { font-size: 26px; } }
/* 코어 안 SeeAllai 15% 키움 (원장님 09-29): 13→15px, 폰 11→12.65px */
.wm-core { height: 14.95px; }
@media (max-width: 860px) { .wm-core { height: 12.65px; } }


/* ==================================================================== 이야기 3 망각 주기 그래프 (원장님 09-29 그림) ==== */
/* 설명 풍선이 많아 이 이야기만 그래프를 가로 전체 폭으로, 글은 위에 */
.st-panels #story-3 { grid-template-columns: 1fr; gap: 40px; min-height: 0; }
#story-3 .copy { order: -1; max-width: 820px; }
#story-3 .visual.fit .curve.fc2 { padding: 34px 36px 32px; }
.fc2 svg { display: block; width: 100%; height: auto; overflow: visible; }
.fc2 text { font-family: var(--font); }
.fc2 .fg-grid line { stroke: rgba(23, 22, 19, .07); stroke-width: 1; }
.fc2 .fg-yl text { font-size: 17px; fill: #6E6A63; font-weight: 500; }
.fc2 .fg-yt { font-size: 20px; font-weight: 750; fill: #1A1917; }
.fc2 .fg-axis { stroke: #3A3835; stroke-width: 2; }
.fc2 .fg-guide line { stroke: rgba(23, 22, 19, .28); stroke-width: 1; stroke-dasharray: 3 4; }
.fc2 .fg-aO { fill: url(#fgO); }
.fc2 .fg-aG { fill: url(#fgG); }
.fc2 .fg-line { fill: none; stroke: #B8581A; stroke-width: 3.2; stroke-linejoin: round; stroke-linecap: round; }
.fc2 .fg-dash { fill: none; stroke: #6E6C68; stroke-width: 2.2; stroke-dasharray: 8 7; }
.fc2 .fg-pt circle { fill: #B8581A; stroke: #fff; stroke-width: 3; }
.fc2 .fg-box { fill: #fff; filter: drop-shadow(0 10px 18px rgba(60, 40, 20, .12)); stroke: rgba(60, 40, 20, .06); }
.fc2 .fg-ic { fill: #FBEBDC; }
.fc2 .fg-icp { fill: none; stroke: #B8581A; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fc2 .fg-t { font-size: 19px; font-weight: 750; fill: #1A1917; }
.fc2 .fg-d { font-size: 14px; fill: #5F5B55; }
.fc2 .fg-xl rect { fill: #F1EEEA; }
.fc2 .fg-xl.first rect { fill: #F6E1CB; }
.fc2 .fg-xl text { font-size: 16px; font-weight: 650; fill: #2A2825; }
.fc2 .fg-xl .fg-xs { font-size: 14px; font-weight: 500; fill: #6E6A63; }
.fc2 .fg-same rect { fill: rgba(255, 255, 255, .92); filter: drop-shadow(0 6px 12px rgba(60, 40, 20, .1)); }
.fc2 .fg-same text { font-size: 14.5px; fill: #2A2825; }
.fc2 .fg-same line { stroke: #3A3835; stroke-width: 1.4; }
.fc2 .fg-mk line { stroke-width: 1.6; }
.fc2 .fg-mk.o line { stroke: #C06A2B; } .fc2 .fg-mk.g line { stroke: #7B7975; }
.fc2 .fg-mk circle { fill: #fff; stroke-width: 3; }
.fc2 .fg-mk.o circle { stroke: #C06A2B; } .fc2 .fg-mk.g circle { stroke: #6E6C68; }
.fc2 .fg-mk.o rect { fill: url(#fgB); } .fc2 .fg-mk.g rect { fill: #7B7975; }
.fc2 .fg-mk rect { filter: drop-shadow(0 8px 16px rgba(40, 30, 20, .18)); }
.fc2 .fg-mt { font-size: 17px; font-weight: 750; fill: #fff; }
.fc2 .fg-md { font-size: 13.5px; fill: rgba(255, 255, 255, .9); }
.fc2 .fg-lg rect { fill: #fff; stroke: rgba(23, 22, 19, .1); }
.fc2 .fg-lg line { stroke-width: 3.2; stroke-linecap: round; }
.fc2 .fg-lg line.o { stroke: #B8581A; } .fc2 .fg-lg line.g { stroke: #6E6C68; stroke-width: 2.2; stroke-dasharray: 6 5; stroke-linecap: butt; }
.fc2 .fg-lg text { font-size: 16px; font-weight: 650; fill: #2A2825; }
/* 나타나기: 선이 그 자리에 닿으면 */
.fc2 [data-x] > g, .fc2 .fg-pt circle { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.fc2 .fg-pt circle { transform: none; }
.fc2 [data-x].on > g, .fc2 .fg-pt.on circle { opacity: 1; transform: none; }
/* 글귀 */
.inview .curve.fc2 .cap-f, .curve.fc2 .cap-f { animation: none; }
.fc2 .cap-f { margin: 26px 0 0; text-align: center; opacity: 0; transform: translateY(10px); transition: opacity .8s var(--ease-out) .2s, transform .8s var(--ease-out) .2s; }
.fc2.done .cap-f { opacity: 1; transform: none; }
.fc2 .cap-f b { display: block; font-size: clamp(22px, 2.3vw, 34px); font-weight: 750; color: #1A1917; letter-spacing: -0.02em; }
.fc2 .cap-f em { font-style: normal; color: #C0661F; }
.fc2 .cap-f span { display: block; margin-top: 8px; font-size: clamp(14px, 1.2vw, 17px); color: #7A756D; }
@media (max-width: 860px) {
  #story-3 .visual.fit .curve.fc2 { padding: 22px 0 22px 14px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .fc2::-webkit-scrollbar { display: none; }
  .fc2 svg { width: 880px; max-width: none; }
  .fc2 .cap-f { position: sticky; left: 0; width: calc(100vw - 60px); padding-right: 14px; }
}
.fc2 .cap-f span { font-weight: 400; }

/* 이야기 5 폰: 상자 위에 붙어 떠 보이던 것 → 상자 가운데 (원장님 09-29) */
.visual.tall .phone { top: 50%; transform: translate(-50%, -50%); }

/* 학생·학부모 중심 재구성 (원장님 2026-10-04) — 첫 화면 큰 제목 '기억이 기적을 만듭니다.' 붙박이 한 문장.
   글자 크기·굵기는 위 '.hero .h-xl' 그대로. 폰에서는 '기억이 / 기적을 만듭니다.' 두 줄로 끊긴다(낱말 덩어리째). '기적' 은 로고의 ai 주황. */
.hero .hero-t { line-height: 1.12; }
.hero .hero-t > span { display: inline-block; }
.hero .hero-t .ai { color: #FF4000; }
/* 작은 기능 카드 — 메인은 4장(원장·강사용 2장은 /for-academy 로): 넓은 화면 4칸 · 중간 2칸 · 폰 1칸 */
.fgrid.n4, .fgrid.n8 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .fgrid.n4, .fgrid.n8 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .fgrid.n4, .fgrid.n8 { grid-template-columns: 1fr; } }
/* 학생 앱 카드 두 장 (원장님 10-04) — 학생 앱 홈 · SeeAllai 포인트 */
.fc-apphome .mini { background: linear-gradient(150deg, #EAF3FF, #D2E5FF); }
.fc-points .mini { background: linear-gradient(150deg, #FFF3D1, #FFE39A); }
.md-app { padding: 12px 20px; }
.app-scr { display: grid; gap: 6px; }
.app-row { position: relative; background: #fff; border-radius: 11px; padding: 6px 12px; display: grid; gap: 1px; line-height: 1.3; box-shadow: 0 8px 20px -14px rgba(0, 0, 0, .35); }
.app-row span { font-size: 10.5px; font-weight: 650; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.app-row span i { font-style: normal; min-width: 15px; height: 15px; border-radius: 8px; background: #E0561B; color: #fff; font-size: 9.5px; display: grid; place-items: center; }
.app-row b { font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-row.tch { box-shadow: inset 3px 0 0 #1463D8, 0 8px 20px -14px rgba(0, 0, 0, .35); }
.app-row em { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 10.5px; font-weight: 650; color: #fff; background: #1463D8; border-radius: 999px; padding: 3px 9px; }
.app-row s { display: block; height: 4px; margin-top: 4px; border-radius: 2px; background: #E6EDF8; overflow: hidden; }
.app-row s u, .pt-bar u { display: block; height: 100%; border-radius: inherit; opacity: 1 !important; transform: none !important; transition: width .9s var(--ease-out) !important; }
.app-row s u { width: 34%; background: #1463D8; } .app-row s u.on { width: 67%; }
.md-pt { padding: 18px 22px; justify-content: flex-start; }
.pt-card { background: #fff; border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; box-shadow: 0 8px 20px -14px rgba(0, 0, 0, .35); }
.pt-l { font-size: 11px; font-weight: 650; color: var(--muted); }
.pt-n { position: relative; height: 34px; }
.pt-n b { position: absolute; left: 0; top: 0; font-size: 28px; font-weight: 750; letter-spacing: -0.02em; line-height: 34px; }
.pt-n b.new { color: #E0561B; }
.pt-bar { height: 7px; border-radius: 4px; background: #F3EBDB; overflow: hidden; }
.pt-bar u { width: 62%; background: linear-gradient(90deg, #FFB547, #E0561B); } .pt-bar u.on { width: 74%; }
.pt-s { font-size: 12px; font-weight: 650; }
.pt-toasts { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-toasts span { background: rgba(23, 22, 19, .86); color: #fff; border-radius: 999px; padding: 5px 11px; font-size: 11.5px; font-weight: 650; }
/* 과목별 대화방 카드 (원장님 10-04) — 혼자 남는 마지막 줄에서는 넓히지 않고 보통 크기로 한가운데
   (원장님 '넓은 카드 한 개만 휑하게 나오는 것 반대'): 3칸 격자 → 가운데 칸, 2칸 격자 → 줄 가운데. 폰 1칸은 그대로 */
@media (min-width: 861px) { .fgrid.n7 .fc-rooms { grid-column: 2; } }
@media (min-width: 600px) and (max-width: 860px) { .fgrid.n7 .fc-rooms, .fgrid.n9 .fc-rooms { grid-column: 1 / -1; justify-self: center; width: calc(50% - 12px); } }
.fc-rooms .mini { background: linear-gradient(150deg, #E9F7F3, #CDEDE3); container-type: inline-size; }
@container (max-width: 300px) { .rm-tabs b { display: none; } .rm-tabs span { padding-right: 4px; } }   /* 좁은 카드(숨김 쪽 3칸 격자): 방 단추는 얼굴 동그라미·숫자만 */
.md-rooms { padding: 14px 20px; }
.rm-wrap { width: 100%; max-width: 560px; margin: 0 auto; display: grid; gap: 10px; }
.rm-tabs { display: flex; gap: 8px; }
.rm-tabs span { position: relative; display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 4px 11px 4px 4px; box-shadow: 0 6px 14px -10px rgba(0, 0, 0, .35); }
.rm-tabs u { text-decoration: none; width: 22px; height: 22px; border-radius: 50%; background: #1E7A6A; color: #fff; font-size: 10px; font-weight: 750; display: grid; place-items: center; }
.rm-tabs .ai u { background: #FF4000; }
.rm-tabs b { font-size: 11.5px; font-weight: 650; white-space: nowrap; }
.rm-tabs em { font-style: normal; min-width: 16px; height: 16px; border-radius: 8px; background: #E0561B; color: #fff; font-size: 9.5px; font-weight: 750; display: grid; place-items: center; }
.rm-tabs .hl { position: absolute; inset: -2px; border-radius: 999px; border: 2px solid #1E7A6A; pointer-events: none; }
.rm-tabs .ai .hl { border-color: #FF4000; }
.rm-chat { display: flex; flex-direction: column; gap: 6px; }
.rm-chat .md-b { max-width: 78%; padding: 6px 11px; font-size: 12px; }
.rm-chat .md-b small { display: block; font-size: 9.5px; font-weight: 650; opacity: .7; margin-bottom: 1px; }
.md-b.tch { align-self: flex-start; background: #1E7A6A; color: #fff; border-bottom-left-radius: 4px; }
/* 첫 화면 곡면 카드 — 학생 앱 홈 · 과목별 대화방 · 포인트 간추림 (원장님 10-04). 색은 카드 색 꾸밈(--c-*) 그대로 */
.cc .ah { display: grid; gap: 6px; }
.cc .ah > div { background: #fff; border-radius: 10px; padding: 6px 11px; display: grid; line-height: 1.3; box-shadow: 0 6px 14px -10px rgba(13, 42, 76, .35); }
.cc .ah span { font-size: 10px; font-weight: 650; color: var(--c-mut); display: flex; align-items: center; gap: 5px; }
.cc .ah span i { font-style: normal; min-width: 14px; height: 14px; border-radius: 7px; background: #E0561B; color: #fff; font-size: 9px; display: grid; place-items: center; }
.cc .ah b { font-size: 12px; font-weight: 650; color: var(--c-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc .ah .tch { box-shadow: inset 3px 0 0 var(--c-acc, #1463D8), 0 6px 14px -10px rgba(13, 42, 76, .35); }
.cc .rm2 { display: flex; gap: 6px; margin-bottom: 9px; }
.cc .rm2 span { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .8); color: var(--c-ink); white-space: nowrap; }
.cc .rm2 span.on { background: #FF4000; color: #fff; }
.cc .rm2 em { font-style: normal; min-width: 15px; height: 15px; border-radius: 8px; background: #E0561B; color: #fff; font-size: 9px; display: grid; place-items: center; }
.cc .bb { max-width: 82%; padding: 6px 11px; border-radius: 13px; font-size: 11.5px; font-weight: 650; line-height: 1.35; margin-bottom: 6px; }
.cc .bb.me { margin-left: auto; background: #fff; color: var(--c-ink); border-bottom-right-radius: 4px; width: fit-content; }
.cc .bb.you { background: #1E7A6A; color: #fff; border-bottom-left-radius: 4px; width: fit-content; }
.cc .bb small { display: block; font-size: 9.5px; opacity: .75; }
.cc .pbar { height: 7px; border-radius: 4px; background: rgba(43, 34, 5, .1); margin: 10px 0 4px; overflow: hidden; }
.cc .pbar s { display: block; height: 100%; width: 74%; border-radius: inherit; background: linear-gradient(90deg, #FFB547, #E0561B); }

/* ==================================================================== 학원 소개: 교습과목·금액과 운영등록증 ==== */
/* 기본 화면에서는 조용한 한 줄만 보이고, 필요한 방문자만 펼쳐 읽는다. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.academy-folds {
  width: min(880px, calc(100% - 40px));
  margin-top: clamp(36px, 5vw, 64px);
  border-top: 1px solid rgba(23, 22, 19, .14);
}
.academy-fold {
  border-bottom: 1px solid rgba(23, 22, 19, .14);
  color: var(--ink);
}
.academy-fold summary {
  min-height: 84px;
  display: grid;
  grid-template-columns: auto 1fr auto 24px;
  align-items: center;
  gap: 18px;
  padding: 0 4px;
  cursor: pointer;
  list-style: none;
}
.academy-fold summary::-webkit-details-marker { display: none; }
.academy-fold summary:focus-visible {
  outline: 2px solid #B8581A;
  outline-offset: 5px;
  border-radius: 4px;
}
.academy-fold-label {
  color: #8A8277;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}
.academy-fold-title {
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 650;
  letter-spacing: -.02em;
}
.academy-fold-note {
  color: #8A8277;
  font-size: 13px;
  font-weight: 500;
}
.academy-fold-icon {
  position: relative;
  width: 18px;
  height: 18px;
}
.academy-fold-icon::before,
.academy-fold-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1px;
  background: #4E4A45;
  transform: translate(-50%, -50%);
  transition: transform .28s var(--ease-out);
}
.academy-fold-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.academy-fold[open] .academy-fold-icon::after { transform: translate(-50%, -50%) rotate(0); }
.academy-fold-body {
  padding: 4px 4px clamp(34px, 5vw, 52px);
  animation: academy-fold-in .32s var(--ease-out) both;
}
.academy-fold-intro {
  max-width: 620px;
  margin: 0 0 24px;
  color: #716B63;
  font-size: 15px;
  line-height: 1.75;
}
.fee-table-wrap {
  overflow: hidden;
  border: 1px solid rgba(23, 22, 19, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .56);
}
.fee-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-variant-numeric: tabular-nums;
}
.fee-table th,
.fee-table td {
  padding: 18px clamp(18px, 3vw, 32px);
  border-bottom: 1px solid rgba(23, 22, 19, .09);
  text-align: left;
}
.fee-table thead th {
  background: rgba(228, 235, 230, .72);
  color: #5F675F;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}
.fee-table thead th:last-child,
.fee-table tbody td { text-align: right; }
.fee-table tbody tr:last-child th,
.fee-table tbody tr:last-child td { border-bottom: 0; }
.fee-table tbody th {
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 600;
}
.fee-table tbody td strong {
  font-size: clamp(17px, 1.55vw, 21px);
  font-weight: 650;
  letter-spacing: -.02em;
}
.fee-table tbody td span {
  margin-left: 4px;
  color: #817A72;
  font-size: 13px;
}
.fee-caption {
  margin: 14px 2px 0;
  color: #8A8277;
  font-size: 13px;
  line-height: 1.65;
}
.registration-body img {
  display: block;
  width: min(100%, 760px);
  height: auto;
  margin: 0 auto;
  border: 1px solid rgba(23, 22, 19, .1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 48px -38px rgba(23, 22, 19, .45);
}
@keyframes academy-fold-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 599px) {
  .academy-folds { width: calc(100% - 36px); margin-top: 30px; }
  .academy-fold summary {
    min-height: 72px;
    grid-template-columns: 1fr 20px;
    gap: 10px;
  }
  .academy-fold-label,
  .academy-fold-note { display: none; }
  .academy-fold-body { padding: 2px 0 30px; }
  .academy-fold-intro { margin-bottom: 16px; font-size: 14px; }
  .fee-table-wrap { border-radius: 14px; }
  .fee-table th,
  .fee-table td { padding: 15px 16px; }
  .fee-table tbody td strong { font-size: 17px; }
}

/* 교습과목 안내는 본문 폭에 영향을 주지 않는 별도 페이지로 연다. */
.academy-info-page { min-height: 100vh; background: #F5F2EC; }
.academy-info-shell { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: clamp(48px, 8vw, 92px) 0 80px; }
.academy-info-head { margin-bottom: clamp(34px, 6vw, 58px); }
.academy-info-back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 42px; color: #817A72; font-size: 13px; font-weight: 600; }
.academy-info-back:hover { color: var(--ink); }
.academy-info-logo { width: auto; height: 34px; margin-bottom: 30px; }
.academy-info-kicker { margin: 0 0 10px; color: #8A8277; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.academy-info-head h1 { margin: 0; color: var(--ink); font-size: clamp(34px, 6vw, 54px); line-height: 1.15; letter-spacing: -.045em; }
.academy-info-lead { margin: 18px 0 0; color: #716B63; font-size: 15px; line-height: 1.75; }
.academy-info-page .fee-table-wrap { background: rgba(255, 255, 255, .72); }
.academy-info-page .fee-caption { margin-top: 16px; }
.academy-info-page .academy-folds { width: 100%; margin-top: 48px; }
.academy-info-page .academy-fold summary { min-height: 76px; }
@media (max-width: 599px) {
  .academy-info-shell { width: calc(100% - 36px); padding-top: 34px; }
  .academy-info-back { margin-bottom: 32px; }
  .academy-info-logo { height: 28px; margin-bottom: 24px; }
  .academy-info-page .academy-folds { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .academy-fold-body { animation: none; }
  .academy-fold-icon::before,
  .academy-fold-icon::after { transition: none; }
}


/* ==================================================================== 문의 게시판 (/qna, 작업명령서 49, 2026-10-11) ==== */
/* 색은 맨 위 :root 토큰만 쓴다. 화면은 qna.html, 동작은 qna.js. */
.qna-page [hidden] { display: none !important; }
.qna-main { padding: 150px 0 110px; min-height: 70vh; }
.qna-wrap { max-width: 980px; }
.qna-head { margin-bottom: 44px; }
.qna-head .eyebrow { margin-bottom: 14px; }
.qna-title { margin: 0; color: var(--ink); font-size: clamp(34px, 5vw, 54px); font-weight: 750; line-height: 1.15; letter-spacing: -.045em; }
.qna-lead { margin: 20px 0 0; max-width: 720px; color: var(--ink-2); font-size: 16px; line-height: 1.8; }
.qna-lead b { color: var(--ink); font-weight: 650; }
.qna-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 650; }

/* 칸(글쓰기·열기·대화) */
.qna-panel { margin: 0 0 40px; padding: clamp(22px, 4vw, 40px); background: var(--surface); border: var(--border-card); border-radius: var(--r-card); box-shadow: var(--shadow-card); scroll-margin-top: 96px; }
.qna-panel-t { margin: 0 0 22px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 750; letter-spacing: -.03em; line-height: 1.3; }
.qna-sub { margin: -10px 0 20px; color: var(--muted); font-size: 15px; }
.qf { display: block; margin: 0 0 18px; position: relative; }
.qf > span { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 650; color: var(--ink-2); }
.qf > span small { font-weight: 500; color: var(--muted); margin-left: 4px; }
.qf input, .qf textarea { display: block; width: 100%; padding: 13px 15px; font: inherit; font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--card); border: 1px solid var(--sand-2); border-radius: 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.qf textarea { resize: vertical; min-height: 120px; }
.qf input:focus, .qf textarea:focus { border-color: var(--ochre-d); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ochre) 28%, transparent); }
.qf-count { display: block; margin-top: 6px; text-align: right; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.qf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.qf-row-id { grid-template-columns: 180px 1fr; }
.qna-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.qna-note { margin: 0 0 18px; padding: 14px 16px; font-size: 14px; line-height: 1.7; color: var(--ink-2); background: var(--surface-2); border-radius: 14px; }
.qna-msg { margin: 0 0 16px; font-size: 14.5px; font-weight: 600; color: var(--wrong); }
.qna-msg.good { color: var(--muted); font-weight: 500; }
.qna-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.qna-btns .btn:disabled { opacity: .55; cursor: wait; transform: none; }

/* 상태 띠 */
.qna-badge { display: inline-flex; align-items: center; justify-content: center; height: 28px; padding: 0 12px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 650; white-space: nowrap; color: var(--ink-2); background: var(--sand); }
.qna-badge.b-done { color: var(--right); background: color-mix(in srgb, var(--right) 13%, transparent); }
.qna-badge.b-owner { color: var(--brown); background: color-mix(in srgb, var(--ochre) 24%, transparent); }
.qna-badge.b-hid { color: var(--muted); background: var(--surface-2); }

/* 목록 */
.qna-list { scroll-margin-top: 96px; }
.ql-head, .ql-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 168px 110px 112px; align-items: center; gap: 12px; }
.ql-head { padding: 0 18px 12px; font-size: 13px; font-weight: 650; color: var(--muted); border-bottom: 1px solid var(--sand-2); }
.ql-head span:last-child, .ql-row .qna-badge { justify-self: end; }
.ql { list-style: none; margin: 0; padding: 0; }
.ql li { border-bottom: 1px solid var(--sand); }
.ql-row { width: 100%; min-height: 64px; padding: 12px 18px; text-align: left; background: transparent; border: 0; cursor: pointer; transition: background .2s; }
.ql-row:hover, .ql-row:focus-visible { background: var(--surface); outline: none; }
.ql-no { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ql-title { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.ql-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ql-lock { flex: none; width: 11px; height: 13px; position: relative; opacity: .5; }
.ql-lock::before { content: ""; position: absolute; left: 1.5px; top: 0; width: 8px; height: 8px; border: 1.6px solid var(--ink-2); border-bottom: 0; border-radius: 5px 5px 0 0; box-sizing: border-box; }
.ql-lock::after { content: ""; position: absolute; left: 0; bottom: 0; width: 11px; height: 7px; background: var(--ink-2); border-radius: 2px; }
.ql-n { flex: none; font-size: 12px; font-weight: 600; color: var(--ochre-d); }
.ql-guest, .ql-date { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.ql-empty { margin: 0; padding: 48px 0; text-align: center; color: var(--muted); font-size: 15px; }
.ql-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; }
.qp { min-width: 40px; height: 40px; padding: 0 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); background: transparent; border: 1px solid var(--sand-2); border-radius: var(--r-pill); cursor: pointer; }
.qp:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.qp.cur { background: var(--ink); border-color: var(--ink); color: var(--card); }
.qp:disabled { opacity: .4; cursor: default; }
.ql-foot { margin: 22px 0 0; text-align: center; font-size: 13px; color: var(--muted); }

/* 내 문의와 대화 */
.qv-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: start; margin-bottom: 18px; }
.qv-meta { grid-column: 1 / -1; margin: 0; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.qv-title { margin: 0; overflow-wrap: anywhere; }
.qv-badge { margin-top: 4px; }
.qna-remember { margin: 0 0 18px; padding: 14px 16px; font-size: 15px; font-weight: 600; line-height: 1.65; color: var(--brown); background: color-mix(in srgb, var(--ochre) 16%, transparent); border-radius: 14px; }
.qv-thread { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.qm { max-width: min(640px, 88%); padding: 14px 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--sand); }
.qm-who { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; font-size: 12.5px; color: var(--muted); }
.qm-who b { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.qm-text { margin: 0; font-size: 16px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.qm-visitor { align-self: flex-end; background: var(--ink); border-color: var(--ink); border-bottom-right-radius: 6px; }
.qm-visitor .qm-who, .qm-visitor .qm-who b { color: var(--sand-2); }
.qm-visitor .qm-text { color: var(--card); }
.qm-simcheong { align-self: flex-start; border-bottom-left-radius: 6px; }
.qm-owner { align-self: flex-start; border-bottom-left-radius: 6px; border-color: var(--ochre); background: color-mix(in srgb, var(--ochre) 10%, var(--card)); }
.qm-owner .qm-who b { color: var(--brown); }
/* 답변 쓰는 중 — 씨알아이 말풍선 자리에 점 셋이 차례로 (원장님 10-14 '답이 1분쯤 걸리니 작성 중인 걸 알 수 있게') */
.qm-typing .qm-text { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.qm-dots { display: inline-flex; align-items: center; gap: 5px; height: 1em; }
.qm-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ochre-d); opacity: .3; animation: qmDot 1.2s ease-in-out infinite; }
.qm-dots i:nth-child(2) { animation-delay: .18s; }
.qm-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes qmDot { 0%, 70%, 100% { opacity: .3; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .qm-dots i { animation: none; opacity: .65; } }
.qna-wait { margin: 0 0 18px; padding: 12px 16px; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); background: var(--surface-2); border-radius: 14px; }
#qna-follow { padding-top: 18px; border-top: 1px solid var(--sand); }

/* 폰 — 둘레 16px(.wrap), 가로 넘침 없음 */
@media (max-width: 860px) {
  .qna-main { padding: 104px 0 72px; }
  .qna-head { margin-bottom: 32px; }
  .qna-lead { font-size: 15.5px; }
  .qna-panel { margin-bottom: 28px; padding: 20px 16px; border-radius: 20px; scroll-margin-top: 76px; }
  .qf-row, .qf-row-id { grid-template-columns: 1fr; }
  .qna-actions .btn, .qna-btns .btn:not(.btn-sm) { flex: 1 1 auto; justify-content: center; }
  .ql-head { display: none; }
  /* 한 줄 = 위: 제목 + 상태 / 아래: 글번호 · 글쓴이 · 날짜 */
  .ql-row { grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "title title title badge" "no guest date date"; gap: 4px 0; padding: 14px 4px; }
  .ql-title { grid-area: title; font-size: 15.5px; padding-right: 10px; }
  .ql-row .qna-badge { grid-area: badge; height: 26px; padding: 0 10px; font-size: 12px; }
  .ql-no, .ql-guest, .ql-date { font-size: 13px; }
  .ql-no { grid-area: no; }
  .ql-guest { grid-area: guest; }
  .ql-date { grid-area: date; }
  .ql-no::before { content: "글번호 "; }
  .ql-no::after, .ql-guest::after { content: "\00a0·\00a0"; }
  .qm { max-width: 94%; padding: 12px 14px; }
  .qm-text { font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .qf input, .qf textarea, .ql-row { transition: none; }
}

/* 화면 글자 'SeeAllai' = 로고 글씨 (원장님 2026-10-11 '홈페이지 및 앱 모든 곳에 SeeAllai 글자가 있다면 전부 로고 글씨체로').
   원본은 앱의 app/web/css/wordmark.css — 홈페이지는 다른 서버라 이 사본(같은 값). 글자 모양 그림 /wordmark_mask.png 은
   tools/ops/make_wordmark.py mask 가 앱(config/branding)과 여기에 함께 만든다. 왼쪽 77.27% = 글자색, 오른쪽 = 주황 #FF4000. */
.sa-word {
  display: inline-block !important; font-size: inherit !important; color: inherit !important; margin: 0 !important; padding: 0 !important;
  height: .86em; aspect-ratio: 4.4341; vertical-align: baseline;
  overflow: hidden; white-space: nowrap; line-height: 1; font-weight: inherit;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(90deg, currentColor 77.27%, #FF4000 77.27%);
  -webkit-mask: url(/wordmark_mask.png) left bottom / contain no-repeat;
  mask: url(/wordmark_mask.png) left bottom / contain no-repeat;
}
/* ================================================================ 원장님 2026-10-11 고침 */
/* 해설지 + 빨간 색연필 표시 (site.js solSheet) — 그림은 가로 100%·세로 자동이라 비율이 늘 그대로 */
.sol { position: relative; overflow: hidden; background: #fff; }
.sol-in { position: relative; }
.sol-in img { display: block; width: 100%; height: auto; }
.sol-in svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sol .mk[data-t] { opacity: 1; transform: none; transition: none; }
.sol .mk path { fill: none; stroke: #D42A1E; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 2; stroke-dashoffset: 1.001;
  filter: url(#sa-pencil); transition: stroke-dashoffset .75s cubic-bezier(.5, .05, .35, 1); }
.sol .mk path.p2 { stroke-width: 1.4; opacity: .5; transition-delay: .06s; }
.sol .mk.on path, .sol.drawn .mk path { stroke-dashoffset: 0; }
.sol.drawn .mk path { transition: none; }
.sol .mk-x path { transition-duration: .4s; }
@media (prefers-reduced-motion: reduce) { .sol .mk path { stroke-dashoffset: 0; transition: none; } }
/* 첫 화면 곡면 카드: 해설지 사진 한 장 */
.cc.sheetc { padding: 0; background: #fff; }
.cc.sheetc .sol { position: absolute; inset: 0; }
.cc .sol-tag { position: absolute; left: 12px; bottom: 10px; z-index: 1; display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 650; color: #5A5148;
  background: rgba(255, 255, 255, .94); border-radius: 999px; padding: 3px 10px 3px 3px; box-shadow: 0 2px 8px -3px rgba(40, 25, 10, .35); }
.cc .sol-tag b { background: #D42A1E; color: #fff; border-radius: 999px; padding: 2px 8px; font-size: 10.5px; }
/* 작은 기능 '자동 채점' */
.md-sol { position: absolute; inset: 0; padding: 0; }
.md-sol .sol { position: absolute; inset: 0; }
/* 무대 시연 1: 종이 답안 자리에 해설지 */
.d1 .sol-paper { min-height: 0; overflow: hidden; padding: 1em 1em 0; }
.d1 .sol-paper .sol { flex: 1; min-height: 0; margin: 0 -1em; border-top: 1px solid #EFE8DD; }
@media (max-width: 860px) {
  .d1 .paper.sol-paper { display: flex; padding: 10px 12px 0; }
  .d1 .sol-paper .sol { flex: 1 1 0; min-height: 0; margin: 0 -12px; }
}
/* 무대 시연 1: 오늘 학습 여섯 단계 — 네모 카드 고리 (원장님 11-04 '라운드 사각형이 차례로 도는 것 촌스러워 — 네모 카드가 하나씩 뜨고 화살표로 이어져 뱅뱅 도는 순환')
   PC 3×2: 1→2→3 ↓ 4←5←6 ↑(1로) · 폰 2×3 뱀길: 1→2 ↓ 4←3 ↓ 5→6. 화살표는 카드 안 .ta 가 다음 카드 쪽 틈에 그어짐(data-t 시각에) */
.d1 .cyc { --gx: 2.4em; --gy: 2.6em; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gy) var(--gx); align-content: center; padding: 0 .2em; min-height: 0; }
.tc { --a: #1E7A45; --tn: #EAF6EE; position: relative; aspect-ratio: 1 / 1.04; min-width: 0; display: flex; flex-direction: column; gap: .3em; padding: .95em .95em .85em;
  background: linear-gradient(180deg, var(--tn), #fff 58%); border: 1px solid rgba(60, 40, 20, .1); border-radius: 4px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 14px 26px -20px rgba(60, 40, 20, .55); }
.tc::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--a); border-radius: 4px 4px 0 0; }
.tc[data-t] { transform: translateY(10px) scale(.94); transition: opacity .45s var(--ease), transform .55s var(--ease), box-shadow .45s; }
.tc[data-t].on { transform: none; }
.tc.on:not(:has(~ .tc.on)) { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--a), 0 18px 30px -18px rgba(60, 40, 20, .6); }   /* 방금 뜬 카드 = 지금 단계 */
.tc .tno { width: 1.85em; height: 1.85em; display: grid; place-items: center; background: var(--a); color: #fff; font-weight: 800; font-size: .88em; border-radius: 3px; margin-bottom: .35em; font-variant-numeric: tabular-nums; }
.tc b { font-size: 1.02em; line-height: 1.3; letter-spacing: -0.01em; }
.tc small { color: var(--muted); font-size: .8em; line-height: 1.45; }
.tc .pills, .tc .bar, .tc .minis, .tc .printer { margin-top: auto; }
.tc .pill { background: #fff; color: #7A2F10; border: 1px solid #F6D5C4; }
.tc .bar { background: #F5ECD0; }
.tc .bar i { background: #D9A400; }
.tc .minis i { height: 1.8em; }
.tc .printer { align-self: flex-end; transform: scale(.82); transform-origin: right bottom; }
.c1 { --a: #1E7A45; --tn: #EAF6EE; } .c2 { --a: #1463D8; --tn: #EAF2FF; } .c3 { --a: #E0561B; --tn: #FFEFE6; }
.c4 { --a: #B58900; --tn: #FFF6D6; } .c5 { --a: #5B3FD6; --tn: #F1EDFF; } .c6 { --a: #0E7A68; --tn: #E6F5F1; }
/* 화살표: 선은 그 카드 빛, 머리는 삼각 — 왼·오른쪽은 가로로, 위·아래는 세로로 그어짐 */
.tc .ta { position: absolute; display: block; background: var(--a); opacity: 1; pointer-events: none; transition: transform .55s var(--ease); }
.tc .ta::after { content: ""; position: absolute; border: .36em solid transparent; }
.d1 .c1 .ta, .d1 .c2 .ta { left: calc(100% + .45em); top: 50%; width: calc(var(--gx) - 1.1em); height: 2px; margin-top: -1px; transform: scaleX(0); transform-origin: left center; }
.d1 .c1 .ta::after, .d1 .c2 .ta::after { right: -.5em; top: 50%; margin-top: -.36em; border-left: .55em solid var(--a); border-right-width: 0; }
.d1 .c4 .ta, .d1 .c5 .ta { right: calc(100% + .45em); top: 50%; width: calc(var(--gx) - 1.1em); height: 2px; margin-top: -1px; transform: scaleX(0); transform-origin: right center; }
.d1 .c4 .ta::after, .d1 .c5 .ta::after { left: -.5em; top: 50%; margin-top: -.36em; border-right: .55em solid var(--a); border-left-width: 0; }
.d1 .c3 .ta { top: calc(100% + .45em); left: 50%; height: calc(var(--gy) - 1.1em); width: 2px; margin-left: -1px; transform: scaleY(0); transform-origin: center top; }
.d1 .c3 .ta::after { bottom: -.5em; left: 50%; margin-left: -.36em; border-top: .55em solid var(--a); border-bottom-width: 0; }
.d1 .c6 .ta { bottom: calc(100% + .45em); left: 50%; height: calc(var(--gy) - 1.1em); width: 2px; margin-left: -1px; transform: scaleY(0); transform-origin: center bottom; }
.d1 .c6 .ta::after { top: -.5em; left: 50%; margin-left: -.36em; border-bottom: .55em solid var(--a); border-top-width: 0; }
.d1 .tc .ta.on { transform: none; }
.c1 { grid-area: 1 / 1; } .c2 { grid-area: 1 / 2; } .c3 { grid-area: 1 / 3; } .c4 { grid-area: 2 / 3; } .c5 { grid-area: 2 / 2; } .c6 { grid-area: 2 / 1; }
.cyc-mid { position: absolute; left: 50%; top: 50%; font-size: .78em; font-weight: 700; color: #6B4A2A; background: #FBF6EE; border: 1px solid #EADFCD; padding: .3em .85em; border-radius: 3px; white-space: nowrap; }
.cyc-mid[data-t] { transform: translate(-50%, -50%) scale(.94); }
.cyc-mid[data-t].on { transform: translate(-50%, -50%); }
@media (max-width: 860px) {
  .d1 .cyc { --gx: 22px; --gy: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; padding: 0; }
  .tc { aspect-ratio: auto; padding: 8px 10px 7px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 3px 6px; align-content: start; }
  .tc .tno { width: 20px; height: 20px; font-size: 11px; margin: 0; }   /* 번호는 제목 옆 — 카드 한 줄씩 낮춤 */
  .tc small { grid-column: 1 / -1; }
  .tc b { font-size: 12.5px; }
  .tc small { font-size: 10.5px; }
  .tc .pills, .tc .minis, .tc .printer, .tc .bar { display: none; }
  .c1 { grid-area: 1 / 1; } .c2 { grid-area: 1 / 2; } .c3 { grid-area: 2 / 2; } .c4 { grid-area: 2 / 1; } .c5 { grid-area: 3 / 1; } .c6 { grid-area: 3 / 2; }
  /* 폰 뱀길 화살표: 2 ↓, 3 ←, 4 ↓, 5 →, 6 은 없음(1번으로 가는 길은 아래 이름표) */
  .d1 .c2 .ta, .d1 .c4 .ta { left: 50%; right: auto; top: calc(100% + 3px); bottom: auto; height: calc(var(--gy) - 9px); width: 2px; margin: 0 0 0 -1px; transform: scaleY(0); transform-origin: center top; }
  .d1 .c2 .ta::after, .d1 .c4 .ta::after { left: 50%; right: auto; top: auto; bottom: -.5em; margin: 0 0 0 -.36em; border: .36em solid transparent; border-top: .55em solid var(--a); border-bottom-width: 0; }
  .d1 .c3 .ta { top: 50%; bottom: auto; left: auto; right: calc(100% + 3px); width: calc(var(--gx) - 9px); height: 2px; margin: -1px 0 0; transform: scaleX(0); transform-origin: right center; }
  .d1 .c3 .ta::after { top: 50%; bottom: auto; left: -.5em; margin: -.36em 0 0; border: .36em solid transparent; border-right: .55em solid var(--a); border-left-width: 0; }
  .d1 .c5 .ta { left: calc(100% + 3px); right: auto; width: calc(var(--gx) - 9px); transform: scaleX(0); transform-origin: left center; }
  .d1 .c5 .ta::after { left: auto; right: -.5em; border: .36em solid transparent; border-left: .55em solid var(--a); border-right-width: 0; }
  .d1 .c6 .ta { display: none; }
  .cyc-mid { position: static; grid-column: 1 / -1; justify-self: center; font-size: 11px; }
  .cyc-mid[data-t], .cyc-mid[data-t].on { transform: none; }
}
/* 무대 시연 4: 씨알아이가 학습기록을 씀 — 왼쪽은 줄 공책에 쓰는 기록, 오른쪽은 큰 숫자·개념 꼬리표·복습 날짜 (원장님 11-04 '예쁘게')
   기록 칸은 이름표를 위·값을 아래로 쌓는다(노트북 장면이 비스듬해 '이름 …… 값' 한 줄은 값이 아래 줄 이름 높이로 내려와 엇갈려 읽혔다) */
.d4 { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(14px, 2.4vw, 32px); }
.d4 .ch[data-t] { transform: none; transition: none; }
.d4 .ch[data-t]:not(.on) { display: none; }   /* 아직 안 쓴 글자는 자리도 차지하지 않게 — 글이 아래에서 차오름 */
.d4 .dia { --lh: 1.85em; background: #FFFDF7; border: 1px solid #EAE0CF; border-radius: 4px; padding: 1.1em 1.3em 1.1em 0; box-shadow: 0 14px 30px -22px rgba(60, 40, 20, .55); overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
.d4 .dia-b { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding-left: 2.6em; line-height: var(--lh);
  background: linear-gradient(90deg, transparent 1.75em, #F2B9AE 1.75em, #F2B9AE calc(1.75em + 1px), transparent calc(1.75em + 1px)),
    repeating-linear-gradient(180deg, transparent 0 calc(var(--lh) - 1px), #EDE3D3 calc(var(--lh) - 1px) var(--lh)); }
@media (max-width: 860px) { .d4 .dia-b { justify-content: flex-end; } }   /* 폰: 칸이 좁아 오래된 줄이 위로 밀려 나감 */
.d4 .dia-h { display: flex; align-items: center; gap: .55em; padding: 0 0 .7em 1.3em; margin-bottom: .2em; border-bottom: 2px solid #E9DCC6; }
.d4 .dia-h .dot { width: .6em; height: .6em; border-radius: 50%; background: #E8732A; flex: none; }
.d4 .dia-h b { font-size: 1.05em; letter-spacing: -0.01em; }
.d4 .dia-h span { margin-left: auto; color: #8A6A48; font-size: .8em; font-weight: 700; background: #F6EEDF; padding: .2em .6em; border-radius: 3px; }
.d4 .dia-b p { margin: 0; color: #3A332C; }
.d4 .db { background: #fff; border: 1px solid #E3DED6; border-radius: 4px; padding: 1em 1.05em; display: flex; flex-direction: column; gap: .6em; box-shadow: 0 14px 30px -22px rgba(60, 40, 20, .55); min-height: 0; }
.d4 .db-h { display: flex; align-items: center; gap: .65em; padding-bottom: .75em; border-bottom: 1px solid #EFE8DD; }
.d4 .db-h .av { width: 2.3em; height: 2.3em; border-radius: 50%; display: grid; place-items: center; background: #1F2A44; color: #fff; font-weight: 750; flex: none; }
.d4 .db-h b { display: block; font-size: 1.02em; }
.d4 .db-h small { color: var(--muted); font-size: .8em; font-weight: 650; }
.d4 .db-h svg { margin-left: auto; width: 1.25em; height: 1.25em; color: #B49572; }
.d4 .dns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5em; }
.d4 .dn { background: #F7F3EC; border-radius: 4px; padding: .55em .6em .5em; display: flex; flex-direction: column; gap: .1em; }
.d4 .dn span { font-size: .74em; font-weight: 700; color: var(--muted); }
.d4 .dn b { font-size: 1.9em; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; color: #1F2A44; }
.d4 .dn:nth-child(2) b { color: #D2452B; }
.d4 .dn:nth-child(3) b { color: #C98A00; }
.d4 .dr { display: flex; flex-direction: column; gap: .15em; padding: .5em .7em; border-radius: 4px; background: #F7F3EC; border-left: 3px solid #CBB79A; }
.d4 .dr.hot { background: #FFF1EC; border-left-color: #E0561B; }
.d4 .dr > span { font-size: .76em; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: .5em; }
.d4 .dr > span em { font-style: normal; font-size: .95em; background: #E0561B; color: #fff; padding: .05em .5em; border-radius: 3px; }
.d4 .dr b { font-weight: 750; font-size: 1.02em; }
.d4 .dx { display: flex; align-items: center; gap: .8em; padding: .5em .7em; border-radius: 4px; background: #EEF4FF; }
.d4 .calx { width: 3em; flex: none; border-radius: 4px; overflow: hidden; background: #fff; border: 1px solid #CFDDF7; text-align: center; display: flex; flex-direction: column; }
.d4 .calx small:first-child { background: #1463D8; color: #fff; font-size: .62em; font-weight: 750; padding: .15em 0; }
.d4 .calx b { font-size: 1.35em; font-weight: 800; line-height: 1.15; color: #1F2A44; }
.d4 .calx small:last-child { font-size: .62em; font-weight: 700; color: #1463D8; padding-bottom: .15em; }
.d4 .dx > div > span { display: block; font-size: .76em; font-weight: 700; color: #3D5A8C; }
.d4 .dx b { font-weight: 750; }
.d4 .db-ok { margin-top: auto; align-self: flex-start; background: #1E7A45; color: #fff; border-radius: 3px; padding: .4em .9em; font-weight: 700; font-size: .88em; }
@media (max-width: 860px) {
  .d4 { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 10px; }
  .demo.d4 { padding: 12px; }
  .d4 .dia { padding: 10px 12px 10px 0; font-size: 12px; max-height: 38%; }
  .d4 .dia-h { padding-left: 12px; }
  .d4 .db { padding: 9px 10px; gap: 6px; font-size: 12px; }
  .d4 .dn b { font-size: 1.6em; }
}
/* 로컬 AI: 붙박이 두 줄 제목, AI 는 로고 주황 */
.local .loc-h span { display: block; white-space: nowrap; }
.local .loc-h .ai { color: #FF4000; font-weight: inherit; }
@media (max-width: 860px) { .local .loc-h { font-size: min(clamp(28px, 3.4vw, 48px), 6.6vw); } }

/* 로고 밝은 판 — 어두운 화면 표시(theme.js 의 html.dark-logo) 하나만 본다: 홈페이지 자체 어두운 모양과 브라우저 강제 다크(삼성 인터넷 다크 모드) 둘 다.
   예전엔 아래 @media 안에만 있어 강제 다크에서는 로고 그림만 검게 남았다(원장님 10-26 삼성 인터넷 화면). */
html.dark-logo img[src^="/logo_ko.webp"] { content: url(/logo_ko_dark.webp); }      /* 씨알 수학과학학원 로고 — 검은 글자를 밝게 한 판 (make_wordmark.light_ink) */
html.dark-logo img[src^="/wm_dark.png"] { content: url(/wm_light.png); }             /* SeeAllai 글자 로고 — 어두운 바탕용 판 */

/* ================================================================ 어두운 화면 (원장님 2026-10-12 '휴대폰 다크모드에서 로고·글자가 까만색에서 흰색으로 안 바뀌어 잘 안 보여 — 전수조사해서 수정')
   전엔 어두운 화면 모양이 없어 폰 브라우저가 억지로 어둡게 칠했다: 로고 그림(검은 글자)은 그대로 검고, 글자 로고(.sa-word)는 바탕색으로 칠해 같이 어두워졌다.
   이제 홈페이지가 스스로 어두운 모양을 갖는다(화면마다 <meta name="color-scheme" content="light dark">) — 색 이름표만 바꾸고, 로고는 어두운 판 그림으로 바꿔 끼운다.
   종이·카드 그림 흉내(해설지·답안지·폰 화면 등 흰 바탕 + 검은 글자)는 일부러 그대로 둔다(그 안 글자는 흰 바탕에서 잘 보임). 대비는 화면 전체를 재서 확인(10-12). */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #15130F; --bg-2: #1B1814; --sand: #24201B; --sand-2: #2D2721;
    --ochre: #D7AC77; --ochre-d: #E2B67F; --brown: #CDA57C;
    --ink: #F1ECE4; --ink-2: #D9D1C6; --muted: #A89E92; --line: #38322B; --card: #1F1C18;
    --char: #0D0C0A; --char-2: #171512; --char-line: #2B2723;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
  }
  .btn-ink { background: var(--ink); color: #15130F; }
  .btn-ink:hover { background: #fff; }
  .btn-line { border-color: #4A4239; }
  .btn-line:hover { background: var(--card); border-color: var(--ink); }
  .hdr.scrolled { background: rgba(21, 19, 15, .78); border-bottom-color: rgba(255, 255, 255, .08); box-shadow: 0 8px 24px -18px rgba(0, 0, 0, .8); }
}
@media (prefers-color-scheme: dark) {
  /* 뒤쪽 색 이름표 묶음(1237줄 :root)도 어둡게 */
  :root {
    --surface: #1F1C18; --surface-2: #24201B; --surface-3: #2D2721; --line: rgba(255, 255, 255, .09);
    --shadow-card: 0 30px 80px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .3); --border-card: 1px solid rgba(255, 255, 255, .07);
  }
  /* 페이지 바탕이던 밝은 칸은 같이 어둡게 */
  .parents { background: var(--bg-2); }
  .fc { background: var(--card); }
  .final .fin-1 { color: #8C8378; }
  .btn-p { color: #15130F; }
  .btn-p:hover { background: #fff; }
  /* 종이·폰 화면·카드 흉내(흰 바탕 그림)는 밝은 그대로 — 그 안 글자도 밝은 화면 색 이름표로 되돌려 검은 글자 (10-12 대비 측정 47곳) */
  .stage, .slide, .scr, .qcard, .cmdbox, .cmdbar, .linked, .qr2, .chip2, .hit, .mini, .visual, .kk-in, .paper, .sheets {
    --bg: #F7F5F0; --bg-2: #EFEAE2; --surface: #FBFAF7; --surface-2: #EFEAE2; --surface-3: #E7DED1;
    --sand: #E7DED1; --sand-2: #DCCFBD; --ochre: #C49A69; --ochre-d: #B98B59; --brown: #7E5A36;
    --ink: #171613; --ink-2: #5F5B55; --muted: #7A736A; --line: rgba(35, 28, 20, .1); --card: #FFFFFF;
    --border-card: 1px solid rgba(35, 28, 20, .06);
    color: var(--ink);
  }
}
@media (prefers-color-scheme: dark) {
  /* 첫 화면: 흰색 그러데이션 바탕 → 어두운 그러데이션 (그 위 로고·제목이 밝은 색이 되므로) */
  .hero { background: linear-gradient(180deg, #1D1A16 0%, #18150F 45%, var(--bg) 100%); }
  .hero::before { background: radial-gradient(50% 60% at 50% 30%, rgba(215, 172, 119, .14), transparent 70%); }
  .hero .rot2 { color: #A89E92; }
}
@media (prefers-color-scheme: dark) {
  /* 교습과목 및 금액 쪽 — 따로 박힌 밝은 쪽 바탕·표 바탕을 어둡게 (10-12 측정 6곳) */
  .academy-info-page { background: var(--bg); }
  .academy-info-page .fee-table-wrap, .fee-table-wrap { background: rgba(31, 28, 24, .85); border-color: rgba(255, 255, 255, .1); }
  .fee-table th, .fee-table td { border-bottom-color: rgba(255, 255, 255, .08); }
  .fee-table thead th { background: rgba(70, 82, 74, .45); color: #B9C4BB; }
  .fee-table tbody td span { color: #A89E92; }
  .academy-folds, .academy-fold { border-color: rgba(255, 255, 255, .12); }
  .academy-fold-label, .academy-fold-note { color: #A89E92; }
  .academy-fold-intro { color: #B9AFA3; }
  .academy-fold-icon::before, .academy-fold-icon::after { background: #D9D1C6; }
}
@media (prefers-color-scheme: dark) {
  /* 첫 화면 곡면 카드(.cc)는 자기 색 묶음(--c-*)으로 글자색을 정한다(검정·파랑·주황 카드는 흰 글자) — 글자색은 건드리지 않고, 안쪽이 쓰는 밝은 화면 색 이름표만 되돌린다 */
  .cc { --ink: #171613; --ink-2: #5F5B55; --muted: #7A736A; --line: rgba(35, 28, 20, .1); --card: #FFFFFF; --bg: #F7F5F0; --bg-2: #EFEAE2; --sand: #E7DED1; --surface: #FBFAF7; }
}

/* ================================================================ 심청이 그림일기 (/diary)·학습만화 (/comics) — 원장님 2026-10-23 밤
   목록은 웹툰 목록처럼(그림·회차·제목·요약·날짜 한 줄씩), 보기는 블로그 세로판 조각을 가운데 한 줄로 이어 붙임. 그림·목록 원본은 /diary/episodes.js */
.diary-page [hidden], .comics-page [hidden] { display: none !important; }
.diary-main { padding: 128px 0 110px; min-height: 70vh; }
.dy-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-bottom: clamp(48px, 7vw, 88px); }
.dy-hero .eyebrow { margin-bottom: 16px; }
.dy-title { margin: 0 0 22px; font-size: clamp(40px, 6vw, 76px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; }
.dy-t1 { color: #E6487F; }
.dy-t2 { color: var(--ink); }
.dy-lead { margin: 0 0 32px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.75; color: var(--ink-2); }
.dy-hero-act { display: flex; flex-wrap: wrap; gap: 12px; }
.dy-about { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }   /* 작품 소개 — 눌러서 펼침(원장님 10-25) */
.dy-about summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 650; color: var(--ink-2); }
.dy-about summary::-webkit-details-marker { display: none; }
.dy-about summary::after { content: "+"; font-size: 18px; line-height: 1; color: var(--muted); }
.dy-about[open] summary::after { content: "−"; }
.dy-about summary:hover { color: var(--ink); }
.dy-about-body { padding: 12px 0 2px; font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.dy-about-body p { margin: 0 0 6px; }
.dy-about-name { font-weight: 750; color: var(--ink); }
.dy-about-note { color: var(--muted); font-size: 14px; }
.dy-hero-art { display: block; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-card); border: var(--border-card); transform: rotate(1.2deg); transition: transform .5s var(--ease-out); background: #FAF6EE; }
.dy-hero-art:hover { transform: rotate(0) translateY(-4px); }
.dy-hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.dy-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 0 16px; border-bottom: 1.5px solid var(--ink); margin-bottom: 6px; }
.dy-bar-t { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.dy-bar-t b { color: #E6487F; }
.dy-sort { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.dy-sort button { appearance: none; border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.dy-sort button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(35, 28, 20, .12); }
.dy-items { list-style: none; margin: 0; padding: 0; }
.dy-item { border-bottom: 1px solid var(--line); animation: dyIn .5s var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes dyIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.dy-card, .dy-next-card { display: grid; grid-template-columns: 200px 1fr 28px; gap: clamp(16px, 2.6vw, 30px); align-items: center; padding: 20px 8px; border-radius: 18px; transition: background .25s; }
.dy-card:hover, .dy-next-card:hover { background: var(--surface); }
.dy-thumb { display: block; border-radius: 14px; overflow: hidden; background: #FAF6EE; aspect-ratio: 4 / 3; border: var(--border-card); }
.dy-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.dy-card:hover .dy-thumb img, .dy-next-card:hover .dy-thumb img { transform: scale(1.04); }
.dy-meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dy-no { align-self: flex-start; font-size: 12.5px; font-weight: 750; letter-spacing: .02em; color: #fff; background: #E6487F; padding: 4px 10px; border-radius: 999px; }
.dy-name { font-size: clamp(17px, 1.8vw, 21px); font-weight: 750; letter-spacing: -0.02em; color: var(--ink); line-height: 1.35; }
.dy-sum { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dy-date { font-size: 13px; color: var(--muted); }
.dy-go { font-size: 28px; color: var(--muted); transition: transform .25s, color .25s; }
.dy-card:hover .dy-go, .dy-next-card:hover .dy-go { transform: translateX(4px); color: var(--ink); }
.dy-empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* 보기 */
.diary-page.dy-reading .diary-main { padding-top: 64px; }
.dy-rbar { position: sticky; top: 64px; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.dy-rbar-in { width: min(720px, 100%); margin: 0 auto; padding: 10px 16px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.dy-back { font-size: 14px; font-weight: 650; color: var(--ink-2); padding: 6px 4px; }
.dy-back:hover { color: var(--ink); }
.dy-rtitle { margin: 0; text-align: center; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.dy-rtitle b { color: #E6487F; margin-right: 4px; }
.dy-rnav { display: flex; gap: 6px; }
.dy-rnav a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); font-size: 22px; line-height: 1; color: var(--ink); background: var(--card); }
.dy-rnav a:hover { border-color: var(--ink); }
.dy-rnav a.off { opacity: .3; pointer-events: none; }
.dy-strip { width: min(720px, 100%); margin: 0 auto; background: #FAF6EE; box-shadow: 0 0 0 1px var(--line); }
.dy-strip img { display: block; width: 100%; height: auto; }
.dy-end { width: min(720px, 100%); margin: 0 auto; padding: 44px 16px 0; text-align: center; }
.dy-end-k { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--ochre-d); }
.dy-end-s { margin: 0 0 24px; color: var(--ink-2); }
.dy-next-card { text-align: left; border: var(--border-card); background: var(--card); box-shadow: var(--shadow-card); grid-template-columns: 150px 1fr 28px; }
.dy-to-list { display: inline-block; margin-top: 20px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* 학습만화 — 준비 중 */
.comics-main { padding: 150px 0 120px; min-height: 70vh; }
.cm-title { margin: 0 0 40px; font-size: clamp(36px, 5vw, 60px); letter-spacing: -0.035em; font-weight: 800; }
.cm-soon { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: clamp(56px, 9vw, 110px) 24px; border-radius: 32px; background: var(--surface); border: var(--border-card); box-shadow: var(--shadow-card); }
.cm-soon-ic { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 24px; background: var(--surface-3); color: var(--ochre-d); margin-bottom: 10px; }
.cm-soon-ic svg { width: 40px; height: 40px; }
.cm-soon-t { margin: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.03em; }
.cm-soon-s { margin: 0 0 22px; color: var(--ink-2); font-size: 16px; line-height: 1.7; }

@media (max-width: 860px) {
  .diary-main { padding: 96px 0 72px; }
  .dy-hero { grid-template-columns: 1fr; }
  .dy-hero-art { order: -1; transform: none; border-radius: 22px; }
  .dy-card, .dy-next-card { grid-template-columns: 112px 1fr 18px; gap: 14px; padding: 16px 2px; }
  .dy-thumb { border-radius: 10px; }
  .dy-sum { -webkit-line-clamp: 1; }
  .dy-go { font-size: 22px; }
  .comics-main { padding: 104px 0 80px; }
}
@media (prefers-color-scheme: dark) {
  .dy-t1, .dy-bar-t b, .dy-rtitle b { color: #FF7AA8; }
  .dy-sort button[aria-pressed="true"] { box-shadow: none; }
  .dy-strip { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dy-item { animation: none; }
  .dy-hero-art, .dy-hero-art:hover { transform: none; }
}

/* 머리 메뉴 일곱 칸(심청이 그림일기·학습만화 더함, 10-23 밤) — 글자는 꺾지 않고, 폭이 좁은 노트북에선 간격·글자를 줄인다 */
.nav a { white-space: nowrap; }
@media (max-width: 1280px) and (min-width: 861px) { .nav { gap: 18px; font-size: 14px; } .hdr .nav { margin-right: 16px; } }
@media (max-width: 1100px) and (min-width: 861px) { .nav { gap: 13px; font-size: 13.5px; } .hdr .nav { margin-right: 10px; } .brand > span { display: none; } }

/* 마무리 단락 큰 단추 = 교습과목 및 금액 (원장님 10-24 '씨알아이 알아보기 자리로 옮기고 10% 정도 크게') */
.btn-p.btn-fee { height: 64px; padding: 0 33px; font-size: 17.6px; gap: 11px; }

/* ================================================================ 실사 카드 (원장님 2026-11-03 — 설계서 docs/홈페이지_실사카드_설계서_2026-11-03.md)
 * .pc = 장면 사진(.pc-bg) + 빈 면에 원근대로 얹은 실제 화면(.pc-surf, matrix3d 는 site.js fitSurf) + 이름표(.pc-tag).
 * 종이는 곱하기(multiply)로 얹어 사진의 창빛·그림자가 글자 위에 그대로 진다. 화면은 보통으로 얹고 유리 반사를 한 겹. */
.cstage { pointer-events: auto; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; height: 440px; margin-top: -6px; }
.cmdwrap { margin-top: 4px; }   /* 11-03: 명령창은 실사 카드 띠 아래로 (사진을 가리지 않게) — 세 줄 안내는 입력창 바로 밑 */
.facts { margin-top: 16px; }
.cstage.grab { cursor: grabbing; }
.pc { position: absolute; left: 0; top: 0; width: 240px; height: 320px; margin-top: -160px; }
.pc-in { position: absolute; inset: 0; border-radius: 20px; overflow: hidden; background: #D9D2C6;
  box-shadow: 0 18px 40px -18px rgba(40, 25, 10, .45), 0 2px 6px rgba(0, 0, 0, .08);
  }
/* 둥실 떠 있기는 바깥 카드에 낱개 속성(translate·rotate)으로 — JS 가 매 장면 거는 transform(곡면 자리)과 따로 겹쳐짐.
 * 원장님 11-03 밤 '폴드6 펼친 화면에서 카드가 번쩍번쩍': 전엔 자르기(overflow·둥근 모서리)를 하는 .pc-in 이 움직여 크롬이 카드마다 가림 층을 매 장면 새로 그렸다
 * (폴드 크기에서 장면마다 586MB·가장 큰 층 172MB → 폰 화면 메모리를 넘어 조각이 빠지며 깜박임). 바깥으로 옮기면 20MB(도우미 측정, scratchpad/flicker). */
.pc-hero { animation: pcf var(--fp, 7s) cubic-bezier(.45, 0, .55, 1) var(--fd, 0s) infinite alternate; }
@keyframes pcf { from { translate: 0 -7px; rotate: -.8deg; } to { translate: 0 7px; rotate: .8deg; } }
.pc-mini .pc-in { border-radius: inherit; box-shadow: none; }
.pc-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; }
/* 간판 카드: 초점 맞추기 — 흐린 사진(가장자리가 비치지 않게 조금 키움)이 .fp 가 켜지면 '씨알' 에 초점이 맞음. 되풀이 처음에 다시 흐려짐 */
.pc[data-k="sign"] .pc-bg { filter: blur(9px); transform: scale(1.06); transition: filter 1.6s cubic-bezier(.3, 0, .2, 1), transform 1.6s cubic-bezier(.3, 0, .2, 1); }
.pc[data-k="sign"]:has(.fp.on) .pc-bg { filter: none; transform: none; }
.pc .fp { display: none; }
.pc-surf { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; pointer-events: none; backface-visibility: hidden; }
.pc-surf.paper { mix-blend-mode: multiply; }
/* 화면 가림판: 사진 속 검은 면을 사방 같은 폭으로 깎은 모양(tools/homepage/card_quads.py → img/cards/mask) — 사진과 똑같이 cover 로 깔아 화소가 겹침 */
.pc-mask { position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: var(--m) 50% 50% / cover no-repeat; mask: var(--m) 50% 50% / cover no-repeat; }
.pc-mask .pc-surf { pointer-events: auto; }
.pc-surf.screen { background: #0B0B0D; border-radius: 34px; }
.pc-surf.screen[data-dev="phone"] { font-size: 17px; border-radius: 44px; }
.pc-surf.screen[data-dev="tabV"] { font-size: 24px; border-radius: 20px; }
.pc-surf.screen[data-dev="tabH"] { font-size: 22px; border-radius: 18px; }
.pc-surf.screen::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .04) 32%, rgba(255, 255, 255, 0) 46%); }
.pc-tag { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 6px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.2; color: #1B1712; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: rgba(255, 255, 255, .74); border: 1px solid rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .35); }
.pc.dk .pc-tag { color: #fff; background: rgba(20, 16, 12, .5); border-color: rgba(255, 255, 255, .16); }
.pc .pc-tag .sa-word { height: .95em; }
.pc [data-t] { transform: none; }

/* 종이: 조판 쪽 그림 + 표시(pt 좌표 SVG) */
.pc .sheet { position: relative; width: 100%; height: 100%; background: #fff; overflow: hidden; }
.pc .sheet > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.pc .sheet > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pc .sheet .mk path { stroke-width: 3.4; }
.pc .pen { position: absolute; font-family: var(--font); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.pc .pen.nm { left: 384px; top: 52px; font-size: 17px; color: #22357A; rotate: -3deg; }
.pc .pen.sc { left: 410px; top: 68px; font-size: 80px; color: #D42A1E; rotate: -9deg; font-style: italic; opacity: 0; transition: opacity .45s, scale .45s cubic-bezier(.34, 1.56, .64, 1); scale: 1.3; }
.pc .pen.sc.on { opacity: 1; scale: 1; }
.pc .nameband { position: absolute; left: 0; right: 0; top: 0; height: 30px; padding: 0 30px; display: flex; align-items: center; gap: 12px;
  background: #fff; border-bottom: 1.5px solid #1B1712; font-size: 13px; color: #1B1712; }
.pc .nameband b { font-size: 15px; }
.pc .nameband span { color: #55504A; }
.pc .nameband em { margin-left: auto; font-style: normal; color: #8A847C; font-size: 11px; }
.pc .need-sheet { padding: 34px 30px; display: flex; flex-direction: column; gap: 16px; font-family: var(--font); }
.pc .need-sheet .nh { display: flex; flex-direction: column; gap: 4px; border-bottom: 2px solid #1B1712; padding-bottom: 10px; }
.pc .need-sheet .nh b { font-size: 22px; letter-spacing: -0.03em; }
.pc .need-sheet .nh span { font-size: 14px; color: #55504A; }
.pc .need-sheet .nh em { font-style: normal; font-weight: 700; color: #C2410C; }
.pc .need-sheet .ng { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 12px 14px; }
.pc .need-sheet .nq { position: relative; overflow: hidden; }
.pc .need-sheet .nq img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.pc .need-sheet .hl { position: absolute; left: 2%; top: 3px; height: 16px; width: 0; background: rgba(255, 150, 20, .55); border-radius: 3px; opacity: 1; transition: width .55s cubic-bezier(.5, .05, .35, 1); }
.pc .need-sheet .hl.on { width: 92%; }
.pc .macro-sheet > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
.pc .macro-sheet > img.far { filter: blur(2.2px); -webkit-mask-image: linear-gradient(to top, transparent 35%, #000 85%); mask-image: linear-gradient(to top, transparent 35%, #000 85%); }
/* 플래너·노트는 카드에서 1/4 쯤으로 줄어 보인다 — 글자는 줄어든 뒤 9~13px 가 되게 (원래 크기 600px 기준) */
.pc .planner { padding: 40px 34px 28px; font-family: var(--font); color: #22357A; }
.pc .planner .pl-h { font-size: 46px; font-weight: 750; letter-spacing: -0.04em; margin-bottom: 18px; }
.pc .planner .pl-g { display: grid; grid-template-rows: repeat(5, 1fr); height: calc(100% - 84px); }
.pc .planner .pl-g > div { border-top: 3px solid rgba(34, 53, 122, .3); display: grid; grid-template-columns: 120px 1fr; align-items: center; }
.pc .planner em { font-style: normal; font-size: 28px; font-weight: 650; opacity: .7; display: flex; align-items: baseline; gap: 8px; }
.pc .planner em b { font-size: 54px; font-weight: 750; opacity: 1; letter-spacing: -0.04em; }
.pc .planner span { position: relative; justify-self: start; font-size: 40px; font-weight: 750; line-height: 1.2; letter-spacing: -0.03em; }
.pc .planner .old s { position: absolute; left: -6px; right: -6px; top: 50%; height: 6px; border-radius: 3px; background: #D42A1E; transform: scaleX(0); transform-origin: left; opacity: 1; transition: transform .5s; text-decoration: none; }
.pc .planner .old s.on { transform: scaleX(1); }
.pc .planner .new { color: #C21F12; opacity: 0; transition: opacity .4s; }
.pc .planner .new.on { opacity: 1; }
.pc .planner .new svg { position: absolute; left: -24px; top: -20px; width: calc(100% + 48px); height: calc(100% + 40px); overflow: visible; }
.pc .planner .new path { fill: none; stroke: #D42A1E; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 1 2; stroke-dashoffset: 1; transition: stroke-dashoffset .8s .2s; vector-effect: non-scaling-stroke; }
.pc .planner .new.on path { stroke-dashoffset: 0; }
.pc .notebook { padding: 40px 34px; font-family: var(--font); color: #2D2B66; display: flex; flex-direction: column; }
.pc .notebook .nb-h { font-size: 46px; font-weight: 750; letter-spacing: -0.03em; }
.pc .notebook .nb-g { flex: 1; min-height: 0; width: 100%; margin: 12px 0; }
.pc .notebook .nb-g text { font-size: 21px; font-weight: 750; fill: #B4321A; }
.pc .notebook .nb-g path { stroke-width: 3; }
.pc .notebook .nb-g path.draw { stroke-width: 5; }
.pc .notebook .nb-g circle { r: 8px; stroke-width: 4; }
.pc .notebook path.draw { stroke-dasharray: 1 2; stroke-dashoffset: 1; opacity: 1; transition: stroke-dashoffset 1.6s cubic-bezier(.5, .05, .35, 1); }
.pc .notebook path.draw.on { stroke-dashoffset: 0; }
.pc .notebook .nb-f { font-size: 40px; font-weight: 750; letter-spacing: -0.03em; color: #B4321A; }

/* 화면: 앱·영상·잠금화면 (1em = 기기 글자 크기, 위 data-dev) */
.pc .scr { position: relative; width: 100%; height: 100%; overflow: hidden; font-family: var(--font); letter-spacing: -0.01em; }
.pc .scr.vid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc .scr.vid .v-top { position: absolute; left: .8em; top: .7em; right: .8em; display: flex; align-items: center; gap: .5em; color: #fff; font-weight: 650; font-size: .8em; }
.pc .scr.vid .v-top b { background: rgba(255, 255, 255, .92); color: #1B1712; border-radius: 999px; padding: .15em .6em; }
.pc .scr.vid .v-bar { position: absolute; left: .8em; right: .8em; bottom: .8em; display: flex; align-items: center; gap: .6em; color: #fff; font-size: .7em; font-weight: 650; font-variant-numeric: tabular-nums; }
.pc .scr.vid .v-bar i { flex: 1; height: .28em; border-radius: 1em; background: rgba(255, 255, 255, .3); position: relative; overflow: hidden; }
.pc .scr.vid .v-bar i::after { content: ""; position: absolute; inset: 0; background: #FFB45C; transform-origin: left; animation: vprog 9s linear infinite; }
@keyframes vprog { from { transform: scaleX(.18); } to { transform: scaleX(.86); } }
.pc .scr.vid .v-play { position: absolute; left: 50%; top: 50%; width: 2.6em; height: 2.6em; margin: -1.3em 0 0 -1.3em; border-radius: 50%; background: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .4); }
.pc .scr.vid .v-play::after { content: ""; position: absolute; left: 1.02em; top: .76em; border-left: .82em solid #fff; border-top: .54em solid transparent; border-bottom: .54em solid transparent; }
.pc .scr.ana { background: linear-gradient(180deg, #F6F9FF, #E7EEFB); padding: 1.6em 1.3em; color: #13213F; display: flex; flex-direction: column; gap: 1em; }
.pc .ana .an-h b { display: block; font-size: 1.3em; letter-spacing: -0.03em; }
.pc .ana .an-h span { font-size: .8em; color: #5B6B8C; }
.pc .ana .an-r div { display: flex; justify-content: space-between; font-size: .85em; font-weight: 650; margin-bottom: .35em; }
.pc .ana .an-r s { display: block; height: .55em; border-radius: 1em; background: #D9E3F5; text-decoration: none; overflow: hidden; }
.pc .ana .an-r u { display: block; height: 100%; width: 0; border-radius: 1em; background: linear-gradient(90deg, #3E6BE6, #5E8BFF); opacity: 1; transition: width .9s cubic-bezier(.22, 1, .36, 1); }
.pc .ana .an-r:first-of-type u { background: linear-gradient(90deg, #E8590C, #FF8A3D); }
.pc .ana .an-r u.on { width: var(--w); }
.pc .ana .an-f { margin-top: auto; display: flex; flex-wrap: wrap; gap: .4em; }
.pc .ana .an-f span { font-size: .7em; font-weight: 650; padding: .35em .7em; border-radius: 1em; background: #13213F; color: #fff; }
.pc .ana .an-f span + span { background: #fff; color: #13213F; }
.pc .scr.lock { background: linear-gradient(170deg, #F7C9A8 0%, #EFA48A 45%, #B9789A 100%); color: #fff; padding: 3.2em 1em 1em; display: flex; flex-direction: column; align-items: center; gap: .7em; }
.pc .lock .lk-t { font-size: 4.4em; font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.pc .lock .lk-d { font-size: .95em; font-weight: 600; opacity: .9; margin-bottom: 1.4em; }
.pc .lock .lk-n { width: 100%; display: grid; grid-template-columns: 2.1em 1fr; gap: .6em; padding: .75em .8em; border-radius: 1.1em; color: #1B1712;
  background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.pc .lock .lk-n img { width: 2.1em; height: 2.1em; border-radius: .5em; }
.pc .lock .lk-n em { display: block; font-style: normal; font-size: .7em; color: #6B625A; font-weight: 600; }
.pc .lock .lk-n b { display: block; font-size: .85em; margin: .1em 0; }
.pc .lock .lk-n p { margin: 0; font-size: .78em; color: #3D3731; line-height: 1.35; }
.pc .lock .lk-n[data-t] { opacity: 0; transform: translateY(-1em); transition: opacity .5s, transform .6s cubic-bezier(.22, 1, .36, 1); }
.pc .lock .lk-n.on { opacity: 1; transform: none; }
.pc .scr.app { background: #F5F2FF; padding: 3em 1em 1em; display: flex; flex-direction: column; gap: .65em; color: #1F1838; }
.pc .app .ap-h { display: flex; align-items: center; justify-content: space-between; font-size: 1.1em; font-weight: 700; margin-bottom: .3em; }
.pc .app .ap-h span { font-size: .75em; color: #6E6690; }
.pc .app .ap-c { background: #fff; border-radius: 1em; padding: .8em .9em; box-shadow: 0 .4em 1em -.6em rgba(60, 40, 120, .35); display: flex; flex-direction: column; gap: .2em; position: relative; }
.pc .app .ap-c span { font-size: .7em; font-weight: 650; color: #7A72A0; }
.pc .app .ap-c b { font-size: .92em; }
.pc .app .ap-c i { font-style: normal; display: inline-grid; place-items: center; min-width: 1.3em; height: 1.3em; border-radius: 1em; background: #FF5A36; color: #fff; font-size: .9em; margin-left: .2em; }
.pc .app .ap-c em { position: absolute; right: .8em; top: 50%; transform: translateY(-50%); font-style: normal; font-size: .7em; font-weight: 700; color: #fff; background: #6D4AFF; padding: .35em .7em; border-radius: 1em; }
.pc .app .ap-c s { height: .35em; border-radius: 1em; background: #ECE7FF; margin-top: .3em; text-decoration: none; overflow: hidden; }
.pc .app .ap-c s u { display: block; height: 100%; width: 66%; background: #6D4AFF; border-radius: 1em; }
.pc .app .ap-c.tch { background: #FFF6E8; }
.pc .scr.chat2 { background: #EAF7F5; padding: 3em .9em 1em; display: flex; flex-direction: column; gap: .55em; color: #11302C; }
.pc .chat2 .rm-tabs2 { display: flex; gap: .35em; margin-bottom: .5em; }
.pc .chat2 .rm-tabs2 span { font-size: .7em; font-weight: 700; padding: .4em .75em; border-radius: 1em; background: #fff; color: #3B5E58; position: relative; }
.pc .chat2 .rm-tabs2 span.on { background: #0F766E; color: #fff; }
.pc .chat2 .rm-tabs2 em { font-style: normal; position: absolute; top: -.5em; right: -.4em; min-width: 1.4em; height: 1.4em; border-radius: 1em; background: #FF5A36; color: #fff; display: grid; place-items: center; font-size: .85em; }
.pc .chat2 .b { max-width: 82%; font-size: .82em; line-height: 1.4; padding: .6em .8em; border-radius: 1.1em; background: #fff; }
.pc .chat2 .b small { display: block; font-size: .78em; font-weight: 700; color: #0F766E; margin-bottom: .15em; }
.pc .chat2 .b.me { align-self: flex-end; background: #0F766E; color: #fff; border-bottom-right-radius: .3em; }
.pc .chat2 .b.you, .pc .chat2 .b.ai { border-bottom-left-radius: .3em; }
.pc .chat2 .b.ai { background: #FFF4E5; }
.pc .chat2 .b.ai small { color: #C2410C; }
.pc .chat2 .b[data-t] { opacity: 0; transform: translateY(.6em); transition: opacity .4s, transform .5s cubic-bezier(.22, 1, .36, 1); }
.pc .chat2 .b.on { opacity: 1; transform: none; }
.pc .scr.door { background: radial-gradient(120% 80% at 50% 0%, #2B2622, #0E0C0B); color: #fff; padding: 1.4em 1.2em; display: flex; flex-direction: column; align-items: center; gap: 1em; }
.pc .door .dr-h { font-size: .8em; font-weight: 650; opacity: .75; }
.pc .door .qr2.big { position: relative; width: 70%; aspect-ratio: 1; display: grid; grid-template-columns: repeat(21, 1fr); background: #fff; padding: 5%; border-radius: .6em; }
.pc .door .qr2.big i { background: #fff; }
.pc .door .qr2.big i.k { background: #111; }
.pc .door .qr2.big .scan { position: absolute; left: 3%; right: 3%; height: 3px; background: #FF7A3D; box-shadow: 0 0 12px 2px rgba(255, 122, 61, .7); animation: qscan 1.8s ease-in-out infinite alternate; }
@keyframes qscan { from { top: 6%; } to { top: 92%; } }
.pc .door .dr-ok { display: flex; flex-direction: column; align-items: center; gap: .2em; opacity: 0; transition: opacity .4s; }
.pc .door .dr-ok.on { opacity: 1; }
.pc .door .dr-ok b { font-size: 1.2em; }
.pc .door .dr-ok span { font-size: .9em; font-weight: 700; color: #6EE7A8; }

/* 그림만 있는 장면 위 덧글 (포인트 동전·학습 고리·학원 안의 AI) */
.pc .pc-ov { position: absolute; left: 12px; right: 12px; top: 14px; font-family: var(--font); }
.pc .pts { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.pc .pts > span { font-size: 11px; font-weight: 700; color: rgba(60, 35, 0, .7); }
.pc .pts > span .sa-word { height: 1em; }
.pc .pts > b { position: relative; display: block; height: 40px; font-size: 36px; font-weight: 800; letter-spacing: -0.04em; color: #3A2200; line-height: 40px; font-variant-numeric: tabular-nums; }
.pc .pts > b .sw { display: inline-grid; }   /* 1,090 → 1,240 을 한 칸에 겹쳐 둠 — 앞 숫자가 빠져도 P 가 제자리 */
.pc .pts > b i { grid-area: 1 / 1; font-style: normal; transition: opacity .3s; }
.pc .pts > b i.n { color: #B83A00; }
.pc .pts > em { font-style: normal; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .78); color: #7A3300; }
.pc .steps { top: auto; bottom: 52px; display: flex; flex-wrap: wrap; gap: 5px; }
.pc .steps span { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .5); color: rgba(60, 30, 10, .55); opacity: 1; transition: background .35s, color .35s; }
.pc .steps span.on { background: #7C2D12; color: #fff; }

/* 작은 기능 카드의 실사 카드 */
.fc-photo .mini { height: auto; aspect-ratio: 4 / 5; background: none; display: block; }
.pc.pc-mini { position: absolute; inset: 0; width: auto; height: auto; margin: 0; border-radius: inherit; overflow: hidden; }
.pc.pc-mini .pc-in { border-radius: inherit; }

@media (max-width: 860px) {
  .cstage { height: 340px; }   /* 폰은 카드를 0.8 배로 (site.js initCurve) — 띠가 첫 화면의 주인공이 되게, 대신 제목 위 여백을 줄여 명령창이 첫 화면에 남게 */
  .hero .wrap { padding-top: 20px; }
  .cmdwrap { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pc-hero { animation: none; }
  .pc .scr.vid .v-bar i::after, .pc .door .qr2.big .scan { animation: none; }
}

/* ================================================================ 감성 영상 자리 = 기억의 손전등 (11-03 만들어 둠 — 원장님 11-03 '대체는 보류'. index.html 에 .lens 를 넣을 때만 켜짐, site.js initLens) */
.focus:has(.lens) { background: #0E0B09; }
.focus .lens { position: absolute; inset: 0; overflow: hidden; }
.focus .lens-stage { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.focus .lens-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.focus .lens-mem { position: absolute; inset: 0; --mx: 45%; --my: 50%; --r: clamp(150px, 19vw, 280px);
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 0%, #000 52%, rgba(0, 0, 0, .55) 74%, transparent 100%);
  mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 0%, #000 52%, rgba(0, 0, 0, .55) 74%, transparent 100%); }
.focus .lens-mem::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle var(--r) at var(--mx) var(--my), rgba(255, 140, 60, 0) 60%, rgba(255, 140, 60, .22) 86%, transparent 100%); }
.focus .ltag { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; gap: 2px; padding: 8px 13px; border-radius: 14px;
  font-size: 12.5px; font-weight: 600; color: #FFE2C7; white-space: nowrap; text-align: left;
  background: rgba(30, 16, 6, .62); border: 1px solid rgba(255, 150, 70, .55); box-shadow: 0 0 22px rgba(255, 120, 40, .35); }
.focus .ltag b { font-size: 14px; color: #fff; letter-spacing: -0.01em; }
.focus:has(.lens)::after { background: linear-gradient(to bottom, rgba(14, 10, 8, .18) 0%, rgba(14, 10, 8, 0) 30%, rgba(14, 10, 8, 0) 52%, rgba(14, 10, 8, .62) 100%); pointer-events: none; }
.focus:has(.lens) .txt { top: auto; bottom: clamp(70px, 12vh, 120px); transform: none; pointer-events: none; }
@media (max-width: 860px) {
  .focus .ltag { font-size: 11px; padding: 6px 10px; } .focus .ltag b { font-size: 12.5px; }
  .focus .lens-mem { --r: clamp(120px, 34vw, 190px); }
}

/* 이야기 1: 실제 조판 문항 (11-03) */

/* ================================================================ 구역 실사 장면 (원장님 11-03 밤 '이것도 실사처럼' — site.js sceneWrap)
 * 장면 사진(.pc-bg) + 빈 면(.pc-surf, 카드와 같은 fitSurf) 에 구역 그림을 통째로 옮겨 담음. 사진 비율(--ar)대로 칸을 잡는다. */
.ph-scene { position: relative; width: 100%; aspect-ratio: var(--ar); border-radius: 28px; overflow: hidden; background: #D9D2C6;
  box-shadow: 0 34px 70px -40px rgba(40, 25, 10, .5), 0 2px 6px rgba(0, 0, 0, .06); }
.ph-scene .pc-surf { pointer-events: auto; }
.visual.has-scene { aspect-ratio: auto; background: none; box-shadow: none; overflow: visible; border-radius: 0; min-width: 0; }   /* min-width 0: 칸이 그리드 칸이라, 넘침을 보이게 두면 안의 넓은 그림(폰 망각 곡선 880px)만큼 칸이 늘어 화면이 옆으로 밀렸음 */
.ph-scene .pc-surf > .curve, .ph-scene .pc-surf > .loop, .ph-scene .pc-surf > .phone {
  position: absolute; inset: 0; left: 0; top: 0; width: 100%; height: 100%; max-width: none; margin: 0; transform: none; aspect-ratio: auto; }
/* 노트북 화면 속 시연: 한 장씩 꽉 (옆 장 엿보기는 화면 밖이라 뺌) */
/* 종이 위 망각 곡선: 가운데 놓기 */
#story-3 .ph-scene { max-width: 1040px; margin: 0 auto; }
.ph-scene .pc-surf > .curve.fc2 { display: flex; flex-direction: column; justify-content: center; padding: 40px 44px; }
/* 둥근 종이 위 학습 고리: 흰 이름표가 종이에 묻히지 않게 옅은 빛깔(곱하기로 얹음) */
.ph-scene .loop .node { background: #F6E4CF; box-shadow: none; }
/* 손에 든 폰: 폰 틀(검은 테두리·그림자)은 사진 것을 쓰고 화면만 */
.ph-scene .pc-surf > .phone { background: none; box-shadow: none; border-radius: inherit; padding: 0; }
.ph-scene .phone .scr { inset: 0; border-radius: inherit; }
/* 상태 줄(시각·배터리)은 사진 속 폰 모서리 둥글기(--rx·--ry, site.js fitSurf 가 사진에서 잰 값)만큼 안쪽·아래로 — 둥근 모서리에 글자가 잘리던 것 */
.ph-scene .phone .kk-bar { height: calc(var(--ry, 30px) * .7); align-items: flex-end; padding: 0 calc(var(--rx, 16px) * .5 + 6px) 2px calc(var(--rx, 18px) * .5 + 8px); }
#story-5 .ph-scene, .parents .ph-scene { max-width: 560px; margin: 0 auto; }
@media (max-width: 860px) {
  /* 폰: 넓은 그림은 비틀지 않고 사진 위에 그대로 (사진은 바탕) */
  .ph-scene.flat { aspect-ratio: auto; border-radius: 22px; }
  .ph-scene.flat .pc-bg { position: absolute; inset: 0; }
  .ph-scene.flat .pc-surf { position: relative !important; transform: none !important; width: auto !important; height: auto !important; border-radius: 0; background: none; }
  .ph-scene.flat .pc-mask { position: relative; inset: auto; -webkit-mask: none; mask: none; }   /* 폰 평면 모드: 가림판 층도 흐름 안에 — 11-04 전엔 절대 위치 층 안에 슬라이드가 들어가 무대 높이가 0(폰에서 무대가 비어 보였음)이었다 */
  .ph-scene.flat .pc-surf::after { display: none; }
  .core .down { display: none; }
  .ph-scene.flat .pc-surf > .curve { position: relative; inset: auto; height: auto; width: auto; margin: 14px; background: rgba(255, 255, 255, .94); border-radius: 14px; }
  .ph-scene.flat[data-k="graph"] .pc-surf { mix-blend-mode: normal; }
  .ph-scene.flat .pc-surf > .loop { position: relative; inset: auto; height: auto; aspect-ratio: 1 / 1; }
  #story-5 .ph-scene, .parents .ph-scene { --ar: 720 / 1180 !important; }
  /* 망각 곡선: 폰에서도 실사(책상 위 종이) 그대로 — 장면을 넓게 두고 칸을 옆으로 밀어 그리는 자리를 따라감(site.js initForget) */
  #story-3 .visual.has-scene { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  #story-3 .visual.has-scene::-webkit-scrollbar { display: none; }
  #story-3 .visual.has-scene.fg-follow, #story-3 .visual.fit .curve.fc2.fg-follow { overflow-x: hidden; }   /* 그리는 동안은 코드가 옆으로 밂 — 손 스크롤 칸이 아니어야 세로 손짓이 쪽으로 감 (site.js initForget follow, 11-04 '위로 올라가지지 않아') */
  #story-3 .ph-scene { width: 820px; max-width: none; border-radius: 22px; }
  #story-3 .visual.fit .ph-scene .curve.fc2 { overflow: visible; padding: 40px 44px; }
  #story-3 .ph-scene .fc2 svg { width: 100%; }   /* 폰 칸을 좁게 — 사진이 양옆으로 잘려 폰이 더 크게(글자 읽히게) */
}

/* 로컬 AI: 프로세서 칩 사진 위에 세 기록이 모이고 칩 뚜껑에 SeeAllai CORE (원장님 11-03 밤 '네모난 코어 말고 프로세서 칩, 미래지향적인 푸른 선' →
 * '비스듬한 칩 사진에 씨알아이 코어 글자 합성') — 사진(.pc-bg)·뚜껑 면(.pc-surf.lid)은 site.js initScenes 가 깔고 fitSurf 로 얹음 */
.core { isolation: isolate; border-radius: 24px; overflow: hidden; background: #0A1020; }
.core > .pc-bg { z-index: -2; object-position: 50% 50%; }
.core::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 10, 20, .7) 0%, rgba(6, 10, 20, .28) 38%, rgba(6, 10, 20, 0) 58%); }
.core .ai { display: none; }                                   /* 이름은 칩 뚜껑 글자로 */
.core .fence { stroke: rgba(150, 200, 255, .3); }
.core .flow2 { stroke: rgba(120, 190, 255, .28); }
.core .flow2.mv { stroke: #7CC4FF; }
.core .src { background: rgba(10, 16, 30, .78); border-color: rgba(120, 180, 255, .25); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.core .fence-lbl { color: #9FCBFF; }
/* 칩 뚜껑 글자: 밝은 글자를 '밝게 하기'로 얹어 금속에 새긴 빛처럼 (원래 크기 600 기준) */
.pc-surf.lid { mix-blend-mode: screen; overflow: visible; }
.lid-t { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #EAF4FF; text-align: center; }
.lid-t img { height: 70px; width: auto; opacity: .92; filter: drop-shadow(0 0 14px rgba(110, 180, 255, .55)); }
.lid-t b { font-size: 150px; font-weight: 750; letter-spacing: .14em; line-height: 1; text-shadow: 0 0 24px rgba(110, 180, 255, .7); margin-right: -.14em; }
.lid-t span { font-size: 40px; font-weight: 650; letter-spacing: .06em; opacity: .7; }
@media (max-width: 860px) {
  .core { border: 0; min-height: 520px; }
  .core > .pc-bg { object-position: 100% 50%; }             /* 폰: 사진 오른쪽 끝에 맞춰 칩이 칸 안에 (fitSurf 가 이 값을 읽음) */
  .core::before { background: linear-gradient(180deg, rgba(6, 10, 20, .78) 0%, rgba(6, 10, 20, .25) 36%, rgba(6, 10, 20, 0) 58%); }
}

/* 이야기 1: 왜 틀렸는지 — 책상 위 실사 종이(사진 "why")에 실제 조판 문항 + 오른쪽 빈 책상에 학습기록 카드 (원장님 11-04 '첫 번째 카드 너무 촌스러워, 바꿔' — 보라 그라데이션·알약 꼬리표를 없앰)
   폰: 사진을 종이 쪽으로 당겨 정사각으로, 기록 카드는 사진 아래로 */
.v-why { position: relative; }
.v-why .ph-scene { border-radius: var(--r-vis); background: #C9A77E; }
.ph-scene .pc-surf > .why-paper { position: absolute; inset: 0; padding: 24px 42px; display: flex; flex-direction: column; gap: 12px; }
.why-paper .wp-h { display: flex; justify-content: space-between; font-size: 14px; font-weight: 650; color: #6B6258; padding-bottom: 9px; border-bottom: 1px solid #D9D3CA; }
.why-paper .qimg { position: relative; }
.why-paper .qimg img { display: block; width: 100%; height: auto; }
.why-paper .qimg svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.why-paper .qimg .mk path { stroke-width: 2.6; }
.why-rec { position: absolute; right: 2.4%; top: 27%; width: 23.5%; min-width: 160px; background: #fff; border-radius: 4px; padding: 14px 14px 12px; font-size: 13px;
  box-shadow: 0 22px 36px -18px rgba(50, 32, 14, .55), 0 2px 5px rgba(50, 32, 14, .08); }
.wr-h { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #EFE9E1; }
.wr-h .x { width: 26px; height: 26px; border-radius: 50%; background: #E0461F; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; }
.wr-h b { display: block; font-size: 14px; }
.wr-h small { display: block; font-size: 12px; font-weight: 700; color: #1E7A45; }
.wr-q { margin: 10px 0 4px; font-size: 11.5px; font-weight: 750; color: #9A8E80; letter-spacing: .04em; }
.wr-list { list-style: none; margin: 0; padding: 0; }
.wr-list li { display: flex; align-items: center; gap: 8px; padding: 5px 0; color: #A39A90; font-weight: 600; border-bottom: 1px dashed #EEE8DF; }
.wr-list li::before { content: ""; width: 13px; height: 13px; flex: none; border: 1.5px solid #D6CEC3; border-radius: 3px; display: grid; place-items: center; font-size: 10px; line-height: 1; color: #fff; }
.wr-list li.hit { color: #1B1712; font-weight: 750; }
.wr-list li.hit::before { content: "✓"; background: #E0461F; border-color: #E0461F; }
.wr-list li.hit + li.hit::before { background: #D99400; border-color: #D99400; }
.wr-ok { margin-top: 11px; display: inline-block; background: #1E7A45; color: #fff; border-radius: 3px; padding: 6px 10px; font-size: 12px; font-weight: 750; }
/* 움직임: 카드가 놓이고 → 이유가 하나씩 → 맞는 이유에 표시 → 저장 */
.why-rec, .wr-list li, .wr-ok { opacity: 0; }
.inview .why-rec { animation: pop .7s var(--ease) .5s both; }
.inview .wr-list li { animation: pop .5s var(--ease) both; animation-delay: calc(1.1s + var(--i, 0) * .18s); }
.inview .wr-list li.hit::before { animation: wrHit .35s var(--ease) both; animation-delay: calc(2.6s + var(--i, 0) * .25s); }
@keyframes wrHit { from { background: #fff; border-color: #D6CEC3; color: transparent; transform: scale(.6); } to { transform: none; } }
.inview .wr-ok { animation: pop .6s var(--ease) 3.8s both; }
@media (prefers-reduced-motion: reduce) { .why-rec, .wr-list li, .wr-ok { opacity: 1 !important; animation: none !important; } }
@media (max-width: 860px) {
  .v-why .ph-scene { --ar: 1 / 1 !important; }
  .v-why .ph-scene .pc-bg { object-position: 28% 50%; }
  .why-rec { position: relative; right: auto; top: auto; width: auto; margin: -36px 14px 0; }
  .wr-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
}

/* 무대 카드 한 장 = 실사 장면 한 장 (site.js initScenes — 지금 카드 + 다음 두 장 엿보기·옆으로 넘김 묶음 그대로, 원장님 11-04 '원래 카드가 3개') */
.slide.has-ph { background: #D9D2C6; }
.slide.has-ph > .ph-scene { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.ph-scene .pc-surf > .win { position: absolute; inset: 0; background: #FBF9F5; }
.slides:has(.has-ph) { aspect-ratio: 16 / 8.7; }   /* 카드 폭 76% 가 사진 비율(1344×960)과 맞게 */
@media (max-width: 860px) {
  .slides:has(.has-ph) { aspect-ratio: 4 / 6.3; }
  .slide.has-ph .ph-scene.flat .pc-mask { position: absolute; inset: 0; }
  .slide.has-ph .ph-scene.flat .pc-surf { position: absolute !important; inset: 12px; width: auto !important; height: auto !important; }
}
@media (max-width: 359px) {   /* 좁은 폰은 글이 더 접혀 여섯 단계 고리가 높아짐 — 창을 그만큼 길게(해설지가 한 줄로 납작해지지 않게) */
  .slides:has(.has-ph) { aspect-ratio: 4 / 7.4; }
}

/* ================================================================ 오시는 길 (원장님 11-05 — 약도 그림 없이 네이버 플레이스 '지도에서 보기'·'길찾기')
   주소·장소 주소는 학원 안내 원본(academy.js address·naver) — site.js initVisit 가 채우고, 둘 다 없으면 칸째 숨김. 단추는 폰에서도 엄지로 누르기 쉽게 높이 58px 이상 */
.visit { border-top: 1px solid var(--line); padding: 72px 0 80px; }
.visit-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.visit-k { margin: 0 0 18px; font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--ochre-d); }
.visit-addr { margin: 0; font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; line-height: 1.4; letter-spacing: -0.025em; color: var(--ink); word-break: keep-all; }
.visit-name { margin: 10px 0 0; font-size: 16px; color: var(--ink-2); }
.visit-btns { display: flex; flex-direction: column; align-items: stretch; gap: 12px; justify-self: end; min-width: 280px; }
.visit-btns a { justify-content: center; }
.visit-route { display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 30px; border-radius: 999px; border: 1px solid rgba(23, 22, 19, .22);
  color: var(--ink); font-size: 16px; font-weight: 650; transition: transform .3s var(--ease-out), border-color .3s, background .3s; }
.visit-route span { display: inline-block; transition: transform .3s var(--ease-out); }
.visit-route:hover { transform: translateY(-2px); border-color: var(--ink); background: var(--surface); }
.visit-route:hover span { transform: translateX(4px); }
.visit-btns a:focus-visible { outline: 2px solid var(--ochre-d); outline-offset: 3px; }
@media (max-width: 860px) {
  .visit { padding: 56px 0 60px; }
  .visit-row { grid-template-columns: 1fr; gap: 28px; }
  .visit-btns { justify-self: stretch; min-width: 0; flex-direction: row; }
  .visit-btns a { flex: 1 1 0; padding: 0 16px; }
}
@media (max-width: 420px) {
  .visit-btns { flex-direction: column; }
  .visit-btns a { flex: none; }      /* 세로로 쌓을 땐 0 기준 늘이기를 풀어야 높이 58px 이 남음 */
}
@media (prefers-color-scheme: dark) {
  .visit-route { border-color: rgba(255, 255, 255, .22); }
  .visit-route:hover { border-color: var(--ink); }
}
