/* keyhub 서비스 소개 페이지 — 공통 물결 부품(fluid.css, 명세: docs/레퍼런스-2/명세.md) 위에 소개 페이지만의 자리.
   흰 바탕 · 화면 밖으로 번지는 얼룩 · 물결 띠 · 얼룩 사진 · 떠 있는 흰 카드. 색은 --pc(주) --pa(보조)만.
   2026-12-01 검증 반영: 서비스마다 사진 좌우(body[data-side])·얼룩 모양(page.js)·덩이 자리(.dot-*)·구역 순서가 다르고,
   서비스다운 구역 하나씩(.stairs 학기 계단 · .ruler 레벨 눈금 · .bridge 중학→고1 다리 · .exam 시험지·칠판 · .bubbles 말풍선 · .film 상영표) */
.u { display: inline-block; }
.lead { margin: 0; color: var(--sub); font: 400 18px/1.75 var(--serif); max-width: 40em; }
.sec-head { margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head h2, .who-text h2, .pv-head h2 { margin: 0 0 12px; font-size: clamp(2rem, 3.4vw, 3rem); }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; margin-right: 12px; border-radius: 999px; background: var(--pc); color: var(--pon); font: 500 14px/1 var(--display); }
.h-meta { margin: 0 0 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 0; font: 500 16px/1.4 var(--display); color: var(--ink2); }
.acts { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── 첫 화면: 글 반쪽 + 숨쉬는 얼룩 사진이 위·옆 화면 끝 밖으로 번진다(메인과 같은 번짐). 사진 쪽은 서비스마다 ── */
.sp-hero { padding-block: clamp(16px, 2vw, 28px) clamp(56px, 7vw, 104px); }
.sp-top { z-index: 3; display: flex; align-items: center; flex-wrap: wrap; gap: 0 12px; }
/* 맨 위 분류 표시: keyhub(로고) › 분류 · 같은 분류의 다른 서비스 링크 하나(2026-12-01 분류 도입) */
.crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 0 12px; min-width: 0; }
.crumb .cr-sep { width: 18px; height: 18px; margin-left: -4px; color: var(--sub); flex: none; }
.crumb a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; color: var(--ink2); font: 500 16px/1.2 var(--display); }
.crumb .cr-cat { margin-left: -6px; }
.crumb .cr-cat:hover { text-decoration: underline; text-underline-offset: 4px; }
.crumb .cr-sib { position: relative; gap: 8px; padding-left: 13px; }
.crumb .cr-sib::before { content: ""; position: absolute; left: 0; top: 13px; bottom: 13px; width: 1px; background: var(--line); }   /* 글 링크(단추 모양을 늘리지 않는다) */
.crumb .cr-sib:hover { text-decoration: underline; text-underline-offset: 4px; }
.crumb .cr-sib svg { width: 16px; height: 16px; }
.crumb .cr-k { color: var(--sub); font-size: 14px; }
.h-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; min-height: min(calc(100svh - 120px), 760px); }
.h-text { position: relative; z-index: 2; padding-block: 24px; }
.side-l .h-text { grid-column: 2; padding-left: clamp(0px, 2vw, 32px); }
.h-title { margin: 0 0 24px; font-size: clamp(2.5rem, 4.6vw, 4.25rem); max-width: 9.5em; }
.sp-intro { margin: 0 0 32px; font: 400 18px/1.75 var(--serif); color: var(--ink2); max-width: 30em; }
.sp-hero .sp-stage { position: absolute; z-index: 1; top: -72px; width: 55vw; height: min(90vh, 840px); max-width: none; }
.side-r .sp-stage { right: calc((100% - 100vw) / 2 - 7vw); }
.side-l .sp-stage { left: calc((100% - 100vw) / 2 - 7vw); top: 8px; height: min(84vh, 780px); }
.sp-stage .fl-mask .ph { --pt: 4%; object-position: 50% var(--py, 32%); }
/* 작은 색 덩이: 얼룩 사진 밖 빈 귀퉁이(얼룩은 무대 상자 안 타원꼴이라 귀퉁이는 늘 비어 있다).
   2026-12-01 최종 검증: 덩이가 손·공책을 가려서 사진 안에는 두지 않는다. 아래 글 쪽 귀퉁이는 오브제 자리라 위 글 쪽 귀퉁이 */
.hero-dot { width: clamp(44px, 4.4vw, 68px); z-index: 2; }
.dot-tl { left: 2%; top: 3%; } .dot-tr { right: 2%; top: 3%; }
/* 상징 오브제(docs/symbols/plan.md 3-3): 얼룩 아래 모서리에 절반쯤 걸쳐 흰 바탕으로 튀어나온다. 그림자는 그림 안에 있으니 더하지 않는다.
   사진이 오른쪽이면 아래 왼쪽(제안 자리), 왼쪽이면 화면 밖이 아래 왼쪽이라 아래 오른쪽(글 칸과는 24px 넘게 띄움) */
/* 2026-12-01 최종 검증: 너비를 무대 폭 비율로 — 고정 px 였을 땐 좁은 화면(320)에서 무대의 절반이 되어 손·태블릿을 가렸다.
   안쪽 끝이 무대 폭의 22% 안쪽에서 멈춘다(손·공책은 가운데 30~70%) */
.sp-stage .sym { position: absolute; z-index: 3; width: 28%; max-width: 260px; height: auto; bottom: 2%; pointer-events: none; }
.side-r .sym { left: -6%; }
.side-l .sym { right: -6%; }

/* ── 숫자 카드: 첫 구역(늘 물결 띠) 맨 위, 띠 경계에 걸쳐 떠 있다 ── */
.sp-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; }
.sp-facts div { padding: 4px 24px; border-left: 1px solid var(--line); }
.sp-facts div:first-child { border-left: 0; padding-left: 0; }
.sp-facts dt { font: 500 14px/1.4 var(--display); color: var(--sub); margin-bottom: 8px; }
.sp-facts dd { margin: 0; font: 600 clamp(20px, 1.9vw, 24px)/1.3 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); text-wrap: balance; }
.sp-facts.lift { position: relative; z-index: 2; margin: calc(-1 * clamp(72px, 9vw, 128px) - var(--wh) * 1.3) 0 clamp(56px, 7vw, 96px); padding: clamp(20px, 2.4vw, 32px) clamp(24px, 3vw, 40px); }

/* ── 무엇을 배우나요(기본): 떠 있는 카드 ── */
.learn { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.learn li { padding: clamp(24px, 2.6vw, 32px); }
@media (min-width: 1100px) { .learn li:nth-child(even) { margin-top: 40px; margin-bottom: -40px; } .learn { padding-bottom: 40px; } }
.learn .no { display: grid; place-items: center; width: 48px; height: 44px; margin-bottom: 20px; background: var(--pc); color: var(--pon); font: 600 16px/1 var(--display); font-variant-numeric: tabular-nums;
  -webkit-mask: var(--mB) center / 100% 100% no-repeat; mask: var(--mB) center / 100% 100% no-repeat; }
.learn h3 { margin: 0 0 12px; font-size: 20px; line-height: 1.35; }
.learn p { margin: 0; color: var(--sub); font: 400 16px/1.75 var(--serif); }

/* 화면에 들어오면 차오르는 구역([data-fill]): page.js 가 움직임 줄이기가 아닐 때만 body.fill-ready 를 붙인다 */
.fill-ready [data-fill] .st i::after, .fill-ready [data-fill] .rl-ticks::after { transform: scale(0, 0); }
.fill-ready [data-fill].in .st i::after, .fill-ready [data-fill].in .rl-ticks::after { transform: none; }
.fill-ready [data-fill] .br-stones li, .fill-ready [data-fill] .bb { opacity: 0; translate: 0 16px; }
.fill-ready [data-fill].in .br-stones li, .fill-ready [data-fill].in .bb { opacity: 1; translate: 0 0; }

/* ── 수학 레벨테스트: 학기 계단(16개 학기가 아래에서 차오른다) ── */
.stairs { padding: clamp(24px, 3vw, 40px); }
.st-cap { margin: 0 0 24px; font: 600 18px/1.4 var(--display); color: var(--ink); }
.st-cap span { font: 500 14px/1.4 var(--display); color: var(--sub); margin-right: 8px; }
.st { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); align-items: end; gap: 3px; height: clamp(220px, 24vw, 300px); }
.st li { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 8px; }
.st i { position: relative; display: block; height: calc(12% + var(--k) * 4.8%); border-radius: 4px 4px 0 0; background: var(--bg2); overflow: hidden; }
.st i::after { content: ""; position: absolute; inset: 0; background: var(--pc); opacity: calc(.28 + var(--k) * .048); transform-origin: bottom; transition: transform .7s var(--ease) calc(var(--k) * 55ms); }
.sem { font: 500 14px/1 var(--display); color: var(--sub); text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ── 영어 레벨테스트: 세 영역 레벨 눈금(아래 쉬운 책 → 위) ── */
.ruler { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: clamp(24px, 3vw, 40px); }
.rl { display: flex; flex-direction: column; padding: 0 clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.rl:first-child { border-left: 0; padding-left: 0; }
.rl h3 { order: 3; margin: 16px 0 0; font-size: 20px; }
.rl-n { order: 4; margin: 4px 0 0; font: 500 14px/1.4 var(--display); color: var(--sub); }
.rl-ticks { order: 1; position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column-reverse; justify-content: flex-start; min-height: calc(8 * 44px); border-left: 3px solid var(--line); }
.rl-ticks::after { content: ""; position: absolute; left: -3px; bottom: 0; width: 3px; height: 100%; background: var(--pc); transform-origin: bottom; transition: transform 1.1s var(--ease); }
.rl-ticks li { position: relative; display: flex; align-items: center; min-height: 44px; padding-left: 28px; font: 500 16px/1.3 var(--display); color: var(--ink2); }
.rl-ticks li::before { content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 2px; background: var(--pc); }
.rl-ticks li:first-child::before { width: 20px; }

/* ── 공통수학: 중학 → 고1 다리(디딤돌 = 범인 8장) ── */
.bridge { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 16px; padding-top: 136px; }
.br-end { margin: 0; padding: 20px 24px; font: 600 20px/1.3 var(--display); white-space: nowrap; }
.br-end span { display: block; margin-bottom: 4px; font: 500 14px/1.4 var(--display); color: var(--sub); }
.br-end.b { background: var(--pc); color: var(--pon); }
.br-end.b span { color: inherit; opacity: .8; }
.br-stones { position: relative; list-style: none; margin: 0; padding: 0 0 8px; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; align-items: end; }
.br-stones::before { content: ""; position: absolute; z-index: -1; left: -6%; right: -6%; bottom: 24px; height: 150px; border: 3px solid var(--pc); border-bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; opacity: .45; }
.br-stones li { --a: calc(sin((var(--k) + .5) / 8 * 180deg) * 104px); transform: translateY(calc(-1 * var(--a))); display: grid; justify-items: center; gap: 8px; padding: 14px 8px; min-height: 96px; background: var(--white); border-radius: var(--card-r); box-shadow: var(--card-sh); text-align: center; font: 500 16px/1.3 var(--display); color: var(--ink2); text-wrap: balance;
  transition: opacity .5s var(--ease) calc(var(--k) * 80ms), translate .5s var(--ease) calc(var(--k) * 80ms); }
.sn { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--pc); color: var(--pon); font: 600 14px/1 var(--display); }

/* ── 수능: 시험지 문항 + 칠판 '핵심 한 줄'과 문항 번호 줄 ── */
.exam { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: start; }
.paper { padding: clamp(24px, 3vw, 40px); }
.qs { list-style: none; margin: 0; padding: 0; }
.qs li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.qs li:first-child { border-top: 0; padding-top: 0; }
.qn { display: grid; place-items: center; width: 36px; height: 36px; border: 1.5px solid var(--ink2); border-radius: 50%; font: 600 16px/1 var(--display); font-variant-numeric: tabular-nums; }
.qs h3 { margin: 4px 0 8px; font-size: 20px; line-height: 1.35; }
.qs p { margin: 0; color: var(--sub); font: 400 16px/1.75 var(--serif); }
.board { position: sticky; top: 24px; padding: clamp(24px, 3vw, 36px); border-radius: var(--card-r); background: var(--ink2); color: var(--white); box-shadow: var(--card-sh), inset 0 0 0 1px rgb(255 255 255 / .1); }
.bd-k { margin: 0 0 12px; font: 500 14px/1.4 var(--display); color: var(--line); }
.bd-line { margin: 0 0 28px; padding-bottom: 20px; font: 400 clamp(22px, 2.2vw, 28px)/1.5 var(--serif); border-bottom: 2px dashed rgb(255 255 255 / .35); }
.omr { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
.omr i { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgb(255 255 255 / .4); font: 500 14px/1 var(--display); font-style: normal; font-variant-numeric: tabular-nums; }
.omr i.sel { background: var(--pc); border-color: var(--pc); color: var(--pon); }
.bd-leg { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 20px 0 0; font: 500 14px/1.4 var(--display); color: var(--line); }
.bd-leg span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .6); vertical-align: 0; }
.bd-leg .sel::before { background: var(--pc); border-color: var(--pc); }

/* ── 키스키스: 말풍선 흐름 ── */
.bubbles { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 20px; max-width: 920px; }
.bb { display: flex; transition: opacity .5s var(--ease) calc(var(--k) * 140ms), translate .5s var(--ease) calc(var(--k) * 140ms); }
.bb.me { justify-content: flex-end; }
.bub { position: relative; max-width: min(580px, 88%); padding: 22px 26px; background: var(--white); border-radius: 26px 26px 26px 6px; box-shadow: var(--card-sh); }
.bb.me .bub { background: var(--pc); color: var(--pon); border-radius: 26px 26px 6px 26px; }
.bub::after { content: ""; position: absolute; bottom: 0; left: -12px; width: 20px; height: 18px; background: inherit; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.bb.me .bub::after { left: auto; right: -12px; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.bub h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.35; }
.bub p { margin: 0; font: 400 16px/1.75 var(--serif); color: var(--sub); }
.bb.me .bub p { color: inherit; }

/* ── 잉글리시 어겐: 상영표 띠(필름 칸 안에 실제 화면의 장면 그림) ── */
.film { position: relative; padding: 36px 0; border-radius: var(--card-r); background: var(--ink2); box-shadow: var(--card-sh); color: var(--white); }
.film::before, .film::after { content: ""; position: absolute; left: 16px; right: 16px; height: 10px; background: radial-gradient(circle, rgb(255 255 255 / .55) 0 3.5px, transparent 4px) 0 50% / 22px 10px repeat-x; }
.film::before { top: 12px; } .film::after { bottom: 12px; }
/* 장면 칸: 실제 첫 화면 그림(again-1-tall.webp)의 상영표 띠에서 칸마다 잘라 보인다(배경 그림 자리 옮김, 원래 크기의 1.4배 이하) */
.reel { list-style: none; margin: 0; padding: 0 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 180px)); justify-content: center; gap: 20px 12px; }
.reel li { container-type: inline-size; }
.fr { position: relative; aspect-ratio: 134 / 75; overflow: hidden; border-radius: 4px; background: var(--ink); }
.fr.shot { background: var(--ink) no-repeat;
  background-size: calc(100cqw * 754 / 134) auto; background-position: calc(-100cqw * (46 + 147.67 * var(--x)) / 134) calc(-100cqw * 519 / 134); }
.film.near .fr.shot { background-image: url("../assets/shots/again-1-tall.webp"); }   /* 화면 가까이 오면 불러온다(page.js) */
.reel li > p { margin: 12px 0 0; font: 500 16px/1.4 var(--display); }
.reel b { font-weight: 600; color: var(--pc); margin-right: 4px; font-variant-numeric: tabular-nums; }
.reel span[lang] { display: block; margin-top: 4px; font: 400 14px/1.5 var(--text); color: var(--line); }
.reel .more .fr { display: grid; place-items: center; background: transparent; border: 1px dashed rgb(255 255 255 / .35); }
.reel .more .fr p { margin: 0; text-align: center; font: 500 16px/1.5 var(--display); color: var(--line); }
.reel .more b { display: block; margin: 0 0 4px; }

/* ── 이렇게 공부해요: 이어진 순서. 동그라미는 테 없이 같은 모양 ── */
.track { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 24px; position: relative; }
.track::before, .track::after { content: ""; position: absolute; left: 24px; right: 24px; top: 23px; height: 2px; }
.track::before { background: var(--line); }
.track::after { background: var(--pc); transform: scaleX(var(--fill, 1)); transform-origin: left; }
.track li { position: relative; }
.track .dot { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--pc); color: var(--pon); font: 600 17px/1 var(--display); font-variant-numeric: tabular-nums; }
.track h3 { margin: 24px 0 8px; font-size: 18px; line-height: 1.35; }
.track p { margin: 0; color: var(--sub); font: 400 16px/1.7 var(--serif); }
/* 단계가 6개 넘으면(어겐 7단계) PC 에서 네 칸씩 두 줄, 줄 안에서만 선으로 잇는다 */
@media (min-width: 861px) {
  .track.many { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 48px; }
  .track.many::before, .track.many::after { display: none; }
  .track.many li:not(:last-child)::after { content: ""; position: absolute; z-index: 0; left: 56px; right: -16px; top: 23px; height: 2px; background: var(--pc); opacity: .4; }
  .track.many li:nth-child(4n)::after { display: none; }
}
.mid-go { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 64px); }
.mid-go p { margin: 0; flex: 1 1 20em; color: var(--ink2); font: 400 17px/1.7 var(--serif); }

/* ── 미리보기: 제목은 깨끗한 바탕 위, 진한 작은 얼룩은 화면 틀 아래쪽 뒤에(서비스 쪽에 따라 좌우) ── */
.pv-head { position: relative; z-index: 2; display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.pv-head h2 { margin: 0; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
/* 고른 탭 = 서비스 색 바탕 + 그 색 위 글자색(꽉 찬 알약), 안 고른 탭 = 가는 테두리에 흐린 글자(조용히).
   2026-12-01 최종 검증: 예전엔 고른 탭이 흰 바탕+그림자라 흰 구역에서 안 고른 탭보다 더 흐려 보였다 */
.tab { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--sub); font: 500 16px/1 var(--display); white-space: nowrap; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.tab:hover { color: var(--ink2); border-color: var(--ink2); }
.tab[aria-pressed="true"] { background: var(--pc); border-color: var(--pc); color: var(--pon); font-weight: 600; cursor: default; }
.tab:focus-visible { outline: 2px solid var(--ink2); outline-offset: 2px; }
.stagebox { position: relative; padding: 32px 0 40px; }
.pv-blob { right: -4%; bottom: -6%; width: min(38%, 440px); z-index: 0; }
[data-side="l"] .pv-blob { right: auto; left: -6%; bottom: 0; }
.device { margin: 0; position: relative; z-index: 1; background: var(--white); box-shadow: var(--card-sh); overflow: hidden; }
.device .vp { position: relative; }
.device .scr { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.device.pc { width: 80%; margin-left: 4%; border-radius: var(--card-r); }
[data-side="l"] .device.pc { margin-left: 16%; }
.device.pc .bar { display: flex; gap: 8px; padding: 12px 16px; background: var(--bg2); border-bottom: 1px solid var(--line); }
.device.pc .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.device.pc .vp { aspect-ratio: 16 / 10; overflow: hidden; }
.device.phone { position: absolute; right: 0; bottom: 0; width: 23%; border-radius: 32px; border: 8px solid var(--ink2); }
[data-side="l"] .device.phone { right: auto; left: 0; }
.device.phone .vp { aspect-ratio: 9 / 19; overflow: hidden; border-radius: 24px; }
.pv-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.cap { margin: 0; flex: 1 1 24em; color: var(--ink2); font: 400 17px/1.7 var(--serif); }

/* ── 누구에게 맞나요: 같은 사람 다른 자세(pose2)를 얼룩 사진으로, 좌우는 서비스마다 ── */
.who-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.who-grid.rev { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.who-grid.rev .who-pic { order: 2; margin-left: 0; margin-right: -6%; }
.who-pic { aspect-ratio: 4 / 5; width: 100%; max-height: 720px; margin-left: -6%; }
.who-pic img { --pt: 5%; }
.who-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.who-list li { position: relative; padding-left: 28px; font: 400 18px/1.6 var(--serif); }
.who-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; background: var(--pc); -webkit-mask: var(--mC) center / 100% 100% no-repeat; mask: var(--mC) center / 100% 100% no-repeat; }
.who-side { margin-top: clamp(32px, 4vw, 48px); }
.who-side h3 { margin: 0 0 12px; font-size: 18px; }
.who-side .sub { margin-top: 24px; }
.who-notes { margin: 0; display: grid; }
.who-notes div { padding: 16px 0; border-top: 1px solid var(--line); }
.who-notes div:first-child { border-top: 0; padding-top: 4px; }
.who-notes dt { font: 500 14px/1.4 var(--display); color: var(--sub); margin-bottom: 8px; }
.who-notes dd { margin: 0; font: 400 17px/1.7 var(--serif); color: var(--ink2); }
.who-notes .to { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-right: 12px; font: 500 16px/1 var(--display); color: var(--ink2); text-underline-offset: 4px; }
.who-notes .to svg { width: 16px; height: 16px; }
.books { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.books a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: 16px; color: var(--ink2); }
.books a:hover { background: var(--bg2); }
.books.shut li:nth-child(n+7) { display: none; }
.more-books { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; padding: 0 4px; border: 0; background: none; color: var(--ink2); font: 500 16px/1 var(--display); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.onebook { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 16px 20px; border-radius: var(--card-r); background: var(--bg2); text-decoration: none; color: var(--ink2); }
.ob-k { grid-column: 1; font: 500 14px/1.4 var(--display); color: var(--sub); }
.ob-n { grid-column: 1; font: 600 20px/1.3 var(--display); color: var(--ink); }
.ob-a { grid-column: 2; grid-row: 1 / 3; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 500 16px/1 var(--display); }
.ob-a svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.onebook:hover .ob-a svg { transform: translateX(4px); }
.nobook { margin: 0; color: var(--sub); font: 400 17px/1.75 var(--serif); }

/* ── 다른 공부: 서비스마다 그 사람의 작은 얼룩 사진 카드 ── */
.others { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.ot { display: flex; flex-direction: column; height: 100%; padding: 16px 16px 20px; color: var(--ink2); text-decoration: none; transition: transform .35s var(--ease); }
.ot:hover, .ot:focus-visible { transform: translateY(-4px); }
.ot .fl-pic { width: 100%; aspect-ratio: 1.15; margin-bottom: 16px; }
.ot .fl-pic img { --pt: 4%; object-position: 50% 8%; transition: transform .5s var(--ease); }
.ot:hover .fl-pic img { transform: scale(1.04); }
.otn { font: 600 17px/1.3 var(--display); }
.otr { margin-top: 4px; font-size: 14px; color: var(--sub); }
.ota { margin-top: auto; padding-top: 12px; display: flex; justify-content: flex-end; }
.ota svg { width: 20px; height: 20px; transition: transform .35s var(--ease); }
.ot:hover .ota svg { transform: translateX(4px); }

/* ── 시작하기: 흰 카드 + 그 서비스의 사물 그림(사람 사진 되풀이 대신) ── */
.end-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.end-grid.rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.end-grid.rev .end-obj { order: -1; }
.end-card h2 { margin: 0 0 12px; font-size: clamp(2rem, 3.4vw, 3rem); }
.end-note { margin: 0 0 28px; color: var(--ink2); font: 400 18px/1.75 var(--serif); }
.sp-facts.flat { margin: 0 0 32px; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.sp-facts.flat div, .sp-facts.flat div:first-child { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
.sp-facts.flat div:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.sp-facts.flat div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.sp-facts.flat dd { font-size: clamp(18px, 1.6vw, 22px); }
.end-obj { position: relative; margin: 0; display: grid; place-items: center; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.eo-blob { inset: 4%; width: auto; }
.end-obj img { position: relative; width: 82%; height: auto; filter: drop-shadow(0 20px 28px rgb(30 34 60 / .16)); }

@media (max-width: 1100px) {
  .others { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sp-hero .sp-stage { width: 58vw; height: min(76vh, 720px); top: -40px; }
  .sp-stage .sym { width: 22%; }   /* 두 칸 그대로인 중간 너비: 글 칸 쪽으로 내밀지 않고 무대 끝에 맞춰 단추와 띄운다 */
  .side-r .sym { left: 0; } .side-l .sym { right: 0; }
  .st { gap: 4px; }
  .sem { font-size: 14px; letter-spacing: -0.04em; }
}
@media (max-width: 1000px) {
  .st .sem.two { visibility: hidden; }
}
@media (max-width: 860px) {
  .sp-learn .sp-facts.lift, .sp-facts.lift { margin-top: calc(-1 * clamp(72px, 9vw, 128px) - var(--wh) * 1.2); }
  .sp-facts { grid-template-columns: 1fr 1fr; }
  .sp-facts div { padding: 12px 16px; border-left: 0; border-top: 1px solid var(--line); }
  .sp-facts div:nth-child(-n+2) { border-top: 0; }
  .sp-facts div:nth-child(odd) { padding-left: 0; }
  .sp-facts div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .track { grid-auto-flow: row; gap: 0; }
  .track::before, .track::after { left: 23px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto; }
  .track::after { transform: scaleY(var(--fill, 1)); transform-origin: top; }
  .track li { display: grid; grid-template-columns: 48px 1fr; column-gap: 20px; padding-bottom: 28px; }
  .track .dot { grid-row: span 2; }
  .track h3 { margin: 12px 0 4px; }
  .pv-blob, [data-side="l"] .pv-blob { width: 56%; bottom: -16px; right: 0; }
  [data-side="l"] .pv-blob { left: 0; right: auto; }
  .device.pc, [data-side="l"] .device.pc { width: 100%; margin-left: 0; }
  .device.phone, [data-side="l"] .device.phone { position: relative; left: auto; right: auto; width: 52%; margin: -64px 0 0 auto; }
  [data-side="l"] .device.phone { margin: -64px auto 0 0; }
  .who-grid, .who-grid.rev { grid-template-columns: minmax(0, 1fr); }
  .who-pic, .who-grid.rev .who-pic { order: 0; width: 86%; margin: 0 auto 0 -8%; }
  .who-grid.rev .who-pic { margin: 0 -8% 0 auto; }
  .others { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ot { padding: 12px 12px 16px; }
  .end-grid, .end-grid.rev { grid-template-columns: minmax(0, 1fr); }
  .end-obj { order: -1; width: 72%; margin: 0 0 -24px auto; }
  .end-grid.rev .end-obj { margin: 0 auto -24px 0; }
  .exam { grid-template-columns: minmax(0, 1fr); }
  .board { position: relative; top: 0; }
  .bridge { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 0; }
  .br-end { justify-self: start; }
  .br-end.b { justify-self: end; }
  .br-stones { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 4px 0; }
  .br-stones::before { display: none; }
  .br-stones li { --a: calc(sin((var(--k) + .5) / 8 * 180deg) * 22%); transform: translateX(var(--a)); width: 70%; min-height: 0; grid-template-columns: 28px 1fr; justify-items: start; align-items: center; text-align: left; padding: 10px 16px; }
}
/* 휴대폰·작은 태블릿: 사진이 위, 글이 아래. 얼룩은 세로로 넉넉하게(얼굴~손까지), 사진 쪽 화면 끝 밖으로 번진다 */
@media (max-width: 700px) {
  .h-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 0; }
  .side-l .h-text { grid-column: auto; padding-left: 0; }
  .sp-hero .sp-stage { position: relative; top: auto; left: auto; right: auto; order: -1; width: auto; height: min(50svh, 460px); aspect-ratio: .86; margin: 0 0 12px; }
  .side-r .sp-stage { justify-self: end; margin-right: calc(-1 * max(24px, 4vw) - 4vw); }
  .side-l .sp-stage { justify-self: start; margin-left: calc(-1 * max(24px, 4vw) - 4vw); }
  .sp-stage .fl-mask .ph { --pt: 3%; }
  .hero-dot { width: clamp(24px, 8vw, 36px); }
  .dot-tl { left: 1%; top: 1%; } .dot-tr { right: 1%; top: 1%; }
  .sp-stage .sym { width: 28%; bottom: 4%; }
  .side-r .sym { left: -10%; } .side-l .sym { right: -10%; }
  .h-title { margin-bottom: 16px; }
  .sp-intro { margin-bottom: 24px; }
  .h-text { padding-block: 0; }
  .st { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 22px; height: auto; gap: 6px; }
  .st li { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; }
  .st .sem, .st .sem.two { order: -1; visibility: visible; width: 44px; flex: none; text-align: left; }
  .st i { height: 14px; width: calc(10% + var(--k) * 5.6%); border-radius: 2px 6px 6px 2px; }
  .st i::after { transform-origin: left; }
  .ruler { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .reel { padding: 0 16px; grid-template-columns: repeat(2, minmax(0, 180px)); }
  .rl, .rl:first-child { padding: 0; border-left: 0; }
  .rl h3 { order: 0; margin: 0 0 4px; }
  .rl-n { order: 0; margin: 0 0 12px; }
  .rl-ticks { min-height: 0; }
  .end-obj { width: 80%; }
}
@media (max-width: 400px) {
  .pill a { padding: 0 11px; font-size: 14px; }
  .sp-facts dd { font-size: 18px; }
  .lead, .sp-intro { font-size: 17px; }
  .br-stones li { width: 78%; }
}
/* 낮은 휴대폰 화면(320×568, 360×740 등): 사진을 낮춰 첫 화면 안에 제목과 단추가 들어오게 */
@media (max-width: 700px) and (max-height: 780px) {
  .sp-hero .sp-stage { height: min(40svh, 340px); }
  .h-title { font-size: 2.25rem; }
  .sp-intro { font-size: 16px; line-height: 1.7; }
}

/* 자주 묻는 질문(2026-12-03) — 아코디언 두 단계: 묶음(.faq-grp) 안에 질문(.faq-q), 같은 묶음에서 질문은 하나만 열림 */
.faq-box { max-width: 880px; margin: 0 auto; padding: clamp(20px, 3vw, 40px); }
.faq-box h2 { margin: 0 0 20px; font-size: clamp(2rem, 3.4vw, 3rem); }
.faq-grps { display: grid; gap: 12px; }
.faq-grp { border: 1px solid var(--line, rgba(0,0,0,.1)); border-radius: 16px; background: var(--white, #fff); }
.faq-grp > summary { list-style: none; cursor: pointer; min-height: 64px; display: flex; align-items: center; gap: 10px; padding: 12px 24px; font: 600 18px/1.3 var(--display); color: var(--ink); }
.faq-n { min-width: 28px; height: 24px; padding: 0 8px; border-radius: 12px; background: var(--bg2); color: var(--sub); display: inline-grid; place-items: center; font: 500 13px/1 var(--display); }
.faq-grp > summary::after, .faq-q > summary::after { content: ""; margin-left: auto; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--sub); border-bottom: 2px solid var(--sub); transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease); }
.faq-grp[open] > summary::after, .faq-q[open] > summary::after { transform: rotate(-135deg); }
.faq-grp > .faq-a > .qa { padding: 0 12px 12px; }
.qa { display: grid; gap: 8px; }
.faq-q { background: var(--bg2); border-radius: 12px; }
.faq-q > summary { list-style: none; cursor: pointer; min-height: 57px; display: flex; align-items: center; gap: 16px; padding: 12px 20px; font: 500 16px/1.45 var(--display); }
.faq-grp > summary::-webkit-details-marker, .faq-q > summary::-webkit-details-marker { display: none; }
.faq-grp > summary:focus-visible, .faq-q > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 12px; }
.faq-q .faq-a p { margin: 0; padding: 0 20px 18px; max-width: calc(40em + 40px); color: var(--sub); font: 400 16px/1.75 var(--serif); }
/* 열고 닫을 때 높이를 부드럽게(지원 브라우저만 — 안 되는 곳은 바로 열림) */
@supports (interpolate-size: allow-keywords) {
  .faq-box { interpolate-size: allow-keywords; }
  .faq-grp::details-content, .faq-q::details-content { height: 0; overflow: clip; transition: height .32s var(--ease), content-visibility .32s allow-discrete; }
  .faq-grp[open]::details-content, .faq-q[open]::details-content { height: auto; }
}
@media (prefers-reduced-motion: reduce) { .faq-grp::details-content, .faq-q::details-content { transition: none; } }
@media (max-width: 560px) { .faq-grp > summary { padding: 12px 16px; } .faq-grp > .faq-a > .qa { padding: 0 8px 8px; } .faq-q > summary { padding: 12px 14px; } .faq-q .faq-a p { padding: 0 14px 16px; } }
