/* 메인 홈 · 전자책 상세 · 로컬 미리보기 공통 */
/* duo.css 의 색 · 움직임 값은 body.home 에만 있다 — 시안 body 에는 home 을 안 붙이므로 여기서 같은 값을 준다(없으면 단추 바탕이 비어 흰 글자만 남는다) */
body { --dp-ink: var(--ink); --dp-gray: var(--soft); --dp-gray2: var(--faint); --dp-alt: var(--paper-hi); --dp-line: var(--rule); --dp-link: var(--accent); --dp-blue: var(--accent); --dp-ease: cubic-bezier(.4, 0, .6, 1); --dp-move: cubic-bezier(.25, .1, .3, 1); --gutter: 6.25%; --header: 76px; } /* --gutter · --header 는 책 넘겨 보기(hero.css)가 쓴다 — 떠 있는 머리줄 높이 + 위 여백 */
/* 홈 시안 4(로컬 전용 /draft/): 시안 2(speak.com/ko 참고 — 떠 있는 둥근 머리줄 · 한 문장 첫 화면 + 휴대폰 · 회색 띠 위 흰 카드 · 낱말이 진해지는 제목 ·
   겹쳐 쌓이는 걸음 카드 · 질문 카드 · 끝 권유 · 큰 먹색 푸터) 위에, 본문을 전자책(옆으로 넘기는 카드) · AI 학습(겹쳐 쌓이는 네 걸음) · 앱(가운데가 커지는 화면 넘김) 세 구역으로.
   수업 장면은 duo.js(data-scene) */
body { background: var(--paper); overflow-x: clip; }
html:has(> body:is(.landing-main, .landing-detail)) { --header: 76px; }
body.landing-main { font: 400 16px/1.7 var(--sans); }
.hb-in { width: min(1180px, 87.5%); margin: 0 auto; }
.hb-draft { position: fixed; left: 50%; bottom: 16px; z-index: 90; transform: translateX(-50%); padding: 9px 14px; border-radius: 999px; background: var(--ink); color: var(--paper-hi); font: 700 12px/1 "Paperlogy Bold", var(--sans); box-shadow: 0 8px 24px -10px rgb(0 0 0 / .45); white-space: nowrap; }

/* 머리줄: 화면 위에 떠 있는 흰 알약 */
.hb-bar { position: sticky; top: 10px; z-index: 80; display: flex; align-items: center; gap: 2px; box-sizing: border-box; width: min(1180px, calc(100% - 20px)); height: 56px; margin: 10px auto 0; padding: 0 8px 0 20px; border-radius: 999px; background: color-mix(in srgb, var(--paper-hi) 84%, transparent); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); box-shadow: 0 0 0 1px rgb(25 25 25 / .06), 0 10px 30px -16px rgb(42 42 42 / .3); }
.hb-brand { display: inline-flex; align-items: center; gap: 7px; margin-right: auto; }
.hb-brand img { flex: none; width: auto; }
.hb-brand-mark { height: 28px; border-radius: 5px; }
.hb-brand-wordmark { height: 21px; }
.hb-links { display: flex; gap: clamp(10px, 2vw, 26px); margin-right: clamp(4px, 1.2vw, 12px); white-space: nowrap; }
.hb-links a, .hb-login, .hb-my { display: flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 999px; color: rgb(25 25 25 / .78); font: 400 14px/1 var(--sans); transition: background-color .2s, color .2s; }
.hb-links a:hover, .hb-login:hover, .hb-my:hover { background: rgb(25 25 25 / .05); color: var(--ink); }
.hb-teacher { gap: 6px; }
.hb-teacher-mark { flex: none; width: 24px; height: 24px; border-radius: 5px; }
.hb-cta { display: inline-flex; align-items: center; gap: 6px; height: 40px; margin-left: 6px; padding: 0 16px; border-radius: 999px; background: var(--action); color: #fff; font: 700 14px/1 "Paperlogy Bold", var(--sans); white-space: nowrap; transition: background-color .2s; }
.hb-cta:hover { background: var(--accent-hover); }
.hb-my { flex: none; margin-left: 6px; padding: 0 16px; background: rgb(25 25 25 / .06); color: var(--ink); font: 700 14px/1 "Paperlogy Bold", var(--sans); white-space: nowrap; } /* 내 정보(/login/ 팝업 — my.js) — 늘 보인다 */
.hb-my:hover { background: rgb(25 25 25 / .1); }
.hb-links a[aria-current="page"] { background: rgb(25 25 25 / .05); color: var(--ink); }
/* 넓은 화면: 메뉴는 가운데, 언어 · 로그인 · 가입은 오른쪽에 모은다 */
@media (min-width: 860px) { .hb-links { position: absolute; left: 50%; gap: 4px; margin-right: 0; transform: translateX(-50%); } }
/* 언어 단추: 머리줄 안에서는 테두리 없이 지구 모양 + en/ko(다른 메뉴와 같은 결) */
.hb-bar .locale-switch { gap: 4px; min-height: 32px; padding-inline: 8px 10px; border: 0; background: transparent; color: rgb(25 25 25 / .66); transition: background-color .2s, color .2s; }
.hb-bar .locale-switch:hover { background: rgb(25 25 25 / .05); color: var(--ink); }
.hb-bar .locale-switch::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") center / contain no-repeat; }
:is(.hb-bar, .voca-header) + .dp-ribbon { width: min(1180px, calc(100% - 20px)); margin: 12px auto 0; border-radius: 16px; }
@media (max-width: 640px) { .hb-bar { padding-left: 14px; } .hb-brand { gap: 6px; } .hb-brand-mark { height: 25px; } .hb-brand-wordmark { height: 19px; } .hb-login, .hb-cta .long { display: none; } .hb-links a { padding: 0 6px; font-size: 13px; } .hb-cta, .hb-my { padding: 0 11px; font-size: 13px; } .hb-links, .hb-teacher { gap: 4px; } .hb-teacher-mark { width: 20px; height: 20px; } .hb-bar .locale-switch { padding-inline: 6px; } .hb-bar .locale-switch::before { display: none; } }
@media (max-width: 420px) { .hb-cta:not(.hb-signup) { display: none; } .hb-bar { padding-right: 6px; } }
@media (max-width: 380px) { .hb-bar { padding-left: 10px; } .hb-brand { gap: 4px; } .hb-brand-mark { height: 22px; } .hb-brand-wordmark { height: 17px; } .hb-links a { padding-inline: 4px; font-size: 12px; } .hb-signup, .hb-my { margin-left: 2px; padding-inline: 9px; font-size: 12px; } .hb-teacher-mark { display: none; } }
@media (max-width: 390px) { .hb-bar:has(.dev-palette-trigger) .hb-links { gap: 5px; } }
@media (max-width: 360px) {
  .hb-bar:has(.dev-palette-trigger) { padding-inline: 6px; }
  .hb-bar:has(.dev-palette-trigger) .hb-brand-wordmark { height: 15px; }
  .hb-bar .dev-palette-trigger { width: 32px; margin-inline-start: 1px; }
}

/* 단추 */
.hb-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hb-actions.c { justify-content: center; }
.hb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; background: var(--action); color: #fff; font: 700 15px/1 "Paperlogy Bold", var(--sans); transition: background-color .2s, scale .15s; }
.hb-btn:hover { background: var(--accent-hover); }
.hb-btn:active, .hb-cta:active { scale: .97; }
.hb-btn.is-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.hb-btn.is-ghost:hover { background: var(--paper-hi); }

/* 홈과 북리스트에 공통으로 보여 주는 전자책 이용권. */
.ebook-year-pass {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: clamp(.875rem, 2.5vw, 2rem); padding: clamp(1rem, 2.8vw, 1.75rem);
  border: 1px solid var(--rule); border-radius: 1.25rem;
  background: var(--paper-deep); color: var(--ink); text-align: start; word-break: keep-all;
  scroll-margin-top: 1rem;
}
#read > .ebook-year-pass { width: min(100%, 1080px); margin-top: 1rem; }
.booklist > .ebook-year-pass { margin-bottom: 1rem; }
.ebook-year-pass-art { display: grid; place-items: center; width: clamp(6rem, 14vw, 10rem); margin: 0; }
.ebook-year-pass-art img {
  grid-area: 1 / 1; width: 42%; height: auto; border-radius: .2rem;
  box-shadow: 0 .4rem .9rem color-mix(in srgb, var(--ink) 25%, transparent);
}
.ebook-year-pass-art img:nth-child(1) { transform: translateX(-59%) rotate(-10deg) scale(.86); }
.ebook-year-pass-art img:nth-child(2) { transform: translateX(59%) rotate(10deg) scale(.86); }
.ebook-year-pass-art img:nth-child(3) { z-index: 1; }
.ebook-year-pass .ebook-year-pass-copy h2 {
  margin: 0; font: 700 clamp(1.3rem, 3vw, 2.1rem)/1.2 "Paperlogy Bold", var(--sans); letter-spacing: -.035em;
}
.ebook-year-pass-copy p { margin-top: .4rem; color: var(--soft); font-size: .9rem; line-height: 1.5; }
.ebook-year-pass-copy strong { display: block; margin-bottom: .2rem; color: var(--ink); text-wrap: balance; }
.ebook-year-pass-details { display: grid; gap: .65rem; justify-items: end; }
.ebook-year-pass-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; }
.ebook-year-pass-price strong { font: 700 clamp(1.2rem, 2.3vw, 1.5rem)/1.2 "Paperlogy Bold", var(--sans); font-variant-numeric: tabular-nums; }
.ebook-year-pass-price del { color: var(--soft); font-size: .8125rem; white-space: nowrap; }
.ebook-year-pass-details a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 42rem) {
  .ebook-year-pass { grid-template-columns: minmax(0, 1fr) auto; }
  .ebook-year-pass-art { grid-area: 1 / 2; }
  .ebook-year-pass-copy { grid-area: 1 / 1; }
  .ebook-year-pass-details {
    grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    padding-top: .75rem; border-top: 1px solid var(--rule);
  }
}

/* 첫 화면: 왼쪽 한 문장 · 오른쪽 휴대폰(전자책 쪽) + 떠 있는 AI 수업 말풍선 */
.hb-hero { display: grid; gap: 24px; align-items: center; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 104px); }
@media (min-width: 960px) { .hb-hero { grid-template-columns: 1.05fr .95fr; } }
.hb-hero h1 { font: 700 clamp(34px, 5.4vw, 66px)/1.14 "Paperlogy Bold", var(--sans); letter-spacing: -.04em; }
.hb-hero-copy > p { margin-top: 20px; max-width: 30em; color: var(--soft); font-size: clamp(15px, 1.4vw, 18px); line-height: 1.65; }
.hb-hero-art { position: relative; display: grid; place-items: center; min-height: 600px; }
.hb-hero-art::before { content: ""; position: absolute; width: min(520px, 96%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 20%, transparent), transparent); }
.hb-phone { position: relative; box-sizing: border-box; width: 272px; aspect-ratio: 9 / 19.2; padding: 10px; border-radius: 48px; background: var(--ink); box-shadow: 0 40px 80px -30px rgb(25 25 25 / .6), inset 0 0 0 2px #383838; rotate: 5deg; }
.hb-screen { position: relative; display: grid; grid-template-rows: 1fr auto; gap: 12px; height: 100%; padding-block: 46px 20px; overflow: hidden; border-radius: 38px; }
.hb-screen, .hb-reader-screen, .hb-situation-example {
  background: var(--reel-paper);
  background-blend-mode: luminosity;
}
.hb-screen::before { content: ""; position: absolute; z-index: 1; top: 11px; left: 50%; width: 86px; height: 24px; border-radius: 999px; background: var(--ink); transform: translateX(-50%); }
.hb-study-device { position: relative; }
.hb-study-page { container-type: inline-size; position: relative; align-self: start; aspect-ratio: 3 / 5; overflow: hidden; }
.hb-study-content {
  position: relative; display: flex; flex-direction: column; height: 100%; padding: 23.333cqw 8cqw 0;
  font-family: var(--sans); text-align: center; word-break: keep-all;
}
.hb-study-content > * { position: relative; z-index: 1; }
.hb-study-content .hb-study-illustration {
  position: absolute; z-index: 0; inset: 0 auto auto 0; width: 100%; height: auto;
  transform-origin: center top; transform: translateY(10.833cqw) scale(1.1);
}
.hb-study-content .hb-study-kicker { position: absolute; inset: 5cqw auto auto 8cqw; color: var(--faint); font-size: 3.167cqw; line-height: 1; }
.hb-study-word { font: 400 13cqw/1.05 var(--serif); letter-spacing: -.01em; }
.hb-study-meaning { margin-top: 1.167cqw; color: var(--soft); font-size: 4.5cqw; line-height: 1.35; }
.hb-study-sentence { margin-top: 4.5cqw; font: 400 5.667cqw/1.38 var(--serif); }
.hb-study-sentence .key { color: var(--learning-accent); }
.hb-reader-screen .hb-study-word.is-reading,
.hb-reader-screen .hb-study-sentence span.is-reading {
  border-radius: .15em;
  background: rgb(var(--learning-accent-rgb) / .22);
  box-shadow: 0 0 0 .08em rgb(var(--learning-accent-rgb) / .22);
  transition: background-color .15s, box-shadow .15s;
}
.hb-study-translation { margin-top: 1.917cqw; color: var(--soft); font-size: 4.083cqw; line-height: 1.55; }
.hb-study-sentence, .hb-study-translation { text-wrap: balance; text-shadow: 0 0 4px var(--reel-paper-color), 0 0 8px var(--reel-paper-color); }
.hb-study-words { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.167cqw; margin: 2.833cqw 0 0; padding: 0; list-style: none; }
.hb-study-words li { padding: .833cqw 1.833cqw 1cqw; border-radius: 999px; background: var(--paper-deep); font-size: 2.75cqw; line-height: 1.2; }
.hb-study-words [lang="en"] { font-family: var(--serif); font-size: 2.917cqw; }
.hb-study-content .hb-study-footer { position: absolute; inset: auto 8cqw 5.333cqw; display: flex; justify-content: space-between; color: var(--faint); font-size: 2.583cqw; }
.hb-study-content .-epub-media-overlay-active { border-radius: 2px; background: rgb(var(--learning-accent-rgb) / .2); }
.hb-study-listen {
  position: relative; justify-self: center;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 116px; min-height: 32px; padding: 0 11px 0 6px;
  border: 1px solid rgb(25 25 25 / .12); border-radius: 999px;
  background: var(--audio-action); color: #fff;
  box-shadow: 0 4px 12px -6px rgb(25 25 25 / .25);
  font: 400 12px/1.2 var(--sans); white-space: nowrap; cursor: pointer;
}
.hb-study-listen::before { content: "▶" / ""; display: grid; flex: none; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgb(255 255 255 / .16); color: #fff; font-size: 8px; }
.hb-study-listen:hover { background: var(--audio-action-hover); }
.hb-study-listen::after { content: ""; position: absolute; inset: -7px 0; }
.hb-study-listen[aria-pressed="true"]::before { content: "■" / ""; }
.hb-study-listen:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.hb-study-bubble {
  position: absolute; z-index: 2; display: grid; gap: 3px;
  padding: 11px 14px; border-radius: 16px; background: #fff;
  box-shadow: 0 12px 24px -12px rgb(42 42 42 / .32), 0 0 0 1px rgb(25 25 25 / .05);
  font: 400 11px/1.3 var(--sans); color: var(--soft); white-space: nowrap;
  pointer-events: none; animation: hb-bob 5s ease-in-out infinite;
}
.hb-study-bubble strong { color: var(--ink); font: 700 13px/1.2 "Paperlogy Bold", var(--sans); }
.hb-study-bubble::after { content: ""; position: absolute; bottom: 7px; width: 9px; height: 12px; background: inherit; }
.hb-study-bubble:has(.hb-bubble-icon) { grid-template-columns: auto auto; column-gap: 9px; align-items: center; padding-left: 10px; }
.hb-bubble-icon {
  grid-row: 1 / span 2; box-sizing: border-box; width: 32px; height: 32px; padding: 6px;
  border-radius: 50%; background: rgb(0 0 0 / .05); color: var(--ink);
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.hb-study-bubble--voice { top: 17%; left: -44px; }
.hb-study-bubble--voice::after { right: -6px; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.hb-study-bubble--words { bottom: 10%; right: -46px; animation-delay: -2.5s; }
.hb-study-bubble--words::after { left: -6px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.hb-float { position: absolute; z-index: 1; max-width: 210px; padding: 12px 14px; border-radius: 18px; background: #fff; box-shadow: 0 18px 40px -18px rgb(42 42 42 / .45), 0 0 0 1px rgb(25 25 25 / .05); font-size: 13px; line-height: 1.45; animation: hb-bob 5s ease-in-out infinite; }
.hb-float b { display: block; margin-bottom: 4px; color: var(--dp-link); font: 700 11px/1 "Paperlogy Bold", var(--sans); }
.hb-f1 { left: 0; top: 16%; border-end-start-radius: 6px; }
.hb-f2 { right: 0; bottom: 14%; border-end-end-radius: 6px; background: var(--ink); color: #fff; font: 400 14px/1.4 var(--serif); animation-delay: -2.5s; }
@media (min-width: 1100px) { .hb-f1 { left: 4%; } .hb-f2 { right: 4%; } }
@media (max-width: 520px) { .hb-hero-art { min-height: 540px; } .hb-phone { width: 236px; } .hb-float { max-width: 170px; } }
@keyframes hb-bob { 50% { translate: 0 var(--hb-bob-offset, -10px); } }

/* 낭독 강조: 단어가 차례로 진해지고 지금 읽는 단어에는 학습용 강조색을 쓴다. */
.k-on span { color: rgb(25 25 25 / .26); transition: color .25s; }
.k-on span.read { color: var(--ink); }
.k-on span.now { color: var(--learning-accent); }

/* 구역 공통 */
.hb-band, .hb-sec { padding: clamp(72px, 10vw, 140px) 0; }
.hb-band, .hb-sec.is-alt { background: var(--paper-hi); }
.hb-kicker { margin-bottom: 14px; color: var(--dp-link); font: 700 13px/1 "Paperlogy Bold", var(--sans); letter-spacing: .04em; }
.hb-kicker.c, .hb-h2, .hb-lead { text-align: center; }
.hb-h2 { font: 700 clamp(28px, 4.2vw, 52px)/1.24 "Paperlogy Bold", var(--sans); letter-spacing: -.035em; text-wrap: balance; }
.hb-h2 .w { color: rgb(25 25 25 / .18); transition: color .35s; }
.hb-h2 .w.on { color: var(--ink); }
.hb-lead { max-width: 34em; margin: 20px auto 0; color: var(--soft); font-size: clamp(15px, 1.4vw, 18px); line-height: 1.65; }
.hb-memo { margin: 28px auto 0; padding: 12px 16px; border: 1.5px dashed color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 14px; color: var(--dp-link); font-size: 13px; line-height: 1.55; }
.hb-memo b { margin-right: 6px; }
.hb-card { border-radius: 28px; background: var(--paper-hi); box-shadow: 0 0 0 1px rgb(25 25 25 / .05), 0 22px 44px -30px rgb(42 42 42 / .4); }

/* 세 서비스 문: 회색 띠 위 흰 카드 셋 */
.hb-doors { display: grid; gap: 16px; margin-top: clamp(40px, 6vw, 72px); }
@media (min-width: 1000px) { .hb-doors { grid-template-columns: repeat(3, 1fr); } }
.hb-door { display: flex; flex-direction: column; gap: 20px; min-height: 520px; padding: clamp(24px, 3vw, 36px); }
.hb-door .hb-kicker { margin-bottom: -10px; }
.hb-door-line { margin-top: -10px; color: var(--soft); font-size: 14px; line-height: 1.5; }
.hb-door-go { align-self: stretch; }
.hb-door .hb-lv { padding-bottom: 12px; }
.hb-door h3 { font: 700 clamp(22px, 2.4vw, 30px)/1.25 "Paperlogy Bold", var(--sans); letter-spacing: -.03em; }
.hb-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hb-stats li { display: grid; gap: 6px; padding: 14px 6px; border-radius: 16px; background: var(--paper-hi); text-align: center; }
.hb-stats b { font: 700 clamp(22px, 2.4vw, 28px)/1 "Paperlogy Bold", var(--sans); font-variant-numeric: tabular-nums; }
.hb-stats span { color: var(--soft); font-size: 13px; line-height: 1; }
.hb-fan { position: relative; flex: none; width: 150px; aspect-ratio: 2 / 3; margin: auto; }
.hb-lv { display: grid; gap: 18px; margin-block: auto; }
.hb-fan img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 5px 10px 10px 5px; box-shadow: 0 20px 40px -18px rgb(0 0 0 / .4), 0 0 0 1px rgb(0 0 0 / .06); transition: transform .7s var(--dp-move); }
.hb-fan img:nth-child(1) { transform: translateX(-30%) rotate(-8deg) scale(.82); }
.hb-fan img:nth-child(2) { transform: translateX(30%) rotate(8deg) scale(.82); }
.hb-door.is-in .hb-fan img:nth-child(1) { transform: translateX(-46%) rotate(-12deg) scale(.82); }
.hb-door.is-in .hb-fan img:nth-child(2) { transform: translateX(46%) rotate(12deg) scale(.82); }
.hb-levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding-top: 44px; }
.hb-levels span { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: var(--paper-hi); color: var(--soft); font: 700 13px/1 "Paperlogy Bold", var(--sans); transition: background-color .4s, color .4s, scale .4s; transition-delay: calc(var(--d) * 220ms); }
.hb-levels .me::after { content: "내 레벨"; position: absolute; bottom: calc(100% + 10px); left: 50%; padding: 6px 9px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 11px; white-space: nowrap; opacity: 0; transform: translate(-50%, 6px); transition: opacity .3s .8s, transform .3s .8s; }
.is-in .hb-levels span:nth-child(-n+2) { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--dp-link); }
.is-in .hb-levels .me { background: var(--dp-blue); color: #fff; scale: 1.1; }
.is-in .hb-levels .me::after { opacity: 1; transform: translate(-50%, 0); }
.hb-levels-note { color: var(--soft); font-size: 14px; line-height: 1.6; text-align: center; }
.hb-door-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid rgb(25 25 25 / .08); }
.hb-price { color: var(--soft); font-size: 14px; line-height: 1.4; }
.hb-price del { margin-right: 4px; }
.hb-price strong { color: var(--ink); font: 700 18px/1 "Paperlogy Bold", var(--sans); }

/* AI 수업 카드는 가로로 한 장씩 넘긴다. */
.hb-steps { width: min(100%, 1024px); min-width: 0; }
.hb-step-deck { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.hb-step-cards {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-block: 2px 12px;
}
.hb-step-cards::-webkit-scrollbar { display: none; }
.hb-step-cards > article { min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.hb-step-nav { display: flex; justify-content: center; align-items: center; gap: 12px; }
.hb-step-nav .dp-paddle { width: 44px; height: 44px; }
.hb-step-count { min-width: 5ch; text-align: center; font-variant-numeric: tabular-nums; color: var(--soft); }
.hb-step {
  display: grid; align-items: center; gap: clamp(16px, 4vw, 52px);
  padding: clamp(14px, 3.4vw, 42px); padding-block-end: clamp(12px, 2vw, 24px);
  border: 1px solid rgb(25 25 25 / .08);
  border-radius: clamp(24px, 4vw, 40px); background: var(--paper-hi);
  box-shadow: 0 20px 40px -28px rgb(42 42 42 / .24);
}
.hb-step--situation { padding-block: clamp(8px, 1vw, 12px) clamp(14px, 2vw, 24px); }
.hb-step-copy { padding: 6px; text-align: center; }
.hb-step-copy h3 { font: 700 clamp(23px, 3.1vw, 41px)/1.24 "Paperlogy Bold", var(--sans); letter-spacing: -.035em; text-wrap: balance; }
.hb-step-copy p { max-width: 27em; margin: 10px auto 0; color: var(--soft); font-size: clamp(15px, 1.4vw, 17px); line-height: 1.65; word-break: keep-all; }
.hb-step-art { display: grid; place-items: center; align-self: stretch; min-width: 0; }
.hb-step-art .tc-card {
  --scene-rate: 2.4;
  width: min(100%, 390px); height: 346px; padding: 4px 6px;
  border-radius: 0; background: transparent; box-shadow: none;
}
.hb-step-art .tc-units { height: 310px; }
.hb-step-art .tc-lesson { height: clamp(370px, 98vw, 392px); }
.hb-step-art .tc-curve { height: 342px; }
.hb-step-art .tcv-stage { justify-self: center; width: min(100%, 270px); }
.hb-step-art .tu-list li { gap: 8px; padding-inline: 8px; font-size: 13px; }
.hb-situation-screen { display: grid; align-self: stretch; grid-template-rows: auto 1fr; justify-items: center; gap: 12px; min-width: 0; }
.hb-situation-label { color: var(--soft); font: 700 13px/1.3 "Paperlogy Bold", var(--sans); }
.hb-situation-examples {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto 1fr; gap: 10px 6px;
  width: min(100%, 760px);
}
.hb-situation-option {
  grid-row: 1; justify-self: center; display: grid; place-items: center;
  width: min(100%, 144px); min-height: 44px; padding: 5px 3px;
  border-radius: 999px; color: var(--action); cursor: pointer;
  font: 700 clamp(13px, 1.7vw, 16px)/1.2 "Paperlogy Bold", var(--sans); text-align: center;
}
.hb-situation-option:first-of-type { justify-self: end; }
.hb-situation-option:last-of-type { justify-self: start; }
.hb-situation-examples input:checked + label { color: #fff; background: var(--event-buy); }
.hb-situation-examples input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.hb-situation-example {
  --scene-height: clamp(142px, 39vw, 190px);
  position: relative; grid-area: 2 / 1 / 3 / -1; display: grid; place-items: center;
  min-width: 0; padding-bottom: var(--scene-height); overflow: hidden; border-radius: clamp(14px, 2vw, 22px);
  visibility: hidden;
}
.hb-situation-examples input:checked + label + .hb-situation-example { visibility: visible; }
.hb-situation-image {
  position: absolute; inset: auto 0 8px; margin-inline: auto;
  width: calc(100% - 24px); height: calc(var(--scene-height) - 12px);
  object-fit: contain; object-position: center bottom;
}
.hb-situation-copy {
  width: min(100%, 620px); min-width: 0; padding: clamp(16px, 2.8vw, 28px) clamp(12px, 3vw, 32px) 8px;
  text-align: center;
}
.hb-situation-topic { margin-bottom: 8px; color: var(--dp-link); font: 700 13px/1.4 "Paperlogy Bold", var(--sans); }
.hb-situation-en { font: 400 clamp(25px, 3.4vw, 42px)/1.12 var(--serif); text-wrap: balance; }
.hb-situation-en mark { background: none; color: var(--learning-accent-text); }
.hb-situation-ko { margin-top: 8px; color: var(--ink); font-size: clamp(15px, 1.6vw, 18px); word-break: keep-all; }
.hb-situation-pattern {
  width: fit-content; margin: 12px auto 0; padding: 4px 12px;
  border: 1px solid var(--rule); border-radius: 999px; background: rgb(255 255 255 / .7); font-size: 14px;
}
@media (min-width: 760px) {
  .hb-step:not(.hb-step--situation) { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .hb-step-copy { text-align: left; }
  .hb-step-copy p { margin-inline: 0; }
  .hb-situation-example { --scene-height: clamp(175px, 23svh, 236px); }
}

/* 두 서비스를 잇는 띠 */
.hb-bridge { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-top: clamp(56px, 8vw, 96px); padding: 22px 28px; border-radius: 24px; background: var(--ink); color: var(--paper-hi); text-align: center; }
.hb-bridge p { font-size: 15px; line-height: 1.5; }
.hb-bridge .tag { display: inline-block; margin-right: 8px; padding: 5px 10px; border-radius: 999px; background: var(--dp-blue); color: #fff; font: 700 12px/1 "Paperlogy Bold", var(--sans); vertical-align: 1px; }
.hb-bridge a { color: var(--accent-on-dark); font-size: 15px; }
.hb-bridge a::after { content: " ›"; }

/* 질문: 가운데 흰 카드 하나, 위에 전자책 · AI 학습 · 앱 탭 */
.hb-faq { max-width: 720px; margin: 40px auto 0; padding: 14px clamp(20px, 3vw, 32px) 18px; }
.hb-tabs { display: inline-flex; gap: 4px; margin: 6px 0 10px; padding: 4px; border-radius: 999px; background: var(--paper-hi); }
.hb-tabs button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--soft); font: 700 14px/1 "Paperlogy Bold", var(--sans); cursor: pointer; transition: background-color .2s, color .2s; }
.hb-tabs [aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgb(25 25 25 / .14); }
.hb-faq details { border-top: 1px solid rgb(25 25 25 / .08); }
.hb-faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 16px; line-height: 1.45; list-style: none; cursor: pointer; }
.hb-faq summary::-webkit-details-marker { display: none; }
.hb-faq summary::after { content: "+"; color: var(--soft); font-size: 20px; line-height: 1; }
.hb-faq details[open] summary::after { content: "–"; }
.hb-faq details p { padding-bottom: 18px; color: var(--soft); font-size: 15px; line-height: 1.65; }

/* 끝 권유 · 푸터 */
.hb-final { padding: clamp(72px, 11vw, 150px) 0; text-align: center; }
.hb-foot { display: grid; gap: 40px; box-sizing: border-box; width: calc(100% - 24px); max-width: 1400px; margin: 0 auto 12px; padding: clamp(28px, 5vw, 64px) clamp(24px, 5vw, 64px) 88px; border-radius: 32px; background: var(--ink); color: var(--paper-hi); }
@media (min-width: 880px) { .hb-foot { grid-template-columns: 1fr auto; align-items: end; padding-bottom: clamp(28px, 5vw, 64px); } }
.hb-foot-mark { font: 400 clamp(54px, 10vw, 150px)/.9 var(--serif); letter-spacing: -.045em; }
.hb-foot-cols { display: grid; grid-template-columns: repeat(3, minmax(92px, auto)); gap: 28px; font-size: 14px; }
.hb-foot-cols h3 { margin-bottom: 10px; color: rgb(255 255 255 / .55); font: 700 12px/1 "Paperlogy Bold", var(--sans); }
.hb-foot-cols a { display: block; padding: 4px 0; color: rgb(255 255 255 / .92); }
.hb-foot-cols a:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) { .hb-float { animation: none; } .hb-fan img, .hb-levels span, .hb-levels .me::after { transition: none; } }

/* 01 전자책: 옆으로 넘기는 핵심 카드 다섯(.dp-gal — duo.js 의 ‹ › 단추) */
.bk .dp-gal-item { flex-basis: min(78vw, 320px); }
@media (min-width: 735px) { .bk .dp-gal-item { flex-basis: 340px; } }
.bk-card { position: relative; box-sizing: border-box; height: 460px; overflow: hidden; border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px rgb(25 25 25 / .05), 0 22px 44px -30px rgb(42 42 42 / .4); }
@media (min-width: 735px) { .bk-card { height: 500px; } }
.bk .dp-gal-cap { padding: 18px 8px 0; font-size: 15px; line-height: 22px; }
.bk-page { padding: 34px 26px 0; background: var(--paper) 50% 100% / cover no-repeat; }
.bk-page .w1 { font: 400 40px/1 var(--serif); }
.bk-page .m { margin-top: 8px; color: var(--soft); font-size: 14px; }
.bk-page .s { margin-top: 22px; font: 400 22px/1.32 var(--serif); }
.bk-page .k { margin-top: 8px; color: var(--soft); font-size: 13px; line-height: 1.5; }
.bk-sound { display: grid; align-content: space-between; padding: 30px 26px; }
.bk-bars { display: flex; align-items: center; gap: 4px; height: 40px; }
.bk-bars i { width: 4px; height: 30%; border-radius: 2px; background: var(--dp-blue); }
.bk-sound [data-karaoke] { font: 400 29px/1.3 var(--serif); }
.bk-sound .k { margin-top: 12px; color: var(--soft); font-size: 14px; line-height: 1.55; }
.bk-sound .tag { justify-self: start; padding: 7px 12px; border-radius: 999px; background: var(--paper-hi); color: var(--soft); font-size: 13px; }

/* 03 앱: 가운데 화면이 크고 밝게 — 옆으로 넘기면 아래 설명이 그 기능으로 바뀐다 */
.ap-badge img { display: block; height: 46px; width: auto; }
.ap-track { --w: min(60vw, 250px); position: relative; display: flex; margin: clamp(40px, 6vw, 64px) calc(50% - 50vw) 0; padding: 16px calc(50vw - var(--w) / 2) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ap-track::-webkit-scrollbar { display: none; }
.ap-item { flex: 0 0 var(--w); box-sizing: border-box; padding: 0 8px; scroll-snap-align: center; transform-origin: 50% 60%; cursor: pointer; will-change: transform; }
.ap-item img { display: block; width: 100%; height: auto; aspect-ratio: 660 / 1434; border-radius: 30px; box-shadow: 0 0 0 1px rgb(255 255 255 / .12), 0 30px 60px -30px rgb(0 0 0 / .8); }
.ap-foot { display: grid; justify-items: center; gap: 18px; margin-top: 28px; text-align: center; }
.ap-cap { min-height: 3em; max-width: 26em; color: rgb(255 255 255 / .72); font-size: 16px; line-height: 1.55; }
.ap-cap b { color: var(--paper-hi); font-weight: 700; }
.ap-nav { display: flex; gap: 14px; }
.is-dark .dp-paddle { background: rgb(255 255 255 / .14); color: var(--paper-hi); }


/* 01 전자책 안의 작은 구역들: 왼쪽 작은 제목 + 한 줄 → 내용 */
.bk-block { margin-top: clamp(64px, 9vw, 120px); }
.bk-sub { display: grid; gap: 8px; margin-bottom: clamp(24px, 3vw, 36px); }
.bk-sub h3 { font: 700 clamp(22px, 2.6vw, 32px)/1.25 "Paperlogy Bold", var(--sans); letter-spacing: -.03em; }
.bk-sub p { max-width: 34em; color: var(--soft); font-size: clamp(15px, 1.4vw, 17px); line-height: 1.6; }
.bk-block .dp-gal { margin-top: 0; }
.bk-vcard .plate { padding: 16px 16px 18px; border-radius: 18px; background: rgb(25 25 25 / .045); }
.bk-vcard .plate + .plate { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.bk-vcard .lb { display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgb(25 25 25 / .24); font-size: 12px; line-height: 16px; }
.bk-vcard .plate + .plate .lb { background: var(--dp-blue); box-shadow: none; color: #fff; }
.bk-vcard .en { font: 400 19px/1.35 var(--serif); }
.bk-vcard .ko { margin-top: 6px; color: var(--soft); font-size: 13px; line-height: 1.5; }
/* 두 권: 넓은 화면 세 칸, 좁은 화면은 옆으로 넘김 */
.bk-vs { display: flex; gap: 14px; margin-inline: calc(50% - 50vw); padding: 4px calc(50vw - 50%) 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: calc(50vw - 50%); scrollbar-width: none; }
.bk-vs::-webkit-scrollbar { display: none; }
.bk-vcard { display: flex; flex: 0 0 min(82vw, 340px); flex-direction: column; overflow: hidden; scroll-snap-align: start; }
@media (min-width: 960px) { .bk-vs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-inline: 0; padding: 0; overflow: visible; } }
.bk-vcard img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 74%; background: var(--paper); }
.bk-vbody { display: grid; flex: 1; grid-template-rows: auto auto 1fr 1fr; gap: 8px; padding: 22px 14px 14px; }
.bk-vbody .w1 { padding: 0 8px; font: 400 34px/1.05 var(--serif); }
.bk-vbody .m { padding: 0 8px 8px; color: var(--soft); font-size: 14px; }
/* 한 권에 담긴 것: 숫자 카드 셋 + 맛보기 */
.bk-stats { display: grid; gap: 12px; }
@media (min-width: 735px) { .bk-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.bk-stats .hb-card { display: grid; gap: 10px; padding: clamp(22px, 3vw, 32px); }
.bk-stats .t { color: var(--dp-link); font: 700 13px/1 "Paperlogy Bold", var(--sans); }
.bk-stats .v { color: var(--soft); font-size: 18px; }
.bk-stats .v b { margin-right: 4px; color: var(--ink); font: 700 clamp(40px, 5vw, 60px)/1 "Paperlogy Bold", var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bk-stats .d { color: var(--soft); font-size: 15px; line-height: 1.5; }
.bk-sample { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin-top: 28px; }
.bk-sample a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule); background: #fff; font: 700 15px/1 "Paperlogy Bold", var(--sans); transition: background-color .2s; }
.bk-sample a:hover { background: var(--paper-hi); }
.bk-sample span { color: var(--soft); font-size: 14px; }
/* 포켓북 줄: 그림 · 이름 · 한 줄 · 값 · 구입하기 */
.bk-shelf .dp-gal-item { flex-basis: min(76vw, 300px); }
@media (min-width: 735px) { .bk-shelf .dp-gal-item { flex-basis: 320px; } }
.bk-tile { display: flex; flex-direction: column; box-sizing: border-box; height: 470px; padding: 28px 24px 20px; text-align: left; }
.bk-tile .badge { align-self: flex-start; padding: 4px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgb(25 25 25 / .16); color: var(--dp-link); font-size: 12px; line-height: 16px; }
.bk-tile h4 { margin: 14px 0 0; font: 700 24px/1.25 "Paperlogy Bold", var(--sans); letter-spacing: -.02em; }
.bk-tile > p { margin-top: 6px; color: var(--soft); font-size: 15px; line-height: 1.5; }
.bk-tile img { flex: 1 1 0; min-height: 0; width: 100%; margin: 16px 0; object-fit: contain; }
.bk-tile .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px; border-top: 1px solid rgb(25 25 25 / .08); }
.bk-tile .pr, .bk-offer .pr { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: baseline; column-gap: 6px; color: var(--soft); font-size: 13px; line-height: 18px; }
.bk-tile .pr strong, .bk-offer .pr strong { grid-column: 1 / -1; color: var(--ink); font: 700 20px/1.3 "Paperlogy Bold", var(--sans); }
.pr .off { color: var(--dp-link); font-weight: 700; }
.hb-btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.hb-sec.bk { padding-bottom: clamp(72px, 10vw, 140px); }
/* 올인원 북 구입 카드(먹색): 무엇을 받는지 · 표지 · 값과 구입 */
.bk-offer { display: grid; gap: 28px; padding: clamp(28px, 4vw, 52px); border-radius: 32px; background: var(--ink); color: var(--paper-hi); }
.bk-offer .hb-btn { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .45); }
.bk-offer .hb-btn:focus-visible { outline-color: var(--paper-hi); }
@media (min-width: 960px) { .bk-offer { grid-template-columns: 1.2fr auto 1fr; align-items: center; gap: 48px; } }
.bk-offer .ev { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--dp-blue); color: #fff; font: 700 12px/1 "Paperlogy Bold", var(--sans); }
.bk-offer h3 { margin-top: 18px; font: 700 clamp(26px, 3vw, 38px)/1.2 "Paperlogy Bold", var(--sans); letter-spacing: -.03em; }
.bk-offer h3 span { display: block; margin-top: 8px; color: rgb(255 255 255 / .66); font: 400 16px/1.4 var(--sans); letter-spacing: 0; }
.bk-offer ul { display: grid; gap: 12px; margin-top: 24px; }
.bk-offer li { display: grid; gap: 2px; padding-left: 16px; border-left: 2px solid var(--dp-blue); color: rgb(255 255 255 / .66); font-size: 14px; line-height: 1.5; }
.bk-offer li b { color: var(--paper-hi); font: 700 16px/1.4 "Paperlogy Bold", var(--sans); }
.bk-offer-art { justify-self: center; width: min(200px, 52vw); height: auto; border-radius: 5px 12px 12px 5px; box-shadow: 0 30px 60px -24px rgb(0 0 0 / .7), 0 0 0 1px rgb(255 255 255 / .08); }
.bk-offer-buy { display: grid; gap: 14px; justify-items: start; }
@media (min-width: 960px) { .bk-offer-buy { justify-items: stretch; } }
.bk-offer .pr { color: rgb(255 255 255 / .6); }
.bk-offer .pr strong { color: var(--paper-hi); font-size: 34px; line-height: 1.2; }
.bk-offer .pr .off { color: var(--accent-on-dark); }
.bk-offer .sample { color: var(--accent-on-dark); font-size: 14px; text-align: center; }
.bk-offer .sample::after { content: " ›"; }

/* 앱 문 카드: 화면 두 장이 겹쳐 있다 펼쳐진다 */
.hb-phones { position: relative; flex: none; width: 124px; aspect-ratio: 660 / 1434; margin: auto; }
.hb-phones img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 18px; box-shadow: 0 0 0 1px rgb(25 25 25 / .08), 0 20px 40px -18px rgb(0 0 0 / .4); transition: transform .7s var(--dp-move); }
.hb-phones img:first-child { transform: translateX(-28%) rotate(-8deg) scale(.86); }
.hb-phones img:last-child { transform: translateX(14%) rotate(3deg); }
.hb-door.is-in .hb-phones img:first-child { transform: translateX(-44%) rotate(-11deg) scale(.86); }
.hb-door.is-in .hb-phones img:last-child { transform: translateX(22%) rotate(5deg); }
.bk .dp-gal { margin-top: clamp(40px, 6vw, 64px); }
.bk .hb-actions.c { margin-top: 40px; }
/* 앱 구역은 밝은 바탕 — 시안 3 의 어두운 판 색을 되돌린다 */
.ap-cap { color: var(--soft); }
.ap-cap b { color: var(--ink); }
.ap-item img { box-shadow: 0 0 0 1px rgb(25 25 25 / .08), 0 30px 60px -30px rgb(42 42 42 / .55); }
@media (prefers-reduced-motion: reduce) { .hb-phones img { transition: none; } }

/* ── 홈 시안 5: 세 구역만 세로로 — 구역마다 한 마디 · 한 줄 · 그림 하나 · 단추 하나 ── */
.sv { display: grid; align-items: center; min-height: min(100svh, 860px); padding: clamp(64px, 9vw, 112px) 0; }
.sv.is-alt { background: var(--paper-hi); }
.sv-in { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; width: min(1180px, 87.5%); margin: 0 auto; }
@media (min-width: 960px) { .sv-in { grid-template-columns: 1fr 1fr; } }
.sv-copy .hb-h2 { font-size: clamp(32px, 4.8vw, 60px); line-height: 1.15; letter-spacing: -.04em; text-align: left; }
.hb-rotating-title { display: grid; grid-template-columns: minmax(0, 1fr); }
.hb-title-line { grid-area: 1 / 1; align-self: center; visibility: hidden; word-break: keep-all; }
.hb-title-line.is-current { visibility: visible; animation: hb-title-rise .55s cubic-bezier(0, 0, .2, 1) both; }
@keyframes hb-title-rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .hb-title-line.is-current { animation: none; } }
.sv-copy .lead { margin-top: 14px; color: var(--soft); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.5; }
.sv-meta { margin-top: 16px; color: var(--soft); font-size: 14px; }
.sv-meta strong { color: var(--ink); font: 700 18px/1 "Paperlogy Bold", var(--sans); }
.sv-meta del { margin-right: 4px; }
.sv .hb-actions { align-items: center; gap: 14px 20px; margin-top: 32px; }
.sv .hb-btn { min-height: 58px; padding: 0 36px; font-size: 17px; box-shadow: 0 14px 28px -14px rgb(0 0 0 / .4); }
.sv-link { color: var(--dp-link); font-size: 15px; }
.sv-link::after { content: " ›"; }
.sv-art { position: relative; display: grid; place-items: center; min-height: 560px; }
.sv-art::before { content: ""; position: absolute; width: min(500px, 96%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 18%, transparent), transparent); }
.sv.is-centered { min-height: 0; padding-block: clamp(60px, 7vw, 104px); }
#book.sv { padding-block-start: clamp(40px, 5vw, 78px); }
.landing-main #book.sv { padding-block-end: 20px; }
#book + #read {
  grid-template-columns: minmax(0, 1fr); grid-template-rows: auto;
  justify-items: center; padding-block-start: 20px;
}
#read:has(.vh-product) > .individual-books { display: none; }
.individual-books .individual-detail { display: block; grid-column: 1 / -1; margin: 0; padding-left: 18px; color: var(--soft); font-size: 13px; } /* hero.js 가 없을 때만 보이는 목록 */
#class.sv { background: var(--ink); }
#class .sv-copy, #class .hb-h2 .w.on { color: var(--paper-hi); }
#class .lead, #class .hb-h2 .w, #class .hb-step-count { color: var(--accent-on-dark); }
#class .hb-step-actions .hb-btn { background: var(--paper-hi); color: var(--ink); }
#class .hb-step-actions .hb-btn:hover { background: var(--paper-deep); }
#class .dp-paddle { background: var(--accent); color: var(--accent-on-dark); filter: grayscale(1); }
#class .dp-paddle:not(:disabled):hover { background: color-mix(in srgb, var(--accent) 85%, var(--accent-on-dark)); }
#class .hb-step-actions :focus-visible, #class .hb-step-cards:focus-visible { outline-color: var(--paper-hi); }
.sv.is-centered .sv-in { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: clamp(24px, 3vw, 38px); }
.sv.is-centered .sv-copy, .sv.is-centered .hb-h2 { text-align: center; }
.sv.is-centered .lead { margin-top: 10px; }
.sv.is-centered .hb-actions { justify-content: center; gap: 10px; margin-top: 22px; }
#class .hb-step-actions { margin-top: 0; }
.sv.is-centered .hb-btn, .sv.is-centered .sv-link { min-height: 50px; padding-inline: 24px; font-size: 15px; }
.sv.is-centered .sv-link { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper-hi); }
.sv.is-centered .sv-link:hover { background: var(--paper-deep); }
@media (min-width: 641px) { .sv.is-centered .hb-h2 br { display: none; } }
.sv.is-centered .sv-art { width: min(100%, 520px); min-height: 0; }
.sv.is-centered .sv-art:has(.hb-reader) { width: min(100%, 560px); }
/* 홈의 전자책 미리보기와 구매 직전 구성 라벨 */
.landing-main #book .sv-in { row-gap: 0; } /* 소개 문구 바로 아래 책 그림(사진 위 투명 여백 약 2%) */
.landing-main #book .sv-art--study { width: min(100%, 628px); }
.landing-main #book .hb-reader-frame { width: min(100%, 90vw); }
.landing-main #book .hb-reader-handwriting { width: min(22vw, 184px); }
.hb-study-content > .hb-slide-illustration {
  position: absolute; inset: 7% 0 auto; z-index: 0; width: 100%; height: 100%;
}
.hb-book-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, 460px);
  margin-top: 12px; padding-block: 14px;
}
.hb-book-stats li {
  display: grid; justify-items: center; gap: 7px; padding-inline: 4px; text-align: center;
}
.hb-book-stats li + li { border-inline-start: 1px solid var(--rule); }
.hb-book-stats strong {
  color: var(--ink); font: 400 clamp(28px, 7.5vw, 44px)/1 var(--serif);
  letter-spacing: -.045em; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap;
}
.hb-book-stats span {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--soft); font: 400 clamp(13px, 3.8vw, 15px)/1.2 var(--sans);
}
.hb-book-stats svg {
  flex: none; width: 18px; height: 18px; color: var(--ink);
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.sv-art:has(.hb-reader)::before { content: none; }
.hb-reader { display: grid; justify-items: center; gap: 12px; width: 100%; }
/* 이어폰까지 담은 사진에서 전자잉크 화면의 중심을 제목과 맞춘다. */
.hb-reader-frame {
  --screen-left: 32.55%; --screen-right: 9.4%;
  --screen-offset: calc((var(--screen-right) - var(--screen-left)) / 2);
  position: relative; isolation: isolate; width: min(100%, 80vw); translate: var(--screen-offset) 0;
}
.hb-reader-photo { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 10px rgb(25 25 25 / .12)); }
/* 생성 이미지에서 전자잉크 패널이 차지하는 비율 */
.hb-reader-screen { position: absolute; inset: 7.6% var(--screen-right) 16.7% var(--screen-left); border-radius: 1.1% / .85%; }
.hb-reader-screen .hb-study-page { height: 100%; aspect-ratio: auto; }
/* 홈 첫 화면 기기: 쪽 여섯 장을 한 줄로 놓고 옆으로 민다(landing.js). 세로 스크롤은 그대로 */
.hb-reader-frame:has(.hb-reader-row) { touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.hb-reader-screen:has(.hb-reader-row) { overflow: hidden; }
.hb-reader-row { display: flex; height: 100%; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.hb-reader-row > .hb-study-page { flex: 0 0 100%; }
@media (prefers-reduced-motion: reduce) { .hb-reader-row { transition: none; } }
.hb-reader-screen .hb-study-content { padding: 12cqw 5cqw 10cqw; }
/* 첫 화면 기기는 화면 폭이 휴대폰에서 180px 안팎이라 라벨을 책 비율보다 키운다(쪽 번호 · 뜻 · 번역 · 단어 칩 · 아래 분류) */
.hb-reader-screen .hb-study-kicker { font-size: max(9px, 4cqw); }
.hb-reader-screen .hb-study-meaning { font-size: max(11px, 5.5cqw); }
.hb-reader-screen .hb-study-sentence { font-size: max(14px, 6.5cqw); }
.hb-reader-screen .hb-study-translation { font-size: max(12px, 5cqw); }
.hb-reader-screen .hb-study-words li { font-size: max(10px, 3.8cqw); }
.hb-reader-screen .hb-study-words [lang="en"] { font-size: inherit; }
.hb-reader-screen .hb-study-footer { font-size: max(9px, 3.6cqw); }
.hb-reader-illustration { flex: 1 1 0; min-height: 0; width: 100%; margin-top: 2cqw; object-fit: contain; mix-blend-mode: multiply; }
.hb-reader-handwriting { position: absolute; z-index: -1; inset: 25% auto auto 92%; width: min(25vw, 184px); height: auto; pointer-events: none; }
.hb-reader .hb-study-bubble { width: max-content; }
.sv-art--study .hb-reader .hb-study-bubble--voice { inset: auto auto 77.5% 12%; }
.hb-reader .hb-study-bubble--voice::after {
  inset: auto auto -7px 16px; width: 12px; height: 8px; clip-path: polygon(0 0, 100% 0, 38% 100%);
}
.sv-art--study .hb-reader .hb-study-bubble--words { --hb-bob-offset: -4px; inset: 55% auto auto 79%; }
.hb-reader .hb-study-bubble--words::after { top: 8px; bottom: auto; clip-path: polygon(0 0, 100% 20%, 100% 100%); }
.hb-reader .hb-study-listen { min-height: 44px; }
.hb-step-art .hb-chat-screen {
  height: clamp(376px, 100vw, 410px); grid-template-rows: auto minmax(0, 1fr) auto;
}
.hb-chat-title { padding: 0 0 10px; border-bottom: 1px solid var(--rule); text-align: center; font: 700 14px/1.3 "Paperlogy Bold", var(--sans); }
.hb-chat-screen .them .tch-b { background: rgb(25 25 25 / .055); }
.hb-chat-screen .tch-win { -webkit-mask-image: linear-gradient(transparent, #000 10%); mask-image: linear-gradient(transparent, #000 10%); }
.hb-chat-screen .tch-input { padding-inline: 12px 6px; font-size: 14px; }
.hb-chat-screen .tch-text { min-width: 0; }
@media (max-width: 759px) and (max-height: 740px) {
  .hb-steps .hb-step-deck { row-gap: 10px; }
  .hb-steps .hb-step { gap: 10px; padding: clamp(12px, 2vw, 20px); }
  .hb-steps .hb-step--situation { padding-block-start: 8px; }
  .hb-steps .hb-step-copy { padding: 0; }
  .hb-steps .hb-step-copy p { margin-top: 6px; }
  .hb-steps .hb-step-art .tc-card { height: clamp(292px, 44svh, 330px); }
  .hb-steps .hb-step-art .tc-lesson { gap: 8px; }
  .hb-steps .hb-step-art .tl-stage { gap: 8px; }
  .hb-steps .hb-step-art .tcv-stage { max-width: 224px; }
  .hb-steps .hb-situation-example { --scene-height: clamp(128px, 25svh, 176px); }
}
.hb-app-shots {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 3vw, 34px);
  width: min(100%, 750px); margin: 0; padding: 4px 0 12px; list-style: none;
}
.hb-app-shots figure { display: grid; justify-items: center; gap: 14px; margin: 0; text-align: center; }
.hb-app-shots img {
  display: block; width: min(100%, 220px); height: auto; aspect-ratio: 1320 / 2868;
  border: 5px solid var(--ink); border-radius: clamp(18px, 3vw, 28px); background: var(--ink);
  box-shadow: 0 18px 30px -18px rgb(25 25 25 / .36);
}
.hb-app-shots figcaption { font: 700 14px/1.4 "Paperlogy Bold", var(--sans); }
@media (max-width: 640px) {
  .hb-app-shots {
    --shot-width: min(62vw, 230px);
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: var(--shot-width);
    padding-inline: calc((100% - var(--shot-width)) / 2);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  }
  .hb-app-shots li { scroll-snap-align: center; }
}
.hb-app-preview { display: grid; justify-items: center; gap: 20px; padding-top: 12px; }
.hb-app-screen { padding: 0; background: var(--paper-deep); }
.hb-app-screen::before { top: 1.2%; width: 23%; height: 4.4%; }
.hb-app-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; visibility: hidden; }
.hb-app-preview:has([value="feed"]:checked) img:nth-child(1),
.hb-app-preview:has([value="book"]:checked) img:nth-child(2),
.hb-app-preview:has([value="quiz"]:checked) img:nth-child(3) { visibility: visible; }
.hb-app-pages { display: flex; }
.hb-app-pages input { appearance: none; display: grid; place-items: center; width: 40px; height: 44px; margin: 0; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.hb-app-pages input::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rule); }
.hb-app-pages input:checked::before { background: var(--ink); }
@media (max-width: 520px) {
  .sv-art { min-height: 500px; }
  .sv-art--study .hb-study-bubble { padding: 8px 10px; border-radius: 13px; font-size: 10px; }
  .sv-art--study .hb-study-bubble strong { font-size: 11px; }
  .sv-art--study .hb-study-bubble--voice { left: -29px; }
  .sv-art--study .hb-study-bubble--words { right: -28px; bottom: 8%; }
  .sv-art--study .hb-study-bubble:has(.hb-bubble-icon) { column-gap: 7px; padding-left: 8px; }
  .sv-art--study .hb-bubble-icon { width: 26px; height: 26px; padding: 5px; }
}
@media (max-width: 380px) {
  .hb-reader-screen .hb-study-content { padding: 10cqw 3cqw; }
}
@media (max-width: 440px) {
  .sv-art--study .hb-reader .hb-study-bubble { padding-inline: 4px; column-gap: 2px; }
  .hb-reader .hb-study-bubble .hb-bubble-icon { grid-row: 1; width: 16px; height: 16px; padding: 2px; }
  .hb-reader .hb-study-bubble > span { grid-column: 1 / -1; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .hb-study-bubble { animation: none; } }
.sv-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; padding: 40px 16px 88px; color: var(--soft); font-size: 13px; }
.sv-foot a:hover { color: var(--dp-link); }

.landing-main .dp-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
/* 화면 아래 할인 띠 */
body { --dock-h: 52px; --dock-side: max(12px, env(safe-area-inset-right)); }
body:has(.hb-event-bar) { --dock-h: 60px; --dock-side: max(10px, env(safe-area-inset-right), (100% - 960px) / 2); }
.hb-event-bar {
  position: fixed; z-index: 70; inset: auto 0 0;
  display: grid; padding: 0 var(--dock-side) calc(10px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.hb-event-in {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: clamp(8px, 2vw, 24px); min-height: var(--dock-h); padding: 0 0 0 clamp(12px, 2.4vw, 24px); /* 가격 단추는 띠 오른쪽 끝에 붙는다 */
  border: 1px solid var(--rule); border-radius: 16px; background: var(--paper-deep); color: var(--ink);
  box-shadow: 0 8px 24px rgb(25 25 25 / .15); pointer-events: auto;
}
/* 왼쪽: 남은 시간 · 상품 이름 · 할인율과 지운 정가 | 오른쪽: 가격 단추(값만) */
.hb-event-copy { display: grid; align-content: center; gap: 2px; min-width: 0; }
.hb-event-actions { align-self: stretch; display: flex; align-items: stretch; gap: clamp(6px, 1vw, 12px); }
.hb-event-preview {
  display: grid; align-content: center; justify-items: center; gap: 2px;
  min-width: 62px; padding: 4px clamp(6px, 1.1vw, 12px);
  border: 1px solid var(--rule); border-radius: 12px; background: #fff; color: var(--ink);
  font: 400 10px/1.1 var(--sans); white-space: nowrap;
}
.hb-event-preview strong {
  font: 700 clamp(20px, 2.7vw, 30px)/1 "Paperlogy Bold", var(--sans);
  font-variant-numeric: tabular-nums; letter-spacing: -.035em;
}
.hb-event-name { font: 700 clamp(14px, 1.8vw, 17px)/1.3 "Paperlogy Bold", var(--sans); text-wrap: balance; }
.hb-event-buy {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 4px clamp(22px, 3.6vw, 36px); border-radius: 0 15px 15px 0; /* 왼쪽은 각지게, 오른쪽은 띠 모서리(16px − 선 1px)에 맞춘다 */
  background: var(--event-buy); color: #fff; white-space: nowrap;
}
.hb-event-clock { color: var(--learning-accent-text); font: 700 13px/1.2 "Paperlogy Bold", var(--sans); font-variant-numeric: tabular-nums; }
.hb-event-was { display: flex; align-items: baseline; gap: 6px; font: 400 13px/1.3 var(--sans); white-space: nowrap; }
.hb-event-off { color: color-mix(in srgb, var(--learning-accent-text) 88%, #000); font-family: "Paperlogy Bold", var(--sans); font-weight: 700; } /* 띠 종이색에서 4.5:1 이 넘게 조금 짙게 */
.hb-event-was del { color: var(--soft); }
.hb-event-buy strong { font: 700 clamp(15px, 2vw, 20px)/1 "Paperlogy Bold", var(--sans); }
.hb-event-buy:hover { background: var(--event-buy-hover); }
.hb-event-buy:focus-visible { outline: 2px solid var(--event-buy); outline-offset: 2px; }
/* iPhone 앱 소개 시트(#app-sheet, landing.js): 결제 시트 틀 + 아이콘 · 제목 · 세 줄 · 단추 */
.home .app-sheet .pay-in { padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); }
.app-sheet img { display: block; border-radius: 14px; }
.app-sheet-tag { margin-top: 16px; color: var(--learning-accent-text); font: 700 14px/20px "Paperlogy Bold", var(--sans); }
.app-sheet-title { margin-top: 4px; color: var(--ink); font: 700 24px/32px "Paperlogy Bold", var(--sans); word-break: keep-all; }
.app-sheet ul { display: grid; gap: 6px; margin: 12px 0 20px; padding: 0; list-style: none; }
.app-sheet li { color: var(--soft); font: 400 15px/22px var(--sans); word-break: keep-all; }
.home .app-sheet .big-btn { width: 100%; box-sizing: border-box; margin-top: 0; }
/* 홈 결제 팝업(#pay-sheet)은 전자책 · 1+1 모두 AI 학습 프리패스 팝업의 머리 · 본문 · 결제 버튼 배치를 쓴다(buy.js openSheet). 책 고르기 목록은 없다 */
.pass-dialog {
  --pass-ink: #1b211e;
  --pass-muted: #5b655f;
  --pass-line: #dfe4e0;
  --pass-edge: #c3cbc6;
  --pass-tint: #e6f1ea;
  --pass-accent: #1e5e3e;
  --pass-inset: 1.65rem;
  inset: 0; width: min(26rem, calc(100% - 2rem)); max-width: none; max-height: min(92dvh, 40rem);
  margin: auto; padding: 0; overflow: hidden; border: 1px solid var(--pass-line); border-radius: 1.2rem;
  background: #fff; color: var(--pass-ink); box-shadow: 0 24px 80px #141e1928;
  font: 1rem/1.55 var(--sans);
}
.pass-dialog[open], .pass-dialog .pay-in, .pass-dialog .signup, .home .pass-dialog #buy-form {
  display: flex; flex-direction: column; min-height: 0;
}
.pass-dialog::backdrop { background: #141e1966; backdrop-filter: blur(3px); }
html:has(.pass-dialog[open]) { overflow: hidden; }
.home .pass-dialog .pay-in { padding: 0; overflow: hidden; }
.pass-dialog .signup { max-width: none; margin: 0; }
.home .pass-dialog #buy-form { gap: 0; margin: 0; align-items: stretch; }
.pass-dialog .pay-art, .pass-dialog .pay-books, .pass-dialog.is-bundle #buy-price, .pass-dialog.is-bundle .pay-book-terms,
.pass-dialog:not(.is-bundle) .pay-book-pass-terms,
.pass-dialog #buy-form .assure, .pass-dialog #buy-note:empty, .pass-dialog #buy-msg:empty,
.pass-dialog .needs-book-pass-login .pass-field { display: none; }
/* 전자책 값: 프리패스 기간 카드(.pass-plan)와 같은 카드 — 왼쪽 책 이름(buy.js data-name), 오른쪽 정가 · 판매가 */
.pass-dialog #buy-price {
  justify-content: flex-end; gap: .25rem .6rem; margin: 0; padding: .65rem 1rem;
  border: 1px solid var(--pass-accent); border-radius: 1rem; background: var(--pass-tint);
  box-shadow: inset 0 0 0 1px var(--pass-accent);
}
.pass-dialog #buy-price::before { content: attr(data-name); margin-right: auto; font: 700 .95rem/1.45 "Paperlogy Bold", var(--sans); }
.pass-dialog #buy-price del { color: var(--pass-muted); font-size: .84rem; }
.pass-dialog #buy-price strong { color: var(--pass-ink); font: 700 1.3rem/1.2 "Paperlogy Bold", var(--sans); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.home .pass-dialog .pay-head { flex: none; gap: .5rem; padding: 1.15rem 1.35rem .15rem var(--pass-inset); }
.home .pass-dialog .pay-title { font: 700 1.48rem/1.35 "Paperlogy Bold", var(--sans); letter-spacing: -.055em; }
.home .pass-dialog .pay-close {
  position: static; width: 2.75rem; height: 2.75rem;
  background: #e9ece9; color: var(--pass-muted); backdrop-filter: none;
}
.home .pass-dialog .pay-close:hover { background: var(--pass-line); }
.pass-dialog .pass-body {
  display: grid; gap: .85rem; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 0 var(--pass-inset) 1rem;
}
.pass-dialog .pay-detail { margin: 0; }
.pass-dialog .pass-offer { display: grid; gap: .85rem; margin: 0; }
.pass-scope { color: var(--pass-muted); font-size: .9rem; }
.pass-plan {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 .75rem;
  padding: .65rem 1rem; border: 1px solid var(--pass-accent); border-radius: 1rem; background: var(--pass-tint);
  box-shadow: inset 0 0 0 1px var(--pass-accent);
}
.pass-plan-name { grid-row: span 2; font: 700 .95rem/1.45 "Paperlogy Bold", var(--sans); }
.pass-plan-price { font: 700 1.3rem/1.2 "Paperlogy Bold", var(--sans); letter-spacing: -.035em; }
.pass-plan-duration { color: var(--pass-accent); font-size: .78rem; }
.pass-plan-price, .pass-plan-duration { justify-self: end; font-variant-numeric: tabular-nums; }
.pass-safe { color: var(--pass-muted); font-size: .84rem; line-height: 1.5; text-align: center; text-wrap: balance; }
.pass-safe b { color: var(--pass-ink); }
.pass-dialog .pass-field {
  display: grid; gap: .1rem; padding: .55rem .95rem .5rem; cursor: text;
  border: 1px solid var(--pass-edge); border-radius: .95rem; background: #fff;
  transition: border-color .16s, box-shadow .16s;
}
.pass-dialog .pass-field:focus-within { border-color: var(--pass-accent); box-shadow: 0 0 0 3px var(--pass-tint); }
.pass-dialog .field-label { color: var(--pass-muted); font-size: .72rem; font-weight: 650; letter-spacing: .01em; }
.home .pass-dialog .email {
  min-height: 1.7rem; padding: 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; color: var(--pass-ink); font: inherit;
}
.pass-dialog :is(.pay-consent, .privacy, .msg) { margin: 0; padding: 0; color: var(--pass-muted); font-size: .84rem; line-height: 1.5; }
.pass-dialog #buy-note:not(:empty), .pass-dialog .done { margin: 0 var(--pass-inset) 1rem; }
.pass-dialog .msg[data-kind="error"] { color: #a23b3b; }
.pass-dialog .pass-actions {
  display: flex; flex: none; gap: .5rem;
  padding: .9rem var(--pass-inset) max(1.2rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--pass-line);
}
.pass-dialog .pass-actions .big-btn {
  flex: 1 1 0; min-width: 0; min-height: 3.1rem; padding-inline: .6rem;
  border: 1px solid transparent; border-radius: 999px; font-size: .92rem; font-weight: 650; white-space: nowrap;
}
.pass-dialog :is(.pay-close, .pass-actions .big-btn):focus-visible { outline-color: var(--pass-accent); }
.pass-dialog .pass-actions [value="kakaopay"] { background: #fee500; color: #191600; }
.pass-dialog .pass-actions [value="kakaopay"]:hover:not(:disabled) { background: #f5dc00; }
.pass-dialog .pass-actions [value="payapp"] { background: #f6f7f5; color: var(--pass-ink); border-color: var(--pass-line); }
.pass-dialog .pass-actions [value="payapp"]:hover:not(:disabled) { background: #e9ece9; border-color: var(--pass-edge); }
@media (max-width: 600px) {
  .pass-dialog { --pass-inset: 1.15rem; inset: auto 0 0; width: 100%; margin: 0; border-radius: 1.4rem 1.4rem 0 0; }
}

/* 전자책 설명 페이지는 운영 홈과 같은 body.home(종이색) — 두 권 이어지는 구역도 같은 바탕, 첫 덩어리는 위 여백 없이 */
.home .hb-sec.bk { background: transparent; padding-top: 0; }
.home .hb-sec.bk > .bk-block:first-child { margin-top: 0; }

/* 전자책 미리보기 아래 구매 카드와 책 구성 */
.landing-detail #allinone-offer {
  display: grid; grid-template-columns: minmax(0, 1fr);
  width: min(87.5%, 1024px); margin: 0 auto;
}
.landing-detail #allinone-offer .hero-gift {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label covers" "title covers" "topics topics";
}
.landing-detail #allinone-offer .hero-gift h2 { font-size: clamp(20px, 4.8vw, 34px); }
.landing-detail #allinone-offer .hero-gift-covers { justify-content: end; margin: 0; }
.landing-detail #allinone-offer .hero-gift-covers img { width: clamp(24px, 7.5vw, 43px); }
.landing-detail #allinone-offer .hero-go { background: #fff; box-shadow: none; color: var(--ink); }
@media (hover: hover) { .landing-detail #allinone-offer .hero-go:hover { background: var(--paper-deep); } }
@media (min-width: 735px) {
  .landing-detail #allinone-offer { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .landing-detail #allinone-offer .hero-order { display: grid; align-content: center; padding: 20px var(--offer-inset); }
  .landing-detail #allinone-offer .hero-included { padding-top: 0; }
}
/* 홈 구입 카드: 올인원 북만 — 포켓북 증정은 구입하기 위 말풍선 하나 */
.landing-main #allinone-offer { grid-template-columns: minmax(0, 1fr); width: min(87.5%, 520px); background: var(--event-buy); }
.landing-main #allinone-offer .hero-go { color: var(--event-buy); }
.landing-main #allinone-offer .hero-order { padding: 20px var(--offer-inset); }
.landing-main #allinone-offer .hero-included { padding-top: 0; }
.landing-main #allinone-offer .hero-included strong { font: 700 clamp(19px, 5vw, 22px)/1.25 "Paperlogy Bold", var(--sans); letter-spacing: -.02em; }
.individual-books { width: min(92%, 960px); margin: 24px auto 56px; }
.individual-books h2 { font: 700 20px/1.4 var(--sans); margin-bottom: 12px; }
.individual-books ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.individual-books li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--rule); border-radius: 16px; background: var(--paper-hi); }
.individual-name { grid-column: 1 / -1; color: var(--ink); font-weight: 700; word-break: keep-all; }
.individual-books strong { color: var(--ink); white-space: nowrap; }
.individual-price { white-space: nowrap; }
.individual-price del { color: var(--soft); font-size: 13px; }
.individual-books a { display: grid; place-items: center; min-height: 44px; padding: 0 13px; border-radius: 999px; background: var(--action); color: white; text-decoration: none; white-space: nowrap; }
.individual-books a:hover { background: var(--accent-hover); }
@media (max-width: 680px) {
  .individual-books ul { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .individual-books li { grid-template-columns: minmax(0, 1fr) auto auto; padding: 8px 10px 8px 14px; }
  .individual-name { grid-column: auto; }
}
.hero-go-wrap { display: grid; justify-items: center; gap: 9px; margin-inline-start: auto; }
.hero-bubble {
  position: relative; padding: 6px 12px; border-radius: 999px;
  background: var(--learning-accent); color: #fff; font: 700 13px/1.2 "Paperlogy Bold", var(--sans); white-space: nowrap;
}
.hero-bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px;
  background: var(--learning-accent); transform: translateX(-50%) rotate(45deg);
}
#inside.dp-sec { padding-block: clamp(60px, 8vw, 112px); }
#inside .dp-story-head { text-align: center; }
#inside .dp-eyebrow { color: var(--soft); font-size: 14px; }
#inside .dp-headline {
  max-width: 18em; margin: 10px auto 0;
  font: 700 clamp(30px, 4.7vw, 56px)/1.16 "Paperlogy Bold", var(--sans); letter-spacing: -.04em;
}
.book-features { gap: 12px; margin-top: clamp(24px, 4vw, 44px); }
.book-features .dp-stat {
  display: grid; grid-template-columns: 56px minmax(0, 1fr);
  grid-template-areas: "art name" "art num" "art desc"; gap: 3px 16px; align-content: center;
  padding: 16px; border: 1px solid var(--rule); border-radius: 22px;
  background: var(--paper-hi); box-shadow: none;
}
.book-features .bf-ic {
  grid-area: art; align-self: center; display: grid; place-items: center; margin: 0; /* duo.css .dp-stat span 여백 끄기 */
  width: 56px; height: 56px; border-radius: 50%; background: var(--paper-deep); color: var(--ink);
}
.bf-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.book-features .dp-stat b { font-size: 14px; letter-spacing: 0; }
.book-features .dp-stat-n { margin: 0; color: var(--ink); }
.book-features .dp-stat-n i {
  font: normal 700 clamp(29px, 4.3vw, 52px)/1 "Paperlogy Bold", var(--sans);
  letter-spacing: -.045em; font-variant-numeric: tabular-nums;
}
.book-features p { grid-area: desc; color: var(--soft); font: 400 14px/1.45 var(--sans); word-break: keep-all; }
#inside .dp-stats-note { margin-top: 20px; }
#inside .dp-stats-note a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--rule); border-radius: 999px; background: var(--paper-hi);
}
#inside .dp-stats-note a:hover { background: var(--paper-deep); text-decoration: none; }
@media (min-width: 735px) {
  .book-features { gap: clamp(12px, 2vw, 22px); }
  .book-features .dp-stat {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "art" "name" "num" "desc";
    justify-items: center; gap: 8px; padding: 32px 18px 28px; text-align: center;
  }
  .book-features .bf-ic { width: 72px; height: 72px; margin-bottom: 10px; }
  .bf-ic svg { width: 32px; height: 32px; }
}

/* 전자책 예문 비교 */
.landing-detail #versions { width: min(87.5%, 1140px); }
.landing-detail #versions .bk-sub {
  justify-items: center; gap: 10px; margin-bottom: clamp(24px, 3.6vw, 44px); text-align: center;
}
.landing-detail #versions .bk-sub h3 {
  font-size: clamp(28px, 4vw, 52px); line-height: 1.15; word-break: keep-all; text-wrap: balance;
}
.landing-detail #versions .bk-sub p { word-break: keep-all; text-wrap: balance; }
#versions .bk-compare-gallery { margin-top: 0; }
.bk-compare-gallery .dp-paddles { width: 100%; padding-top: 4px; }
/* 예문 카드: 흰 종이 한 장 — 단어(그림 · 뜻) → 얇은 선 → 쉬운 · 어려운 예문. 색은 강조 낱말과 난이도 막대에만 */
.bk-compare-cards { gap: clamp(14px, 1.6vw, 20px); padding: 2px 0 22px; scroll-padding-inline: 0; }
.bk-compare-cards:focus-visible { outline: 2px solid var(--dp-link); outline-offset: 4px; }
.bk-compare-cards .bk-compare-card {
  display: grid; flex-basis: min(86%, 400px);
  grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr 1fr;
  padding: clamp(20px, 2.2vw, 28px); border: 1px solid rgb(25 25 25 / .07); border-radius: 24px;
  background: var(--paper-hi); box-shadow: 0 14px 30px -22px rgb(42 36 28 / .32);
}
@media (min-width: 760px) { .bk-compare-cards .bk-compare-card { flex-basis: calc((100% - 20px) / 2); } }
@media (min-width: 1069px) { .bk-compare-cards .bk-compare-card { flex-basis: calc((100% - 40px) / 3); } } /* 넓은 화면: 세 장이 한 번에 */
.bk-compare-word { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
.bk-compare-word img {
  display: block; flex: none; width: 64px; height: 64px;
  border-radius: 14px; object-fit: cover; object-position: center 72%; background: var(--paper);
}
.bk-compare-word h4 { margin: 0; font: 400 clamp(30px, 2.8vw, 36px)/1 var(--serif); letter-spacing: -.02em; }
.bk-compare-word p { margin-top: 6px; color: var(--soft); font-size: 14px; line-height: 1.4; word-break: keep-all; }
.bk-compare-example { padding-top: 20px; }
.bk-compare-example h5 {
  display: flex; align-items: center; gap: 8px; margin: 0 0 8px;
  color: var(--soft); font: 700 12px/1.4 "Paperlogy Bold", var(--sans); letter-spacing: .02em;
}
/* 난이도 막대 두 칸: 쉬운 한 칸 · 어려운 두 칸 */
.bk-compare-example h5::before {
  content: ""; flex: none; width: 18px; height: 5px; border-radius: 3px;
  background: linear-gradient(90deg, var(--learning-accent) 0 8px, transparent 8px 10px, rgb(25 25 25 / .14) 10px);
}
.bk-compare-example + .bk-compare-example h5::before { background: linear-gradient(90deg, var(--learning-accent) 0 8px, transparent 8px 10px, var(--learning-accent) 10px); }
.bk-compare-example .en { font: 400 clamp(19px, 1.9vw, 22px)/1.35 var(--serif); text-wrap: pretty; }
.bk-compare-example mark {
  background: none; color: var(--learning-accent-text);
  text-decoration: underline 2px rgb(var(--learning-accent-rgb) / .3); text-underline-offset: 4px;
}
.bk-compare-example .ko { margin-top: 6px; color: var(--soft); font-size: 13px; line-height: 1.55; word-break: keep-all; }
/* 영어 모드(locale/index.js 가 html lang 을 en 으로): 홈 예문의 한국어 번역 · 칩 뜻은 숨긴다. 단어 뜻은 en.js 가 영어로 바꾼다 */
html[lang="en"] :is(.hb-study-translation, .hb-study-words [lang="ko"], .bk-compare-example .ko) { display: none; }

/* 북리스트 · 전자책 상세 공통 질문 */
.dp-faq-all { display: block; margin: 0 0 6px auto; padding: 0; border: 0; background: none; color: var(--dp-link); font: 400 14px/22px var(--sans); cursor: pointer; }
.dp-faq-list { border-bottom: 1px solid var(--dp-line); }
.dp-faq-list details { border-top: 1px solid var(--dp-line); }
.dp-faq-list summary { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 15px 0; font: 400 clamp(16px, 1.6vw, 18px)/1.4 var(--sans); letter-spacing: .011em; word-break: keep-all; list-style: none; cursor: pointer; }
.dp-faq-list summary::-webkit-details-marker { display: none; }
.dp-faq-list summary::after { content: ''; flex: none; width: 16px; height: 9px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 15'%3E%3Cpath d='M2 2l12 11L26 2' fill='none' stroke='%2386868b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); transition: transform .3s var(--dp-move); }
.dp-faq-list details[open] summary::after { transform: rotate(180deg); }
.dp-faq-list p { max-width: 1037px; margin: 0; padding: 0 0 18px; color: var(--soft); font: 400 15px/1.6 var(--sans); word-break: keep-all; }
@media (min-width: 1069px) { .dp-faq-list summary { letter-spacing: .008em; } }

.landing-detail .dp-sec.is-faq { padding-block: clamp(48px, 6vw, 80px); }
.landing-detail .dp-faq .dp-head { margin-bottom: 12px; }
.landing-detail .dp-faq .dp-h2, .landing-detail .dp-index .dp-h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.25; }
.landing-detail .dp-index { padding-block: clamp(40px, 5vw, 64px); }
.landing-detail .dp-index .dp-h2 { margin-bottom: 20px; }
.landing-detail .dp-index-cols { gap: 24px; }
.landing-detail .dp-index-title { margin-bottom: 8px; font-size: 14px; line-height: 20px; }
.landing-detail .dp-index a, .landing-detail .dp-index .is-big a { font-size: 15px; line-height: 22px; letter-spacing: 0; }
.landing-detail .dp-index li + li, .landing-detail .dp-index .is-big li + li { margin-top: 6px; }
@media (min-width: 735px) { .landing-detail .dp-index-cols { gap: 0 64px; } }

/* 홈 하단 별점 카드 */
.hb-reviews { padding-block: clamp(48px, 7vw, 96px); }
.hb-review-rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; width: 100%; } /* 좌우 여백 없이 화면 끝까지 흐른다(.hb-in 폭을 덮는다) */
.hb-review-scroll {
  --rating-gap: 12px;
  display: flex; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-behavior: auto;
  padding-block: 2px;
}
.hb-review-scroll::-webkit-scrollbar { display: none; }
.hb-review-list {
  display: grid; flex: none; grid-auto-flow: column;
  grid-auto-columns: clamp(236px, 26vw, 288px); gap: var(--rating-gap); padding-inline-end: var(--rating-gap);
}
.hb-review-list li {
  display: grid; grid-template-rows: auto 1fr auto; gap: 8px;
  padding: 14px 18px; border: 1px solid var(--rule); border-radius: 16px;
  background: var(--paper-hi); font-size: 14px; line-height: 1.4;
}
.hb-review-list b { color: var(--soft); font-size: 13px; }
.hb-review-list p { line-height: 1.55; text-wrap: pretty; }
.hb-review-stars { color: var(--learning-accent-text); font-size: 18px; line-height: 1; letter-spacing: .12em; }
@media (prefers-reduced-motion: reduce) { .hb-review-list[aria-hidden="true"] { display: none; } }

/* 포켓북 목록만 남은 전자책 구간: 목록이 위 여백(.dp-gridsec)을 갖고 있어 바깥 구간 위 여백은 뺀다 */
.hb-sec.bk:has(> .dp-gridsec:first-child) { padding-top: 0; }
/* 홈 바닥글: 한 줄(저작권 · 약관 · 다시 받기 · 문의) — 위 안내 문구가 없어 구분선도 뺀다 */
.landing-main .dp-footer-legal { justify-content: center; align-items: center; padding-top: 0; border-top: 0; }
.landing-main .dp-footer-guide { margin-bottom: 8px; }
.landing-main .dp-footer-in { padding-block: 14px; }
/* 홈 바닥글 사업자 표시는 가운데 맞춤(공용 규칙은 duo.css) */
.landing-main .dp-footer-biz { margin-top: 10px; padding-top: 0; border-top: 0; text-align: center; }

/* 결제 팝업 제목 아래: 올인원 북을 고르면 '포켓북 5권 추가 증정'(표지 다섯 장 + 이름) */
.pay-gift[hidden] { display: none; }
.pass-dialog .pay-gift {
  display: flex; align-items: center; gap: .85rem; margin: .7rem var(--pass-inset) .2rem; padding: .7rem .9rem;
  border-radius: 1rem; background: var(--pass-tint); color: var(--pass-ink);
}
.pay-gift-covers { display: flex; flex: none; padding-left: 6px; }
.pay-gift-covers img { width: 26px; height: auto; margin-left: -6px; border-radius: 2px 3px 3px 2px; box-shadow: 1px 2px 5px rgb(25 25 25 / .25); }
.pay-gift > span:last-child { display: grid; gap: .1rem; min-width: 0; }
.pay-gift b { font: 700 .98rem/1.3 "Paperlogy Bold", var(--sans); letter-spacing: -.02em; }
.pay-gift small { color: var(--pass-accent); font-size: .78rem; line-height: 1.35; word-break: keep-all; }

/* 할인 띠: 구입 카드가 보이면 아래로 비켜 숨는다(landing.js is-away) */
.hb-event-bar { transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .25s, visibility 0s; }
.hb-event-bar.is-away { transform: translateY(calc(100% + 24px)); opacity: 0; visibility: hidden; transition: transform .3s ease-in, opacity .2s, visibility 0s .3s; }
@media (prefers-reduced-motion: reduce) { .hb-event-bar, .hb-event-bar.is-away { transition: none; } }
