/* site.css — 이음 홈페이지. 색은 전부 :root 토큰으로만 쓴다 (다크 모드는 토큰만 바꾼다) */
@font-face {
  font-family: 'Pretendard';
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url('../fonts/pretendard-variable.woff2') format('woff2-variations');
}

:root {
  --paper: #f5f7fa;
  --surface: #ffffff;
  --sunken: #eef2f7;
  --ink: #141c28;
  --ink-2: #485263;
  --muted: #7a8494;
  --line: #e0e5ec;
  --accent: #0071e3;          /* 앱 버튼과 같은 파랑 */
  --accent-ink: #ffffff;
  --accent-soft: #e6f0fc;
  --red: #e5484d;
  --amber: #b86e00;
  --amber-soft: #fff4dc;
  --frame: #1b2230;
  --shadow: 0 30px 60px -30px rgba(20, 28, 40, .45);
  --radius: 14px;
  --header-h: 60px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0d1218; --surface: #151c26; --sunken: #1b2430; --ink: #e8edf3; --ink-2: #b1bccb; --muted: #8190a3;
    --line: #26303e; --accent: #4c9dff; --accent-ink: #06121f; --accent-soft: #16263b; --red: #ff6b6f;
    --amber: #f0b44c; --amber-soft: #2c2412; --frame: #05080d; --shadow: 0 30px 60px -30px rgba(0,0,0,.8);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0d1218; --surface: #151c26; --sunken: #1b2430; --ink: #e8edf3; --ink-2: #b1bccb; --muted: #8190a3;
  --line: #26303e; --accent: #4c9dff; --accent-ink: #06121f; --accent-soft: #16263b; --red: #ff6b6f;
  --amber: #f0b44c; --amber-soft: #2c2412; --frame: #05080d; --shadow: 0 30px 60px -30px rgba(0,0,0,.8);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'Pretendard', 'Malgun Gothic', 'Apple SD Gothic Neo', system-ui, sans-serif;
  font-size: 16px; line-height: 1.65; word-break: keep-all; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.02em; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
@media (max-width: 600px) { .wrap { padding-inline: 16px; } }

/* ── 머리말 */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand-mark { display: block; width: 32px; height: 32px; flex: none; }
.top-nav { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.top-nav a, .top-nav button { font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none; padding: 7px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer; }
.top-nav a:hover, .top-nav button:hover, .top-nav a.on { color: var(--ink); background: var(--sunken); }
.top-nav .btn-primary { color: var(--accent-ink); background: var(--accent); }
.top-nav .btn-primary:hover { color: var(--accent-ink); background: var(--accent); filter: brightness(1.08); }

/* ── 버튼 */
.btn-primary, .btn-ghost { font: inherit; font-weight: 700; font-size: 16px; border-radius: 12px; padding: 12px 20px; text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
:is(a, button, select):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }

/* ── 첫 화면 */
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--accent); }
/* 맨 첫 화면 소개 영상: 화면 높이에 맞춰 최대한 크게 (아래 화살표 자리는 비운다) */
.intro { display: flex; align-items: center; justify-content: center; padding: 20px 16px 96px; }
.intro-frame { position: relative; width: min(100%, 1600px, calc((100svh - var(--header-h) - 120px) * 16 / 9)); min-width: min(100%, 560px);
  aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #eef2f7; box-shadow: var(--shadow); border: 1px solid var(--line); }
.intro-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.intro-sound { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 8px 11px;
  font: inherit; font-size: 14px; font-weight: 700; color: #fff; background: rgba(20, 28, 40, .72); border: 0; border-radius: 999px; cursor: pointer; backdrop-filter: blur(6px); }
.intro-sound:hover { background: rgba(20, 28, 40, .88); }
@media (max-width: 600px) { .intro { padding: 12px 12px 88px; } .intro-frame { border-radius: 12px; } .intro-sound { right: 8px; bottom: 8px; padding: 6px 11px 6px 9px; font-size: 13px; } }

.hero { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px 56px; align-items: center; padding-block: 64px 72px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-block: 36px 48px; } }
@media (min-width: 901px) { .hero.demo { grid-template-columns: 1fr 1.15fr; } }
.hero h1 { margin: 0 0 18px; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.22; font-weight: 800; }
.hero .lede { margin: 0 0 26px; color: var(--ink-2); font-size: 18px; max-width: 32em; }

/* ── 첫 화면 애니메이션: 업무가 떠올라 → 화살표로 이어지고 → 모여서 이음 로고가 된다 (bubbles.js) */
:root { --bm-logo-fill: #a5e6cd; --bm-logo-ink: #23272e; --bm-main: #1fa67a; --bm-soft: #e1f6ed; } /* 업무 칩·화살표는 로고의 민트와 이어지는 녹색 */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bm-main: #4cd3a2; --bm-soft: #12302a; } }
:root[data-theme="dark"] { --bm-main: #4cd3a2; --bm-soft: #12302a; }
.hero-visual { position: relative; }
.bm { display: block; width: 100%; height: auto; overflow: visible; user-select: none; transition: opacity .8s ease; }
.bm.fade { opacity: 0; }

/* 업무 칩: 옅은 녹색 면 + 녹색 실선 테두리 */
.bm-node { transform-box: fill-box; transform-origin: center; }
.bm-node circle { fill: var(--bm-soft); stroke: var(--bm-main); stroke-width: 2.2; }
.bm-node text { fill: color-mix(in srgb, var(--bm-main) 45%, var(--ink)); font-weight: 650; letter-spacing: 0; }
.bm-node.core circle { fill: color-mix(in srgb, var(--bm-main) 14%, var(--surface)); stroke-width: 3.4; }
.bm-ripple { fill: none; stroke: var(--bm-main); stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.bm-line { fill: none; stroke: color-mix(in srgb, var(--bm-main) 70%, transparent); stroke-width: 2.4; stroke-linecap: round; }
.bm-head { fill: none; stroke: color-mix(in srgb, var(--bm-main) 85%, transparent); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }

/* 로고 */
.lg-fill { fill: var(--bm-logo-fill); stroke: var(--bm-logo-fill); stroke-width: 12; } /* 바깥 테두리: 검은 선(굵기 4) 바깥으로 같은 굵기의 민트 */
.lg-pulse { fill: none; stroke: var(--bm-logo-fill); stroke-width: 3; transform-box: fill-box; transform-origin: center; }
.lg-ring, .lg-cap, .lg-arrow { fill: none; stroke: var(--bm-logo-ink); stroke-linecap: round; stroke-linejoin: round; }
.lg-ring { stroke-width: 4; }
.lg-cap { stroke-width: 6.2; }
.lg-arrow { stroke-width: 5; }

/* 시작 전: 모두 숨김 */
.bm-node, .bm-ripple, .bm-head, .lg-fill, .lg-pulse { opacity: 0; }
.bm-line, .lg-draw { stroke-dasharray: 1 2; stroke-dashoffset: 1.02; }

/* 재생 */
.bm.play .bm-ripple { animation: bm-ripple 1.7s cubic-bezier(.2,.6,.3,1) var(--d) both; }
.bm.play .bm-node { animation: bm-rise .95s cubic-bezier(.16,.8,.24,1) var(--d) both, bm-gather 1.1s cubic-bezier(.6,0,.4,1) var(--g) forwards; }
.bm.play .bm-line { animation: bm-draw .6s cubic-bezier(.4,0,.2,1) var(--d) both; }
.bm.play .bm-head { animation: bm-fade .2s ease-out var(--d) both; }
.bm.play .bm-node.core { animation: bm-rise .95s cubic-bezier(.16,.8,.24,1) var(--d) both, bm-merge 2.4s cubic-bezier(.45,0,.25,1) var(--g) forwards, bm-fadeout .7s ease calc(var(--g) + 1.7s) forwards; }
.bm.play .bm-node.core text { animation: bm-fadeout 1.2s ease-in var(--g) forwards; }
.bm-node.core circle { vector-effect: non-scaling-stroke; }
.bm.play .bm-edge { animation: bm-out .7s ease var(--g) forwards; }
.bm.play .lg-fill { animation: bm-fade 1s ease var(--d) both; }
.bm.play .lg-ring { animation: bm-draw 1.1s cubic-bezier(.4,0,.2,1) var(--d) both; }
.bm.play .lg-cap { animation: bm-draw 1.9s cubic-bezier(.4,0,.2,1) var(--d) both; }
.bm.play .lg-arrow { animation: bm-draw .55s ease-out var(--d) both; }
.bm.play .lg-pulse { animation: bm-pulse 1.5s ease-out var(--d) forwards; } /* both로 두면 시작 전부터 민트 원이 비친다 */

/* 끝난 뒤: 로고만 남는다 */
.bm.done .bm-line, .bm.done .lg-draw { stroke-dashoffset: 0; animation: none; }
.bm.done .lg-fill { opacity: 1; animation: none; }
.bm.done .bm-node, .bm.done .bm-edge, .bm.done .bm-ripple, .bm.done .lg-pulse { opacity: 0; animation: none; }

@keyframes bm-ripple { from { opacity: .6; transform: scale(.15); } to { opacity: 0; transform: scale(1); } }
@keyframes bm-rise   { from { opacity: 0; transform: translateY(38px) scale(.55); } to { opacity: 1; transform: none; } }
@keyframes bm-gather { from { opacity: 1; transform: none; } to { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(.18); } }
@keyframes bm-merge  { from { transform: none; } to { transform: translate(var(--tx), var(--ty)) scale(var(--s)); } }
@keyframes bm-draw   { to { stroke-dashoffset: 0; } }
@keyframes bm-fade   { from { opacity: 0; } to { opacity: 1; } }
@keyframes bm-out    { to { opacity: 0; } }
@keyframes bm-pulse  { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.45); } }
@keyframes bm-fadeout { from { opacity: 1; } to { opacity: 0; } }
/* 모션 줄이기: 이동·확대 없이 나타나고 사라지기만 한다 */
.bm.calm.play .bm-node { animation: bm-fade .9s ease var(--d) both, bm-fadeout 1.1s ease var(--g) forwards; }
.bm.calm.play .bm-node.core { animation: bm-fade .9s ease var(--d) both, bm-merge 2.4s cubic-bezier(.45,0,.25,1) var(--g) forwards, bm-fadeout .7s ease calc(var(--g) + 1.7s) forwards; }
.bm.calm.play .bm-ripple, .bm.calm.play .lg-pulse { animation: none; }


/* ── 두 번째 화면: 사용자 매뉴얼 캡처를 단계별로 넘겨 보여준다 (stepshow.js) */
.demo-tabs { display: grid; gap: 10px; max-width: 32em; }
.demo-tab { font: inherit; text-align: left; cursor: pointer; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); display: grid; gap: 4px; transition: border-color .2s, background .2s, box-shadow .2s; }
.demo-tab b { font-size: 16px; font-weight: 700; color: var(--ink); }
.demo-tab span { font-size: 14.5px; line-height: 1.55; }
.demo-tab:hover { border-color: var(--accent); }
.demo-tab.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.demo-tab.on b { color: var(--accent); }

.ss { display: grid; gap: 14px; }
.doc-show { max-width: 880px; }
.ss-stage { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--sunken); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ss-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(1.015); transition: opacity .5s ease, transform .7s ease; }
.ss-img.on { opacity: 1; transform: none; }
.ss-arrow { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--ink); box-shadow: 0 4px 14px rgba(20, 28, 40, .22); cursor: pointer; opacity: .75; transition: opacity .2s, transform .15s, color .15s, border-color .15s; }
.ss-arrow.prev { left: 12px; }
.ss-arrow.next { right: 12px; }
.ss-arrow:hover, .ss-arrow:focus-visible { opacity: 1; color: var(--accent); border-color: var(--accent); transform: scale(1.06); }
.ss-cap { display: flex; gap: 12px; align-items: flex-start; min-height: 3.4em; }
.ss-num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }
.ss-text { margin: 0; font-size: 16.5px; line-height: 1.55; color: var(--ink); font-weight: 500; }
.ss-dots { display: flex; gap: 6px; }
.ss-dot { flex: 1; height: 18px; padding: 7px 0; border: 0; background: none; cursor: pointer; }
.ss-dot::before { content: ''; display: block; height: 4px; border-radius: 2px; background: var(--line); }
.ss-dot { position: relative; }
.ss-fill { position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.ss-dot.done .ss-fill { transform: none; }
.ss-dot.now .ss-fill { animation: ss-fill linear forwards; }
.ss.paused .ss-fill { animation-play-state: paused; }
@keyframes ss-fill { to { transform: scaleX(1); } }
/* 다음 화면으로 넘어가는 동작을 보여주는 마우스: 끝 직전에 눌렀다 떼며 물결이 퍼진다 */
.ss-cur { position: absolute; left: 0; top: 0; z-index: 1; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .35)); }
.ss-cur.on { opacity: 1; }
.ss-cur.glide { transition: left 1s cubic-bezier(.45, 0, .2, 1) .3s, top 1s cubic-bezier(.45, 0, .2, 1) .3s, opacity .3s ease; }
.ss-ptr { position: absolute; left: -3px; top: -2px; transform-origin: 3px 2px; }
.ss-ripple { position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--accent); opacity: 0; }
.ss-cur.click .ss-ptr { animation: ss-press .5s ease-in-out var(--click-delay) both; }
.ss-cur.click .ss-ripple { animation: ss-ripple .5s ease-out var(--click-delay) both; }
.ss.paused .ss-cur.click .ss-ptr, .ss.paused .ss-cur.click .ss-ripple { animation-play-state: paused; }
@keyframes ss-press { 0%, 100% { transform: scale(1); } 35% { transform: scale(.82); } }
@keyframes ss-ripple { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
/* 동작 줄이기 설정에서도 마우스 이동·클릭 표시는 둔다: 어디를 누르는지 알려 주는 안내라서 꺼 버리면 뜻이 사라진다 */
@media (prefers-reduced-motion: reduce) { .ss-img { transition: none; transform: none; } }

/* ── 구조 설명: 메신저 캡처 위에서 조직도 → 오늘 일정 → 네비게이션바를 차례로 강조 */
.overview { max-width: 1320px; display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 32px 56px; align-items: center; padding-block: 48px; }
.overview .overview-copy { order: 2; }
@media (max-width: 900px) { .overview { grid-template-columns: 1fr; padding-block: 36px 48px; } .overview .overview-copy { order: 0; } }
.overview h2 { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.22; font-weight: 800; }
.overview-lede { margin: 0 0 24px; color: var(--ink-2); font-size: 17px; max-width: 30em; }

.scenes { display: flex; flex-direction: column; gap: 96px; padding-block: 32px 96px; max-width: 1320px; }
@media (max-width: 900px) { .scenes { gap: 64px; } }
.scene-row { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 32px 56px; align-items: center; }
.scene-row.flip { grid-template-columns: 1.3fr 0.9fr; }
.scene-row.flip .scene-copy { order: 2; }
@media (max-width: 900px) { .scene-row, .scene-row.flip { grid-template-columns: 1fr; } .scene-row.flip .scene-copy { order: 0; } }
.scene-copy h2 { margin: 0 0 12px; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.3; font-weight: 800; }
.scene-copy p { margin: 0 0 14px; color: var(--ink-2); font-size: 17px; max-width: 30em; }
.more { font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }
.scene-visual.phone { max-width: 380px; justify-self: center; width: 100%; }
.scene-visual.phone .todo-box { aspect-ratio: 9 / 18; border-radius: 34px; border-width: 8px; border-style: solid; border-color: var(--frame); }
.scene-visual.phone img { display: block; width: 100%; border-radius: 34px; border: 8px solid var(--frame); box-shadow: var(--shadow); }

/* ── 첫 화면: 내용 하나가 한 화면을 채우고, 화살표를 눌러 슬라이드처럼 이동
 * (휠 스크롤 자체엔 반응하지 않는다 — scroll-snap은 반응이 굼떠서 뺐다) */
html.landing-slides .intro,
html.landing-slides .hero,
html.landing-slides .overview,
html.landing-slides .scene-row,
html.landing-slides .closing {
  scroll-margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h) - env(safe-area-inset-top, 0px));
  min-height: calc(100svh - var(--header-h) - env(safe-area-inset-top, 0px));
}
html.landing-slides .scenes { gap: 0; padding-block: 0; }
html.landing-slides .closing { display: flex; flex-direction: column; align-items: center; justify-content: center; }

.slide-nav { position: fixed; left: 0; right: 0; height: 88px; display: flex; align-items: center; justify-content: center; z-index: 20; pointer-events: none; }
/* .top은 헤더 클래스와 이름이 겹친다 — 헤더 배경·블러·밑줄이 따라붙지 않게 지운다 */
.slide-nav.top { top: var(--header-h); background: none; backdrop-filter: none; border-bottom: 0; }
.slide-nav.bottom { bottom: 0; }
.slide-nav button {
  pointer-events: auto; width: 42px; height: 42px; border-radius: 50%; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  box-shadow: var(--shadow); cursor: pointer; transition: color .15s, border-color .15s, transform .15s;
}
.slide-nav button:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.slide-nav.top button:hover { transform: translateY(1px); }
.slide-nav button[hidden] { display: none; }
@media (max-width: 600px) { .slide-nav { height: 64px; } .slide-nav button { width: 38px; height: 38px; } }

.todo-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; aspect-ratio: 16 / 10; padding: 24px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--sunken); color: var(--muted); font-size: 14px; }
.todo-box.big { aspect-ratio: auto; min-height: 260px; }
.todo-tag { font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--amber); background: var(--amber-soft); padding: 3px 10px; border-radius: 999px; }

/* ── 자주 묻는 질문: 질문을 누르면 답이 펼쳐진다 */
.faq { max-width: 860px; padding-block: 72px 96px; border-top: 1px solid var(--line); }
html.landing-slides .faq { display: flex; flex-direction: column; justify-content: center; }
.faq h2 { margin: 0 0 28px; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item[open] { border-color: var(--accent); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 20px; font-size: 17px; font-weight: 700; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ''; margin-left: auto; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(-135deg) translate(-2px, -1px); border-color: var(--accent); }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius); }
.faq-a { padding: 0 20px 18px; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.faq-a p { margin: 0 0 10px; }
.faq-a p:last-child, .faq-a ul:last-child { margin-bottom: 0; }
.faq-a ul { margin: 0 0 10px; padding-left: 20px; }
.faq-a li { margin-bottom: 6px; }
.faq-a b { color: var(--ink); }
.faq-slogan { font-weight: 800; color: var(--accent); }
@media (max-width: 600px) { .faq { padding-block: 48px 72px; } .faq-item summary { padding: 14px 16px; font-size: 16px; } .faq-a { padding: 0 16px 16px; } }

.closing { text-align: center; padding-block: 72px 96px; border-top: 1px solid var(--line); }
.closing h2 { margin: 0 0 24px; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }

/* ── 기능 안내 */
.guide { display: grid; grid-template-columns: 280px minmax(0, 1fr); align-items: start; }
.side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); height: calc(100vh - var(--header-h) - env(safe-area-inset-top, 0px)); overflow-y: auto; padding: 24px 14px 40px 20px; background: var(--surface); border-right: 1px solid var(--line); }
.guide-main { min-width: 0; padding: 40px clamp(24px, 4vw, 64px) 96px; }
.guide-main .doc { max-width: 1040px; margin: 0 auto; }
body[data-view="guide"] .top .wrap { max-width: none; padding-inline: 20px; }
@media (max-width: 900px) {
  .guide { grid-template-columns: 1fr; }
  .side { position: static; height: auto; overflow: visible; padding: 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .guide-main { padding: 20px 16px 64px; }
}
.nav-group + .nav-group { margin-top: 20px; }
.nav-title { display: flex; align-items: center; margin: 0 0 6px; padding-inline: 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; color: var(--muted); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.nav a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 14.5px; line-height: 1.4; }
.nav a:hover { background: var(--sunken); color: var(--ink); }
.nav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.nav a.todo:not(.on) { color: var(--muted); }
.key { flex: none; margin-left: auto; font-size: 11px; font-weight: 700; color: var(--amber); background: var(--amber-soft); padding: 1px 7px; border-radius: 999px; }
.crumb .key, .nav-title .key { margin-left: 0; }
.nav-title .key { margin-left: 8px; letter-spacing: 0; }
.nav-select-label, .nav-select { display: none; }
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-select-label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
  .nav-select { display: block; width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
}

.doc { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.doc > * { margin: 0; }
.crumb { font-size: 14px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.doc h1 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.25; font-weight: 800; }
.summary { color: var(--ink-2); font-size: 17px; max-width: 42em; }
.doc h2 { margin: 0 0 12px; font-size: 20px; font-weight: 800; }
.demo-tabs { display: flex; gap: 4px; background: var(--sunken); padding: 4px; border-radius: 12px; align-self: flex-start; }
.demo-tabs button { font: inherit; font-size: 15px; font-weight: 700; color: var(--muted); background: none; border: 0; padding: 7px 16px; border-radius: 9px; cursor: pointer; }
.demo-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.notes { background: var(--sunken); border-radius: var(--radius); padding: 18px 20px; }
.notes ul { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 15px; display: flex; flex-direction: column; gap: 6px; }
.next-row { display: flex; gap: 10px; flex-wrap: wrap; }
.next-row a { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15px; }
.next-row a span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.next-row a:hover { border-color: var(--accent); }

/* ── 시연 재생기 */
.player { display: flex; flex-direction: column; gap: 12px; }
.scene-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.who { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.who i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.who.teacher i { background: #16a34a; }
.scene-bar .real { margin-left: auto; color: var(--muted); font-size: 13px; }
.monitor { background: var(--frame); border-radius: 16px; padding: 10px; box-shadow: var(--shadow); }
.scene-visual .monitor, .hero-visual .monitor { padding: 8px; border-radius: 14px; }
.stage-wrap { position: relative; width: 100%; overflow: hidden; border-radius: 8px; background: #000; }
.stage { position: absolute; left: 0; top: 0; width: 1536px; height: 816px; transform-origin: 0 0; transition: transform .7s cubic-bezier(.65,0,.35,1); }
.stage.instant, .stage.instant * { transition: none !important; animation: none !important; }
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.scene.on { opacity: 1; }
.sceneA { background: #fbfbfd; }
.sceneB { background: linear-gradient(160deg, #6f7f96, #4b586c); }
.shot { position: absolute; display: block; max-width: none; opacity: 0; transition: opacity .4s ease; }
.shot.on { opacity: 1; }
.admin { left: 0; top: 0; width: 1536px; height: 793.6px; }
.win { filter: drop-shadow(0 12px 28px rgba(0,0,0,.35)); }
.mainwin { width: 700px; height: 791.2px; opacity: 1; }
.viewer { left: 180px; top: 52px; width: 1144px; height: 728px; transition: opacity .15s, transform .15s; transform: scale(.97); }
.viewer.on { transform: none; }
.weekly { left: 0; top: 0; width: 1536px; height: 816px; transition: opacity .15s, transform .15s; transform: scale(.985); }
.weekly.on { transform: none; }
/* 알림: 실제 알림 창처럼 화면 우측 하단(작업 표시줄 위)에 아래쪽 기준으로 쌓인다 */
.toast { position: absolute; left: 1185px; bottom: 10px; width: 341.6px; overflow: hidden; opacity: 0; }
.toast img { display: block; width: 341.6px; max-width: none; }
.toast.on { opacity: 1; }
.slide-in { animation: slideIn .25s cubic-bezier(.34,1.3,.64,1) both; }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast.up { transform: none !important; transition: transform .25s ease; }
.toast.removing { transform: translateX(110%) !important; opacity: 0; transition: transform .25s ease-in, opacity .2s ease-in; }
.ghost { position: absolute; z-index: 18; pointer-events: none; opacity: .7; border-radius: 6px; box-shadow: 0 6px 16px rgba(0,0,0,.25); background-repeat: no-repeat; transition: transform .8s cubic-bezier(.45,0,.2,1); }
.cursor { position: absolute; left: 0; top: 0; width: 26px; height: 26px; z-index: 20; pointer-events: none; transition: transform .75s cubic-bezier(.45,0,.2,1); filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.cursor svg { display: block; transform-origin: 3px 2px; transition: transform .12s; }
.cursor.press svg { transform: scale(.85); }
.ripple { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(0,113,227,.3); z-index: 19; pointer-events: none; animation: rip .5s ease-out forwards; }
@keyframes rip { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 6px; }
.step { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; height: 100%; display: flex; flex-direction: column; gap: 2px; padding: 10px 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.step:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.step .n { font-size: 12px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.step .t { font-size: 13.5px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.step .who-tag { font-size: 11.5px; color: var(--muted); margin-top: auto; }
.step[aria-current="step"] { border-color: var(--accent); background: var(--accent-soft); }
.step[aria-current="step"] .n { color: var(--accent); }
.step .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); }
.step[aria-current="step"] .bar { animation: grow var(--dur, 4s) linear forwards; }
.paused .step .bar { animation-play-state: paused; }
@keyframes grow { to { width: 100%; } }
.caption { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.caption .cap { margin: 0; max-width: 46em; color: var(--ink-2); font-size: 16px; min-height: 3.3em; }
.caption .cap b { color: var(--ink); }
.controls { display: flex; gap: 8px; }
.btn { font: inherit; font-size: 14px; font-weight: 700; border-radius: 10px; padding: 8px 14px; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.btn:hover { border-color: var(--accent); }

/* ── 도입 문의 창 */
.contact { border: 0; border-radius: 18px; padding: 0; width: min(440px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.contact::backdrop { background: rgba(10, 14, 20, .5); }
.contact-in { padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 14px; }
.contact h2 { margin: 0; font-size: 21px; font-weight: 800; }
.contact p { margin: 0; color: var(--ink-2); font-size: 15px; }
.kakao { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 13px; border-radius: 12px; background: #fee500; color: #3c1e1e; font-weight: 800; text-decoration: none; }
.mail-box { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.mail-addr { font-weight: 700; user-select: all; word-break: break-all; }
.mail-row { display: flex; gap: 8px; }
.mail-row > * { flex: 1; justify-content: center; font-size: 14px; padding: 9px 12px; }
.contact-close { align-self: flex-end; }

/* ── 꼬리말 */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-block: 28px 40px; }
.foot .mail-addr { color: var(--ink-2); font-weight: 600; }

/* ── 첫 화면 설명 도식 (보안 · 업데이트 · 기술 지원) — diagrams.js가 그린다 */
.scene-visual.dgbox { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 10px; }
.dg { display: block; width: 100%; height: auto; overflow: visible; user-select: none; transition: opacity .8s ease; --dg-ok: var(--bm-main); }
.dg.fade { opacity: 0; }
.dg text { font-family: inherit; text-anchor: middle; fill: var(--ink); font-weight: 700; font-size: 27px; letter-spacing: 0; }
.dg .s { font-size: 23px; fill: var(--ink-2); font-weight: 650; }
.dg .ok { fill: var(--dg-ok); }
.dg .bad { fill: var(--red); }
.dg .wht { fill: #fff; }
.dg .sm { font-size: 21px; }
.dg .zone-t { fill: var(--muted); font-size: 24px; font-weight: 750; }
.dg .cap { font-size: 30px; fill: var(--ink); }
.dg .cap-bg { fill: var(--sunken); stroke: var(--line); stroke-width: 1.5; }
.dg .card-t { font-size: 25px; }
.dg-i { opacity: 0; transition: opacity .45s ease, transform .5s cubic-bezier(.3,1.5,.5,1); }
.dg-i.on { opacity: 1; }
.dg-i.pop, .dg-i.sm { transform-box: fill-box; transform-origin: center; }
.dg-i.pop { transform: scale(.3); }
.dg-i.sm { transform: scale(.78); }
.dg-i.drop { transform: translateY(-34px); }
.dg-i.pop.on, .dg-i.drop.on { transform: none; }

.dg .zone { fill: color-mix(in srgb, var(--bm-main) 6%, transparent); stroke: var(--bm-main); stroke-width: 3; stroke-dasharray: 3 12; stroke-linecap: round; }
.dg .f-card { fill: var(--surface); stroke: var(--ink-2); stroke-width: 3; }
.dg .f-screen { fill: var(--sunken); }
.dg .f-mint { fill: var(--bm-soft); stroke: var(--bm-main); stroke-width: 3; }
.dg .f-ok { fill: var(--dg-ok); }
.dg .f-bad { fill: var(--red); }
.dg .f-white { fill: #fff; }
.dg .f-dark { fill: var(--frame); stroke: color-mix(in srgb, var(--ink) 30%, transparent); stroke-width: 2; }
.dg .f-amber { fill: var(--amber); }
.dg .dot { fill: var(--bm-main); }
.dg .dot-line { fill: none; stroke: var(--ink-2); stroke-width: 3; }
.dg .ln, .dg .ln-mint, .dg .ln-red, .dg .ln-white, .dg .ln-bad, .dg .ln-ok, .dg .ln-amber, .dg .ln-thick { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
.dg .ln { stroke: var(--ink-2); }
.dg .ln-mint { stroke: var(--bm-main); }
.dg .ln-red { stroke: var(--red); }
.dg .ln-white { stroke: #fff; stroke-width: 5; }
.dg .ln-bad { stroke: var(--red); stroke-width: 7; }
.dg .ln-ok { stroke: var(--dg-ok); stroke-width: 5; }
.dg .ln-amber { stroke: #fff; stroke-width: 3; }
.dg .ln-thick { stroke: var(--ink-2); stroke-width: 8; }
.dg .glass { fill: color-mix(in srgb, var(--surface) 55%, transparent); stroke: var(--ink-2); stroke-width: 7; }
.dg .link { fill: none; stroke: color-mix(in srgb, var(--bm-main) 65%, transparent); stroke-width: 3; stroke-linecap: round; }
.dg .link.dash { stroke-dasharray: 2 11; stroke-width: 4; }
.dg .link.one { stroke-width: 4; stroke: var(--dg-ok); }
.dg .link.bad { stroke: var(--red); stroke-dasharray: 2 11; stroke-width: 4; }
.dg .head { fill: none; stroke: var(--dg-ok); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.dg .hk-body { fill: #2a2f3b; stroke: #11151c; stroke-width: 3; }
.dg .hk-face { fill: #0b0d12; }
.dg .hk-eye { fill: #ff5258; }
.dg .hk-lap { fill: #4a5162; stroke: #11151c; stroke-width: 3; }
.dg .hk-key { fill: none; stroke: #ff5258; stroke-width: 3; stroke-linecap: round; }
.dg .ring-bad { fill: none; stroke: var(--red); stroke-width: 4; transform-box: fill-box; transform-origin: center; opacity: 0; }
.dg-i.burst .ring-bad { animation: dg-ring .8s ease-out; }
.dg-i.wig { animation: dg-wig .5s ease-in-out 3; transform-box: fill-box; transform-origin: center; }
@keyframes dg-ring { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: scale(1.7); } }
@keyframes dg-wig { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
