/* 시연 프레임과 강의 플레이어. 사이드패널은 iframe 안에서 실제 제품 CSS를 사용한다. */
.mock-preview-note {
  margin: 0;
  padding: 10px 20px;
  background: #181818;
  color: #f2f2f0;
  font-size: 12px;
}
.mock-preview-note a { margin-left: 8px; }

.hero-stacked { display: block; padding-block: 56px 40px; }
.hero-stacked .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  width: 100%;
}
.hero-stacked .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto 22px;
  padding: 6px 16px;
  background: rgba(0, 0, 0, .04);
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--muted);
  line-height: 1.4;
  text-transform: uppercase;
}
.hero-stacked h1 {
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.22;
  margin: 0 auto 18px;
  text-align: center;
  text-wrap: balance;
  word-break: keep-all;
}
.hero-stacked .lead {
  font-size: clamp(14.5px, 1.4vw, 16px);
  line-height: 1.85;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 30px;
  text-align: center;
  text-wrap: balance;
  word-break: keep-all;
}
.hero-stacked .hero-actions {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 auto 40px;
  width: 100%;
}
.hero-stacked .hero-actions .button {
  border-radius: 9999px;
  padding: 16px 32px;
  min-height: 54px;
  font-size: 15.5px;
}
.mock {
  --mock-scale: 1;
  --m-ink: #232321;
  --m-muted: #686863;
  --m-rule: #deded8;
  --m-orange: var(--accent, #ff5600);
  margin: 0 auto;
  max-width: 960px;
  container-type: inline-size;
}
.mock-caption { margin-top: 18px; color: var(--m-muted); font-size: 12px; line-height: 1.7; text-align: center; }

/* 실제 브라우저처럼 탭, 주소창, 콘텐츠를 분리한다. */
.mock-tilt { width: 100%; transform-origin: center top; }
.mock-window {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid #d2d2cc;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 52px -28px #24241e38, 0 2px 6px #24241e08;
}
.mock-canvas { position: absolute; top: 0; left: 0; width: 960px; height: 600px; display: flex; flex-direction: column; transform: scale(var(--mock-scale)); transform-origin: top left; }
.mock-titlebar { display: flex; align-items: center; gap: 18px; height: 43px; padding: 8px 16px 0; background: #eaeae5; }
.mock-lights { display: inline-flex; gap: 7px; padding-bottom: 8px; }
.mock-lights i { width: 10px; height: 10px; border-radius: 50%; background: #c9c9c2; border: 1px solid #00000018; }
.mock-lights i:nth-child(1) { background: #ff5f57; }
.mock-lights i:nth-child(2) { background: #febc2e; }
.mock-lights i:nth-child(3) { background: #28c840; }
.mock-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: stretch;
  width: 260px;
  padding: 0 13px;
  background: #fafaf8;
  border-radius: 9px 9px 0 0;
  font-size: 11px;
  color: var(--m-ink);
}
.mock-favicon { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; background: #353530; color: #fff; font: 600 12px/1 var(--serif); }
.mock-tab-close { margin-left: auto; font-size: 16px; color: var(--m-muted); }
.mock-new-tab { padding-bottom: 8px; font-size: 18px; color: var(--m-muted); }
.mock-urlbar { display: flex; align-items: center; gap: 18px; padding: 8px 16px; background: #fafaf8; border-bottom: 1px solid var(--m-rule); }
.mock-navigation { display: flex; gap: 16px; color: #555550; font: 16px/1 var(--sans); }
.mock-navigation span { color: #b4b4ad; }
.mock-url { display: flex; align-items: center; gap: 3px; flex: 1; min-width: 0; padding: 5px 12px; border-radius: 6px; background: #eeeeea; color: var(--m-muted); font-size: 11px; white-space: nowrap; overflow: hidden; }
.mock-url b { font-weight: 500; color: var(--m-ink); }
.mock-url-icon { flex: 0 0 9px; height: 8px; margin: 0 8px 0 1px; border: 1px solid #777770; border-radius: 2px; position: relative; }
.mock-url-icon::before { content: ''; position: absolute; left: 1px; right: 1px; top: -5px; height: 5px; border: 1px solid #777770; border-bottom: 0; border-radius: 5px 5px 0 0; }
.mock-extension { position: relative; width: 18px; font: 500 18px/1 var(--serif); }
.mock-extension-dot { position: absolute; width: 5px; height: 5px; bottom: -2px; right: 0; border-radius: 50%; background: var(--m-orange); }
.mock-sidebar-icon { width: 15px; height: 14px; border: 1.5px solid #686863; border-radius: 3px; position: relative; }
.mock-sidebar-icon::after { content: ''; position: absolute; right: 4px; top: 0; bottom: 0; border-left: 1.5px solid #686863; }
.mock-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 58%) minmax(0, 42%); align-items: stretch; overflow: hidden; background: #f7f7f4; }
.demo-panel { display: block; width: 100%; height: 100%; min-height: 0; border: 0; border-left: 1px solid var(--m-rule); background: #f7f7f4; }
.lecture { min-width: 0; display: flex; flex-direction: column; background: #191919; }
.lec-topbar { display: flex; align-items: center; gap: 14px; padding: 15px 20px; background: #292929; color: #d9d9d9; font-size: 11px; white-space: nowrap; }
.lec-platform { color: #fff; font-size: 14px; font-weight: 600; letter-spacing: -.04em; }
.lec-div { flex: 0 0 1px; height: 13px; background: #ffffff26; }
.lec-course { overflow: hidden; text-overflow: ellipsis; }
.lec-chapter { margin-left: auto; font-size: 10px; color: #b6b6ac; }
.lec-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; padding: 16px 12px; position: relative; }
.lecture-screen { position: relative; width: 100%; aspect-ratio: 16 / 9; container-type: inline-size; overflow: hidden; background: #fff; }
.lecture-slide { position: absolute; inset: 0; padding: 3.5cqw 3.6cqw; color: #080808; font-family: Arial, Helvetica, sans-serif; line-height: 1.2; background: #fff; }
.lecture-slide .lecture-title { display: block; color: #214c73; font: 700 3.9cqw/1.15 Arial, Helvetica, sans-serif; letter-spacing: -.025em; text-wrap: nowrap; margin: 0 0 2.4cqw; }
.lecture-subtitle { font-size: 2.6cqw; white-space: nowrap; word-break: normal; }
.lecture-table { width: 100%; min-width: 0; margin: 4.5cqw 0 3.3cqw; table-layout: auto; font-size: 2.7cqw; line-height: 1.15; border-collapse: collapse; }
.lecture-table th, .lecture-table td { padding: .55cqw .35cqw; border: 0; background: none; color: #080808; white-space: nowrap; font-weight: 400; }
.lecture-table thead th { font-weight: 700; text-decoration: underline; text-underline-offset: .65cqw; padding-bottom: 1.5cqw; }
.lecture-table th:first-child { padding-right: 1.6cqw; }
.lecture-table .lecture-highlight th, .lecture-table .lecture-highlight td { background: #fff3a1; }
.lecture-equations { font-size: 2.25cqw; line-height: 1.55; }
.lecture-equations .lecture-eq-title { display: block; margin: 0 0 .6cqw; font-size: 2.6cqw; line-height: 1.3; font-weight: 400; text-decoration: underline; text-underline-offset: .55cqw; }
.lecture-equations p { margin: 0; word-break: normal; white-space: nowrap; }
.lecture-equations b { font-weight: 400; }
.lecture-page { position: absolute; right: 2cqw; bottom: 1.5cqw; color: #777; font-size: 1.5cqw; }
.lecture-definitions { display: grid; gap: 2.5cqw; margin: 5cqw 0; }
.lecture-definitions p { display: flex; align-items: center; gap: 4cqw; font-size: 2.6cqw; }
.lecture-definitions b { color: #214c73; font-size: 4cqw; }
.lecture-caption { margin-top: 17px; min-height: 42px; display: grid; place-items: center; padding: 0 20px; text-align: center; color: #e5e5e5; font-size: 12px; line-height: 1.7; }
.capture-frame { position: absolute; inset: 2px; border: 2px solid #ff762e; opacity: 0; pointer-events: none; }
.capture-frame span { position: absolute; right: 8px; top: 8px; padding: 4px 9px; background: #18181be8; color: #fff; border-radius: 4px; font: 10px/1.4 var(--sans); }
.mock[data-state="live"] .capture-frame { opacity: 1; animation: capture-pulse 2s ease-in-out infinite; }
@keyframes capture-pulse {
  0%, 100% {
    border-color: rgba(255, 118, 46, 0.35);
    box-shadow: 0 0 3px rgba(255, 118, 46, 0.15), inset 0 0 3px rgba(255, 118, 46, 0.08);
  }
  50% {
    border-color: #ff8533;
    box-shadow: 0 0 16px 2px rgba(255, 118, 46, 0.75), inset 0 0 10px 1px rgba(255, 118, 46, 0.25);
  }
}
.lecture-ink { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lecture-ink [data-ink] { fill: none; stroke: #c8322c; stroke-width: 3.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.lecture-pen { fill: #111; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; paint-order: stroke; opacity: 0; }
.mock[data-state="done"] .lecture-pen { display: none; }
.lec-controls { display: flex; align-items: center; gap: 14px; padding: 11px 18px; background: #252525; color: #eee; }
.lec-play-toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 11px;
  border: 1px solid var(--m-rule);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--m-ink);
  box-shadow: 0 2px 8px rgba(36, 36, 30, 0.12);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.lec-play-toggle:hover {
  background: #ffffff;
  color: var(--m-ink);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(36, 36, 30, 0.18);
}
.lec-play-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; }
.lec-time, .lec-rate { font: 10px/1 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lec-time { color: #a9a9a9; }
#lectureTime { color: #eee; }
.lec-progress { position: relative; flex: 1; height: 3px; background: #686868; border-radius: 2px; }
.lec-buffer { position: absolute; inset: 0 auto 0 0; width: var(--lecture-progress,54.25%); background: #eee; border-radius: 2px; }
.lec-knob { position: absolute; left: var(--lecture-progress,54.25%); top: 50%; width: 7px; height: 7px; background: #eee; border-radius: 50%; transform: translate(-50%,-50%); }
.lec-wave { display: flex; align-items: center; gap: 3px; height: 24px; }
.lec-wave i { width: 2px; height: 3px; border-radius: 2px; background: #aaa; }
.mock[data-state="live"] .lec-wave i { background: #ff8953; animation: audio-wave .75s ease-in-out infinite alternate; }
.lec-wave i:nth-child(2n) { animation-delay: -.35s !important; }
.lec-wave i:nth-child(3n) { animation-delay: -.6s !important; }
@keyframes audio-wave { from { transform: scaleY(1); } to { transform: scaleY(5); } }
.mock.is-paused .lec-wave i, .mock.is-paused .capture-frame { animation-play-state: paused; }
.demo-announcement { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── PDF 내보내기 → AirDrop → 태블릿 필기 시연 오버레이 ── */
.share-sheet, .tablet-scene {
  position: absolute; inset: 0; z-index: 4;
  opacity: 0; visibility: hidden;
  transition: opacity .45s ease, visibility 0s linear .45s;
}
.mock[data-state="share"] .share-sheet,
.mock[data-state="tablet"] .tablet-scene { opacity: 1; visibility: visible; transition: opacity .45s ease; }

/* macOS 공유 시트 */
.share-sheet { display: grid; place-items: center; background: rgba(24, 24, 20, .32); }
.share-panel {
  width: 316px; padding: 14px 16px 16px;
  background: rgba(250, 250, 247, .97);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 14px;
  box-shadow: 0 22px 55px -20px rgba(0, 0, 0, .45);
  transform: translateY(10px) scale(.96);
  transition: transform .35s cubic-bezier(.2, .9, .3, 1);
  font-size: 12px; color: var(--m-ink);
}
.mock[data-state="share"] .share-panel { transform: none; }
.share-doc { display: flex; align-items: center; gap: 10px; padding-bottom: 11px; border-bottom: 1px solid var(--m-rule); }
.share-doc-icon {
  display: grid; place-items: center; width: 32px; height: 38px; flex-shrink: 0;
  background: #fff; border: 1px solid var(--m-rule); border-radius: 5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
  font: 700 8px/1 var(--mono); color: #c0392b;
}
.share-doc-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.share-doc-meta b { font-size: 12.5px; font-weight: 600; }
.share-doc-meta i { font-style: normal; font-size: 10.5px; color: var(--m-muted); }
.share-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 12px 0; }
.share-app { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 10px; }
.app-icon {
  display: grid; place-items: center; width: 40px; height: 40px;
  background: #fff; border: 1px solid var(--m-rule); border-radius: 10px;
}
.app-icon svg { width: 20px; height: 20px; fill: none; stroke: #555550; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.app-icon.app-airdrop { background: #1f7bf6; border-color: #1f7bf6; }
.app-icon.app-airdrop svg { stroke: #fff; }
.app-icon.app-airdrop svg circle { fill: #fff; stroke: none; }
.share-airdrop { display: flex; flex-direction: column; align-items: center; gap: 3px; padding-top: 12px; border-top: 1px solid var(--m-rule); }
.share-recv { position: relative; width: 52px; height: 52px; display: grid; place-items: center; }
.share-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); opacity: 0; transition: opacity .2s; }
.share-airdrop.is-selected .share-ring { opacity: 1; }
.share-ring circle { fill: none; stroke-width: 2.5; }
.share-ring .ring-bg { stroke: #dcdcd4; }
.share-ring .ring-fg { stroke: #1f7bf6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.share-ipad-icon svg { width: 22px; height: 22px; display: block; fill: none; stroke: #555550; stroke-width: 1.4; }
.share-check { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .25s; }
.share-check circle { fill: #34c759; }
.share-check path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.share-sheet.is-sent .share-ring, .share-sheet.is-sent .share-ipad-icon { opacity: 0; }
.share-sheet.is-sent .share-check { opacity: 1; }
.share-recv-name { font-size: 11px; font-weight: 600; }
.share-status { font-size: 10.5px; color: var(--m-muted); }

/* 태블릿 노트앱 장면 */
.tablet-scene { display: flex; background: #141412; padding: 14px; }
.tablet-bezel { flex: 1; min-width: 0; min-height: 0; display: flex; background: #262624; border-radius: 20px; padding: 10px; }
.tablet-screen { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #ebeaf0; border-radius: 12px; overflow: hidden; }
.tablet-toolbar { flex-shrink: 0; }
/* 굿노트 스타일의 2단 툴바: 네이비 내비게이션 바 + 화이트 도구 행 */
.gn-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 42px; padding: 0 14px; background: #3f5aa6; }
.gn-cluster { display: flex; align-items: center; gap: 3px; }
.gn-ic { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 6px; }
.gn-ic svg { width: 16px; height: 16px; display: block; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .92; }
.gn-pencircle { background: rgba(255, 255, 255, .18); border-radius: 50%; }
.gn-title { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #fff; white-space: nowrap; }
.gn-caret { font-style: normal; font-size: 10px; opacity: .7; }
.gn-tools { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; background: #fbfbfa; border-bottom: 1px solid var(--m-rule); }
.gn-undos { display: flex; align-items: center; gap: 2px; }
.gn-toolset { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.gn-tool { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; flex-shrink: 0; }
.gn-tool svg { width: 15.5px; height: 15.5px; display: block; fill: none; stroke: #3a3a36; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.gn-tool.is-active { background: #dce7f8; }
.gn-tool.is-active svg { stroke: #2f6bd6; }
.gn-strokes { display: flex; align-items: center; gap: 5px; padding: 0 10px; border-left: 1px solid var(--m-rule); }
.gn-strokes i { display: block; width: 15px; background: #3a3a36; border-radius: 2px; }
.gn-strokes i:nth-child(1) { height: 1.5px; }
.gn-strokes i:nth-child(2) { height: 2.5px; }
.gn-strokes i:nth-child(3) { height: 3.5px; }
.gn-strokes i.on { background: #2f6bd6; }
.gn-colors { display: flex; align-items: center; gap: 6px; padding-left: 10px; border-left: 1px solid var(--m-rule); }
.gn-colors i { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); }
.gn-colors .c1 { background: #1c1c1a; }
.gn-colors .c2 { background: #8a8a86; }
.gn-colors .c3 { background: #fff; }
.gn-colors i.on { box-shadow: 0 0 0 2px #fbfbfa, 0 0 0 3.5px #2f6bd6; }
.tablet-workspace { flex: 1; min-height: 0; display: grid; justify-items: center; align-items: stretch; padding: 8px 18px; }
.pdf-wrap { position: relative; width: min(640px, 100%); height: 100%; }
.pdf-doc {
  width: 100%; min-height: 100%; padding: 13px 26px 10px;
  background: #fff; border-radius: 3px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .14);
  color: #1c1c1a;
}
.pdf-eyebrow { margin: 0 0 6px; font: 500 9.5px/1 var(--mono); letter-spacing: .08em; color: #8a8a82; }
.pdf-doc .pdf-doc-title { margin: 0 0 6px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.pdf-warn { margin: 0 0 7px; padding: 4px 8px; font-size: 10.5px; color: #8a6d3b; background: #fdf6e7; border: 1px solid #f0e3c0; border-radius: 6px; }
.pdf-h { margin: 9px 0 4px; font-size: 11px; font-weight: 600; color: #8a8a82; }
.pdf-warn + .pdf-h { margin-top: 0; }
.pdf-key { margin: 0 0 6px; font-size: 13.5px; line-height: 1.6; }
.pdf-key .hl-target { font-weight: 600; }
.pdf-list { margin: 0 0 4px; padding-left: 17px; font-size: 11.5px; line-height: 1.5; }
.pdf-list li + li { margin-top: 1px; }
.pdf-meta { margin: 0 0 5px; font-size: 11px; line-height: 1.55; color: #4a4a45; }
.pdf-concept { margin: 0 0 4px; padding: 5px 10px; font-size: 11px; line-height: 1.5; background: #f7f6f1; border: 1px solid #eceae2; border-radius: 6px; }
.pdf-concept span { display: block; margin-top: 2px; font-size: 10px; color: #8a8a82; }
.pdf-table { width: 100%; border-collapse: collapse; margin-bottom: 8px; font-size: 11.5px; }
.pdf-table th, .pdf-table td { padding: 3px 8px; text-align: left; border-bottom: 1px solid #eeece6; }
.pdf-table thead th { color: #8a8a82; font-weight: 600; border-bottom: 1px solid #e0ded6; }
.pdf-table .best td { font-weight: 700; }
.pdf-qs { margin-bottom: 0; color: #4a4a45; }
.tablet-ink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tablet-ink .hl { fill: #ffd94d; opacity: .55; }
.tablet-ink .ul { stroke: #2f6bd6; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.tablet-ink .ci, .tablet-ink .ck { stroke: #2f6bd6; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.tablet-ink .memo { fill: #2f6bd6; font: 700 13px var(--sans); opacity: 0; }
.tablet-pen { fill: #111; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; paint-order: stroke; opacity: 0; }

@media (max-width: 1100px) {
  .hero-stacked { padding-block: 46px 36px; }
  .mock { margin-top: 12px; }
}
@media (max-width: 900px) {
  .hero-stacked { padding-block: 40px 32px; }
  .mock { margin-top: 16px; }
}
@media (max-width: 760px) {
  .hero-stacked { padding-inline: 16px; padding-block: 36px 28px; }
  .hero-stacked .hero-copy { max-width: 100%; }
  .hero-stacked .eyebrow { font-size: 10.5px; padding: 5px 13px; margin-bottom: 16px; }
  .hero-stacked h1 { font-size: clamp(30px, 7.5vw, 42px); margin: 0 auto 16px; line-height: 1.25; }
  .hero-stacked .lead { font-size: 14.5px; line-height: 1.75; margin: 0 auto 24px; padding-inline: 8px; }
  .hero-stacked .hero-actions { margin: 0 auto 32px; gap: 10px; }
}
@media (max-width: 430px) {
  .hero-stacked .eyebrow { font-size: 10px; padding: 5px 12px; letter-spacing: .03em; margin-bottom: 14px; white-space: normal; text-align: center; }
  .hero-stacked .hero-actions .button { width: 100%; max-width: 320px; }
  .hero-stacked h1 { font-size: clamp(28px, 8vw, 36px); }
}
@media (max-width: 600px) {
  .mock-caption { font-size: 11px; }
  .lec-play-toggle {
    right: 8px;
    bottom: 8px;
    width: 32px;
    height: 32px;
    padding: 8px;
    border-radius: 6px;
  }
}
/* Each slide capture (.is-scanning, 1.2s): a scan bar sweeps the slide, then the
   recognised blocks lock on with labels — the same beat as the launch video. */
.scan-bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #ff5600; box-shadow: 0 0 12px 3px rgba(255, 86, 0, .55); opacity: 0; }
.mock[data-state="live"] .scan-bar.is-on { animation: scan-sweep 1.1s ease-in-out forwards; }
@keyframes scan-sweep { 0% { top: 0; opacity: 1; } 92% { top: calc(100% - 3px); opacity: 1; } 100% { top: calc(100% - 3px); opacity: 0; } }
.mock [data-rec] { position: relative; }
.mock [data-rec]::before { content: ""; position: absolute; inset: -3px; border: 2px solid #ff5600; border-radius: 4px; box-shadow: 0 0 8px rgba(255, 86, 0, .45); opacity: 0; pointer-events: none; }
.mock b[data-rec]::after { left: calc(100% + 5px); top: 50%; margin-top: -8px; border-radius: 3px; }
.mock [data-rec]::after { content: attr(data-rec); position: absolute; left: -3px; top: -17px; padding: 2px 6px; background: #ff5600; color: #18181b; font: 700 9px/1.2 var(--sans); border-radius: 3px 3px 3px 0; white-space: nowrap; opacity: 0; pointer-events: none; }
.mock .lecture-slide.is-reading [data-rec]::before,
.mock .lecture-slide.is-reading [data-rec]::after { animation: rec-lock .25s ease-out var(--rd, .4s) both; }
@keyframes rec-lock { from { opacity: 0; transform: scale(1.25); } to { opacity: 1; transform: none; } }
.mock.is-paused .scan-bar, .mock.is-paused [data-rec]::before, .mock.is-paused [data-rec]::after { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .mock .capture-frame, .mock .lec-wave i { animation: none; }
  .mock .scan-bar { display: none; }
  .mock .lecture-slide.is-reading [data-rec]::before,
  .mock .lecture-slide.is-reading [data-rec]::after { animation: none; opacity: 1; }
  .mock .lecture-pen, .mock .tablet-pen { display: none; }
  .mock .share-sheet, .mock .tablet-scene, .mock .share-panel, .mock .share-check { transition: none; }
  .mock .lecture-ink [data-ink] { stroke-dashoffset: 0; }
  .mock[data-state="live"] .lec-wave i { height: 8px; }
  .mock[data-state="live"] .lec-wave i:nth-child(2n) { height: 14px; }
  .mock[data-state="live"] .capture-frame { opacity: 1; box-shadow: none; }
}

/* 휴대폰에서는 제품 패널을 축소하지 않고 강의 아래에 배치한다. */
@media (max-width: 760px) {
  .mock-window { aspect-ratio: auto; padding-bottom: 0; }
  .mock-canvas { position: relative; width: 100%; height: auto; transform: none; }
  .mock-body { display: flex; flex-direction: column; overflow: visible; }
  .mock-titlebar { height: 34px; gap: 8px; padding: 6px 12px 0; }
  .mock-lights { gap: 5px; padding-bottom: 6px; }
  .mock-lights i { width: 8px; height: 8px; }
  .mock-tab { width: auto; flex: 1; min-width: 0; padding: 0 10px; font-size: 10px; }
  .mock-favicon { width: 15px; height: 15px; font-size: 10px; }
  .mock-new-tab { font-size: 15px; padding-bottom: 6px; }
  /* 모바일에서는 장식용 주소창을 생략해 목업 높이를 줄인다(장면 집중형). */
  .mock-urlbar { display: none; }
  .mock-navigation { gap: 10px; font-size: 13px; }
  .mock-url { padding: 3px 8px; font-size: 10px; }
  .mock-extension { font-size: 15px; }
  .lecture { min-width: 0; flex: 0 1 auto; min-height: 0; overflow: hidden; }
  /* 강의 플레이어 상단바·재생 막대는 장식 요소 — 모바일에서는 숨겨 높이를 확보한다.
     강의명은 브라우저 탭에 남고, 재생 상태는 캡처 프레임과 캡션 문구가 전달한다. */
  .lec-topbar, .lec-controls { display: none; }
  .lec-stage { padding: 4px 8px 2px; }
  /* 넓은 모바일(태블릿 크기)에서 슬라이드가 세로를 과하게 먹지 않도록 폭을 제한한다. */
  .lecture-screen { width: min(100%, 460px); margin-inline: auto; }
  .lecture-caption { margin-top: 4px; min-height: 24px; padding: 0 8px; font-size: 12px; line-height: 1.45; }
  /* 본문 높이를 고정해 장면 전환 시 아래 섹션이 밀리지 않게 한다.
     제품 패널은 남는 높이를 채우고, 노트 영역은 패널 내부에서 스크롤된다. */
  /* 데스크톱의 flex:1을 해제해야 height가 적용된다(열 방향 flex 아이템은 flex-basis가 height를 덮음). */
  .mock-body { flex: none; height: clamp(430px, 58vh, 500px); }
  .demo-panel { flex: 1 1 auto; height: auto; min-height: 0; border-left: 0; border-top: 1px solid var(--m-rule); }
  /* 요약·공유·태블릿 장면에서는 노트가 주인공 — 강의 화면을 접어 패널을 키운다(캡션 문구는 유지). */
  .mock[data-state="done"] .lecture-screen,
  .mock[data-state="share"] .lecture-screen,
  .mock[data-state="tablet"] .lecture-screen { display: none; }
  .lec-play-toggle { width: 44px; height: 44px; right: 8px; bottom: 8px; }
  .share-panel { width: min(316px, 88%); }
  .tablet-scene { padding: 8px; }
  .tablet-bezel { padding: 6px; border-radius: 16px; }
  .gn-top { height: 36px; gap: 8px; padding: 0 8px; }
  .gn-ic { width: 22px; height: 22px; }
  .gn-ic svg { width: 13px; height: 13px; }
  .gn-title { font-size: 11px; }
  .gn-tools { height: 34px; gap: 6px; padding: 0 8px; }
  .gn-tool { width: 22px; height: 22px; }
  .gn-tool svg { width: 12px; height: 12px; }
  .gn-strokes, .gn-colors { padding-inline: 6px; gap: 4px; }
  .gn-strokes i { width: 11px; }
  .gn-colors i { width: 10px; height: 10px; }
  /* 문서가 잘리지 않도록 워크스페이스 자체를 세로 스크롤 영역으로 만든다.
     .pdf-wrap은 hl-target의 offsetParent이므로 스크롤 컨테이너 안에서 position:relative를 유지하고,
     height:auto로 문서 높이를 따라가게 해 잉크 오버레이가 문서와 같은 좌표계를 공유하게 한다. */
  .tablet-workspace {
    padding: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    align-items: start;
  }
  .pdf-wrap { height: auto; width: 100%; min-width: 0; }
  .pdf-doc { padding: 14px 16px 12px; min-width: 0; }
  .pdf-eyebrow { font-size: 11px; }
  .pdf-doc .pdf-doc-title { font-size: 16px; margin-bottom: 6px; }
  .pdf-warn { font-size: 11px; margin-bottom: 8px; }
  .pdf-h { font-size: 11px; margin-top: 10px; }
  .pdf-key { font-size: 13px; margin-bottom: 8px; }
  .pdf-list { font-size: 11.5px; }
  .pdf-meta { font-size: 11px; margin-bottom: 6px; }
  .pdf-concept { font-size: 11px; padding: 6px 9px; }
  .pdf-concept span { font-size: 11px; }
  .pdf-table { font-size: 11.5px; margin-bottom: 8px; table-layout: fixed; min-width: 0; }
}
