/* 소개 페이지 — 2026-10-14 리뉴얼(회원님), 같은 날 다시: 움직이고 화려하게.
 *
 * 토큰 · 머리 · 바닥은 styles.css 를 그대로 쓴다(값의 정본은 DESIGN.md). 색은 시트의 넷과
 * 그 사이에서 뽑은 것뿐이다 — 오로라도, 빛도, 버건디 카드도 버건디 · 머쉬룸 · 크림의 농도다.
 * 움직임을 줄인 사람(prefers-reduced-motion)에게는 styles.css 가 모든 움직임을 끈다.
 */

:root {
  /* 앱 키즈 쪽 하단 메뉴의 연한 버건디(AppColors.kidsBar — Burgundy → Cream 86%) */
  --kids: #e9d3cd;
  /* 시트 두 색 사이 — 카드 안의 옅은 판 */
  --tint: #f2e8dc;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --phone-ratio: 1248 / 1868; /* 시연 폰(갤럭시 Z 폴드 겉화면)의 상태 표시줄 아래 */
}

body.home {
  position: relative;
  overflow-x: clip;
  /* 한국어는 어절 단위로 줄바꿈(styles.css 와 같다) — 본문이 `도서/관에서` 처럼 끊겼다 */
  word-break: keep-all;
  overflow-wrap: break-word;
}
/* 앱의 종이 결(paper_grain) — 앱처럼 아주 옅게 */
body.home::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('/assets/site/paper_grain.png');
  background-size: 43px;
  opacity: 0.14;
  pointer-events: none;
  z-index: -1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── 머리 ─────────────────────────────────────────────── */
.site-nav {
  display: none;
  gap: 26px;
  font-size: 14px;
}
.site-nav a {
  position: relative;
  color: var(--text-dim);
  text-decoration: none;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.site-nav a:hover {
  color: var(--accent);
}
.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
@media (min-width: 860px) {
  .site-nav {
    display: flex;
    margin-left: auto;
    margin-right: 24px;
  }
}
.header-cta {
  position: relative;
  overflow: hidden;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(139, 30, 45, 0.22);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(139, 30, 45, 0.3);
}
/* 버튼 위를 지나가는 빛 */
.header-cta::after,
.waitlist button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 253, 248, 0.38) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: shine 5.5s var(--ease) 2.4s infinite;
}
@keyframes shine {
  0%, 70% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

/* ── 공통 ─────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1.5px;
  background: currentColor;
}
.sec-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.sec-head h2,
.tour-step h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 4.8vw, 54px);
  line-height: 1.22;
  letter-spacing: -0.025em;
}

/* 보이면 떠오른다 — 자바스크립트가 없으면 처음부터 보인다 */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* 첫 화면은 불러오자마자 차례로 떠오른다 */
.rise {
  animation: rise 1s var(--ease-out) both;
  animation-delay: calc(0.15s + var(--d, 0) * 0.11s);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
}

/* 휴대폰 틀 — 시트의 차콜 */
.phone {
  position: relative;
  aspect-ratio: var(--phone-ratio);
  padding: 9px;
  border-radius: 42px;
  background: #222222;
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 253, 248, 0.08),
    0 2px 4px rgba(34, 34, 34, 0.08),
    0 30px 60px -12px rgba(34, 34, 34, 0.32),
    0 60px 120px -40px rgba(139, 30, 45, 0.3);
}
.phone > .screen {
  position: absolute;
  inset: 9px;
  overflow: hidden;
  border-radius: 33px;
  background: var(--bg);
}
.screen > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}
.phone > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  border-radius: 33px;
  background: var(--bg);
}

/* ── 첫 화면 ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: min(100svh, 940px);
  display: flex;
  align-items: center;
  padding-block: 36px 96px;
  overflow: hidden;
  isolation: isolate;
}
/* 버건디 · 머쉬룸 빛이 천천히 떠다닌다 */
.aurora {
  position: absolute;
  inset: -10% -10% 0;
  z-index: -1;
  pointer-events: none;
}
.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) {
  width: 46vw;
  height: 46vw;
  right: -6vw;
  top: -6vw;
  background: radial-gradient(circle, rgba(139, 30, 45, 0.2), transparent 70%);
}
.aurora span:nth-child(2) {
  width: 52vw;
  height: 52vw;
  left: -16vw;
  top: 18%;
  background: radial-gradient(circle, rgba(217, 201, 181, 0.85), transparent 70%);
  animation-duration: 28s;
  animation-delay: -6s;
}
.aurora span:nth-child(3) {
  width: 38vw;
  height: 38vw;
  left: 38%;
  bottom: -14vw;
  background: radial-gradient(circle, rgba(159, 68, 78, 0.16), transparent 70%);
  animation-duration: 25s;
  animation-delay: -12s;
}
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4vw, 3vw) scale(1.08); }
  100% { transform: translate(-3vw, 5vw) scale(0.95); }
}

.hero .wrap.hero-grid {
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero .wrap.hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 40px;
  }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 26px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(217, 201, 181, 0.9);
  background: rgba(255, 253, 248, 0.65);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.hero-badge .dot,
.counter-live .dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.hero-badge .dot::after,
.counter-live .dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: ping 1.8s var(--ease) infinite;
}
@keyframes ping {
  to { transform: scale(3); opacity: 0; }
}

.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 98px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.hero-title .line > span {
  display: inline-block;
  animation: line-up 1.1s var(--ease-out) both;
  animation-delay: calc(0.1s + var(--d, 0) * 0.12s);
}
@keyframes line-up {
  from { transform: translateY(105%); }
}
.hl {
  position: relative;
  font-style: normal;
  color: var(--accent);
}
.hl svg {
  position: absolute;
  left: -2%;
  bottom: -0.04em;
  width: 104%;
  height: 0.26em;
  overflow: visible;
}
.hl path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  opacity: 0.55;
  animation: draw 1.1s var(--ease) 1.15s forwards;
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}
.hero-sub {
  margin: 26px 0 30px;
  max-width: 31em;
  font-size: clamp(15.5px, 1.6vw, 17.5px);
  line-height: 1.75;
  color: var(--text-dim);
  word-break: keep-all;
}

/* 무대 — 휴대폰과 둘레의 조각 */
.hero-stage {
  position: relative;
  height: clamp(500px, 50vw, 620px);
  display: grid;
  place-items: center;
  perspective: 1400px;
  --mx: 0;
  --my: 0;
}
.stage-glow {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 30, 45, 0.18), rgba(217, 201, 181, 0.35) 45%, transparent 70%);
  filter: blur(20px);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
  50% { transform: scale(1.1); opacity: 0.8; }
}
.phone-hero {
  width: clamp(230px, 24vw, 290px);
  transform: rotateY(calc(var(--mx) * -14deg - 8deg)) rotateX(calc(var(--my) * 10deg + 4deg)) rotateZ(2deg);
  transition: transform 0.6s var(--ease-out);
  animation: phone-in 1.4s var(--ease-out) 0.3s both;
}
@keyframes phone-in {
  from { opacity: 0; translate: 0 60px; rotate: 0 1 0 -30deg; }
}
.chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(217, 201, 181, 0.7);
  box-shadow: 0 18px 40px -12px rgba(34, 34, 34, 0.22);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  transform: translate3d(calc(var(--mx) * var(--z) * 16px), calc(var(--my) * var(--z) * 16px), 0);
  transition: transform 0.6s var(--ease-out);
  animation:
    chip-in 0.9s var(--ease-out) both,
    bob 6s ease-in-out infinite;
}
@keyframes chip-in {
  from { opacity: 0; scale: 0.85; }
}
@keyframes bob {
  50% { translate: 0 -10px; }
}
.chip strong {
  display: block;
  font-size: 13.5px;
}
.chip small {
  display: block;
  color: var(--text-dim);
  font-size: 11.5px;
}
.chip-pick {
  top: 9%;
  left: 2%;
  animation-delay: 0.9s, 0s;
}
.chip-pick .ribbon {
  align-self: stretch;
  display: grid;
  place-items: center;
  width: 30px;
  margin: -12px 0 -12px -4px;
  padding-bottom: 6px;
  background: var(--accent);
  color: var(--surface);
  font-family: var(--serif);
  font-size: 12px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
}
.chip-why {
  display: block;
  max-width: 232px;
  bottom: 17%;
  left: -2%;
  color: var(--accent);
  font-weight: 600;
  animation-delay: 1.1s, -2s;
}
.chip-why small {
  margin-bottom: 4px;
  font-weight: 500;
}
.chip-progress {
  top: 26%;
  right: -1%;
  animation-delay: 1.25s, -4s;
}
.chip-progress img {
  width: 34px;
  border-radius: 3px;
  box-shadow: 0 4px 10px rgba(34, 34, 34, 0.2);
}
.chip .bar {
  display: block;
  width: 110px;
  height: 5px;
  margin: 6px 0 4px;
  border-radius: 99px;
  background: rgba(217, 201, 181, 0.8);
  overflow: hidden;
}
.chip .bar i {
  display: block;
  height: 100%;
  width: 80%;
  border-radius: inherit;
  background: var(--accent);
  animation: fill 1.6s var(--ease-out) 1.6s both;
}
@keyframes fill {
  from { width: 0; }
}
.chip-basket {
  bottom: 6%;
  right: 8%;
  font-weight: 600;
  animation-delay: 1.4s, -1s;
}
.basket-dot {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
@media (max-width: 899px) {
  .hero {
    min-height: 0;
    padding-top: 28px;
  }
  .hero-stage {
    height: 520px;
  }
  .chip {
    font-size: 12px;
    padding: 10px 12px;
  }
  .chip-why {
    max-width: 190px;
    left: 0;
  }
  .chip-progress {
    right: 0;
  }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 24px;
  height: 38px;
  margin-left: -12px;
  border: 1.5px solid rgba(107, 101, 93, 0.5);
  border-radius: 14px;
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--accent);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue {
  60% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
@media (max-width: 899px) {
  .scroll-cue {
    display: none;
  }
}

/* ── 출시 알림 신청 ──────────────────────────────────── */
.waitlist {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 470px;
  margin-bottom: 40px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.75);
  border: 1px solid rgba(217, 201, 181, 0.9);
  box-shadow: 0 14px 34px -14px rgba(34, 34, 34, 0.2);
  backdrop-filter: blur(8px);
}
.waitlist input {
  flex: 1 1 180px;
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--text);
}
.waitlist input:focus {
  outline: 2px solid rgba(139, 30, 45, 0.3);
  outline-offset: 0;
}
.waitlist button {
  position: relative;
  overflow: hidden;
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--surface);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.waitlist button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(139, 30, 45, 0.3);
}
.waitlist button:disabled {
  opacity: 0.6;
  cursor: default;
}
/* 알림 문구는 둥근 칸 밖, 아래에 */
.waitlist-note {
  position: absolute;
  left: 18px;
  right: 0;
  top: calc(100% + 10px);
  margin: 0;
  font-size: 12.5px;
  color: var(--text-dim);
}
.waitlist-note a {
  color: inherit;
  text-decoration: underline;
}
.waitlist-note[data-state='ok'] {
  color: var(--accent);
  font-weight: 600;
}
@media (max-width: 420px) {
  .waitlist {
    border-radius: 26px;
    margin-bottom: 56px;
  }
  .waitlist button {
    flex: 1 1 100%;
  }
}

.stores {
  display: flex;
  gap: 10px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-dim);
  background: rgba(255, 253, 248, 0.6);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
}
.store small {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
}

/* ── 흐르는 책 줄 ────────────────────────────────────── */
.books-band {
  position: relative;
  padding-block: 84px;
  overflow: hidden;
  background: linear-gradient(var(--bg), var(--tint) 50%, var(--bg));
}
.band-rows {
  display: grid;
  gap: 20px;
  transform: rotate(-4deg) scale(1.1);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.band-row {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee 70s linear infinite;
}
.band-row-rev {
  animation-direction: reverse;
  animation-duration: 84s;
  margin-left: -140px;
}
.band-row img {
  width: clamp(92px, 10vw, 128px);
  border-radius: 6px;
  box-shadow: 0 12px 24px -8px rgba(34, 34, 34, 0.28);
  transition: transform 0.4s var(--ease-out);
}
.band-row img:hover {
  transform: translateY(-8px) rotate(-2deg);
}
.books-band:hover .band-row {
  animation-play-state: paused;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.counter {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  display: grid;
  justify-items: center;
  gap: 2px;
  width: min(88vw, 520px);
  padding: 30px 28px 28px;
  border-radius: 32px;
  text-align: center;
  background: rgba(255, 253, 248, 0.8);
  backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255, 253, 248, 0.9);
  box-shadow: 0 30px 70px -20px rgba(34, 34, 34, 0.35);
}
.counter-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.counter-num {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(60px, 10vw, 112px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--accent), var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.counter-num small {
  font-size: 0.36em;
  margin-left: 4px;
  -webkit-text-fill-color: var(--accent);
}
.counter-label {
  margin: 10px 0 0;
  color: var(--text-dim);
  font-size: 15px;
}

/* ── 둘러보기 ────────────────────────────────────────── */
.tour {
  padding-block: 40px 60px;
}
.tour-grid {
  display: grid;
}
@media (min-width: 900px) {
  .tour-grid {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }
}
.tour-step {
  padding-block: 64px;
  scroll-margin-top: 40px;
}
.tour-step .lede {
  max-width: 30em;
}
@media (min-width: 900px) {
  .tour-step {
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 10vh;
    opacity: 0.28;
    transition: opacity 0.6s var(--ease);
  }
  .tour-step.is-active {
    opacity: 1;
  }
}
.how {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.how li {
  display: flex;
  gap: 16px;
}
.how-num {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--surface);
  font-family: var(--serif);
  font-weight: 700;
}
.how h3 {
  font-family: var(--sans);
  font-size: 17.5px;
  font-weight: 700;
  margin: 4px 0 6px;
}
.how p {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.7;
  font-size: 15px;
}
.tags {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags li {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid rgba(217, 201, 181, 0.9);
  font-size: 14px;
  font-weight: 600;
}
.tags li::before {
  content: '✦';
  margin-right: 6px;
  color: var(--accent);
  font-size: 11px;
}

/* 좁은 화면 — 장마다 제 휴대폰을 둔다 */
.step-shot {
  margin: 40px auto 0;
  width: min(74vw, 300px);
}
@media (min-width: 900px) {
  .step-shot {
    display: none;
  }
}

/* 추천 — 카드가 한 장씩 옆으로 넘어간다(2026-10-17 회원님). 화면 그림의 카드 자리를 바탕색으로
   덮고, 앱의 카드(HomePickCard 를 그대로 그린 그림)를 그 위에 줄 세운다. 자리는 화면 그림(680 × 1060)
   에서 잰 값 — 카드 397 px · 다음 카드까지 418 px · 카드 그림은 둘레 34 px 의 그림자 여백을 품는다. */
.picks-demo .picks-frame {
  /* 화면 그림과 같은 비율의 틀 — 휴대폰 화면 비율이 조금 달라 그림 아래가 잘려도 자리가 맞는다 */
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  aspect-ratio: 680 / 1060;
}
.picks-demo .picks-cover {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(336 / 1060 * 100%);
  bottom: 0;
  background: #f6f1e7;
}
.picks-demo .picks-strip {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(320 / 1060 * 100%);
  height: calc(724 / 1060 * 100%);
  overflow: hidden;
}
.picks-demo .picks-track {
  position: absolute;
  inset: 0;
  transform: translateX(calc(var(--k, 0) * -418 / 680 * 100%));
}
.picks-demo .picks-track.slide {
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}
.picks-demo .pick-card {
  position: absolute;
  top: 0;
  width: calc(466 / 680 * 100%);
  left: calc((2 + var(--i) * 418) / 680 * 100%);
}
.picks-demo .pick-card img {
  display: block;
  width: 100%;
  height: auto;
}
.picks-demo .pick-card .on {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.picks-demo .pick-card.is-on .on {
  opacity: 1;
}
.picks-demo .picks-dots {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(1040 / 1060 * 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: calc(9 / 680 * 100%);
  transform: translateY(-50%);
}
.picks-demo .picks-dots i {
  width: calc(9 / 680 * 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #d9c9b5;
  transition: background 0.3s var(--ease);
}
.picks-demo .picks-dots i.on {
  background: var(--accent);
}

/* 서재 — 전면 책장 ↔ 일반 책장을 눌러 바꾸고, 바구니까지 내려갔다 올라온다 */
.shelf-demo > img {
  transition:
    opacity 0.4s var(--ease),
    object-position 1.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.shelf-demo > .alt {
  opacity: 0;
}
.shelf-demo.is-spine > .alt {
  opacity: 1;
}
.shelf-demo.is-down > img {
  object-position: 50% 100%;
}
.tap {
  position: absolute;
  left: var(--tx, 72%);
  top: 20.1%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: rgba(139, 30, 45, 0.28);
  border: 2px solid rgba(255, 253, 248, 0.9);
  opacity: 0;
  pointer-events: none;
}
.tap.go {
  animation: tap 0.75s var(--ease) both;
}
@keyframes tap {
  0% { opacity: 0; transform: scale(0.4); }
  30% { opacity: 1; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(1.6); }
}

/* 문장 — 펼친 책의 한 쪽이 넘어간다. 앞면은 지금 쪽(같은 화면을 잘라 붙인다), 뒷면은 종이 */
.page-demo {
  perspective: 1600px;
}
.leaf {
  position: absolute;
  left: 17.4%;
  top: 22.8%;
  width: 73.6%;
  height: 65.4%;
  transform-origin: 0 50%;
  transform-style: preserve-3d;
}
.leaf.turn {
  transform: rotateY(-178deg);
  transition: transform 0.85s cubic-bezier(0.45, 0.05, 0.25, 1);
}
.leaf > div {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 0 14px 4px 0;
}
.leaf .front {
  background-repeat: no-repeat;
  /* 화면 전체 그림을 쪽 크기에 맞춰 — 크기는 100 / 폭, 자리는 왼쪽 / (100 - 폭) */
  background-size: calc(100% / 0.736) calc(100% / 0.654);
  background-position: calc(17.4 / 26.4 * 100%) calc(22.8 / 34.6 * 100%);
}
.leaf .front::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(34, 34, 34, 0.22), transparent 55%);
  opacity: 0;
  transition: opacity 0.65s var(--ease);
}
.leaf.turn .front::after {
  opacity: 1;
}
.leaf .back {
  transform: rotateY(180deg);
  border-radius: 14px 0 0 4px;
  background:
    linear-gradient(90deg, #efe6d8, #f7f1e6 22%, #f4ede1),
    var(--bg);
  box-shadow: inset -10px 0 18px -10px rgba(34, 34, 34, 0.25);
}

/* 넓은 화면 — 휴대폰이 붙박이로 서고 화면만 바뀐다 */
.tour-stage {
  display: none;
}
@media (min-width: 900px) {
  .tour-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    display: grid;
    place-items: center;
  }
}
.phone-tour {
  width: min(310px, 26vw);
  margin-right: 110px; /* 오른쪽에 장 이름이 선다 */
}
.phone-tour > .screen {
  opacity: 0;
  transform: scale(0.94) translateY(16px);
  filter: blur(6px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.9s var(--ease-out),
    filter 0.7s var(--ease);
}
.phone-tour > .screen.on {
  opacity: 1;
  transform: none;
  filter: none;
}
.tour-stage .stage-glow {
  width: 110%;
  transition: background 0.8s var(--ease);
}
.tour-stage[data-at='1'] .stage-glow {
  background: radial-gradient(circle, rgba(217, 201, 181, 0.9), rgba(242, 232, 220, 0.5) 45%, transparent 70%);
}
.tour-stage[data-at='2'] .stage-glow {
  background: radial-gradient(circle, rgba(159, 68, 78, 0.2), rgba(242, 232, 220, 0.5) 45%, transparent 70%);
}
.tour-stage[data-at='3'] .stage-glow {
  background: radial-gradient(circle, rgba(217, 201, 181, 0.7), rgba(139, 30, 45, 0.1) 45%, transparent 70%);
}
.tour-dots {
  position: absolute;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(107, 101, 93, 0.55);
}
.tour-dots li {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.4s var(--ease);
}
.tour-dots li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}
.tour-dots li.on {
  color: var(--accent);
}
.tour-dots li.on::before {
  transform: scale(1.5);
}

/* ── 기록과 나 — 조각 카드 ───────────────────────────── */
.more {
  background: linear-gradient(var(--bg), rgba(242, 232, 220, 0.7) 30%, var(--bg));
}
.bento {
  display: grid;
  gap: 18px;
}
@media (min-width: 640px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .t-essay {
    grid-column: span 2;
  }
}
@media (min-width: 960px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
  }
  .t-essay {
    grid-column: span 4;
  }
  .t-portrait {
    grid-column: span 2;
    grid-row: span 2;
  }
  .t-progress,
  .t-verdict {
    grid-column: span 2;
  }
  .t-bars,
  .t-place {
    grid-column: span 3;
  }
}
.tile {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid rgba(217, 201, 181, 0.6);
  box-shadow: var(--shadow);
  --mx: 50%;
  --my: 50%;
}
.js .tile.reveal {
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.6s var(--ease-out),
    box-shadow 0.4s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms), 0s, 0s;
}
/* 커서를 따라 다니는 옅은 빛 */
.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(139, 30, 45, 0.09), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.tile:hover {
  box-shadow: var(--shadow-lift);
}
.js .tile.reveal.in:hover {
  transform: translateY(-4px);
}
.tile:hover::before {
  opacity: 1;
}
.tile h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 21px;
  margin: 0 0 8px;
}
.tile p {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.65;
  font-size: 15px;
}
.essay {
  margin: 20px 0 0;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: var(--tint);
  border-radius: 0 14px 14px 0;
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.85;
  color: #3a3631;
  min-height: 7.6em;
}
.essay strong {
  display: block;
  font-size: 17px;
  margin-bottom: 6px;
  color: var(--accent);
}
.essay .caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--accent);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret {
  50% { opacity: 0; }
}

.t-portrait {
  background:
    radial-gradient(circle at 80% 0%, rgba(139, 30, 45, 0.08), transparent 55%),
    var(--surface);
}
.t-portrait img {
  border-radius: 16px;
  margin-bottom: 18px;
}
.floaty {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.floaty li {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(139, 30, 45, 0.08);
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 700;
  animation: bob 5s ease-in-out infinite;
}
.floaty li:nth-child(2) {
  animation-delay: -1.6s;
}
.floaty li:nth-child(3) {
  animation-delay: -3.2s;
}

.slider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.slider-track {
  position: relative;
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: rgba(217, 201, 181, 0.7);
}
.slider-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  transition: width 1.8s var(--ease-out) 0.3s;
}
.slider-knob {
  position: absolute;
  top: 50%;
  left: 0;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent);
  box-shadow: 0 4px 12px rgba(139, 30, 45, 0.3);
  transition: left 1.8s var(--ease-out) 0.3s;
}
.tile.in .slider-fill {
  width: 62%;
}
.tile.in .slider-knob {
  left: 62%;
}
.slider-num {
  min-width: 3.2em;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.slider-num::after {
  content: '%';
  font-size: 0.6em;
}

.verdicts {
  display: flex;
  gap: 6px;
  margin-top: 24px;
  padding: 5px;
  border-radius: 999px;
  background: var(--tint);
}
.verdicts span {
  flex: 1;
  text-align: center;
  padding: 10px 4px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
  transition:
    background 0.45s var(--ease),
    color 0.45s var(--ease),
    transform 0.45s var(--ease-out);
}
.verdicts span.on {
  background: var(--accent);
  color: var(--surface);
  transform: scale(1.04);
  box-shadow: 0 8px 18px -6px rgba(139, 30, 45, 0.45);
}

.bars {
  margin-top: 24px;
  height: 130px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding: 0 4px;
  border-bottom: 1px solid var(--border);
}
.bars span {
  flex: 1;
  height: 4px;
  border-radius: 6px 6px 2px 2px;
  background: rgba(159, 68, 78, 0.3);
  transition: height 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms + 0.3s);
}
.bars span.now {
  background: linear-gradient(var(--accent-soft), var(--accent));
}
.tile.in .bars span {
  height: calc(var(--h) * 100%);
}

.map {
  position: relative;
  height: 130px;
  margin-bottom: 20px;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(28deg, transparent 46%, rgba(255, 253, 248, 0.95) 46% 52%, transparent 52%),
    linear-gradient(-62deg, transparent 58%, rgba(255, 253, 248, 0.95) 58% 62%, transparent 62%),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(217, 201, 181, 0.55) 22px 23px),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(217, 201, 181, 0.55) 22px 23px),
    var(--tint);
}
.pin {
  position: absolute;
  z-index: 1;
  left: 56%;
  top: 46%;
  width: 22px;
  height: 22px;
  margin: -22px 0 0 -11px;
  border-radius: 50% 50% 50% 0;
  background: var(--accent);
  transform: rotate(-45deg);
  box-shadow: 0 6px 12px rgba(139, 30, 45, 0.35);
  animation: pin-drop 1s var(--ease-out) both;
}
.tile:not(.in) .pin {
  animation-play-state: paused;
}
@keyframes pin-drop {
  from { translate: 0 -40px; opacity: 0; }
}
.pin::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface);
}
.map::after {
  content: '';
  position: absolute;
  left: 56%;
  top: 46%;
  width: 18px;
  height: 8px;
  margin: -2px 0 0 -9px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: ripple 2.2s var(--ease) infinite;
}
@keyframes ripple {
  from { transform: scale(0.6); opacity: 0.9; }
  to { transform: scale(4); opacity: 0; }
}

/* ── 키즈 ────────────────────────────────────────────── */
.kids {
  position: relative;
  background: var(--kids);
  overflow: hidden;
  isolation: isolate;
}
.kids-room {
  position: absolute;
  inset: 0 0 auto 0;
  height: 560px;
  z-index: -1;
  background: url('/assets/site/kids_room.webp') center 30% / cover no-repeat;
  opacity: 0.24;
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
  mask-image: linear-gradient(#000 40%, transparent);
}
.kids-mark {
  width: 124px;
  margin-bottom: 16px;
}
.fan {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin: 8px 0 64px;
}
.fan figure {
  margin: 0 -2.5%;
  width: clamp(130px, 25vw, 270px);
  transition: transform 1.2s var(--ease-out);
}
.fan .phone {
  border-radius: clamp(22px, 3vw, 36px);
  padding: clamp(5px, 0.7vw, 8px);
}
.fan .phone > img {
  border-radius: clamp(17px, 2.3vw, 28px);
}
.fan figcaption {
  margin-top: 16px;
  text-align: center;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.6s var(--ease) 0.8s;
}
.fan figure:nth-child(1) {
  transform: translateX(60%) scale(0.92);
}
.fan figure:nth-child(2) {
  position: relative;
  z-index: 1;
}
.fan figure:nth-child(3) {
  transform: translateX(-60%) scale(0.92);
}
.fan.in figure:nth-child(1) {
  transform: translateX(-4%) translateY(18px) rotate(-7deg);
}
.fan.in figure:nth-child(2) {
  transform: translateY(-16px);
}
.fan.in figure:nth-child(3) {
  transform: translateX(4%) translateY(18px) rotate(7deg);
}
.fan.in figcaption {
  opacity: 1;
}
.kids-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
@media (min-width: 700px) {
  .kids-features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .kids-features {
    grid-template-columns: repeat(3, 1fr);
  }
}
.kids-features li {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 14px;
  align-content: start;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow);
}
.js .kids-features li.reveal {
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.6s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms), 0s;
}
.js .kids-features li.in:hover {
  transform: translateY(-4px) rotate(-0.4deg);
}
.kids-features img {
  width: 56px;
  grid-row: span 2;
  border-radius: 12px;
}
.kids-features b {
  font-size: 15.5px;
}
.kids-features span {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
}

/* ── 마무리 ──────────────────────────────────────────── */
.final {
  padding-top: 20px;
}
.final-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(56px, 8vw, 96px) 24px;
  border-radius: 36px;
  text-align: center;
  color: var(--bg);
  background:
    radial-gradient(circle at 20% 0%, rgba(159, 68, 78, 0.9), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(217, 201, 181, 0.22), transparent 50%),
    var(--accent);
  box-shadow: 0 40px 80px -30px rgba(139, 30, 45, 0.55);
}
.final-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('/assets/site/paper_grain.png');
  background-size: 43px;
  opacity: 0.12;
  mix-blend-mode: screen;
}
.final-covers img {
  position: absolute;
  z-index: -1;
  left: var(--x);
  top: var(--y);
  width: clamp(64px, 8vw, 104px);
  border-radius: 5px;
  box-shadow: 0 20px 40px rgba(34, 34, 34, 0.35);
  rotate: var(--r);
  opacity: 0.9;
  animation: bob 7s ease-in-out infinite;
}
.final-covers img:nth-child(2) { animation-delay: -2s; }
.final-covers img:nth-child(3) { animation-delay: -4s; }
.final-covers img:nth-child(4) { animation-delay: -5.5s; }
@media (max-width: 700px) {
  .final-covers img {
    opacity: 0.35;
  }
}
.final-art {
  width: 150px;
  height: 150px;
  margin: 0 auto 22px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid rgba(248, 241, 231, 0.9);
  box-shadow: 0 16px 40px rgba(34, 34, 34, 0.3);
}
.final h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 6.4vw, 72px);
  letter-spacing: -0.03em;
}
.final .lede {
  margin: 10px auto 30px;
  color: rgba(248, 241, 231, 0.85);
}
.waitlist-on-dark {
  margin-inline: auto;
  background: rgba(248, 241, 231, 0.14);
  border-color: rgba(248, 241, 231, 0.3);
  box-shadow: none;
}
.waitlist-on-dark input {
  color: var(--bg);
}
.waitlist-on-dark input::placeholder {
  color: rgba(248, 241, 231, 0.7);
}
.waitlist-on-dark input:focus {
  outline-color: rgba(248, 241, 231, 0.5);
}
.waitlist-on-dark button {
  background: var(--bg);
  color: var(--accent);
}
.waitlist-on-dark .waitlist-note {
  left: 0;
  text-align: center;
  color: rgba(248, 241, 231, 0.75);
}
.waitlist-on-dark .waitlist-note[data-state='ok'] {
  color: var(--bg);
}

/* 움직임을 줄인 사람 — 밑줄은 처음부터 그어 둔다 */
@media (prefers-reduced-motion: reduce) {
  .hl path {
    stroke-dashoffset: 0;
  }
}

/* ── 책을 이렇게 읽어 둬요 — 실제 분석 한 권을 펼친다 ─────────────── */
.anatomy {
  background: linear-gradient(var(--bg), rgba(242, 232, 220, 0.6) 45%, var(--bg));
}
.anatomy-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .anatomy-grid {
    grid-template-columns: 300px 1fr;
    gap: 64px;
    align-items: start;
  }
  .specimen {
    position: sticky;
    top: 110px;
  }
}
.specimen {
  margin: 0;
  display: grid;
  justify-items: center;
  text-align: center;
}
.specimen-cover {
  position: relative;
  width: 210px;
  rotate: -3deg;
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -18px rgba(34, 34, 34, 0.4),
    0 0 0 1px rgba(34, 34, 34, 0.05);
}
/* 책을 훑는 빛 — 위에서 아래로 */
.scan::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -30%;
  height: 30%;
  background: linear-gradient(transparent, rgba(255, 253, 248, 0.55) 70%, rgba(139, 30, 45, 0.5) 72%, transparent 74%);
  animation: scan 3.2s var(--ease) infinite;
  animation-play-state: paused;
}
.specimen.in .scan::before {
  animation-play-state: running;
}
@keyframes scan {
  0% { top: -30%; }
  70%, 100% { top: 110%; }
}
.specimen figcaption {
  margin-top: 26px;
  display: grid;
  gap: 4px;
}
.specimen strong {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
}
.specimen figcaption span {
  color: var(--text-dim);
  font-size: 14px;
}
.specimen em {
  margin-top: 10px;
  font-family: var(--serif);
  font-style: normal;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--accent);
}

.layers {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.layer {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid rgba(217, 201, 181, 0.6);
  box-shadow: var(--shadow);
}
.layer-name {
  align-self: start;
  justify-self: start;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(139, 30, 45, 0.08);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.layer p {
  margin: 10px 0 0;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.65;
}
.layer-quiet {
  background: var(--tint);
  box-shadow: none;
}
.layer-quiet p {
  margin: 0;
}
.layer-quiet b {
  color: var(--text);
}
@media (max-width: 520px) {
  .layer {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(217, 201, 181, 0.95);
  background: var(--bg);
  font-size: 13.5px;
  font-weight: 600;
}
/* 보이면 꼬리표가 하나씩 붙는다 */
.js .layer .chips li {
  opacity: 0;
  transform: translateY(6px) scale(0.92);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.5s var(--ease-out);
}
.js .layer.in .chips li {
  opacity: 1;
  transform: none;
}
.layer.in .chips li:nth-child(1) { transition-delay: 0.35s; }
.layer.in .chips li:nth-child(2) { transition-delay: 0.47s; }
.layer.in .chips li:nth-child(3) { transition-delay: 0.59s; }
.layer.in .chips li:nth-child(4) { transition-delay: 0.71s; }
.chips-strong li {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--surface);
}
.chips .veiled {
  filter: blur(4.5px);
  user-select: none;
}
.facets {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px 12px;
  margin: 0;
  align-items: center;
}
.facets dt {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 600;
}
.facets dd {
  margin: 0;
}
.meters {
  display: grid;
  gap: 10px;
}
.meter {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
}
.meter b {
  font-weight: 600;
  color: var(--text-dim);
}
.meter small {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
}
.cells {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.cells i {
  height: 9px;
  border-radius: 99px;
  background: rgba(217, 201, 181, 0.6);
  transition: background 0.5s var(--ease);
}
.layer.in .cells i.on {
  background: var(--accent);
  transition-delay: calc(0.4s + var(--k) * 0.16s);
}


/* 키즈 — 아이 책은 이렇게 읽어 둬요(실제 분석 「알사탕」) */
.kid-anatomy {
  margin: 0 0 56px;
}
.kid-anatomy > h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.02em;
}
.kid-anatomy > .lede {
  max-width: 34em;
  margin-bottom: 32px;
}
.kid-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) {
  .kid-grid {
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: start;
  }
  .kid-specimen {
    position: sticky;
    top: 110px;
  }
}
.kid-specimen .specimen-cover {
  width: 190px;
  rotate: 3deg;
  border-radius: 12px;
}
.kid-specimen em {
  max-width: 15em;
  margin-inline: auto;
}
.kid-cards {
  display: grid;
  gap: 14px;
}
@media (min-width: 640px) {
  .kid-cards {
    grid-template-columns: 1fr 1fr;
  }
  .kcard-when {
    grid-column: span 2;
  }
}
.kcard {
  padding: 20px 22px;
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow);
}
.kcard h4 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
}
.kcard .kcard-sub {
  margin-top: 16px;
}
.kcard p {
  margin: 8px 0 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.65;
}
.kcard .chips li {
  background: rgba(139, 30, 45, 0.06);
  border-color: rgba(139, 30, 45, 0.18);
}
.kcard .chips-soft li {
  background: var(--surface);
  border-color: rgba(217, 201, 181, 0.95);
}
.js .kcard .chips li {
  opacity: 0;
  transform: translateY(6px) scale(0.92);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.5s var(--ease-out);
}
.js .kcard.in .chips li {
  opacity: 1;
  transform: none;
}
.kcard.in .chips li:nth-child(1) { transition-delay: 0.35s; }
.kcard.in .chips li:nth-child(2) { transition-delay: 0.47s; }
.kcard.in .chips li:nth-child(3) { transition-delay: 0.59s; }
.kcard.in .chips li:nth-child(4) { transition-delay: 0.71s; }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 640px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stats span {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--tint);
  color: var(--text-dim);
  font-size: 12.5px;
}
.stats b {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--text);
}

.loans {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.loans li {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
}
.loans i {
  height: 10px;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  transition: width 1.2s var(--ease-out) 0.4s;
}
.kcard.in .loans i {
  width: calc(var(--v) * 100%);
}
.loans li:nth-child(n + 3) i {
  background: rgba(159, 68, 78, 0.45);
}

/* 머릿속 — 앱(KidMindBrain)처럼 머리 · 뇌 · 물든 영역 · 테두리 · 이름을 한 캔버스에 겹친다 */
.mind-row {
  display: grid;
  gap: 18px;
  align-items: center;
}
.mind {
  position: relative;
  aspect-ratio: 862 / 750;
  container-type: inline-size;
}
.mind > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.mind > img:first-child {
  opacity: 0.55;
  scale: 1.15;
  -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent);
  mask-image: radial-gradient(closest-side, #000 70%, transparent);
}
/* 아직 만나지 않은 영역 — 바래 있되 어디인지는 보이게(2026-10-14 회원님, 너무 흐렸다) */
.mind .area-faint {
  opacity: 0.38;
}
.mind .area,
.mind .edge {
  opacity: 0;
  transition: opacity 1.4s var(--ease) 0.5s;
}
.mind .area-2 {
  transition-delay: 1.3s;
}
.kcard.in .mind .area {
  opacity: 0.9;
}
.kcard.in .mind .edge {
  opacity: 0.75;
}
.mind-label {
  position: absolute;
  left: calc(var(--x) * 100%);
  top: calc(var(--y) * 100%);
  translate: -50% -50%;
  white-space: nowrap;
  font-size: clamp(10px, 3.4cqw, 13px);
  font-weight: 600;
  color: #3e3a36;
  text-shadow: 0 0 6px rgba(255, 253, 248, 0.95);
  opacity: 0.62;
  transition: opacity 0.8s var(--ease) 0.9s;
}
.mind-label.area-2 {
  transition-delay: 1.7s;
}
.kcard.in .mind-label.on {
  opacity: 1;
}
/* 반짝이는 빛 — 영역 색 대신 크림빛 네 갈래 별 */
.spark {
  position: absolute;
  left: calc(var(--x) * 100%);
  top: calc(var(--y) * 100%);
  width: 18px;
  height: 18px;
  translate: -50% -110%;
  background: radial-gradient(circle, rgba(255, 253, 248, 0.95) 0 18%, transparent 19%),
    conic-gradient(from 45deg, transparent 0 20%, rgba(255, 253, 248, 0.9) 22% 28%, transparent 30% 45%,
      rgba(255, 253, 248, 0.9) 47% 53%, transparent 55% 70%, rgba(255, 253, 248, 0.9) 72% 78%,
      transparent 80% 95%, rgba(255, 253, 248, 0.9) 97%);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  mask-image: radial-gradient(circle, #000 30%, transparent 70%);
  opacity: 0;
}
.kcard.in .spark {
  animation: twinkle 1.1s ease-in-out 2s 3;
}
.kcard.in .spark.area-2 {
  animation-delay: 2.4s;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; scale: 0.6; }
  50% { opacity: 1; scale: 1.2; }
}
.mind-row {
  gap: 10px;
}
.mind {
  width: min(100%, 300px);
  margin: -6px auto 0;
}
.mind-legend p {
  margin: 0 0 10px;
}
.mind-legend dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  margin: 0 0 12px;
  font-size: 14px;
}
.mind-legend dt {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--surface);
  font-weight: 700;
  font-size: 13px;
}
.mind-legend dd {
  margin: 0;
  align-self: center;
  font-weight: 600;
}
.mind-legend small {
  color: var(--text-dim);
  font-size: 12.5px;
}

/* 부모가 아이에게 건넬 말 — 말풍선 */
.bubble {
  position: relative;
  display: inline-block;
  margin: 10px 0 0 !important;
  padding: 10px 14px;
  border-radius: 18px 18px 18px 4px;
  background: var(--accent);
  color: var(--surface) !important;
  font-weight: 600;
}
.bubble-2 {
  display: block;
  width: fit-content;
  margin-left: auto !important;
  border-radius: 18px 18px 4px 18px;
  background: var(--tint);
  color: var(--text) !important;
}
.js .kcard-talk .bubble {
  opacity: 0;
  translate: 0 8px;
  transition:
    opacity 0.5s var(--ease-out),
    translate 0.5s var(--ease-out);
}
.js .kcard-talk.in .bubble {
  opacity: 1;
  translate: 0 0;
  transition-delay: 0.4s;
}
.js .kcard-talk.in .bubble-2 {
  transition-delay: 1.1s;
}
.kcard-note {
  background: rgba(242, 232, 220, 0.9);
  box-shadow: none;
}
