/* vocaione.com — D-23 'Lexicon'.
   색 값은 apps/mobile/src/theme.ts(NOIR·IVORY·METAL·COIN)와 같다. 테마는 기기 설정(prefers-color-scheme)을 따른다.
   영어 단어·큰 숫자 = Bodoni Moda(36px 이상 Display, 그 아래 Text, 강조 단어 Text Italic), 나머지 = Pretendard. */

@font-face { font-family: 'Bodoni Display'; src: url(fonts/BodoniModa-Display.woff2?v=20261108) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bodoni Text'; src: url(fonts/BodoniModa-Text.woff2?v=20261108) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bodoni Text'; src: url(fonts/BodoniModa-TextItalic.woff2?v=20261108) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

/* ── 테마: IVORY(밝게) 기본, NOIR(어둡게) ── */
:root {
  color-scheme: light dark;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  --serif-d: 'Bodoni Display', 'Bodoni 72', Didot, 'Times New Roman', serif;
  --serif-t: 'Bodoni Text', 'Bodoni 72', Didot, 'Times New Roman', serif;

  --blue: #2B75FF;
  --bg: #F6F2E7;
  --surface: #FFFDF8;
  --surface-hi: #FFFFFF;
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.16);
  --text: #0A0A0B;
  --text-2: rgba(10, 10, 11, 0.64);
  --text-3: rgba(10, 10, 11, 0.42);
  --btn: #0A0A0B;
  --btn-fg: #F6F2E7;
  --ok: #0FA244;
  --ok-bg: rgba(43, 247, 100, 0.13);
  --ok-line: rgba(15, 162, 68, 0.80);
  --on-ok: #FFFFFF;
  --track: rgba(0, 0, 0, 0.08);
  --hl: rgba(43, 117, 255, 0.75);
  --glow: rgba(43, 117, 255, 0.10);
  --grain-opacity: 0.04;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 2.2 -0.75'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #0D0D0F;
    --surface-hi: #141416;
    --line: rgba(246, 242, 231, 0.10);
    --line-2: rgba(246, 242, 231, 0.18);
    --text: #F6F2E7;
    --text-2: rgba(246, 242, 231, 0.66);
    --text-3: rgba(246, 242, 231, 0.40);
    --btn: #F6F2E7;
    --btn-fg: #000000;
    --ok: #2BF764;
    --ok-bg: rgba(43, 247, 100, 0.07);
    --ok-line: rgba(43, 247, 100, 0.75);
    --on-ok: #000000;
    --track: rgba(246, 242, 231, 0.12);
    --hl: rgba(43, 117, 255, 0.85);
    --glow: rgba(43, 117, 255, 0.20);
    --grain-opacity: 0.045;
    --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 2.2 -0.75'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  }
}

/* ── 바탕 ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* 위쪽 아주 옅은 파랑 빛 번짐 */
body::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 760px;
  background: radial-gradient(110% 620px at 50% -180px, var(--glow) 0%, rgba(43, 117, 255, 0) 72%);
  pointer-events: none;
  z-index: 0;
}
/* 미세한 결(노이즈): 바탕에만 깐다(카드는 덮지 않는다) */
body::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 160px 160px;
  opacity: var(--grain-opacity);
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

img { max-width: 100%; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 999px; background: var(--btn); color: var(--btn-fg); font-weight: 600; font-size: 14px; text-decoration: none; }
.skip:focus { top: 12px; }

/* 세리프(영어 단어·큰 숫자) */
.sd, .st, .si { font-weight: 400; font-synthesis: none; letter-spacing: -0.01em; }
.sd { font-family: var(--serif-d); }
.st { font-family: var(--serif-t); }
.si { font-family: var(--serif-t); font-style: italic; }
.num { font-variant-numeric: tabular-nums; }

/* 작은 머리말(점 + 글) */
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--text-2); }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 3px; background: currentColor; flex: none; }

/* 버튼: 58px 알약 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 58px; padding: 0 32px; border-radius: 29px; background: var(--btn); color: var(--btn-fg); font-size: 17px; font-weight: 700; letter-spacing: -0.2px; text-decoration: none; }
.btn:hover { opacity: 0.88; }
.doc a.btn, .nf a.btn { color: var(--btn-fg); text-decoration: none; }
.pill { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid var(--line-2); color: var(--text-2); font-size: 14px; font-weight: 600; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }

/* ── 머리 막대 ── */
.top { padding: 18px 0 0; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.mark { display: inline-flex; align-items: baseline; text-decoration: none; color: var(--text); line-height: 1; }
.mark b { font-weight: 700; font-size: 19px; letter-spacing: 1px; }
.mark span { font-family: var(--serif-t); font-size: 24px; letter-spacing: 0.5px; margin-left: 1px; }
.nav { display: flex; gap: 6px; }
.nav a { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 18px; font-size: 14px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.nav a:hover { color: var(--text); background: var(--track); }
.nav a[aria-current='page'] { color: var(--text); }

/* ── 첫 화면 ── */
.hero { --k: 1; padding: 34px 0 64px; }
.cascade { display: flex; flex-direction: column; align-items: center; line-height: 1.04; letter-spacing: -0.014em; color: var(--text); user-select: none; }
.cascade span { display: block; white-space: nowrap; font-family: var(--serif-d); font-weight: 400; font-synthesis: none; }
.cascade .w1, .cascade .w7 { font-size: calc(30px * var(--k)); opacity: 0.16; font-family: var(--serif-t); }
.cascade .w2, .cascade .w6 { font-size: calc(40px * var(--k)); opacity: 0.26; }
.cascade .w3, .cascade .w5 { font-size: calc(54px * var(--k)); opacity: 0.42; }
.cascade .w4 { font-size: calc(74px * var(--k)); opacity: 1; }
.hero-copy { margin-top: 44px; }
.hero h1 { font-size: 30px; line-height: 1.3; font-weight: 700; letter-spacing: -1px; }
.hero .lead { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; }
.hero .fine { font-size: 13px; font-weight: 500; color: var(--text-2); }

@media (min-width: 640px) {
  .hero { --k: 1.24; text-align: center; }
  .hero .cta { justify-content: center; }
  .cascade .w1, .cascade .w7 { font-family: var(--serif-d); }
}
@media (min-width: 1024px) {
  .hero { --k: 1.42; padding: 30px 0 80px; }
  .hero-copy { margin-top: 48px; }
  .hero h1 { font-size: 54px; line-height: 1.16; letter-spacing: -0.035em; }
  .hero .lead { margin-top: 18px; font-size: 19px; }
  .hero .cta { margin-top: 32px; }
  .br-narrow { display: none; }
}

/* 첫 화면 등장: 가운데 단어부터 바깥으로(0.24초, ease-out) */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.cascade span, .hero-copy > * { animation: rise 240ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.cascade .w4 { animation-delay: 40ms; }
.cascade .w3, .cascade .w5 { animation-delay: 100ms; }
.cascade .w2, .cascade .w6 { animation-delay: 160ms; }
.cascade .w1, .cascade .w7 { animation-delay: 220ms; }
.hero-copy > :nth-child(1) { animation-delay: 260ms; }
.hero-copy > :nth-child(2) { animation-delay: 300ms; }
.hero-copy > :nth-child(3) { animation-delay: 340ms; }

/* ── 숫자 줄 ── */
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); overflow: hidden; }
.stat-row > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding: 22px 20px 20px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stat-row > div:nth-child(-n + 2) { border-top: 0; }
.stat-row > div:nth-child(odd) { border-left: 0; }
.stat-row dd { font-family: var(--serif-d); font-size: 42px; line-height: 0.95; letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.stat-row dt { font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--text-2); }
@media (min-width: 900px) {
  .stat-row { grid-template-columns: repeat(4, 1fr); }
  .stat-row > div { padding: 28px 28px 24px; border-top: 0; border-left: 1px solid var(--line); }
  .stat-row > div:nth-child(odd) { border-left: 1px solid var(--line); }
  .stat-row > div:first-child { border-left: 0; }
  .stat-row dd { font-size: 60px; }
}

/* ── 구역 머리 ── */
.sec { padding-top: 104px; }
.sec-head { max-width: 760px; }
.sec-head h2 { margin-top: 12px; font-size: 26px; line-height: 1.32; font-weight: 700; letter-spacing: -0.7px; }
.sec-head p { margin-top: 14px; font-size: 16px; color: var(--text-2); }
@media (min-width: 1024px) {
  .sec { padding-top: 136px; }
  .sec-head h2 { font-size: 36px; letter-spacing: -0.03em; }
  .sec-head p { font-size: 18px; }
}

/* ── 앱 화면 줄 ── */
.strip { display: flex; gap: 20px; margin-top: 36px; padding: 6px 24px 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.phone { flex: 0 0 auto; width: 214px; scroll-snap-align: start; }
.phone img { display: block; width: 100%; height: auto; border-radius: 10% / 4.6%; box-shadow: 0 0 0 1px var(--line-2); background: var(--surface); }
.phone figcaption { margin-top: 14px; text-align: center; font-size: 13px; font-weight: 600; color: var(--text-2); }
@media (min-width: 1240px) {
  .strip { justify-content: center; gap: 28px; overflow: visible; padding-inline: 0; }
  .phone { width: 220px; }
}

/* ── 기능 카드 ── */
.feat-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
@media (min-width: 900px) { .feat-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.feat { display: flex; flex-direction: column; padding: 20px 20px 26px; }
.feat h3 { margin-top: 26px; font-size: 20px; line-height: 1.4; font-weight: 700; letter-spacing: -0.5px; }
.feat > p { margin-top: 8px; font-size: 15.5px; color: var(--text-2); }
@media (min-width: 900px) { .feat { padding: 24px 24px 30px; } .feat h3 { font-size: 21px; } }
.art { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 268px; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); overflow: hidden; }
@media (min-width: 900px) { .art { min-height: 376px; padding: 26px 28px; } }

/* 1. 문장으로 배우는 단어 */
.a-word .lemma { margin-top: 6px; font-size: 52px; line-height: 1.04; letter-spacing: -1px; }
.a-word .mean { margin-top: 10px; font-size: 18px; font-weight: 700; letter-spacing: -0.4px; }
.a-word .rule { height: 1px; background: var(--line); margin: 18px 0 16px; }
.a-word .en { font-size: 17px; line-height: 1.45; letter-spacing: -0.2px; }
.a-word .ko { margin-top: 2px; font-size: 13.5px; color: var(--text-2); }
.hl { font-family: var(--serif-t); font-style: italic; font-weight: 400; font-synthesis: none; font-size: 1.12em; letter-spacing: -0.01em; text-decoration: underline; text-decoration-color: var(--hl); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.colls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.coll { padding: 8px 12px 9px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); line-height: 1.3; }
.coll b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -0.2px; }
.coll span { font-size: 12px; color: var(--text-3); }

/* 2. 문제 */
.a-quiz .ask { font-size: 13px; font-weight: 500; color: var(--text-3); }
.a-quiz .lemma { margin-top: 4px; font-size: 48px; line-height: 1.05; letter-spacing: -1px; }
.opts { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.opt { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 8px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; font-weight: 500; letter-spacing: -0.3px; line-height: 1.35; }
.opt .k { display: flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 11px; font-weight: 600; color: var(--text-3); }
.opt.dim { opacity: 0.38; }
.opt.right { border-color: var(--ok-line); background: var(--ok-bg); }
.opt.right .k { background: var(--ok); border-color: var(--ok); color: var(--on-ok); }
.opt.right .k svg { width: 13px; height: 13px; }
.types { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.types li { padding: 4px 10px; border-radius: 12px; border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--text-2); }

/* 3. 금속 카드 등급 */
.metals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.metal { position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 1.25; padding: 11px 12px 12px; border-radius: 14px; overflow: hidden; color: #FFFFFF; }
.metal::before { content: ''; position: absolute; inset: 40% 0 0 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.38)); pointer-events: none; }
.metal::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(255, 255, 255, 0.22); pointer-events: none; }
.metal > * { position: relative; }
.metal .tier { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.88); }
.metal .w { display: block; font-family: var(--serif-t); font-size: 19px; line-height: 1.1; letter-spacing: -0.3px; white-space: nowrap; }
.metal .m { display: block; margin-top: 3px; font-size: 10.5px; color: rgba(255, 255, 255, 0.78); }
.m-bronze { background: linear-gradient(to bottom right, #241810 0%, #5D3D22 34%, #C4936A 50%, #6B4628 64%, #1E140C 100%); }
.m-silver { background: linear-gradient(to bottom right, #15171A 0%, #4E5761 34%, #DFE5EC 50%, #5A636D 64%, #121417 100%); }
.m-gold { background: linear-gradient(to bottom right, #231B0C 0%, #765B22 34%, #F2DC9E 50%, #8A6C2A 64%, #1F180B 100%); }
.m-legend { background: linear-gradient(to bottom right, #04102C 0%, #1747C9 34%, #2B75FF 48%, #2BF764 78%, #062A14 100%); }
.ladder { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.ladder i { flex: 1; height: 1px; margin: 0 10px; background: var(--line-2); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.fact { padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.fact .l { display: block; font-size: 11.5px; font-weight: 500; color: var(--text-3); }
.fact b { display: block; margin-top: 2px; font-size: 15px; font-weight: 700; letter-spacing: -0.3px; }
@media (min-width: 560px) { .metals { grid-template-columns: repeat(4, 1fr); } .metal { aspect-ratio: 0.78; padding: 10px 10px 11px; } .metal .w { font-size: 17px; } }
@media (min-width: 1100px) { .metal .w { font-size: 20px; } .metal { padding: 12px 12px 13px; } }

/* 4. 계기판·연속 학습·업적 */
.a-dial { flex-direction: row; align-items: center; gap: 22px; }
.dial { position: relative; flex: none; width: 168px; height: 168px; }
.dial svg { display: block; width: 100%; height: 100%; }
.d-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.d-dim { fill: none; stroke: var(--blue); stroke-opacity: 0.2; stroke-width: 1.8; stroke-linecap: round; }
.d-lit { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; }
.d-halo { fill: var(--blue); fill-opacity: 0.2; }
.d-head { fill: var(--blue); }
.dial-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dial-c .big { display: flex; align-items: baseline; font-family: var(--serif-d); font-size: 54px; line-height: 0.9; letter-spacing: -1.5px; }
.dial-c .of { font-family: var(--serif-t); font-size: 17px; color: var(--text-3); margin-left: 3px; }
.dial-c .cap { margin-top: 6px; font-size: 11px; font-weight: 500; color: var(--text-3); }
.side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.mini-l { font-size: 12px; font-weight: 500; color: var(--text-3); }
.streak-v { display: flex; align-items: baseline; gap: 3px; margin-top: 2px; }
.streak-v .sd { font-size: 38px; line-height: 1; letter-spacing: -1px; }
.streak-v span { font-size: 14px; font-weight: 600; color: var(--text-2); }
.week { display: flex; justify-content: space-between; max-width: 168px; margin-top: 10px; }
.week span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 9px; font-weight: 500; color: var(--text-3); line-height: 1; }
.week span::before { content: ''; width: 12px; height: 12px; border-radius: 6px; background: var(--track); }
.week .d::before { background: var(--ok); }
.week .t::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ok); }
.coins { display: flex; gap: 12px; }
.coin { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 54px; }
.coin i { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 22px; font-style: normal; font-family: var(--serif-t); font-size: 15px; letter-spacing: -0.5px; color: #1A1408; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.coin small { font-size: 10px; font-weight: 600; line-height: 1.25; text-align: center; color: var(--text-2); }
.c-gold i { background: radial-gradient(circle at 35% 30%, #F6E7B8 0%, #C9A24A 40%, #6D531C 100%); }
.c-silver i { background: radial-gradient(circle at 35% 30%, #FFFFFF 0%, #B9C3CE 40%, #4E5761 100%); }
.c-bronze i { background: radial-gradient(circle at 35% 30%, #F3CFA9 0%, #B9845A 40%, #5D3D22 100%); }
@media (max-width: 420px) {
  .a-dial { flex-direction: column; align-items: stretch; }
  .dial { align-self: center; width: 188px; height: 188px; }
  .week { max-width: none; }
}

/* 5. 레벨 테스트 */
.lt-top { display: flex; align-items: center; gap: 12px; }
.lt-x { display: flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border-radius: 15px; border: 1px solid var(--line); background: var(--surface); color: var(--text-3); }
.lt-x svg { width: 11px; height: 11px; }
.segs { flex: 1; display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; }
.segs i { height: 4px; border-radius: 2px; background: var(--track); }
.segs i.on { background: var(--blue); }
.lt-count { font-size: 12px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.lt-big { display: flex; align-items: baseline; gap: 8px; margin-top: 26px; }
.lt-big .sd { font-size: 96px; line-height: 0.86; letter-spacing: -3px; }
.lt-big span { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; }
.lt-result { margin-top: 22px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.lt-result .kicker { font-size: 11.5px; }
.lt-result b { display: block; margin-top: 2px; font-size: 17px; font-weight: 700; letter-spacing: -0.4px; }
.lt-result span { display: block; font-size: 13px; color: var(--text-2); }

/* 6. 코스 */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.chip.on { background: var(--btn); border-color: var(--btn); color: var(--btn-fg); }
.courses { margin-top: 16px; border-top: 1px solid var(--line); }
.courses li { display: flex; gap: 14px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; }
.courses b { flex: none; width: 56px; font-weight: 700; }
.courses span { color: var(--text-2); }

/* ── 노래 ── */
.songs { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 40px; padding: 22px; }
.songs .copy h3 { font-size: 22px; line-height: 1.35; font-weight: 700; letter-spacing: -0.5px; }
.songs .copy > p { margin-top: 8px; color: var(--text-2); }
.modes { display: grid; gap: 10px; margin-top: 22px; }
.modes div { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); }
.modes dt { font-size: 15px; font-weight: 700; letter-spacing: -0.3px; }
.modes dd { margin-top: 2px; font-size: 14px; color: var(--text-2); }
@media (min-width: 900px) {
  .songs { grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: center; padding: 32px; }
  .songs .copy h3 { font-size: 26px; }
}
.a-rhythm { min-height: 0; gap: 18px; padding: 24px 22px; }
.lane { position: relative; height: 158px; }
.lane .bars { position: absolute; left: 0; right: 0; bottom: 0; height: 74px; width: 100%; }
.bars .p { fill: var(--blue); }
.bars .u { fill: var(--track); }
.playhead { position: absolute; top: 58px; bottom: 0; left: 52%; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--blue); }
.playhead::before { content: ''; position: absolute; top: -3px; left: -3px; width: 8px; height: 8px; border-radius: 4px; background: var(--blue); }
.note { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.note b { font-family: var(--serif-t); font-style: italic; font-weight: 400; font-synthesis: none; font-size: 19px; line-height: 1; letter-spacing: -0.2px; text-decoration: underline; text-decoration-color: var(--hl); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.note small { font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em; color: var(--text-3); line-height: 1; }
.note.hit small { color: var(--ok); }
.note.next b { opacity: 0.42; }
.n1 { left: 18%; } .n2 { left: 52%; } .n3 { left: 84%; }
.judge { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.judge span { display: inline-flex; align-items: center; gap: 6px; }
.judge .ok { color: var(--ok); }
.blank { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.blank .mini-l { width: 100%; margin-bottom: 4px; }
.blank .chip { font-family: var(--serif-t); font-size: 15px; font-weight: 400; letter-spacing: -0.2px; }
.blank .chip.ok { border-color: var(--ok-line); background: var(--ok-bg); color: var(--text); }

/* ── 무료 ── */
.free { margin-top: 104px; padding: 40px 22px 44px; text-align: center; }
.zeros { display: flex; justify-content: center; gap: 28px; }
.zeros div { display: flex; flex-direction: column; align-items: center; }
.zeros .sd { font-size: 76px; line-height: 0.95; letter-spacing: -1px; }
.zeros .l { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.free h2 { margin-top: 30px; font-size: 24px; line-height: 1.35; font-weight: 700; letter-spacing: -0.6px; }
.free p { margin-top: 12px; color: var(--text-2); }
.free .links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: 14px; font-weight: 600; }
@media (min-width: 1024px) {
  .free { margin-top: 136px; padding: 64px 40px 68px; }
  .zeros { gap: 72px; }
  .zeros .sd { font-size: 112px; }
  .free h2 { font-size: 34px; letter-spacing: -0.03em; }
  .free p { font-size: 18px; }
}

/* ── 발 ── */
.foot { margin-top: 96px; padding: 32px 0 44px; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { color: var(--text); text-decoration: underline; }
.foot .copy { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; font-size: 13px; color: var(--text-2); }
.foot .copy a { text-decoration: none; }
.foot .copy a:hover { text-decoration: underline; }

/* ── 문서(처리방침·지원·라이선스) ── */
.doc { width: min(760px, calc(100% - 48px)); margin-inline: auto; padding-top: 44px; }
.doc h1 { margin-top: 12px; font-size: 32px; line-height: 1.25; font-weight: 700; letter-spacing: -1px; }
.doc .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; font-size: 14px; color: var(--text-2); }
.doc .meta a { color: var(--text); font-weight: 600; }
.doc .intro { margin-top: 22px; font-size: 17px; color: var(--text-2); }
.doc h2 { display: flex; align-items: baseline; gap: 14px; margin-top: 48px; font-size: 20px; line-height: 1.4; font-weight: 700; letter-spacing: -0.5px; }
.doc h2 .n { flex: none; font-family: var(--serif-t); font-weight: 400; font-size: 20px; color: var(--text-3); font-variant-numeric: lining-nums tabular-nums; letter-spacing: 0; }
.doc h3 { margin-top: 22px; font-size: 16px; font-weight: 700; letter-spacing: -0.3px; }
.doc .t1 { display: block; margin-top: 12px; font-size: 32px; line-height: 1.25; font-weight: 700; letter-spacing: -1px; }
.doc .t2 { display: flex; align-items: baseline; gap: 14px; margin-top: 48px; font-size: 20px; line-height: 1.4; font-weight: 700; letter-spacing: -0.5px; }
.doc .t2 .n { flex: none; font-family: var(--serif-t); font-weight: 400; font-size: 20px; color: var(--text-3); font-variant-numeric: lining-nums tabular-nums; letter-spacing: 0; }
.doc h2.kicker { display: inline-flex; margin: 0; font-size: 13px; line-height: 1.4; font-weight: 600; letter-spacing: 0.02em; color: var(--text-2); }
.doc p, .doc li { font-size: 16px; color: var(--text-2); }
.doc .body { margin-top: 12px; }
.doc .body > * + * { margin-top: 10px; }
.doc ul.list { margin-top: 12px; }
.doc ul.list li { position: relative; padding-left: 18px; }
.doc ul.list li + li { margin-top: 6px; }
.doc ul.list li::before { content: ''; position: absolute; left: 2px; top: 0.78em; width: 5px; height: 5px; border-radius: 3px; background: var(--text-3); }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { color: var(--text); }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
@media (min-width: 1024px) {
  .doc { padding-top: 64px; }
  .doc h1, .doc .t1 { font-size: 44px; letter-spacing: -0.035em; }
}

/* 한눈에 보기(큰 숫자 3칸) */
.glance { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 30px; overflow: hidden; }
.glance > div { display: flex; flex-direction: column; gap: 8px; padding: 18px 16px 16px; border-left: 1px solid var(--line); }
.glance > div:first-child { border-left: 0; }
.glance .sd { font-size: 44px; line-height: 0.95; letter-spacing: -1px; }
.glance .l { font-size: 12.5px; font-weight: 500; line-height: 1.4; color: var(--text-2); }
@media (min-width: 640px) { .glance > div { padding: 22px 22px 20px; } .glance .sd { font-size: 56px; } .glance .l { font-size: 13px; } }

.divider { height: 1px; margin: 72px 0 0; background: var(--line); border: 0; }
.lang-en { padding-top: 8px; }

/* 자주 묻는 질문 */
.faq { display: grid; gap: 12px; margin-top: 32px; }
.qa { padding: 20px 22px 22px; }
.qa h2 { margin: 0; font-size: 17px; letter-spacing: -0.4px; }
.qa h2 .n { font-size: 17px; }
.qa .body { margin-top: 10px; }
.qa p, .qa li { font-size: 15.5px; }
.contact { margin-top: 40px; padding: 28px 24px; text-align: center; }
.contact .addr { display: block; margin-top: 10px; font-family: var(--serif-t); font-size: 26px; letter-spacing: -0.3px; line-height: 1.2; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.contact p { margin-top: 8px; font-size: 14.5px; color: var(--text-2); }
.contact .btn { margin-top: 22px; }
@media (min-width: 640px) { .contact .addr { font-size: 34px; } }

/* 출처·라이선스 */
.lic { margin-top: 14px; padding: 20px 22px; }
.lic h3 { margin: 0; font-size: 16px; }
.lic .tag { display: inline-flex; align-items: center; height: 24px; margin-top: 8px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 12px; font-weight: 600; color: var(--text-2); }
.lic p { margin-top: 8px; font-size: 15px; }
.lic .src { font-size: 13.5px; color: var(--text-2); }
.oss { margin-top: 12px; display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.oss li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.oss li span:last-child { flex: none; color: var(--text-2); font-size: 13px; }
@media (min-width: 640px) { .oss { grid-template-columns: 1fr 1fr; column-gap: 28px; } }

/* 404 */
.nf { width: min(760px, calc(100% - 48px)); margin-inline: auto; padding: 80px 0 40px; text-align: center; }
.nf .code { font-family: var(--serif-d); font-size: 132px; line-height: 0.9; letter-spacing: -4px; color: var(--text); }
.nf .ghost { font-family: var(--serif-d); font-size: 40px; line-height: 1.05; opacity: 0.16; letter-spacing: -1px; color: var(--text); }
.nf h1 { margin-top: 28px; font-size: 26px; line-height: 1.35; font-weight: 700; letter-spacing: -0.7px; }
.nf p { margin-top: 10px; color: var(--text-2); }
.nf .btn { margin-top: 30px; }
@media (min-width: 1024px) { .nf { padding-top: 120px; } .nf .code { font-size: 200px; } }

/* ── 스크롤 등장(0.22초, ease-out). JS가 화면 밖 요소에만 .pending을 붙인다 ── */
.pending { opacity: 0; transform: translateY(14px); transition: opacity 220ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.pending.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .cascade span, .hero-copy > * { animation: none; }
  .pending, .pending.in { opacity: 1; transform: none; transition: none; }
}
