/* BLACKLOG 협회 시연 발표 페이지 — docs/01_기획검토/07 §5 */
@font-face {
  font-family: "Pretendard Variable";
  src: url("./fonts/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 45 920; font-style: normal; font-display: swap;
}
:root {
  --navy: #142a43; --navy-2: #0e1b2c;
  --primary: #d63d4b; --primary-soft: #fdecee;
  --mint: #1ba889; --mint-soft: #e6f6f1;
  --ink: #111214; --ink-2: #4a4d52; --muted: #8a8f96;
  --line: #e4e6e9; --line-2: #f1f2f4; --bg: #fff; --bg-2: #f7f8fa;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 8px; --top: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 20px; line-height: 1.55; color: var(--ink); background: var(--bg); letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 80px; }
.center { text-align: center; }
kbd { font: 12px var(--mono); padding: 1px 6px; border: 1px solid currentColor; border-radius: 4px; opacity: .55; margin-left: 6px; }

/* ── 상단 ── */
.top { position: fixed; inset: 0 0 auto 0; height: var(--top); z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; letter-spacing: -0.02em; font-size: 18px; }
.top-right { display: flex; align-items: center; gap: 16px; }
.counter { font-size: 14px; color: var(--muted); }

/* ── 버튼 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 52px; padding: 0 24px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--bg); color: var(--ink); font: inherit; font-size: 18px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s, transform .1s; white-space: nowrap; }
.btn:hover { background: var(--bg-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: #c02f3d; }
.btn.small { height: 34px; padding: 0 14px; font-size: 14px; border-color: var(--line); color: var(--ink-2); font-weight: 500; }
.btn.big { height: 64px; padding: 0 40px; font-size: 22px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── 장면 공통 ── */
html { scroll-snap-type: y proximity; } /* 스크롤 컨테이너는 문서(html) */
.scene { min-height: 100vh; padding: calc(var(--top) + 32px) 0 40px; display: flex; align-items: center; border-bottom: 1px solid var(--line); scroll-snap-align: start; }
.scene > .wrap { width: 100%; }
.scene-head { margin-bottom: 28px; }
.eyebrow { font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
.scene h2 { font-size: 48px; line-height: 1.2; }
.sub { margin-top: 14px; font-size: 22px; color: var(--ink-2); max-width: 880px; text-wrap: pretty; word-break: keep-all; }
.foot-link { margin-top: 20px; font-size: 18px; }
.foot-link a { color: var(--ink-2); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.foot-link a:hover { color: var(--ink); border-color: var(--ink); }
.tiny { margin-top: 48px; font-size: 14px; color: var(--muted); }

/* ── 0 시작 ── */
.scene-start h1 { font-size: 64px; line-height: 1.18; }
.scene-start .lead { margin: 28px auto 40px; font-size: 24px; color: var(--ink-2); word-break: keep-all; }
.faces-row { display: flex; justify-content: center; gap: 16px; margin-top: 72px; min-height: 72px; }
.faces-row canvas, .faces-row i { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg-2); display: block; }

/* ── 1 등원 ── */
.arrive { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; }
.stage { background: var(--navy); border-radius: 12px; overflow: hidden; color: #fff; }
.stage-tabs { display: flex; align-items: center; gap: 4px; padding: 10px 12px; background: var(--navy-2); }
.stage-tabs button { font: inherit; font-size: 15px; font-weight: 600; color: rgba(255,255,255,.6); background: none; border: 0; padding: 8px 14px; border-radius: 6px; cursor: pointer; }
.stage-tabs button.on { background: rgba(255,255,255,.12); color: #fff; }
.cam-select { margin-left: auto; font: inherit; font-size: 13px; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 6px; padding: 6px 8px; max-width: 220px; }
.stage-view { position: relative; height: clamp(300px, 42vh, 520px); background: #0a1522; overflow: hidden; }
.stage-view img, .stage-view video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.stage-view video { object-fit: cover; }
.stage-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stage-view.cam video, .stage-view.cam canvas { transform: scaleX(-1); } /* 셀피는 거울 반전 */
.stage-strip { position: absolute; left: 24px; right: 24px; bottom: 24px; height: 64px; background: rgba(10,21,34,.72); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: 6px 10px; backdrop-filter: blur(4px); animation: strip-in .45s cubic-bezier(.2,.7,.2,1); }
.stage-strip svg { width: 100%; height: 100%; display: block; }
.stage-strip svg .bars { transform: scaleY(0); transform-origin: 0 26px; animation: bars-in .7s cubic-bezier(.2,.7,.2,1) .1s forwards; }
.stage-badge { position: absolute; top: 20px; left: 20px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; font-size: 20px; font-weight: 700; background: rgba(255,255,255,.95); color: var(--ink); animation: badge-in .35s cubic-bezier(.2,.7,.2,1); box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.stage-badge.ok { background: var(--mint); color: #fff; }
.stage-badge.warn { background: #fff; color: var(--ink); }
.stage-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; opacity: .8; }
@keyframes strip-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes bars-in { to { transform: scaleY(1); } }
@keyframes badge-in { from { opacity: 0; transform: translateY(-8px) scale(.96); } to { opacity: 1; transform: none; } }

.students { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.student { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 16px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.student canvas, .student i { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-2); display: block; }
.student.on { border-color: var(--ink); background: var(--bg-2); }
.student .st { font-size: 13px; font-weight: 500; color: var(--muted); }
.student.enrolled .st { color: var(--ink-2); }
.student.present .st { color: var(--mint); }
.actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.status { font-size: 16px; color: var(--muted); margin-left: 4px; }
.status.busy::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-right: 8px; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .2; } }

.phone-col { position: relative; padding-top: 8px; }
.how { margin-top: 12px; font-size: 15px; color: var(--muted); }
.how b { color: var(--ink-2); font-weight: 600; }
.phone { border: 1.5px solid var(--line); border-radius: 28px; background: var(--bg); overflow: hidden; box-shadow: 0 20px 60px rgba(20,42,67,.08); }
.phone-top { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.phone-top span { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.phone-top b { font-size: 20px; }
.roster { list-style: none; margin: 0; padding: 4px 0; min-height: 240px; }
.roster li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; padding: 10px 24px; border-bottom: 1px solid var(--line-2); font-size: 18px; }
.roster li:last-child { border-bottom: 0; }
.roster canvas, .roster i { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-2); display: block; }
.roster .name { font-weight: 600; }
.roster .state { font-size: 15px; color: var(--muted); }
.roster li.enrolled .state { color: var(--ink-2); }
.roster li.present { background: var(--mint-soft); }
.roster li.present .state { color: var(--mint); font-weight: 700; }
.roster li.present .state::before { content: "✓ "; }
.phone-foot { padding: 12px 24px 18px; font-size: 12px; color: var(--muted); text-align: center; }
.notice { position: relative; margin: 16px 0 0 auto; width: 92%; padding: 16px 18px; border-radius: 16px; background: var(--navy); color: #fff; box-shadow: 0 16px 40px rgba(20,42,67,.35); animation: notice-in .5s cubic-bezier(.2,.7,.2,1); }
.notice-app { font-size: 12px; letter-spacing: .08em; opacity: .7; margin-bottom: 6px; }
.notice-body { font-size: 17px; line-height: 1.4; }
.notice-body b { color: #9be3cf; }
@keyframes notice-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ── 2 안전 ── */
.safe { display: grid; gap: 28px; }
.safe-flow { display: grid; grid-template-columns: 140px 64px 1fr; align-items: center; gap: 24px; }
.safe-face, .safe-strip { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.safe-face canvas { width: 140px; height: 140px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); display: block; }
.safe-face span, .safe-strip span { font-size: 16px; color: var(--muted); }
.safe-arrow { font-size: 40px; color: var(--muted); text-align: center; }
.safe-strip > div { width: 100%; height: 140px; border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--bg-2); }
.safe-strip svg { width: 100%; height: 100%; display: block; }
table.keep { width: 100%; border-collapse: collapse; font-size: 26px; }
table.keep th { text-align: left; font-size: 15px; font-weight: 600; color: var(--muted); padding: 0 12px 12px; letter-spacing: .04em; }
table.keep td { padding: 11px 12px; border-top: 1px solid var(--line); }
table.keep td:nth-child(2) { width: 120px; font-weight: 800; text-align: center; }
table.keep td:nth-child(3) { font-size: 19px; color: var(--ink-2); }
table.keep td.yes { color: var(--ink); }
table.keep td.no { color: var(--primary); }

/* ── 3 같은 아이 ── */
.pair-cards { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.pair-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; font-size: 15px; font-weight: 600; transition: border-color .15s; }
.pair-card canvas { width: 96px; height: 96px; border-radius: 8px; background: var(--bg-2); display: block; }
.pair-card { position: relative; }
.pair-card.sel-a { border-color: var(--ink); }
.pair-card.sel-b { border-color: var(--primary); }
.pair-card.sel-a::after, .pair-card.sel-b::after { content: "왼쪽"; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: #fff; }
.pair-card.sel-b::after { content: "오른쪽"; background: var(--primary); }
.pair-face.b canvas { border-color: var(--primary); }
.pair-card .tag { font-size: 11px; color: var(--muted); font-weight: 500; }
.pair-result { display: grid; grid-template-columns: 240px 1fr 240px; align-items: center; gap: 40px; }
.pair-face { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 20px; }
.pair-face canvas { width: 240px; height: 240px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); display: block; }
.pair-mid { text-align: center; }
.pair-dist { font-size: 72px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.pair-bar { position: relative; height: 10px; background: var(--line-2); border-radius: 5px; margin: 24px 0 20px; }
.pair-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); border-radius: 5px; width: 0; transition: width .5s cubic-bezier(.2,.7,.2,1), background .25s; }
.pair-bar b { position: absolute; top: -8px; width: 3px; height: 26px; background: var(--primary); border-radius: 2px; }
.pair-verdict { display: inline-block; font-size: 24px; font-weight: 700; padding: 8px 20px; border-radius: 999px; border: 2px solid var(--line); color: var(--ink-2); }
.pair-verdict.same { background: var(--mint); border-color: var(--mint); color: #fff; }
.pair-verdict.diff { background: var(--bg-2); }
.pair-result.same .pair-bar i { background: var(--mint); }
.pair-hint { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* ── 4 운영 전체 ── */
.steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 10%; right: 10%; top: 13px; height: 2px; background: var(--line); }
.steps li { position: relative; text-align: center; font-size: 22px; font-weight: 600; padding-top: 44px; color: var(--ink-2); }
.steps li::before { content: ""; position: absolute; left: 50%; top: 0; width: 28px; height: 28px; margin-left: -14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); }
.steps li.now { color: var(--primary); }
.steps li.now::before { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 6px var(--primary-soft); }
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.app { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding-bottom: 16px; }
.app-head { background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; padding: 10px 14px; margin-bottom: 10px; }
.app b { padding: 0 14px; font-size: 20px; }
.app span { padding: 0 14px; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.os-shot { margin: 24px 0 0; }
.os-shot img { width: 100%; max-height: 280px; object-fit: cover; object-position: top; display: block; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 60px rgba(20,42,67,.10); }
.os-shot figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.os-shot.missing { display: none; }

/* ── 5 다음·마무리 ── */
.hatch { background-color: var(--bg-2); background-image: repeating-linear-gradient(135deg, transparent 0 10px, var(--line) 10px 11px); }
.soon-card { position: relative; border: 1.5px dashed var(--muted); border-radius: 16px; padding: 36px 40px; display: flex; flex-direction: column; gap: 10px; max-width: 880px; }
.soon-card b { font-size: 26px; }
.soon-card span:not(.soon-tag) { font-size: 18px; color: var(--ink-2); }
.soon-tag { position: absolute; top: -14px; left: 32px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; padding: 5px 12px; border-radius: 999px; }
.closing { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.closing-line { font-size: 32px; font-weight: 600; line-height: 1.4; max-width: 880px; }
.closing-offer { margin-top: 28px; font-size: 20px; color: var(--ink-2); }
.contact { margin-top: 10px; font-size: 24px; font-weight: 700; }

/* ── 이동 점 · 토스트 ── */
.dots { position: fixed; right: 20px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 20; }
.dots a { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; transition: background .2s, transform .2s; }
.dots a.on { background: var(--ink); transform: scale(1.3); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 30; background: var(--ink); color: #fff; font-size: 15px; padding: 10px 18px; border-radius: 999px; box-shadow: 0 8px 30px rgba(0,0,0,.2); }
.toast.busy::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-right: 10px; animation: pulse 1s infinite; }

/* ── 발표 모드 ── */
html:has(body.present) { scroll-snap-type: y mandatory; }
body.present .top { background: transparent; border-color: transparent; backdrop-filter: none; }
body.present .top .btn { opacity: 0; pointer-events: none; }
body.present .dots { display: none; }
body.present .scene { border-bottom: 0; }
body.present kbd { display: none; }

/* ── 반응형 ── */
@media (max-width: 1100px) {
  .wrap { padding: 0 40px; }
  .scene h2 { font-size: 40px; }
  .scene-start h1 { font-size: 52px; }
  .arrive { grid-template-columns: 1fr; }
  .phone-col { max-width: 440px; }
  .pair-result { grid-template-columns: 180px 1fr 180px; gap: 24px; }
  .pair-face canvas { width: 180px; height: 180px; }
  .apps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .top { padding: 0 16px; }
  .scene { padding-top: calc(var(--top) + 32px); padding-bottom: 48px; min-height: 0; }
  .scene h2 { font-size: 30px; }
  .sub { font-size: 18px; }
  .scene-start h1 { font-size: 36px; }
  .scene-start .lead { font-size: 18px; }
  .scene-start .lead br, .closing-line br { display: none; }
  .faces-row { gap: 10px; margin-top: 40px; }
  .faces-row canvas, .faces-row i { width: 52px; height: 52px; }
  .btn { height: 48px; font-size: 16px; padding: 0 18px; }
  .btn.big { height: 56px; font-size: 18px; padding: 0 28px; }
  .stage-tabs button { font-size: 14px; padding: 6px 10px; }
  .stage-badge { font-size: 16px; padding: 8px 14px; top: 12px; left: 12px; }
  .stage-strip { left: 12px; right: 12px; bottom: 12px; height: 48px; }
  .stage-view { height: auto; aspect-ratio: 4 / 3; }
  .student { font-size: 15px; }
  .phone-col { max-width: none; }
  .notice { width: 100%; }
  .safe-flow { grid-template-columns: 1fr; gap: 12px; }
  .safe-face canvas { width: 140px; height: 140px; }
  .safe-flow { grid-template-columns: 1fr; }
  .safe-arrow { transform: rotate(90deg); font-size: 28px; }
  .safe-strip > div { height: 120px; padding: 10px; }
  table.keep { font-size: 19px; }
  table.keep td:nth-child(2) { width: 72px; }
  table.keep td:nth-child(3) { font-size: 14px; }
  .pair-cards { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .pair-card { flex: 0 0 auto; }
  .pair-card canvas { width: 72px; height: 72px; }
  .pair-result { grid-template-columns: 1fr 1fr; gap: 16px; }
  .pair-mid { grid-column: 1 / -1; order: 3; }
  .pair-face canvas { width: 100%; height: auto; aspect-ratio: 1; }
  .pair-dist { font-size: 52px; }
  .steps li { font-size: 15px; padding-top: 36px; }
  .steps li::before { width: 22px; height: 22px; margin-left: -11px; }
  .steps::before { top: 10px; }
  .apps { grid-template-columns: 1fr 1fr; }
  .soon-card { padding: 28px 20px; }
  .soon-card b { font-size: 20px; }
  .closing-line { font-size: 22px; }
  .contact { font-size: 20px; }
  .dots { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage-strip, .stage-badge, .notice, .stage-strip svg .bars { animation: none; transform: none; }
}

/* 발표 2차: 체험 → 원리 한 장면 → 실제 운영 화면 → 현장 상담 */
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 5px; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px 20px; background: var(--navy); color: white; }
.skip-link:focus { top: 12px; }
html { scroll-padding-top: 0; scroll-snap-type: none; }
.wrap { max-width: 1360px; padding-inline: 64px; }
.scene { min-height: 100svh; padding-top: calc(var(--top) + 36px); padding-bottom: 36px; }
.scene h2 { font-size: clamp(32px, 3.05vw, 46px); line-height: 1.25; word-break: keep-all; }
.scene-head { margin-bottom: 24px; }
.sub { font-size: 20px; max-width: 1020px; }
.brand { display: inline-flex; align-items: center; gap: 18px; }
.brand > span { font-size: 12px; font-weight: 500; color: var(--muted); border-left: 1px solid var(--line); padding-left: 18px; }
.top-link { font-size: 14px; color: var(--ink-2); }
.top-link:hover { color: var(--primary); }
.mobile-break { display: none; }
.scene-start { background: radial-gradient(ellipse at 50% 80%, #f4f8fa 0, transparent 65%); }
.scene-start h1 { font-size: clamp(38px, 4.3vw, 64px); }
.scene-start .lead { font-size: 22px; margin: 24px auto 32px; }
.hero-flow { list-style: none; margin: 54px auto 0; padding: 24px 0; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 980px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; }
.hero-flow li { display: flex; align-items: center; gap: 16px; padding: 0 24px; }
.hero-flow li + li { border-left: 1px solid var(--line); }
.flow-symbol { font: 600 15px var(--mono); color: var(--mint); width: 40px; height: 40px; background: var(--mint-soft); border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.hero-flow b, .hero-flow div > span { display: block; }
.hero-flow b { font-size: 19px; font-weight: 650; }
.hero-flow div > span { margin-top: 3px; color: var(--ink-2); font-size: 14px; }
.hero-note { margin-top: 22px; font-size: 13px; color: var(--muted); }
.arrive { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; }
.stage-view { height: clamp(230px, 32vh, 360px); }
.stage-caption { margin-left: auto; padding-right: 8px; font-size: 12px; color: #b7c7d6; }
.stage-tabs { min-height: 48px; padding-block: 6px; }
.stage-tabs button { white-space: nowrap; }
.students { gap: 8px; margin-top: 12px; }
.student { padding-right: 10px; font-size: 14px; }
.student .st { font-size: 12px; }
.student canvas { width: 28px; height: 28px; }
.student.on { border-color: var(--navy); }
.actions { margin-top: 12px; gap: 10px; }
.actions .btn { height: 44px; padding-inline: 16px; font-size: 16px; }
.button-step { font-size: 12px; opacity: .7; margin-right: 4px; }
.text-button { border: 0; background: none; font: inherit; font-size: 13px; padding: 8px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.text-button:disabled { opacity: .4; cursor: not-allowed; }
.status { margin: 8px 0 0; font-size: 14px; min-height: 22px; color: var(--ink-2); }
.phone-col { padding-top: 0; }
.phone { border-radius: 18px; box-shadow: 0 10px 40px rgba(20,42,67,.06); }
.phone-top { position: relative; padding: 16px 20px 12px; }
.phone-top > span:first-child { font-size: 12px; }
.phone-top b { font-size: 19px; }
.phone-top .roster-count { position: absolute; bottom: 15px; right: 20px; font-size: 13px; color: var(--mint); }
.roster { min-height: 176px; max-height: 230px; overflow-y: auto; }
.roster li { grid-template-columns: 36px 1fr auto; gap: 12px; padding: 8px 20px; font-size: 16px; }
.roster canvas, .roster i { width: 36px; height: 36px; }
.roster .state { font-size: 13px; }
.phone-foot { padding: 8px 20px 12px; font-size: 11px; }
.notice { width: 100%; margin-top: 14px; padding: 16px 20px; min-height: 102px; box-shadow: 0 8px 20px rgba(20,42,67,.12); }
.notice.waiting { background: var(--bg-2); box-shadow: none; border: 1px dashed #ccd4dc; color: var(--ink-2); }
.notice-body { font-size: 16px; }
.demo-foot { margin-top: 14px; }
.demo-foot .how { margin-top: 0; font-size: 13px; }
.sample-note { font-size: 12px; color: var(--muted); margin-top: 7px; }
.sample-note a { text-decoration: underline; text-underline-offset: 3px; }
.sample-tools { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.sample-tools summary { cursor: pointer; font-size: 14px; font-weight: 600; width: fit-content; }
.sample-tools summary > span { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 8px; }
.sample-form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: end; gap: 14px; padding: 20px 0 4px; }
.sample-form p { grid-column: 1 / -1; font-size: 14px; color: var(--ink-2); }
.sample-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; min-width: 0; }
.sample-form input { width: 100%; min-width: 0; padding: 10px; border: 1px solid #c7ced6; background: white; border-radius: 6px; font: inherit; }
.sample-form input[type=file] { font-size: 12px; }
.sample-form .btn { font-size: 14px; height: 42px; }
.safe-flow { grid-template-columns: 120px 40px minmax(0, 1fr) 200px; gap: 24px; padding: 24px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; }
.safe-face canvas { width: 112px; height: 112px; }
.safe-face span, .safe-strip span { font-size: 13px; }
.safe-strip > div { height: 112px; padding: 12px; background: white; }
.safe-outcome { display: flex; flex-direction: column; align-items: center; gap: 8px; border-left: 1px solid var(--line); padding-left: 16px; text-align: center; }
.outcome-mark { display: grid; place-items: center; border-radius: 50%; width: 42px; height: 42px; background: var(--mint-soft); color: var(--mint); font-weight: 700; }
.safe-outcome b { font-size: 17px; }
.safe-outcome > span:last-child { font-size: 13px; color: var(--ink-2); }
.trust-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 28px 0; }
.trust-cards article { padding: 0 20px 0 0; }
.trust-cards article + article { border-left: 1px solid var(--line); padding-left: 24px; }
.card-label { display: block; font-size: 13px; color: var(--mint); font-weight: 650; margin-bottom: 10px; }
.trust-cards h3 { font-size: 20px; margin-bottom: 8px; }
.trust-cards p { font-size: 16px; color: var(--ink-2); word-break: keep-all; }
.comparison-details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.comparison-details summary { display: flex; justify-content: space-between; align-items: center; list-style: none; padding: 18px 0; font-size: 17px; font-weight: 600; cursor: pointer; }
.comparison-details summary::-webkit-details-marker { display: none; }
.comparison-details summary > span { font-size: 26px; font-weight: 400; transition: transform .2s; }
.comparison-details[open] summary > span { transform: rotate(45deg); }
.comparison-content { padding: 0 0 28px; }
.pair-cards { margin-top: 24px; margin-bottom: 24px; }
.pair-card canvas { width: 64px; height: 64px; }
.pair-result { grid-template-columns: 160px 1fr 160px; gap: 40px; max-width: 820px; margin: 0 auto; }
.pair-face canvas { width: 160px; height: 160px; }
.pair-face { font-size: 17px; }
.pair-dist { font-size: 52px; }
.pair-verdict { font-size: 20px; }
.foot-link { font-size: 14px; }
.scene-product { background: #f5f7fa; }
.product-grid { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(240px, 1fr); align-items: center; gap: 40px; }
.product-preview { min-width: 0; border: 1px solid #dce1e8; border-radius: 12px; background: white; overflow: hidden; box-shadow: 0 24px 60px -30px rgba(20,42,67,.25); }
.preview-toolbar { display: flex; align-items: center; gap: 14px; background: var(--navy); color: white; padding: 10px 16px; }
.window-dots { font-size: 9px; letter-spacing: 3px; opacity: .45; white-space: nowrap; }
.preview-toolbar b { font-size: 12px; letter-spacing: .05em; }
.preview-toolbar > div { display: flex; gap: 4px; margin-left: auto; }
.preview-toolbar button { padding: 6px 10px; border: 0; background: transparent; color: #b7c7d6; border-radius: 4px; font: inherit; font-size: 12px; cursor: pointer; }
.preview-toolbar button.on { background: #ffffff24; color: white; }
.screenshot-button { display: block; position: relative; padding: 0; border: 0; background: white; width: 100%; aspect-ratio: 16 / 8; cursor: zoom-in; overflow: hidden; }
.screenshot-button img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.screenshot-button > span { position: absolute; bottom: 16px; right: 16px; display: flex; gap: 14px; background: var(--navy); color: white; border-radius: 6px; padding: 10px 14px; font: 500 12px var(--sans); box-shadow: 0 4px 12px #142a4320; }
.capture-note { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.product-points article + article { border-top: 1px solid #dce1e8; padding-top: 20px; margin-top: 20px; }
.product-points article > span { font-size: 12px; color: var(--primary); font-weight: 600; }
.product-points h3 { font-size: 22px; margin: 6px 0; }
.product-points p { font-size: 16px; color: var(--ink-2); word-break: keep-all; }
.product-note { font-size: 13px; color: var(--ink-2); margin-top: 22px; max-width: 1000px; }
.closing-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: stretch; }
.consult-card { background: var(--navy); border-radius: 16px; padding: 30px 36px; color: white; }
.consult-card .card-label { color: #9be3cf; }
.consult-card h3 { font-size: 30px; line-height: 1.3; }
.consult-card ol { padding-left: 20px; margin: 20px 0; font-size: 16px; color: #d5dfe9; }
.consult-card li + li { margin-top: 6px; }
#contact { font-size: 14px; color: #d5dfe9; margin-bottom: 20px; }
.consult-card .btn { height: 44px; font-size: 15px; }
.next-card { border: 1px solid var(--line); border-radius: 16px; padding: 30px 32px; display: flex; flex-direction: column; align-items: flex-start; }
.next-card .soon-tag { position: static; background: white; border: 1px solid var(--line); color: var(--ink-2); margin-bottom: 24px; font-size: 12px; }
.next-card h3 { font-size: 27px; line-height: 1.3; }
.next-card p { margin-top: 18px; font-size: 17px; color: var(--ink-2); word-break: keep-all; }
.next-note { margin-top: auto; padding-top: 24px; font-size: 13px; color: var(--ink-2); }
.closing-footer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 18px; font-size: 13px; color: var(--ink-2); }
.closing-footer .brand { color: var(--ink); }
.closing-footer > a:last-child { margin-left: auto; }
.os-dialog { width: min(1500px, 94vw); max-width: 94vw; max-height: 94svh; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: white; }
.os-dialog::backdrop { background: #0e1b2cd9; backdrop-filter: blur(5px); }
.dialog-toolbar { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; background: white; border-bottom: 1px solid var(--line); font-size: 15px; }
.os-dialog > img { width: 100%; height: auto; display: block; }
body:has(dialog[open]) { overflow: hidden; }
body.present .top { background: #ffffffed; }
body.present .top-link, body.present .top .brand > span { display: none; }
html:has(.comparison-details[open]), html:has(.sample-tools[open]) { scroll-snap-type: none; }
@media (min-width: 1101px) and (max-height: 850px) {
  .scene { padding-top: 86px; padding-bottom: 24px; }
  .scene-head { margin-bottom: 18px; }
  .eyebrow { margin-bottom: 8px; font-size: 13px; }
  .scene h2 { font-size: 36px; }
  .sub { margin-top: 10px; font-size: 17px; }
  .stage-view { height: 220px; }
  .stage-tabs { min-height: 40px; padding-block: 3px; }
  .stage-tabs button { font-size: 13px; padding-block: 6px; }
  .roster { min-height: 0; max-height: 200px; }
  .roster li { padding-block: 6px; }
  .phone-top { padding-top: 12px; }
  .notice { min-height: 88px; padding-block: 12px; }
  .notice-body { font-size: 14px; }
  .demo-foot { margin-top: 6px; }
  .sample-tools { margin-top: 6px; padding-top: 6px; }
  .sample-note { margin-top: 4px; }
  .hero-flow { margin-top: 36px; }
  .product-grid { grid-template-columns: minmax(0, 1.95fr) minmax(240px, 1fr); gap: 32px; }
  .product-preview { max-width: 720px; }
  .product-points h3 { font-size: 20px; }
  .product-points p { font-size: 15px; }
  .consult-card, .next-card { padding: 24px 30px; }
  .consult-card h3 { font-size: 26px; }
  .closing-footer { margin-top: 24px; }
}
@media (max-width: 1100px) {
  .wrap { padding-inline: 36px; }
  .arrive { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; }
  .stage-caption { display: none; }
  .safe-flow { grid-template-columns: 100px 30px minmax(0, 1fr); gap: 16px; }
  .safe-face canvas { width: 100px; height: 100px; }
  .safe-outcome { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .product-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .product-points article + article { margin: 0; padding: 0; border: 0; }
  .sample-form { grid-template-columns: 1fr 1fr; }
  .hero-flow li { padding: 0 14px; gap: 10px; }
  .hero-flow b { font-size: 16px; }
}
@media (min-width: 1101px) and (max-height: 740px) {
  .scene { padding-top: 78px; padding-bottom: 14px; }
  .scene-head { margin-bottom: 14px; }
  .phone-top { padding-top: 10px; }
}
@media (max-width: 700px) {
  .wrap { padding-inline: 20px; }
  .top { padding-inline: 16px; }
  .top-right { gap: 10px; }
  .top-link, .brand > span { display: none; }
  .scene { min-height: 0; padding-top: 92px; padding-bottom: 48px; }
  .scene-start { min-height: 100svh; }
  .scene h2 { font-size: 30px; }
  .scene-start h1 { font-size: clamp(30px, 7.9vw, 42px); }
  .scene-start .lead { font-size: 17px; margin: 22px 0 28px; }
  .scene-start .lead br { display: none; }
  .sub { font-size: 17px; }
  .mobile-break { display: initial; }
  .hero-flow { grid-template-columns: 1fr; gap: 18px; margin-top: 36px; padding-block: 22px; max-width: 350px; }
  .hero-flow li { padding: 0; gap: 16px; }
  .hero-flow li + li { border: 0; }
  .hero-flow b { font-size: 17px; }
  .hero-note { font-size: 12px; }
  .arrive { grid-template-columns: 1fr; gap: 24px; }
  .stage-view { height: auto; aspect-ratio: 4 / 3; }
  .phone-col { max-width: none; }
  .sample-form { grid-template-columns: 1fr; }
  .sample-tools summary > span { display: block; margin: 4px 0 0; font-size: 12px; }
  .safe-flow { grid-template-columns: 70px 20px minmax(0, 1fr); padding: 16px; gap: 10px; }
  .safe-face canvas { width: 70px; height: 70px; }
  .safe-strip > div { height: 70px; padding: 6px; }
  .safe-face span, .safe-strip span { font-size: 10px; }
  .safe-arrow { transform: none; font-size: 24px; }
  .trust-cards { grid-template-columns: 1fr; gap: 20px; }
  .trust-cards article + article { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .trust-cards h3 { font-size: 20px; }
  .comparison-details summary { font-size: 15px; gap: 14px; }
  .pair-result { grid-template-columns: 1fr 1fr; gap: 16px; }
  .pair-face canvas { width: 100%; max-width: 160px; height: auto; }
  .product-grid { gap: 24px; }
  .preview-toolbar { gap: 8px; padding: 8px; }
  .preview-toolbar .window-dots { display: none; }
  .preview-toolbar b { font-size: 10px; }
  .preview-toolbar button { padding: 6px 8px; font-size: 11px; }
  .screenshot-button > span { bottom: 8px; right: 8px; padding: 8px 10px; font-size: 11px; }
  .product-points { grid-template-columns: 1fr; gap: 20px; }
  .product-points article + article { border-top: 1px solid var(--line); padding-top: 20px; }
  .closing-grid { grid-template-columns: 1fr; }
  .consult-card, .next-card { padding: 26px; }
  .scene-end h2 br { display: none; }
  .closing-footer { flex-wrap: wrap; gap: 12px; }
  .closing-footer > a:last-child { width: 100%; margin-left: 0; }
  .dialog-toolbar { font-size: 12px; padding: 10px; }
  .dots { display: none; }
  html:has(body.present) { scroll-snap-type: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
