/* index.css — 첫 화면·게시판·소설 소개 화면 (index.html · novel.html, 2026-10-31 index.html 에서 나눔) */
:root {
  /* Yuja Lemon System (Primary) — v2 Lemon Refresh */
  --yuja-lemon: #FFE135;
  --yuja-lemon-amber: #F5C800;
  --yuja-forest: #142814;
  --yuja-forest-mid: #1E3D1E;
  --yuja-lemon-tint: #FEFCE8;
  /* Yuja Brand Points */
  --leaf-green: #4CAA48;
  --leaf-green-mid: #388E3C;
  --leaf-green-light: #B8E0B5;
  --leaf-green-tint: #E8F5E7;
  /* Notion Canvas */
  --canvas: #FFFFFF;
  --canvas-cream: #F7F6F3;
  --surface: #F1F0EE;
  --hairline: #E8E7E4;
  --hairline-strong: #D3D1CB;
  /* Text */
  --ink-deep: #1A1A1A;
  --ink: #37352F;
  --charcoal: #4B4945;
  --slate: #6F6E69;
  --steel: #9B9A97;
  --on-dark: #FFFFFF;
  --shadow-card: rgba(15, 15, 15, 0.08) 0px 4px 12px 0px;
  --shadow-frap: 0 0 6px rgba(0, 0, 0, 0.15), 0 8px 12px rgba(0, 0, 0, 0.1);
  /* Persona Colors */
  --color-student: #B8E0B5;
  --color-parent: var(--leaf-green-tint);
  --color-teacher: var(--yuja-lemon-tint);
  --radius-full: 9999px;
  /* Category Colors */
  --cat-1: #FF6B6B;
  /* 긍정 */
  --cat-2: #FFD93D;
  /* 정서지능 */
  --cat-3: #6BCB77;
  /* 안전감 */
  --cat-4: #4D96FF;
  /* 관계감 */
  --cat-5: #9D72FF;
  /* 유능감 */
  --cat-6: #FFA07A;
  /* 자율감 */
  --cat-7: #B0BEC5;
  /* 기타 */
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--canvas-cream);
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Promo Banner ── */
.promo-banner {
  background: var(--leaf-green-light);
  padding: 10px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid #FDE68A;
}

/* ── Top Nav ── */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 16px;
}

.nav-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--yuja-forest);
  text-decoration: none;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-secondary {
  padding: 9px 18px;
  background: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background 150ms ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-secondary:hover {
  background: var(--surface);
}

.btn-primary {
  padding: 11px 22px;
  background: var(--yuja-lemon-amber);
  border: none;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 50px;
}

.btn-primary:hover {
  background: var(--yuja-lemon);
}

.btn-primary:active {
  transform: scale(0.95);
}

/* ── Hero ── */
.hero {
  background: var(--canvas);
  padding: 12px 24px;
  text-align: center;
  transition: padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero:hover {
  padding: 40px 24px;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--leaf-green-light);
  color: #2D7A29;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
}

.feature-band .hero-badge {
  position: absolute;
  top: 12px;
  left: 24px;
  background: rgba(0, 0, 0, 0.1);
  color: var(--ink);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-persona="parent"] .feature-band .hero-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

@media (max-width: 640px) {
  .feature-band .hero-badge {
    display: none;
  }
}

.hero-pre {
  font-size: 18px;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 8px;
}

.hero-main-title {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 900;
  color: var(--ink-deep);
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.title-char {
  display: inline-block;
  cursor: help;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.title-char:hover {
  color: var(--yuja-lemon-amber);
  transform: scale(1.1) translateY(-4px);
}

.title-particle {
  font-size: 0.5em;
  vertical-align: middle;
  color: var(--steel);
  font-weight: 600;
  margin: 0 2px;
}

.hover-message-wrap {
  max-height: 40px;
  overflow: hidden;
  margin-top: 12px;
  padding: 0 24px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero:hover .hover-message-wrap {
  max-height: 200px;
  margin-top: 24px;
}

.hover-message {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--yuja-forest-mid);
  font-weight: 600;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-family: inherit;
}

.message-tag {
  display: block;
  font-size: 13px;
  color: var(--yuja-lemon-amber);
  margin-bottom: 8px;
  font-weight: 800;
  letter-spacing: 1px;
}

.hero-actions {
  display: none;
}

/* ── Persona Switch (Floating) ── */
.floating-actions {
  position: fixed;
  bottom: 32px;
  right: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 90;
  align-items: flex-end;
}

.frap-btn {
  width: 50px;
  height: 50px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-frap);
  transition: transform 150ms ease, color 150ms ease;
  color: var(--charcoal);
  text-decoration: none;
}

.frap-btn:hover {
  color: var(--yuja-lemon-amber);
}

.frap-btn:active {
  transform: scale(0.95);
}

.persona-pill {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  display: flex;
  flex-direction: column;
  padding: 4px;
  box-shadow: var(--shadow-card);
}

.persona-tab {
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--slate);
  cursor: pointer;
  transition: all 150ms ease;
  gap: 2px;
}

.persona-tab:hover {
  color: var(--ink);
}

.persona-tab.active {
  background: var(--yuja-forest);
  color: var(--leaf-green);
}

.persona-tab .icon {
  font-size: 14px;
  line-height: 1;
}

/* ── Main Container ── */
.main-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ── Section Header ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-deep);
  letter-spacing: -0.5px;
}

/* ── Category Tabs ── */
.category-wrap {
  margin: 0 -24px 16px;
  padding: 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.category-row {
  display: flex;
  gap: 8px;
  padding-bottom: 8px;
  width: max-content;
  min-width: 100%;
  justify-content: center;
}

.tab-chip {
  padding: 8px 16px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 200ms ease;
  font-family: inherit;
}

.tab-chip:hover {
  border-color: var(--hairline-strong);
}

.tab-chip-full {
  display: inline;
}

.tab-chip-short {
  display: none;
}

.tab-chip.active.cat-0 {
  background: var(--ink-deep);
  color: #fff;
  border-color: var(--ink-deep);
}

.tab-chip.active.cat-1 {
  background: #FF6B6B;
  color: #fff;
  border-color: #FF6B6B;
}

.tab-chip.active.cat-2 {
  background: #FFD93D;
  color: var(--ink);
  border-color: #FFD93D;
}

.tab-chip.active.cat-3 {
  background: #6BCB77;
  color: #fff;
  border-color: #6BCB77;
}

.tab-chip.active.cat-4 {
  background: #4D96FF;
  color: #fff;
  border-color: #4D96FF;
}

.tab-chip.active.cat-5 {
  background: #9D72FF;
  color: #fff;
  border-color: #9D72FF;
}

.tab-chip.active.cat-6 {
  background: #FFA07A;
  color: #fff;
  border-color: #FFA07A;
}

.tab-chip.active.cat-7 {
  background: #B0BEC5;
  color: #fff;
  border-color: #B0BEC5;
}

/* ── Post Board Container ── */
.board-container {
  background: var(--canvas);
  border-radius: 12px;
  border: 1px solid var(--hairline);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.list-subtitle-box {
  padding: 18px 24px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  transition: background 0.4s ease, color 0.4s ease;
}

.post-list {
  background: var(--canvas);
}

.post-item {
  padding: 20px 22px;
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
  transition: background 200ms ease;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.post-item:last-child {
  border-bottom: none;
}

.post-item:hover {
  background: var(--canvas-cream);
}

.post-avatar {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border: 1px solid var(--hairline);
}

.avatar-student {
  background: #B8E0B5;
  color: #142814;
}

.avatar-parent {
  background: #142814;
  color: #FFFFFF;
}

.avatar-teacher {
  background: #FFE135;
  color: #142814;
}

.post-body {
  flex: 1;
  min-width: 0;
}

.post-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.cat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  color: #fff;
  white-space: nowrap;
}

.cat-badge.cat-1 {
  background: #FF6B6B;
}

/* 긍정 */
.cat-badge.cat-2 {
  background: #FFD93D;
  color: var(--ink);
}

/* 정서지능 */
.cat-badge.cat-3 {
  background: #6BCB77;
}

/* 안전감 */
.cat-badge.cat-4 {
  background: #4D96FF;
}

/* 관계감 */
.cat-badge.cat-5 {
  background: #9D72FF;
}

/* 유능감 */
.cat-badge.cat-6 {
  background: #FFA07A;
}

/* 자율감 */
.cat-badge.cat-7 {
  background: #B0BEC5;
}

/* 기타 */
.cat-badge .short-cat {
  display: none;
}

/* ── Track Switcher (Two-Track System) ── */
.track-switcher-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.track-switcher {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: 9999px;
  padding: 4px;
  gap: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  flex-wrap: wrap;
  justify-content: center;
}
.track-btn {
  padding: 9px 18px;
  border: none;
  border-radius: 9999px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
  cursor: pointer;
  transition: all 180ms ease;
  white-space: nowrap;
  font-family: inherit;
}
.track-btn:hover {
  color: var(--ink);
}
.track-btn.active {
  background: var(--canvas);
  color: var(--ink-deep);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.track-btn.track-saga.active {
  background: var(--yuja-forest);
  color: #FFE135;
}
.track-btn.track-essay.active {
  background: var(--yuja-lemon-amber);
  color: #FFFFFF;
}

/* ── Track Badges ── */
.track-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  white-space: nowrap;
}
.track-badge.saga-badge {
  background: var(--yuja-forest);
  color: #FFE135;
  letter-spacing: -0.3px;
}
.track-badge.essay-badge {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.post-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-deep);
  line-height: 1.4;
}

.post-intro {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.post-date {
  font-size: 12px;
  color: var(--steel);
  font-weight: 500;
}

.post-date-visible {
  font-size: 11px;
  color: var(--steel);
  font-weight: 500;
  margin: 3px 0 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-tag {
  font-size: 11px;
  color: #2563EB;
  /* Blue */
  background: rgba(37, 99, 235, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.arrow-col {
  flex-shrink: 0;
  color: var(--hairline-strong);
  padding-top: 12px;
  transition: color 200ms, transform 200ms;
}

.post-item:hover .arrow-col {
  color: var(--yuja-lemon-amber);
  transform: translateX(3px);
}

/* ── Empty ── */
.empty-state {
  padding: 80px 40px;
  text-align: center;
  color: var(--steel);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

/* ── Feature Band (Deep Green) ── */
.feature-band {
  background: var(--yuja-forest);
  padding: 36px 32px;
  text-align: center;
  margin: 0 -24px;
  position: relative;
  transition: all 0.4s ease;
  border-radius: 0;
}

.feature-band h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: inherit;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.feature-band p {
  font-size: 16px;
  color: inherit;
  opacity: 0.8;
  margin-bottom: 0;
}

.post-count {
  position: absolute;
  bottom: 12px;
  right: 32px;
  color: inherit;
  opacity: 0.9;
  font-size: 14px;
  font-weight: 700;
}

.btn-on-dark {
  padding: 14px 28px;
  background: var(--canvas);
  border: none;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--yuja-forest);
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  transition: transform 150ms ease;
}

.btn-on-dark:active {
  transform: scale(0.95);
}

/* ── Pagination ── */
.pagination-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  gap: 12px;
}

.page-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline);
  background: var(--canvas);
  border-radius: 4px;
  font-size: 14px;
  color: var(--slate);
  cursor: pointer;
  transition: all 150ms ease;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--steel);
  color: var(--ink);
}

.page-btn.active {
  background: var(--yuja-lemon-tint);
  border-color: var(--yuja-lemon-amber);
  color: var(--yuja-lemon-amber);
  font-weight: 700;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.page-nav-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-nav-text:hover {
  color: var(--ink);
}

.rows-selector-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

/* 소설 탭 '첫 화부터 읽기' (2026-10-20) — 목록 머리 왼쪽. 누르면 프롤로그부터, 다시 누르면 최신 화부터 */
.sort-first-btn {
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 16px;
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  background: var(--canvas);
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  white-space: nowrap;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.sort-first-btn:hover { border-color: var(--hairline-strong); }

.sort-first-btn.active {
  background: var(--ink-deep);
  border-color: var(--ink-deep);
  color: var(--canvas);
}

.post-count-label { white-space: nowrap; }

.post-count-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--slate);
}

.rows-select {
  padding: 6px 12px;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  font-size: 13px;
  color: var(--charcoal);
  background: var(--canvas);
  cursor: pointer;
  outline: none;
}

.list-subtitle {
  display: none;
}

/* ── Footer ── */
footer {
  background: var(--yuja-forest);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 32px 24px;
  font-size: 13px;
}

footer .footer-logo {
  font-size: 16px;
  font-weight: 800;
  color: var(--leaf-green);
  margin-bottom: 8px;
}

/* ── Persona fade ── */
.persona-fade {
  animation: pfade 0.35s ease;
}

@keyframes pfade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .top-nav {
    padding: 0 16px;
  }

  .hero {
    padding: 48px 16px 40px;
  }

  .main-container {
    padding: 28px 16px 60px;
  }

  .tab-chip-full {
    display: none;
  }

  .tab-chip-short {
    display: inline;
  }

  .tab-chip {
    padding: 6px 12px;
    font-size: 12px;
  }

  .nav-actions .btn-secondary span {
    display: none;
  }

  .post-intro,
  .post-meta,
  .arrow-col {
    display: none;
  }

  .floating-actions {
    bottom: 24px;
    right: 16px;
  }

  .frap-btn {
    width: 44px;
    height: 44px;
  }

  .persona-tab {
    width: 38px;
    height: 38px;
    font-size: 9px;
  }

  /* Mobile Post List Optimization */
  .post-item {
    padding: 16px;
  }

  .post-avatar {
    display: none;
  }

  .post-title-row {
    display: block;
    margin-bottom: 0;
  }

  .cat-badge {
    display: inline-block;
    padding: 1px 5px;
    margin-right: 6px;
    vertical-align: middle;
  }

  .cat-badge .full-cat {
    display: none;
  }

  .cat-badge .short-cat {
    display: inline;
  }

  .post-title {
    display: inline;
    vertical-align: middle;
    font-size: 15px;
  }
}

/* Side Nav (Left/Right Sidebars) */
.side-nav-btn {
  position: fixed;
  top: 0;
  bottom: 0;
  width: calc((100vw - 1000px) / 2);
  min-width: 80px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yuja-lemon-amber);
  cursor: pointer;
  z-index: 80;
  transition: all 0.3s ease;
  opacity: 0;
  border: none;
  outline: none;
}

.side-nav-btn:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.02);
}

.side-nav-btn svg {
  width: 32px;
  height: 32px;
  transition: transform 0.2s ease;
}

.side-nav-btn.left {
  left: 0;
}

.side-nav-btn.left:hover svg {
  transform: translateX(-4px);
}

.side-nav-btn.right {
  right: 0;
}

.side-nav-btn.right:hover svg {
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .side-nav-btn {
    display: none !important;
  }
}

.post-speaker-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 4px;
  padding: 2px 8px 2px 3px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--ink);
  width: fit-content;
}
.speaker-avatar-img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.speaker-name-text strong {
  color: var(--ink-deep);
  font-weight: 700;
}
.speaker-role-text {
  color: var(--slate);
  font-size: 11px;
}

/* ═══════════════════════════════════════════════════════════
   LANDING & HERO ACTION STYLES
   ═══════════════════════════════════════════════════════════ */
.landing-wrapper {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── 상단 내비 확장 ── */
.nav-links-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-link-item {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--slate);
  text-decoration: none;
  transition: color 150ms ease;
  white-space: nowrap;
}
.nav-link-item:hover {
  color: var(--ink-deep);
}
.nav-enter-btn {
  padding: 7px 16px;
  background: var(--ed-ink, #111111);
  color: #FFFFFF !important;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--ed-ink, #111111);
  transition: all 150ms ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}
.nav-enter-btn:hover {
  background: #333333;
  border-color: #333333;
  transform: translateY(-1px);
}
.nav-back-home-btn {
  padding: 6px 14px;
  background: transparent;
  color: var(--ed-ink, #111111) !important;
  border: 1px solid var(--ed-line-strong, #D9D9D9);
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease;
  white-space: nowrap;
  font-family: inherit;
}
.nav-back-home-btn:hover {
  background: var(--ed-bg-sub, #F7F7F7);
  border-color: var(--ed-ink, #111111);
}
@media (max-width: 768px) {
  .nav-links-wrap .nav-link-item {
    display: none;
  }
}

/* ── 상단 '이야기속으로' 바로가기 액션 버튼 ── */
.hero-action-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.btn-hero-enter {
  padding: 12px 26px;
  background: var(--ed-ink, #111111);
  color: #FFFFFF !important;
  border-radius: 9999px;
  font-size: 14.5px;
  font-weight: 700;
  border: 1px solid var(--ed-ink, #111111);
  cursor: pointer;
  transition: all 180ms ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.01em;
  font-family: inherit;
}
.btn-hero-enter:hover {
  background: #333333;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}
.btn-hero-scroll {
  padding: 12px 22px;
  background: #FFFFFF;
  color: var(--ed-ink, #111111) !important;
  border: 1px solid var(--ed-line-strong, #D9D9D9);
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 180ms ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}
.btn-hero-scroll:hover {
  background: var(--ed-bg-sub, #F7F7F7);
  border-color: var(--ed-ink, #111111);
  transform: translateY(-1px);
}

/* ── 히어로 액션: 3시점 렌즈 ── */
.lens-hero-section {
  padding: 30px 0 46px;
  text-align: center;
}
.lens-hero-title {
  font-family: var(--ed-serif, "Noto Serif KR", serif);
  font-size: clamp(23px, 3.8vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-deep);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.lens-hero-subtitle {
  font-size: clamp(13.5px, 1.8vw, 15.5px);
  color: var(--slate);
  max-width: 640px;
  margin: 0 auto 26px;
  line-height: 1.6;
  word-break: keep-all;
}

/* 3단 토글 스위처 */
.lens-tabs-wrap {
  display: inline-flex;
  background: #EFECE6;
  padding: 4px;
  border-radius: 9999px;
  gap: 4px;
  margin-bottom: 22px;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--hairline-strong, #D3D1CB);
}
.lens-tab-btn {
  padding: 9px 18px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: var(--slate);
  cursor: pointer;
  transition: all 200ms ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-family: inherit;
}
.lens-tab-btn.active {
  background: #FFFFFF;
  color: var(--ink-deep);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.lens-tab-btn:hover:not(.active) {
  color: var(--ink-deep);
}
/* 인물 고르기 줄 (2026-10-06) */
.lens-cast-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 22px;
  max-width: 100%;
  overflow-x: auto;
  padding: 4px 4px 6px;
  scrollbar-width: none;
}
.lens-cast-row::-webkit-scrollbar { display: none; }
.lens-cast-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
  width: 64px;
}
.lens-cast-face {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--hairline-strong, #D3D1CB);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: border-color 200ms ease, transform 200ms ease, opacity 200ms ease;
  opacity: 0.62;
}
.lens-cast-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lens-cast-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--slate);
  white-space: nowrap;
}
.lens-cast-btn:hover .lens-cast-face { opacity: 0.9; }
.lens-cast-btn.active .lens-cast-face {
  border-color: var(--ink-deep, #181818);
  opacity: 1;
  transform: translateY(-2px);
}
.lens-cast-btn.active .lens-cast-name { color: var(--ink-deep, #181818); font-weight: 800; }
.lens-cast-hint {
  font-size: 12.5px;
  color: var(--slate);
  margin: -12px 0 18px;
}
@media (max-width: 600px) {
  .lens-cast-row { justify-content: flex-start; gap: 10px; }
  .lens-cast-btn { width: 58px; }
  .lens-cast-face { width: 48px; height: 48px; }
}


/* 렌즈 디스플레이 카드 (스테이지) */
.lens-stage-card {
  background: #FFFFFF;
  border: 1.5px solid var(--hairline-strong, #D3D1CB);
  border-radius: 20px;
  padding: 30px 32px;
  text-align: left;
  box-shadow: 0 12px 32px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
  transition: all 250ms ease;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 30px;
  align-items: center;
}
@media (max-width: 900px) {
  .lens-stage-card {
    grid-template-columns: 1fr;
    padding: 22px 18px;
    gap: 18px;
  }
}
.lens-stage-left {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.lens-art-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hairline, #E8E7E4);
  background: #F7F6F3;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.lens-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lens-art-img.is-fallback {
  object-fit: contain;
  padding: 10px 0 0;
  background: #F7F6F3;
}
.lens-char-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.lens-char-avatar-frame {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}
.lens-char-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lens-char-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-deep);
  line-height: 1.2;
}
.lens-char-role {
  font-size: 11px;
  color: var(--slate);
  line-height: 1.3;
}

.lens-stage-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lens-quote-box {
  font-family: var(--ed-serif, "Noto Serif KR", serif);
  font-size: clamp(16px, 2.2vw, 19px);
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink-deep);
  word-break: keep-all;
}
.lens-monologue-p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--charcoal);
  word-break: keep-all;
}
.lens-psych-note {
  background: #FAF8F5;
  border: 1px solid #ECE7DF;
  border-radius: 10px;
  padding: 13px 18px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.lens-scene-heading {
  font-family: var(--ed-serif, "Noto Serif KR", serif);
  font-size: 14px;
  font-weight: 700;
  color: #181818;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.lens-scene-desc {
  font-size: 13px;
  color: #666666;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.lens-read-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-deep, #181818);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.lens-read-link:hover { opacity: 0.7; }

/* ── 공통 섹션 스타일 ── */
.landing-section {
  padding: 50px 0;
  border-top: 1px solid var(--hairline, #E8E7E4);
}
.section-head {
  text-align: center;
  margin-bottom: 34px;
}
.section-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ed-accent, #8F6B12);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.section-title {
  font-family: var(--ed-serif, "Noto Serif KR", serif);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--ink-deep);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.section-desc {
  font-size: 14px;
  color: var(--slate);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.55;
  word-break: keep-all;
}

/* ── 6대 마음엔진 그리드 ── */
.engines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 860px) {
  .engines-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .engines-grid {
    grid-template-columns: 1fr;
  }
}
.engine-card {
  background: #FFFFFF;
  border: 1px solid var(--hairline, #E8E7E4);
  border-radius: 14px;
  padding: 20px 18px;
  transition: all 200ms ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.engine-card:hover {
  border-color: var(--ink-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.engine-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.engine-char-badge {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ed-serif, "Noto Serif KR", serif);
  font-size: 15px;
  font-weight: 700;
  background: #F7F5F0;
  color: var(--ed-ink, #111111);
  border: 1px solid #E6E3DA;
}
.engine-en-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--steel, #9B9A97);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.engine-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink-deep);
}
.engine-slogan {
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.45;
}

/* ── 책 소개 (심야 교무실의 고백) ── */
.book-curator-card {
  background: #FAF8F5;
  border: 1px solid #E5E1D8;
  border-radius: 16px;
  padding: 34px 40px;
  max-width: 800px;
  margin: 0 auto 30px;
  position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.02);
}
@media (max-width: 640px) {
  .book-curator-card {
    padding: 24px 18px;
  }
}
.book-curator-p {
  font-family: var(--ed-serif, "Noto Serif KR", serif);
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.8;
  color: var(--ink-deep);
  word-break: keep-all;
  margin-bottom: 14px;
}
.book-curator-author {
  text-align: right;
  font-family: var(--ed-serif, "Noto Serif KR", serif);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ed-accent, #8F6B12);
  margin-top: 20px;
}

/* 4권 로드맵 */
.saga-volumes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .saga-volumes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.saga-vol-card {
  background: #FFFFFF;
  border: 1px solid var(--hairline, #E8E7E4);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
}
.saga-vol-num {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--ed-accent, #8F6B12);
  margin-bottom: 3px;
}
.saga-vol-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-deep);
  margin-bottom: 3px;
}
.saga-vol-ep {
  font-size: 10.5px;
  color: var(--steel, #9B9A97);
}

/* ── CTA 배너 (가독성 높은 에디토리얼 테마 버튼) ── */
.landing-cta-banner {
  background: #181918;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 40px 32px;
  text-align: center;
  color: #FFFFFF;
  margin: 36px auto 20px;
  max-width: 820px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}
.cta-banner-title {
  font-family: var(--ed-serif, "Noto Serif KR", serif);
  font-size: clamp(21px, 3.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: #FFFFFF;
}
.cta-banner-desc {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 26px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  word-break: keep-all;
}
.cta-banner-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-cta-primary {
  padding: 13px 28px;
  border-radius: 9999px;
  background: #FFFFFF !important;
  color: #111111 !important;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid #FFFFFF;
  cursor: pointer;
  transition: all 180ms ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  letter-spacing: -0.01em;
  font-family: inherit;
}
.btn-cta-primary:hover {
  background: #F4EFE6 !important;
  border-color: #F4EFE6;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}
.btn-cta-secondary {
  padding: 13px 24px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #FFFFFF !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 180ms ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.01em;
  font-family: inherit;
}
.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

/* 책 소개 3인 고백 탭 */
.letter-tabs-wrap {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.letter-tab-btn {
  padding: 8px 18px;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 1px solid var(--hairline-strong, #D3D1CB);
  font-size: 13px;
  font-weight: 700;
  color: var(--slate);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 150ms ease;
  font-family: inherit;
}
.letter-tab-btn.active {
  background: var(--yuja-forest, #142814);
  color: #FFFFFF !important;
  border-color: var(--yuja-forest, #142814);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.book-curator-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.book-curator-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.book-curator-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink-deep);
}
.book-curator-role {
  font-size: 11.5px;
  color: var(--slate);
}

/* 6학년 1반 파노라마 씬 */
.classroom-panorama-wrap {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 28px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  border: 1px solid var(--hairline, #E8E7E4);
  background: #FAF8F5;
}
.classroom-panorama-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.classroom-panorama-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 18px;
  background: linear-gradient(transparent, rgba(20, 40, 20, 0.75));
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* 검색로봇용 정적 본문 (React 렌더 전 잠깐 보임) — DESIGN v3 Editorial 결 */
.seo-fallback { max-width: 680px; margin: 0 auto; padding: 48px 20px; font-family: 'Pretendard', sans-serif; color: #111; line-height: 2.0; font-size: 17px; word-break: keep-all; }
.js-on .seo-fallback { visibility: hidden; }
.seo-fallback h1 { font-family: 'Noto Serif KR', serif; font-size: 28px; margin-bottom: 12px; }
.seo-fallback a { color: #8F6B12; }
