/* 첫 페이지 이야기 칸: '읽히기 시작해요'(수강생 변화) · '계속해서 함께해요'(체험 대시보드)
   원래 classes.html 도입부에 있던 것을 2026-11-09 첫 페이지로 옮김. 캐릭터 칸은 .dme (대표 소개 .me 와 구분) */
/* ── 도입부: 고민 → 변화 → 복습 환경 → 클래스 고르기 ── */
.intro { padding: 88px 0; }
/* 제목·작은 제목·설명 글씨는 첫 페이지 다른 칸(.h2 · .eyebrow · .lead)과 똑같이 */
.intro .eyebrow { font-size: var(--fs-sm); font-weight: 700; color: var(--burgundy); margin-bottom: 12px; }
.intro h1, .intro h2 { margin-top: 0; font-size: clamp(23px, 3vw, 33px); font-weight: 800; line-height: 1.3; letter-spacing: -0.04em; color: var(--ink); }
.intro h1 em, .intro h2 em { font-style: normal; color: var(--burgundy); }
.intro .lead { margin-top: 14px; font-size: var(--fs-body); line-height: 1.75; color: var(--text); }

/* 2. 변화 */
.change { text-align: center; background: var(--bg); }
/* 후기: 자동으로 흐르는 대화 말풍선 (수업 전 = 왼쪽 회색, 수업 후 = 오른쪽 버건디). 커서를 올려도 계속 흐름 */
.chats { margin-top: 44px; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); }
.chats-track { display: flex; gap: 20px; width: max-content; animation: chatflow 70s linear infinite; }
@keyframes chatflow { to { transform: translateX(calc(-50% - 10px)); } }
.chat { margin: 0; width: 340px; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.chat .bb { position: relative; max-width: 86%; padding: 12px 16px; font-size: var(--fs-body-s); line-height: 1.6; border-radius: 18px; }
.chat .bb b { display: block; font-size: var(--fs-xs); font-weight: 700; margin-bottom: 2px; }
.chat .before { align-self: flex-start; background: var(--surface); color: var(--muted); border-bottom-left-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.chat .before b { color: var(--muted); }
.chat .after { align-self: flex-end; background: var(--burgundy); color: #fff; font-weight: 600; border-bottom-right-radius: 4px; }
.chat .after b { color: rgba(255,255,255,.75); }
.chat figcaption { align-self: flex-end; font-size: var(--fs-cap); color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .chats { overflow-x: auto; } .chats-track { animation: none; } }
.change .lead { margin-top: 36px; }
.change .change-cta { margin-top: 24px; }
.change .lead em { font-style: normal; font-weight: 800; color: var(--burgundy); }

/* 2-1. 복습 환경: 체험용 대시보드 (눌러서 체크하면 다음 미션이 열림) */
.keep { text-align: center; }
.keep-grid { margin-top: 44px; text-align: left; }
.dash { border: 1px solid var(--line); border-radius: 20px; padding: 24px; background: var(--surface); box-shadow: 0 16px 40px rgba(28,27,27,.08); }
.dash .top-l { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-cap); font-weight: 700; color: var(--muted); }
.dash .try { color: var(--burgundy); }
.dash .wk { margin-top: 8px; display: flex; justify-content: space-between; align-items: baseline; }
.dash .wk strong { font-size: var(--fs-h4); font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.dash .wk span { font-size: var(--fs-body-s); font-weight: 800; color: var(--burgundy); }
.dash .bar { margin-top: 10px; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.dash .bar i { display: block; height: 100%; width: 0; background: var(--burgundy); border-radius: 99px; transition: width .4s; }
.ms { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ms button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font: inherit; font-size: var(--fs-body); text-align: left; color: var(--muted); cursor: default; transition: border-color .2s, background .2s, color .2s; }
.ms .ic { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; box-sizing: border-box; }
.ms .ic svg { width: 12px; height: 12px; }
.ms .tx { flex: 1; }
.ms .hint { font-size: var(--fs-cap); font-weight: 700; color: var(--burgundy); white-space: nowrap; }
.ms .locked .ic { border: 0; color: var(--muted); }
.ms .now { border-color: var(--burgundy); box-shadow: 0 0 0 1px var(--burgundy); color: var(--ink); font-weight: 700; cursor: pointer; }
.ms .now:hover { background: var(--burgundy-soft); }
.ms .now .ic { border-color: var(--burgundy); }
.ms .done { background: var(--bg); color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(138,135,135,.6); }
.ms .done .ic { border-color: var(--burgundy); background: var(--burgundy); color: #fff; }
.dash .foot { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; font-size: var(--fs-sm); color: var(--muted); }
.dash .foot b { color: var(--ink); }
.dash .open { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--burgundy); color: #fff; font-size: var(--fs-body-s); font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dash .open[hidden] { display: none; }
.dash .open button { flex-shrink: 0; border: 0; border-radius: 99px; padding: 6px 12px; background: rgba(255,255,255,.18); color: #fff; font: inherit; font-size: var(--fs-cap); font-weight: 700; cursor: pointer; }
.dash .open button:hover { background: rgba(255,255,255,.3); }
@keyframes pop { 0% { transform: scale(.96); opacity: 0; } 100% { transform: none; opacity: 1; } }
.dash .open:not([hidden]) { animation: pop .35s ease-out; }
@media (prefers-reduced-motion: reduce) { .dash .open:not([hidden]) { animation: none; } .dash .bar i { transition: none; } }
.keep .lead { margin-top: 36px; }
.keep .lead strong, .keep .lead b { color: var(--ink); }
.keep .keep-note { margin-top: 10px; font-size: var(--fs-sm); color: var(--muted); }

/* 체험 대시보드: 캐릭터 레벨업 + 포인트 */
.dme { display: flex; align-items: center; gap: 12px; }
.dme .face { flex-shrink: 0; width: 52px; height: 60px; border-radius: 14px; background: var(--bg); display: grid; place-items: end center; overflow: hidden; }
.dme .face svg { display: block; transition: transform .3s; }
.dme .face.up svg { animation: lvup .6s ease-out; }
@keyframes lvup { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-8px); } 60% { transform: translateY(0) scale(1.06, .94); } }
.dme .who { flex: 1; min-width: 0; }
.dme .who b { font-size: var(--fs-body); font-weight: 800; color: var(--ink); }
.dme .who b em { font-style: normal; margin-left: 6px; font-size: var(--fs-sm); font-weight: 800; color: var(--burgundy); } /* 레벨: 딱지 없이 버건디 글씨 (2026-11-12 대표 요청) */
.dme .xp { margin-top: 6px; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.dme .xp i { display: block; height: 100%; width: 0; background: var(--burgundy); border-radius: 99px; transition: width .4s; }
.dme .pt { flex-shrink: 0; text-align: right; font-size: var(--fs-cap); color: var(--muted); }
.dme .pt strong { display: block; font-size: var(--fs-h4); font-weight: 800; color: var(--burgundy); letter-spacing: -0.02em; }
.ms .plus { font-size: var(--fs-cap); font-weight: 700; color: var(--muted); white-space: nowrap; }
.ms .now .plus { color: var(--burgundy); }
@media (prefers-reduced-motion: reduce) { .dme .face.up svg { animation: none; } .dme .xp i { transition: none; } }

/* 넓은 대시보드(낮게): 왼쪽 내 캐릭터, 오른쪽 미션 3개를 가로로 */
.keep { padding: 64px 0; }
.keep-grid { margin-top: 32px; }
.keep .lead:last-child { margin-top: 24px; }
.dash { padding: 22px 24px; }
.d-cols { display: grid; grid-template-columns: 300px 1fr; gap: 24px; margin-top: 12px; align-items: stretch; }
.d-side { padding: 16px; border-radius: 16px; background: var(--bg); display: flex; flex-direction: column; justify-content: center; }
.d-side .dme .face { width: 60px; height: 68px; background: var(--surface); }
.d-side .note { margin-top: 10px; font-size: var(--fs-sm); line-height: 1.55; color: var(--muted); }
.d-main { display: flex; flex-direction: column; justify-content: center; }
.d-main .wk { margin-top: 2px; }
.d-main .crs { font-size: var(--fs-cap); font-weight: 600; color: var(--muted); }
.d-main .crs b { color: var(--burgundy); }
.d-main .ms { gap: 4px; margin-top: 10px; }
.ms .stg { margin: 6px 0 0; font-size: var(--fs-cap); font-weight: 800; color: var(--burgundy); }
.ms .stg:first-child { margin-top: 0; }
.d-main .ms button { padding: 7px 12px; gap: 10px; font-size: var(--fs-body-s); }
.d-main .ms .ic { width: 18px; height: 18px; }
.ms .tx small { margin-left: 8px; font-size: var(--fs-cap); font-weight: 500; color: var(--muted); } /* 작은 설명은 같은 줄 오른쪽에 (칸 높이를 줄임) */
.ms .now .tx small { color: var(--burgundy); }
.ms .tx small.full { color: var(--burgundy); font-weight: 700; }
.ms .go { font-size: var(--fs-xs); font-weight: 800; color: #fff; background: var(--burgundy); padding: 2px 7px; border-radius: 99px; margin-right: 6px; }


@media (max-width: 720px) {
  .ms .tx small { display: block; margin: 1px 0 0; }
  .intro { padding: 64px 0; }
  .chat { width: 280px; }
  .dash { padding: 20px 16px; }
  .d-cols { grid-template-columns: 1fr; gap: 16px; }
  .d-side { padding: 14px; }
  .d-side .note { display: none; }
  .keep { padding: 48px 0; }
  .keep-grid { margin-top: 24px; }
}
